]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_buffer swig_types[0]
2467 #define SWIGTYPE_p_char swig_types[1]
2468 #define SWIGTYPE_p_double swig_types[2]
2469 #define SWIGTYPE_p_form_ops_t swig_types[3]
2470 #define SWIGTYPE_p_int swig_types[4]
2471 #define SWIGTYPE_p_unsigned_char swig_types[5]
2472 #define SWIGTYPE_p_unsigned_int swig_types[6]
2473 #define SWIGTYPE_p_unsigned_long swig_types[7]
2474 #define SWIGTYPE_p_wxANIHandler swig_types[8]
2475 #define SWIGTYPE_p_wxAcceleratorTable swig_types[9]
2476 #define SWIGTYPE_p_wxActivateEvent swig_types[10]
2477 #define SWIGTYPE_p_wxAlphaPixelData swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12]
2479 #define SWIGTYPE_p_wxBMPHandler swig_types[13]
2480 #define SWIGTYPE_p_wxBitmap swig_types[14]
2481 #define SWIGTYPE_p_wxBoxSizer swig_types[15]
2482 #define SWIGTYPE_p_wxBrush swig_types[16]
2483 #define SWIGTYPE_p_wxBrushList swig_types[17]
2484 #define SWIGTYPE_p_wxBufferedDC swig_types[18]
2485 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19]
2486 #define SWIGTYPE_p_wxCURHandler swig_types[20]
2487 #define SWIGTYPE_p_wxChar swig_types[21]
2488 #define SWIGTYPE_p_wxChildFocusEvent swig_types[22]
2489 #define SWIGTYPE_p_wxClientDC swig_types[23]
2490 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24]
2491 #define SWIGTYPE_p_wxCloseEvent swig_types[25]
2492 #define SWIGTYPE_p_wxColor swig_types[26]
2493 #define SWIGTYPE_p_wxColour swig_types[27]
2494 #define SWIGTYPE_p_wxColourDatabase swig_types[28]
2495 #define SWIGTYPE_p_wxCommandEvent swig_types[29]
2496 #define SWIGTYPE_p_wxContextMenuEvent swig_types[30]
2497 #define SWIGTYPE_p_wxControl swig_types[31]
2498 #define SWIGTYPE_p_wxControlWithItems swig_types[32]
2499 #define SWIGTYPE_p_wxCursor swig_types[33]
2500 #define SWIGTYPE_p_wxDC swig_types[34]
2501 #define SWIGTYPE_p_wxDCOverlay swig_types[35]
2502 #define SWIGTYPE_p_wxDash swig_types[36]
2503 #define SWIGTYPE_p_wxDateEvent swig_types[37]
2504 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[38]
2505 #define SWIGTYPE_p_wxDropFilesEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDuplexMode swig_types[40]
2507 #define SWIGTYPE_p_wxEffects swig_types[41]
2508 #define SWIGTYPE_p_wxEncodingConverter swig_types[42]
2509 #define SWIGTYPE_p_wxEraseEvent swig_types[43]
2510 #define SWIGTYPE_p_wxEvent swig_types[44]
2511 #define SWIGTYPE_p_wxEvtHandler swig_types[45]
2512 #define SWIGTYPE_p_wxFSFile swig_types[46]
2513 #define SWIGTYPE_p_wxFileSystem swig_types[47]
2514 #define SWIGTYPE_p_wxFlexGridSizer swig_types[48]
2515 #define SWIGTYPE_p_wxFocusEvent swig_types[49]
2516 #define SWIGTYPE_p_wxFont swig_types[50]
2517 #define SWIGTYPE_p_wxFontList swig_types[51]
2518 #define SWIGTYPE_p_wxFontMapper swig_types[52]
2519 #define SWIGTYPE_p_wxGBSizerItem swig_types[53]
2520 #define SWIGTYPE_p_wxGCDC swig_types[54]
2521 #define SWIGTYPE_p_wxGDIObjListBase swig_types[55]
2522 #define SWIGTYPE_p_wxGDIObject swig_types[56]
2523 #define SWIGTYPE_p_wxGIFHandler swig_types[57]
2524 #define SWIGTYPE_p_wxGraphicsContext swig_types[58]
2525 #define SWIGTYPE_p_wxGraphicsPath swig_types[59]
2526 #define SWIGTYPE_p_wxGridBagSizer swig_types[60]
2527 #define SWIGTYPE_p_wxGridSizer swig_types[61]
2528 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[62]
2529 #define SWIGTYPE_p_wxICOHandler swig_types[63]
2530 #define SWIGTYPE_p_wxIcon swig_types[64]
2531 #define SWIGTYPE_p_wxIconBundle swig_types[65]
2532 #define SWIGTYPE_p_wxIconLocation swig_types[66]
2533 #define SWIGTYPE_p_wxIconizeEvent swig_types[67]
2534 #define SWIGTYPE_p_wxIdleEvent swig_types[68]
2535 #define SWIGTYPE_p_wxImage swig_types[69]
2536 #define SWIGTYPE_p_wxImageHandler swig_types[70]
2537 #define SWIGTYPE_p_wxImageList swig_types[71]
2538 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[72]
2539 #define SWIGTYPE_p_wxInitDialogEvent swig_types[73]
2540 #define SWIGTYPE_p_wxJPEGHandler swig_types[74]
2541 #define SWIGTYPE_p_wxKeyEvent swig_types[75]
2542 #define SWIGTYPE_p_wxLanguageInfo swig_types[76]
2543 #define SWIGTYPE_p_wxLayoutConstraints swig_types[77]
2544 #define SWIGTYPE_p_wxLocale swig_types[78]
2545 #define SWIGTYPE_p_wxMask swig_types[79]
2546 #define SWIGTYPE_p_wxMaximizeEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMemoryDC swig_types[81]
2548 #define SWIGTYPE_p_wxMenu swig_types[82]
2549 #define SWIGTYPE_p_wxMenuBar swig_types[83]
2550 #define SWIGTYPE_p_wxMenuEvent swig_types[84]
2551 #define SWIGTYPE_p_wxMenuItem swig_types[85]
2552 #define SWIGTYPE_p_wxMetaFile swig_types[86]
2553 #define SWIGTYPE_p_wxMetaFileDC swig_types[87]
2554 #define SWIGTYPE_p_wxMirrorDC swig_types[88]
2555 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[89]
2556 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[90]
2557 #define SWIGTYPE_p_wxMouseEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMoveEvent swig_types[92]
2559 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[93]
2560 #define SWIGTYPE_p_wxNativeFontInfo swig_types[94]
2561 #define SWIGTYPE_p_wxNativePixelData swig_types[95]
2562 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[96]
2563 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[97]
2564 #define SWIGTYPE_p_wxNcPaintEvent swig_types[98]
2565 #define SWIGTYPE_p_wxNotifyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxObject swig_types[100]
2567 #define SWIGTYPE_p_wxOverlay swig_types[101]
2568 #define SWIGTYPE_p_wxPCXHandler swig_types[102]
2569 #define SWIGTYPE_p_wxPNGHandler swig_types[103]
2570 #define SWIGTYPE_p_wxPNMHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPaintDC swig_types[105]
2572 #define SWIGTYPE_p_wxPaintEvent swig_types[106]
2573 #define SWIGTYPE_p_wxPalette swig_types[107]
2574 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPaperSize swig_types[109]
2576 #define SWIGTYPE_p_wxPen swig_types[110]
2577 #define SWIGTYPE_p_wxPenList swig_types[111]
2578 #define SWIGTYPE_p_wxPixelDataBase swig_types[112]
2579 #define SWIGTYPE_p_wxPoint swig_types[113]
2580 #define SWIGTYPE_p_wxPoint2D swig_types[114]
2581 #define SWIGTYPE_p_wxPostScriptDC swig_types[115]
2582 #define SWIGTYPE_p_wxPrintData swig_types[116]
2583 #define SWIGTYPE_p_wxPrinterDC swig_types[117]
2584 #define SWIGTYPE_p_wxPseudoDC swig_types[118]
2585 #define SWIGTYPE_p_wxPyApp swig_types[119]
2586 #define SWIGTYPE_p_wxPyCommandEvent swig_types[120]
2587 #define SWIGTYPE_p_wxPyEvent swig_types[121]
2588 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[122]
2589 #define SWIGTYPE_p_wxPyImageHandler swig_types[123]
2590 #define SWIGTYPE_p_wxPyLocale swig_types[124]
2591 #define SWIGTYPE_p_wxPySizer swig_types[125]
2592 #define SWIGTYPE_p_wxPyValidator swig_types[126]
2593 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[127]
2594 #define SWIGTYPE_p_wxRect swig_types[128]
2595 #define SWIGTYPE_p_wxRegion swig_types[129]
2596 #define SWIGTYPE_p_wxRegionIterator swig_types[130]
2597 #define SWIGTYPE_p_wxRendererNative swig_types[131]
2598 #define SWIGTYPE_p_wxRendererVersion swig_types[132]
2599 #define SWIGTYPE_p_wxScreenDC swig_types[133]
2600 #define SWIGTYPE_p_wxScrollEvent swig_types[134]
2601 #define SWIGTYPE_p_wxScrollWinEvent swig_types[135]
2602 #define SWIGTYPE_p_wxSetCursorEvent swig_types[136]
2603 #define SWIGTYPE_p_wxShowEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSize swig_types[138]
2605 #define SWIGTYPE_p_wxSizeEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSizer swig_types[140]
2607 #define SWIGTYPE_p_wxSizerItem swig_types[141]
2608 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[142]
2609 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[143]
2610 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[144]
2611 #define SWIGTYPE_p_wxStockGDI swig_types[145]
2612 #define SWIGTYPE_p_wxString swig_types[146]
2613 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[147]
2614 #define SWIGTYPE_p_wxTIFFHandler swig_types[148]
2615 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[149]
2616 #define SWIGTYPE_p_wxValidator swig_types[150]
2617 #define SWIGTYPE_p_wxWindow swig_types[151]
2618 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[152]
2619 #define SWIGTYPE_p_wxWindowDC swig_types[153]
2620 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[154]
2621 #define SWIGTYPE_p_wxXPMHandler swig_types[155]
2622 static swig_type_info *swig_types[157];
2623 static swig_module_info swig_module = {swig_types, 156, 0, 0, 0, 0};
2624 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2625 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2626
2627 /* -------- TYPES TABLE (END) -------- */
2628
2629 #if (PY_VERSION_HEX <= 0x02000000)
2630 # if !defined(SWIG_PYTHON_CLASSIC)
2631 # error "This python version requires to use swig with the '-classic' option"
2632 # endif
2633 #endif
2634 #if (PY_VERSION_HEX <= 0x02020000)
2635 # error "This python version requires to use swig with the '-nomodern' option"
2636 #endif
2637 #if (PY_VERSION_HEX <= 0x02020000)
2638 # error "This python version requires to use swig with the '-nomodernargs' option"
2639 #endif
2640 #ifndef METH_O
2641 # error "This python version requires to use swig with the '-nofastunpack' option"
2642 #endif
2643
2644 /*-----------------------------------------------
2645 @(target):= _gdi_.so
2646 ------------------------------------------------*/
2647 #define SWIG_init init_gdi_
2648
2649 #define SWIG_name "_gdi_"
2650
2651 #define SWIGVERSION 0x010329
2652
2653
2654 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2655 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2656
2657
2658 #include <stdexcept>
2659
2660
2661 namespace swig {
2662 class PyObject_ptr {
2663 protected:
2664 PyObject *_obj;
2665
2666 public:
2667 PyObject_ptr() :_obj(0)
2668 {
2669 }
2670
2671 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2672 {
2673 Py_XINCREF(_obj);
2674 }
2675
2676 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2677 {
2678 if (initial_ref) Py_XINCREF(_obj);
2679 }
2680
2681 PyObject_ptr & operator=(const PyObject_ptr& item)
2682 {
2683 Py_XINCREF(item._obj);
2684 Py_XDECREF(_obj);
2685 _obj = item._obj;
2686 return *this;
2687 }
2688
2689 ~PyObject_ptr()
2690 {
2691 Py_XDECREF(_obj);
2692 }
2693
2694 operator PyObject *() const
2695 {
2696 return _obj;
2697 }
2698
2699 PyObject *operator->() const
2700 {
2701 return _obj;
2702 }
2703 };
2704 }
2705
2706
2707 namespace swig {
2708 struct PyObject_var : PyObject_ptr {
2709 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2710
2711 PyObject_var & operator = (PyObject* obj)
2712 {
2713 Py_XDECREF(_obj);
2714 _obj = obj;
2715 return *this;
2716 }
2717 };
2718 }
2719
2720
2721 #include "wx/wxPython/wxPython.h"
2722 #include "wx/wxPython/pyclasses.h"
2723
2724
2725 static const wxString wxPyEmptyString(wxEmptyString);
2726
2727 #define SWIG_From_long PyInt_FromLong
2728
2729
2730 SWIGINTERNINLINE PyObject *
2731 SWIG_From_int (int value)
2732 {
2733 return SWIG_From_long (value);
2734 }
2735
2736
2737 #include <limits.h>
2738 #ifndef LLONG_MIN
2739 # define LLONG_MIN LONG_LONG_MIN
2740 #endif
2741 #ifndef LLONG_MAX
2742 # define LLONG_MAX LONG_LONG_MAX
2743 #endif
2744 #ifndef ULLONG_MAX
2745 # define ULLONG_MAX ULONG_LONG_MAX
2746 #endif
2747
2748
2749 SWIGINTERN int
2750 SWIG_AsVal_long (PyObject* obj, long* val)
2751 {
2752 if (PyNumber_Check(obj)) {
2753 if (val) *val = PyInt_AsLong(obj);
2754 return SWIG_OK;
2755 }
2756 return SWIG_TypeError;
2757 }
2758
2759
2760 SWIGINTERN int
2761 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2762 {
2763 long v = 0;
2764 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2765 return SWIG_TypeError;
2766 }
2767 else if (val)
2768 *val = (unsigned long)v;
2769 return SWIG_OK;
2770 }
2771
2772
2773 SWIGINTERN int
2774 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2775 {
2776 unsigned long v;
2777 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2778 if (SWIG_IsOK(res)) {
2779 if ((v > UCHAR_MAX)) {
2780 return SWIG_OverflowError;
2781 } else {
2782 if (val) *val = static_cast< unsigned char >(v);
2783 }
2784 }
2785 return res;
2786 }
2787
2788
2789 SWIGINTERNINLINE PyObject*
2790 SWIG_From_unsigned_SS_long (unsigned long value)
2791 {
2792 return (value > LONG_MAX) ?
2793 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2794 }
2795
2796
2797 SWIGINTERNINLINE PyObject *
2798 SWIG_From_unsigned_SS_char (unsigned char value)
2799 {
2800 return SWIG_From_unsigned_SS_long (value);
2801 }
2802
2803 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2804 wxColour temp, *obj = &temp;
2805 if ( other == Py_None ) return false;
2806 if ( ! wxColour_helper(other, &obj) ) {
2807 PyErr_Clear();
2808 return false;
2809 }
2810 return self->operator==(*obj);
2811 }
2812 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2813 wxColour temp, *obj = &temp;
2814 if ( other == Py_None ) return true;
2815 if ( ! wxColour_helper(other, &obj)) {
2816 PyErr_Clear();
2817 return true;
2818 }
2819 return self->operator!=(*obj);
2820 }
2821
2822 SWIGINTERN int
2823 SWIG_AsVal_bool (PyObject *obj, bool *val)
2824 {
2825 if (obj == Py_True) {
2826 if (val) *val = true;
2827 return SWIG_OK;
2828 } else if (obj == Py_False) {
2829 if (val) *val = false;
2830 return SWIG_OK;
2831 } else {
2832 long v = 0;
2833 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2834 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2835 return res;
2836 }
2837 }
2838
2839 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2840 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2841 int red = -1;
2842 int green = -1;
2843 int blue = -1;
2844 int alpha = wxALPHA_OPAQUE;
2845 if (self->IsOk()) {
2846 red = self->Red();
2847 green = self->Green();
2848 blue = self->Blue();
2849 alpha = self->Alpha();
2850 }
2851 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2852 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2853 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2854 if (includeAlpha)
2855 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2856 return rv;
2857 }
2858 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2859 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2860 }
2861
2862 SWIGINTERN int
2863 SWIG_AsVal_int (PyObject * obj, int *val)
2864 {
2865 long v;
2866 int res = SWIG_AsVal_long (obj, &v);
2867 if (SWIG_IsOK(res)) {
2868 if ((v < INT_MIN || v > INT_MAX)) {
2869 return SWIG_OverflowError;
2870 } else {
2871 if (val) *val = static_cast< int >(v);
2872 }
2873 }
2874 return res;
2875 }
2876
2877 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2878 wxDash* dashes;
2879 int count = self->GetDashes(&dashes);
2880 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2881 PyObject* retval = PyList_New(0);
2882 for (int x=0; x<count; x++) {
2883 PyObject* pyint = PyInt_FromLong(dashes[x]);
2884 PyList_Append(retval, pyint);
2885 Py_DECREF(pyint);
2886 }
2887 wxPyEndBlockThreads(blocked);
2888 return retval;
2889 }
2890 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2891 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2892 int size = PyList_Size(pyDashes);
2893 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2894
2895 // black magic warning! The array of wxDashes needs to exist as
2896 // long as the pen does because wxPen does not copy the array. So
2897 // stick a copy in a Python string object and attach it to _self,
2898 // and then call SetDashes with a pointer to that array. Then
2899 // when the Python pen object is destroyed the array will be
2900 // cleaned up too.
2901 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2902 PyObject_SetAttrString(_self, "_dashes", strDashes);
2903
2904 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2905 delete [] dashes;
2906 Py_DECREF(strDashes);
2907 wxPyEndBlockThreads(blocked);
2908 }
2909 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2910 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2911
2912 #include <wx/rawbmp.h>
2913
2914
2915 #include <wx/image.h>
2916
2917 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2918 char** cArray = NULL;
2919 int count;
2920
2921 if (!PyList_Check(listOfStrings)) {
2922 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2923 return NULL;
2924 }
2925 count = PyList_Size(listOfStrings);
2926 cArray = new char*[count];
2927
2928 for(int x=0; x<count; x++) {
2929 // TODO: Need some validation and error checking here
2930 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2931 }
2932 return cArray;
2933 }
2934
2935
2936 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2937 char** cArray = NULL;
2938 wxBitmap* bmp;
2939
2940 cArray = ConvertListOfStrings(listOfStrings);
2941 if (! cArray)
2942 return NULL;
2943 bmp = new wxBitmap(cArray);
2944 delete [] cArray;
2945 return bmp;
2946 }
2947 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2948 char* buf;
2949 Py_ssize_t length;
2950 PyString_AsStringAndSize(bits, &buf, &length);
2951 return new wxBitmap(buf, width, height, depth);
2952 }
2953 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2954 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2955 wxSize size(self->GetWidth(), self->GetHeight());
2956 return size;
2957 }
2958 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2959 wxMask *mask = new wxMask(*self, colour);
2960 self->SetMask(mask);
2961 }
2962 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2963 self->SetWidth(size.x);
2964 self->SetHeight(size.y);
2965 }
2966 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2967 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2968
2969 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2970 // appears to me that the other platforms are already doing it, so I'll just
2971 // automatically do it for wxMSW here.
2972 #ifdef __WXMSW__
2973 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2974 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2975 #else
2976 #define wxPy_premultiply(p, a) (p)
2977 #define wxPy_unpremultiply(p, a) (p)
2978 #endif
2979
2980
2981 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2982 buffer data, int DATASIZE,
2983 buffer alpha, int ALPHASIZE)
2984 {
2985 if (DATASIZE != width*height*3) {
2986 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2987 return NULL;
2988 }
2989
2990 if (ALPHASIZE != width*height) {
2991 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2992 return NULL;
2993 }
2994
2995 wxBitmap* bmp = new wxBitmap(width, height, 32);
2996 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2997 if (! pixData) {
2998 // raise an exception...
2999 wxPyErr_SetString(PyExc_RuntimeError,
3000 "Failed to gain raw access to bitmap data.");
3001 return NULL;
3002 }
3003
3004 pixData.UseAlpha();
3005 wxAlphaPixelData::Iterator p(pixData);
3006 for (int y=0; y<height; y++) {
3007 wxAlphaPixelData::Iterator rowStart = p;
3008 for (int x=0; x<width; x++) {
3009 byte a = *(alpha++);
3010 p.Red() = wxPy_premultiply(*(data++), a);
3011 p.Green() = wxPy_premultiply(*(data++), a);
3012 p.Blue() = wxPy_premultiply(*(data++), a);
3013 p.Alpha() = a;
3014 ++p;
3015 }
3016 p = rowStart;
3017 p.OffsetY(pixData, 1);
3018 }
3019 return bmp;
3020 }
3021
3022 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3023 {
3024 if (DATASIZE != width*height*3) {
3025 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3026 return NULL;
3027 }
3028
3029 wxBitmap* bmp = new wxBitmap(width, height, 24);
3030 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3031 if (! pixData) {
3032 // raise an exception...
3033 wxPyErr_SetString(PyExc_RuntimeError,
3034 "Failed to gain raw access to bitmap data.");
3035 return NULL;
3036 }
3037
3038 wxNativePixelData::Iterator p(pixData);
3039 for (int y=0; y<height; y++) {
3040 wxNativePixelData::Iterator rowStart = p;
3041 for (int x=0; x<width; x++) {
3042 p.Red() = *(data++);
3043 p.Green() = *(data++);
3044 p.Blue() = *(data++);
3045 ++p;
3046 }
3047 p = rowStart;
3048 p.OffsetY(pixData, 1);
3049 }
3050 return bmp;
3051 }
3052
3053
3054 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3055 {
3056 if (DATASIZE != width*height*4) {
3057 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3058 return NULL;
3059 }
3060
3061 wxBitmap* bmp = new wxBitmap(width, height, 32);
3062 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3063 if (! pixData) {
3064 // raise an exception...
3065 wxPyErr_SetString(PyExc_RuntimeError,
3066 "Failed to gain raw access to bitmap data.");
3067 return NULL;
3068 }
3069
3070 pixData.UseAlpha();
3071 wxAlphaPixelData::Iterator p(pixData);
3072 for (int y=0; y<height; y++) {
3073 wxAlphaPixelData::Iterator rowStart = p;
3074 for (int x=0; x<width; x++) {
3075 byte a = data[3];
3076 p.Red() = wxPy_premultiply(*(data++), a);
3077 p.Green() = wxPy_premultiply(*(data++), a);
3078 p.Blue() = wxPy_premultiply(*(data++), a);
3079 p.Alpha() = a; data++;
3080 ++p;
3081 }
3082 p = rowStart;
3083 p.OffsetY(pixData, 1);
3084 }
3085 return bmp;
3086 }
3087
3088
3089 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3090
3091 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3092 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3093 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3094 self->Red() = red;
3095 self->Green() = green;
3096 self->Blue() = blue;
3097 }
3098 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3099 PyObject* rv = PyTuple_New(3);
3100 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3101 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3102 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3103 return rv;
3104 }
3105
3106 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3107
3108 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3109 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3110 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3111 self->Red() = wxPy_premultiply(red, alpha);
3112 self->Green() = wxPy_premultiply(green, alpha);
3113 self->Blue() = wxPy_premultiply(blue, alpha);
3114 self->Alpha() = alpha;
3115 }
3116 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3117 PyObject* rv = PyTuple_New(4);
3118 int red = self->Red();
3119 int green = self->Green();
3120 int blue = self->Blue();
3121 int alpha = self->Alpha();
3122
3123 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3124 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3125 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3126 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3127 return rv;
3128 }
3129 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3130 if ( !colour.IsOk() )
3131 return new wxMask(bitmap, *wxBLACK);
3132 else
3133 return new wxMask(bitmap, colour);
3134 }
3135
3136 #include <wx/iconbndl.h>
3137
3138 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3139 wxIcon* icon = new wxIcon();
3140 icon->CopyFromBitmap(bmp);
3141 return icon;
3142 }
3143 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3144 char** cArray = NULL;
3145 wxIcon* icon;
3146
3147 cArray = ConvertListOfStrings(listOfStrings);
3148 if (! cArray)
3149 return NULL;
3150 icon = new wxIcon(cArray);
3151 delete [] cArray;
3152 return icon;
3153 }
3154 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3155 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3156
3157 return new wxIconLocation(*filename, num);
3158
3159
3160
3161 }
3162 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3163
3164 self->SetIndex(num);
3165
3166
3167
3168 }
3169 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3170
3171 return self->GetIndex();
3172
3173
3174
3175 }
3176 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3177 #ifdef __WXGTK__
3178 wxImage img(cursorName, type);
3179 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3180 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3181 return new wxCursor(img);
3182 #else
3183 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3184 #endif
3185 }
3186 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3187
3188
3189 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3190 (*self) ++;
3191 }
3192 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3193 return self->operator bool();
3194 }
3195
3196 #include <wx/fontutil.h>
3197 #include <wx/fontmap.h>
3198 #include <wx/fontenum.h>
3199
3200 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3201 return self->ToString();
3202 }
3203
3204 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3205 { wxPyRaiseNotImplemented(); return NULL; }
3206
3207 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3208 { wxPyRaiseNotImplemented(); return false; }
3209
3210
3211 SWIGINTERNINLINE PyObject *
3212 SWIG_From_size_t (size_t value)
3213 {
3214 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3215 }
3216
3217
3218 SWIGINTERNINLINE int
3219 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3220 {
3221 unsigned long v;
3222 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3223 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3224 return res;
3225 }
3226
3227 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3228 wxFontEncoding alt_enc;
3229 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3230 return PyInt_FromLong(alt_enc);
3231 else {
3232 Py_INCREF(Py_None);
3233 return Py_None;
3234 }
3235 }
3236 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3237 wxNativeFontInfo nfi;
3238 nfi.FromString(info);
3239 return new wxFont(nfi);
3240 }
3241 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3242 return wxFont::New(pointSize, family, flags, face, encoding);
3243 }
3244 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3245 return wxFontBase::New(pixelSize, family,
3246 style, weight, underlined,
3247 face, encoding);
3248 }
3249 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3250 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3251 }
3252 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3253 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3254
3255 class wxPyFontEnumerator : public wxFontEnumerator {
3256 public:
3257 wxPyFontEnumerator() {}
3258 ~wxPyFontEnumerator() {}
3259
3260 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3261 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3262
3263 PYPRIVATE;
3264 };
3265
3266 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3267 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3268
3269
3270 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3271 PyObject* ret;
3272 wxArrayString arr = wxFontEnumerator::GetEncodings();
3273 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3274 ret = wxArrayString2PyList_helper(arr);
3275 wxPyEndBlockThreads(blocked);
3276 return ret;
3277 }
3278 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3279 PyObject* ret;
3280 wxArrayString arr = wxFontEnumerator::GetFacenames();
3281 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3282 ret = wxArrayString2PyList_helper(arr);
3283 wxPyEndBlockThreads(blocked);
3284 return ret;
3285 }
3286
3287 #include <locale.h>
3288
3289 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3290 wxLocale* loc;
3291 if (language == -1)
3292 loc = new wxLocale();
3293 else
3294 loc = new wxLocale(language, flags);
3295 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3296 // for the floating point conversions and such to work right.
3297 #if PY_VERSION_HEX < 0x02040000
3298 setlocale(LC_NUMERIC, "C");
3299 #endif
3300 return loc;
3301 }
3302 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3303 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3304 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3305 // for the floating point conversions and such to work right.
3306 #if PY_VERSION_HEX < 0x02040000
3307 setlocale(LC_NUMERIC, "C");
3308 #endif
3309 return rc;
3310 }
3311 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3312 bool rc = self->Init(language, flags);
3313 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3314 // for the floating point conversions and such to work right.
3315 #if PY_VERSION_HEX < 0x02040000
3316 setlocale(LC_NUMERIC, "C");
3317 #endif
3318 return rc;
3319 }
3320
3321 class wxPyLocale : public wxLocale
3322 {
3323 public:
3324 wxPyLocale();
3325
3326 wxPyLocale(const wxChar *szName, // name (for messages)
3327 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3328 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3329 bool bLoadDefault = true, // preload wxstd.mo?
3330 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3331
3332 wxPyLocale(int language, // wxLanguage id or custom language
3333 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3334
3335 ~wxPyLocale();
3336
3337 virtual const wxChar *GetString(const wxChar *szOrigString,
3338 const wxChar *szDomain = NULL) const;
3339 virtual const wxChar *GetString(const wxChar *szOrigString,
3340 const wxChar *szOrigString2, size_t n,
3341 const wxChar *szDomain = NULL) const;
3342
3343 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3344 const wxChar *szDomain = NULL) const;
3345 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3346 const wxChar *szOrigString2, size_t n,
3347 const wxChar *szDomain = NULL) const;
3348
3349 PYPRIVATE;
3350 private:
3351 DECLARE_NO_COPY_CLASS(wxPyLocale)
3352 };
3353
3354 wxPyLocale::wxPyLocale() : wxLocale()
3355 {
3356 }
3357
3358 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3359 const wxChar *szShort, // dir prefix (for msg files)
3360 const wxChar *szLocale, // locale (for setlocale)
3361 bool bLoadDefault, // preload wxstd.mo?
3362 bool bConvertEncoding) // convert Win<->Unix if necessary?
3363 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3364 {
3365 }
3366
3367 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3368 int flags) : wxLocale(language, flags)
3369 {
3370 }
3371
3372 wxPyLocale::~wxPyLocale()
3373 {
3374 }
3375
3376 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3377 const wxChar *szDomain) const
3378 {
3379 wxChar *str = GetSingularString(szOrigString, szDomain);
3380 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3381 }
3382
3383 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3384 const wxChar *szOrigString2, size_t n,
3385 const wxChar *szDomain) const
3386 {
3387 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3388 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3389 }
3390
3391 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3392 const wxChar *szDomain) const
3393 {
3394 bool found;
3395 static wxString str;
3396 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3397 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3398 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3399 PyObject* param1 = wx2PyString(szOrigString);
3400 PyObject* param2 = wx2PyString(szDomain);
3401 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3402 Py_DECREF(param1);
3403 Py_DECREF(param2);
3404 if (ret) {
3405 str = Py2wxString(ret);
3406 Py_DECREF(ret);
3407 }
3408 }
3409 wxPyEndBlockThreads(blocked);
3410 return (found ? (wxChar*)str.c_str() : NULL);
3411 }
3412
3413 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3414 const wxChar *szOrigString2, size_t n,
3415 const wxChar *szDomain) const
3416 {
3417 bool found;
3418 static wxString str;
3419 str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string.
3420 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3421 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3422 PyObject* param1 = wx2PyString(szOrigString);
3423 PyObject* param2 = wx2PyString(szOrigString2);
3424 PyObject* param4 = wx2PyString(szDomain);
3425 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3426 Py_DECREF(param1);
3427 Py_DECREF(param2);
3428 Py_DECREF(param4);
3429 if( ret) {
3430 str = Py2wxString(ret);
3431 Py_DECREF(ret);
3432 }
3433 }
3434 wxPyEndBlockThreads(blocked);
3435 return (found ? (wxChar*)str.c_str() : NULL);
3436 }
3437
3438 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3439 wxPyLocale* loc;
3440 if (language == -1)
3441 loc = new wxPyLocale();
3442 else
3443 loc = new wxPyLocale(language, flags);
3444 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3445 // for the floating point conversions and such to work right.
3446 #if PY_VERSION_HEX < 0x02040000
3447 setlocale(LC_NUMERIC, "C");
3448 #endif
3449 return loc;
3450 }
3451
3452 #include "wx/wxPython/pydrawxxx.h"
3453
3454 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3455 wxColour col;
3456 self->GetPixel(x, y, &col);
3457 return col;
3458 }
3459 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3460 wxColour col;
3461 self->GetPixel(pt, &col);
3462 return col;
3463 }
3464
3465 SWIGINTERN int
3466 SWIG_AsVal_double (PyObject *obj, double* val)
3467 {
3468 if (PyNumber_Check(obj)) {
3469 if (val) *val = PyFloat_AsDouble(obj);
3470 return SWIG_OK;
3471 }
3472 return SWIG_TypeError;
3473 }
3474
3475 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3476 wxRect rv;
3477 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3478 return rv;
3479 }
3480 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3481 wxRect rect;
3482 self->GetClippingBox(rect);
3483 return rect;
3484 }
3485 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3486 wxArrayInt widths;
3487 self->GetPartialTextExtents(text, widths);
3488 return widths;
3489 }
3490
3491 #define SWIG_From_double PyFloat_FromDouble
3492
3493 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3494 self->SetLogicalOrigin(point.x, point.y);
3495 }
3496 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3497 self->SetDeviceOrigin(point.x, point.y);
3498 }
3499 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3500 self->CalcBoundingBox(point.x, point.y);
3501 }
3502 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3503 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3504 }
3505 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3506 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3507 }
3508 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3509 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3510 }
3511 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3512 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3513 }
3514 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3515 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3516 }
3517 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3518 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3519 }
3520
3521 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3522 *x1 = dc->MinX();
3523 *y1 = dc->MinY();
3524 *x2 = dc->MaxX();
3525 *y2 = dc->MaxY();
3526 }
3527
3528
3529 #include <wx/dcbuffer.h>
3530
3531
3532 #include <wx/dcps.h>
3533
3534
3535 #include <wx/metafile.h>
3536
3537
3538 #include <wx/graphics.h>
3539
3540
3541 #if !wxUSE_GRAPHICS_CONTEXT
3542 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3543
3544 class wxGraphicsPath
3545 {
3546 public :
3547 wxGraphicsPath() {
3548 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3549 PyErr_SetString(PyExc_NotImplementedError,
3550 "wxGraphicsPath is not available on this platform.");
3551 wxPyEndBlockThreads(blocked);
3552 }
3553 virtual ~wxGraphicsPath() {}
3554
3555 void MoveToPoint( wxDouble, wxDouble ) {}
3556 void AddLineToPoint( wxDouble, wxDouble ) {}
3557 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3558 void CloseSubpath() {}
3559 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3560 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3561
3562 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3563 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3564 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3565 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3566
3567 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3568 void MoveToPoint( const wxPoint2DDouble& ) {}
3569 void AddLineToPoint( const wxPoint2DDouble&) {}
3570 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3571 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3572 };
3573
3574
3575 class wxGraphicsContext
3576 {
3577 public:
3578 wxGraphicsContext() {
3579 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3580 PyErr_SetString(PyExc_NotImplementedError,
3581 "wxGraphicsContext is not available on this platform.");
3582 wxPyEndBlockThreads(blocked);
3583 }
3584 virtual ~wxGraphicsContext() {}
3585
3586 static wxGraphicsContext* Create( const wxWindowDC&) {
3587 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3588 PyErr_SetString(PyExc_NotImplementedError,
3589 "wxGraphicsPath is not available on this platform.");
3590 wxPyEndBlockThreads(blocked);
3591 return NULL;
3592 }
3593
3594 wxGraphicsPath * CreatePath() { return NULL; }
3595 void PushState() {}
3596 void PopState() {}
3597 void Clip( const wxRegion & ) {}
3598 void Translate( wxDouble , wxDouble ) {}
3599 void Scale( wxDouble , wxDouble ) {}
3600 void Rotate( wxDouble ) {}
3601 void SetPen( const wxPen & ) {}
3602 void SetBrush( const wxBrush & ) {}
3603 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3604 const wxColour&, const wxColour&) {}
3605 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3606 const wxColour &, const wxColour &) {}
3607 void SetFont( const wxFont & ) {}
3608 void SetTextColor( const wxColour & ) {}
3609 void StrokePath( const wxGraphicsPath * ) {}
3610 void FillPath( const wxGraphicsPath *, int ) {}
3611 void DrawPath( const wxGraphicsPath *, int ) {}
3612 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3613 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3614 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3615 wxDouble *, wxDouble * ) const {}
3616 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3617 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3618 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3619 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3620 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3621 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3622 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3623 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3624 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3625 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3626 };
3627
3628
3629 class wxGCDC: public wxWindowDC
3630 {
3631 public:
3632 wxGCDC(const wxWindowDC&) {
3633 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3634 PyErr_SetString(PyExc_NotImplementedError,
3635 "wxGCDC is not available on this platform.");
3636 wxPyEndBlockThreads(blocked);
3637 }
3638
3639 wxGCDC() {
3640 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3641 PyErr_SetString(PyExc_NotImplementedError,
3642 "wxGCDC is not available on this platform.");
3643 wxPyEndBlockThreads(blocked);
3644 }
3645
3646 virtual ~wxGCDC() {}
3647
3648 wxGraphicsContext* GetGraphicContext() { return NULL; }
3649 };
3650
3651 #endif
3652
3653 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3654 wxArrayDouble widths;
3655 self->GetPartialTextExtents(text, widths);
3656 return widths;
3657 }
3658 SWIGINTERN void wxGraphicsContext_StrokeDisconnectedLines(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3659 size_t c1, c2, count;
3660 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3661 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3662
3663 if ( beginP != NULL && endP != NULL )
3664 {
3665 count = wxMin(c1, c2);
3666 self->StrokeLines(count, beginP, endP);
3667 }
3668 delete [] beginP;
3669 delete [] endP;
3670 }
3671
3672
3673 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3674 self->AddColour(name, wxColour(red, green, blue));
3675 }
3676
3677 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3678 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3679 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3680 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3681
3682
3683 #include <wx/effects.h>
3684
3685
3686 #include "wx/renderer.h"
3687
3688
3689 SWIGINTERNINLINE PyObject*
3690 SWIG_From_bool (bool value)
3691 {
3692 return PyBool_FromLong(value ? 1 : 0);
3693 }
3694
3695
3696 #include "wx/wxPython/pseudodc.h"
3697
3698 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3699 wxRect rect;
3700 self->GetIdBounds(id, rect);
3701 return rect;
3702 }
3703 #ifdef __cplusplus
3704 extern "C" {
3705 #endif
3706 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3707 PyObject *resultobj = 0;
3708 wxGDIObject *result = 0 ;
3709
3710 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3711 {
3712 if (!wxPyCheckForApp()) SWIG_fail;
3713 PyThreadState* __tstate = wxPyBeginAllowThreads();
3714 result = (wxGDIObject *)new wxGDIObject();
3715 wxPyEndAllowThreads(__tstate);
3716 if (PyErr_Occurred()) SWIG_fail;
3717 }
3718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3719 return resultobj;
3720 fail:
3721 return NULL;
3722 }
3723
3724
3725 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3726 PyObject *resultobj = 0;
3727 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3728 void *argp1 = 0 ;
3729 int res1 = 0 ;
3730 PyObject *swig_obj[1] ;
3731
3732 if (!args) SWIG_fail;
3733 swig_obj[0] = args;
3734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3735 if (!SWIG_IsOK(res1)) {
3736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3737 }
3738 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3739 {
3740 PyThreadState* __tstate = wxPyBeginAllowThreads();
3741 delete arg1;
3742
3743 wxPyEndAllowThreads(__tstate);
3744 if (PyErr_Occurred()) SWIG_fail;
3745 }
3746 resultobj = SWIG_Py_Void();
3747 return resultobj;
3748 fail:
3749 return NULL;
3750 }
3751
3752
3753 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3754 PyObject *resultobj = 0;
3755 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3756 bool result;
3757 void *argp1 = 0 ;
3758 int res1 = 0 ;
3759 PyObject *swig_obj[1] ;
3760
3761 if (!args) SWIG_fail;
3762 swig_obj[0] = args;
3763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3764 if (!SWIG_IsOK(res1)) {
3765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3766 }
3767 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3768 {
3769 PyThreadState* __tstate = wxPyBeginAllowThreads();
3770 result = (bool)(arg1)->IsNull();
3771 wxPyEndAllowThreads(__tstate);
3772 if (PyErr_Occurred()) SWIG_fail;
3773 }
3774 {
3775 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3776 }
3777 return resultobj;
3778 fail:
3779 return NULL;
3780 }
3781
3782
3783 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3784 PyObject *obj;
3785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3786 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3787 return SWIG_Py_Void();
3788 }
3789
3790 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3791 return SWIG_Python_InitShadowInstance(args);
3792 }
3793
3794 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3795 PyObject *resultobj = 0;
3796 byte arg1 = (byte) 0 ;
3797 byte arg2 = (byte) 0 ;
3798 byte arg3 = (byte) 0 ;
3799 byte arg4 = (byte) wxALPHA_OPAQUE ;
3800 wxColour *result = 0 ;
3801 unsigned char val1 ;
3802 int ecode1 = 0 ;
3803 unsigned char val2 ;
3804 int ecode2 = 0 ;
3805 unsigned char val3 ;
3806 int ecode3 = 0 ;
3807 unsigned char val4 ;
3808 int ecode4 = 0 ;
3809 PyObject * obj0 = 0 ;
3810 PyObject * obj1 = 0 ;
3811 PyObject * obj2 = 0 ;
3812 PyObject * obj3 = 0 ;
3813 char * kwnames[] = {
3814 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3815 };
3816
3817 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3818 if (obj0) {
3819 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3820 if (!SWIG_IsOK(ecode1)) {
3821 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3822 }
3823 arg1 = static_cast< byte >(val1);
3824 }
3825 if (obj1) {
3826 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3827 if (!SWIG_IsOK(ecode2)) {
3828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3829 }
3830 arg2 = static_cast< byte >(val2);
3831 }
3832 if (obj2) {
3833 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3834 if (!SWIG_IsOK(ecode3)) {
3835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3836 }
3837 arg3 = static_cast< byte >(val3);
3838 }
3839 if (obj3) {
3840 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3841 if (!SWIG_IsOK(ecode4)) {
3842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3843 }
3844 arg4 = static_cast< byte >(val4);
3845 }
3846 {
3847 PyThreadState* __tstate = wxPyBeginAllowThreads();
3848 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3849 wxPyEndAllowThreads(__tstate);
3850 if (PyErr_Occurred()) SWIG_fail;
3851 }
3852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3853 return resultobj;
3854 fail:
3855 return NULL;
3856 }
3857
3858
3859 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3860 PyObject *resultobj = 0;
3861 wxString *arg1 = 0 ;
3862 wxColour *result = 0 ;
3863 bool temp1 = false ;
3864 PyObject * obj0 = 0 ;
3865 char * kwnames[] = {
3866 (char *) "colorName", NULL
3867 };
3868
3869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3870 {
3871 arg1 = wxString_in_helper(obj0);
3872 if (arg1 == NULL) SWIG_fail;
3873 temp1 = true;
3874 }
3875 {
3876 if (!wxPyCheckForApp()) SWIG_fail;
3877 PyThreadState* __tstate = wxPyBeginAllowThreads();
3878 result = (wxColour *)new wxColour((wxString const &)*arg1);
3879 wxPyEndAllowThreads(__tstate);
3880 if (PyErr_Occurred()) SWIG_fail;
3881 }
3882 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3883 {
3884 if (temp1)
3885 delete arg1;
3886 }
3887 return resultobj;
3888 fail:
3889 {
3890 if (temp1)
3891 delete arg1;
3892 }
3893 return NULL;
3894 }
3895
3896
3897 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3898 PyObject *resultobj = 0;
3899 unsigned long arg1 ;
3900 wxColour *result = 0 ;
3901 unsigned long val1 ;
3902 int ecode1 = 0 ;
3903 PyObject * obj0 = 0 ;
3904 char * kwnames[] = {
3905 (char *) "colRGB", NULL
3906 };
3907
3908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3909 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3910 if (!SWIG_IsOK(ecode1)) {
3911 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3912 }
3913 arg1 = static_cast< unsigned long >(val1);
3914 {
3915 PyThreadState* __tstate = wxPyBeginAllowThreads();
3916 result = (wxColour *)new wxColour(arg1);
3917 wxPyEndAllowThreads(__tstate);
3918 if (PyErr_Occurred()) SWIG_fail;
3919 }
3920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3921 return resultobj;
3922 fail:
3923 return NULL;
3924 }
3925
3926
3927 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3928 PyObject *resultobj = 0;
3929 wxColour *arg1 = (wxColour *) 0 ;
3930 void *argp1 = 0 ;
3931 int res1 = 0 ;
3932 PyObject *swig_obj[1] ;
3933
3934 if (!args) SWIG_fail;
3935 swig_obj[0] = args;
3936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3937 if (!SWIG_IsOK(res1)) {
3938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3939 }
3940 arg1 = reinterpret_cast< wxColour * >(argp1);
3941 {
3942 PyThreadState* __tstate = wxPyBeginAllowThreads();
3943 delete arg1;
3944
3945 wxPyEndAllowThreads(__tstate);
3946 if (PyErr_Occurred()) SWIG_fail;
3947 }
3948 resultobj = SWIG_Py_Void();
3949 return resultobj;
3950 fail:
3951 return NULL;
3952 }
3953
3954
3955 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3956 PyObject *resultobj = 0;
3957 wxColour *arg1 = (wxColour *) 0 ;
3958 byte result;
3959 void *argp1 = 0 ;
3960 int res1 = 0 ;
3961 PyObject *swig_obj[1] ;
3962
3963 if (!args) SWIG_fail;
3964 swig_obj[0] = args;
3965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3966 if (!SWIG_IsOK(res1)) {
3967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3968 }
3969 arg1 = reinterpret_cast< wxColour * >(argp1);
3970 {
3971 PyThreadState* __tstate = wxPyBeginAllowThreads();
3972 result = (byte)(arg1)->Red();
3973 wxPyEndAllowThreads(__tstate);
3974 if (PyErr_Occurred()) SWIG_fail;
3975 }
3976 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3977 return resultobj;
3978 fail:
3979 return NULL;
3980 }
3981
3982
3983 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3984 PyObject *resultobj = 0;
3985 wxColour *arg1 = (wxColour *) 0 ;
3986 byte result;
3987 void *argp1 = 0 ;
3988 int res1 = 0 ;
3989 PyObject *swig_obj[1] ;
3990
3991 if (!args) SWIG_fail;
3992 swig_obj[0] = args;
3993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3994 if (!SWIG_IsOK(res1)) {
3995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3996 }
3997 arg1 = reinterpret_cast< wxColour * >(argp1);
3998 {
3999 PyThreadState* __tstate = wxPyBeginAllowThreads();
4000 result = (byte)(arg1)->Green();
4001 wxPyEndAllowThreads(__tstate);
4002 if (PyErr_Occurred()) SWIG_fail;
4003 }
4004 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4005 return resultobj;
4006 fail:
4007 return NULL;
4008 }
4009
4010
4011 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4012 PyObject *resultobj = 0;
4013 wxColour *arg1 = (wxColour *) 0 ;
4014 byte result;
4015 void *argp1 = 0 ;
4016 int res1 = 0 ;
4017 PyObject *swig_obj[1] ;
4018
4019 if (!args) SWIG_fail;
4020 swig_obj[0] = args;
4021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4022 if (!SWIG_IsOK(res1)) {
4023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4024 }
4025 arg1 = reinterpret_cast< wxColour * >(argp1);
4026 {
4027 PyThreadState* __tstate = wxPyBeginAllowThreads();
4028 result = (byte)(arg1)->Blue();
4029 wxPyEndAllowThreads(__tstate);
4030 if (PyErr_Occurred()) SWIG_fail;
4031 }
4032 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4033 return resultobj;
4034 fail:
4035 return NULL;
4036 }
4037
4038
4039 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4040 PyObject *resultobj = 0;
4041 wxColour *arg1 = (wxColour *) 0 ;
4042 byte result;
4043 void *argp1 = 0 ;
4044 int res1 = 0 ;
4045 PyObject *swig_obj[1] ;
4046
4047 if (!args) SWIG_fail;
4048 swig_obj[0] = args;
4049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4050 if (!SWIG_IsOK(res1)) {
4051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4052 }
4053 arg1 = reinterpret_cast< wxColour * >(argp1);
4054 {
4055 PyThreadState* __tstate = wxPyBeginAllowThreads();
4056 result = (byte)(arg1)->Alpha();
4057 wxPyEndAllowThreads(__tstate);
4058 if (PyErr_Occurred()) SWIG_fail;
4059 }
4060 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4061 return resultobj;
4062 fail:
4063 return NULL;
4064 }
4065
4066
4067 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4068 PyObject *resultobj = 0;
4069 wxColour *arg1 = (wxColour *) 0 ;
4070 bool result;
4071 void *argp1 = 0 ;
4072 int res1 = 0 ;
4073 PyObject *swig_obj[1] ;
4074
4075 if (!args) SWIG_fail;
4076 swig_obj[0] = args;
4077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4078 if (!SWIG_IsOK(res1)) {
4079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4080 }
4081 arg1 = reinterpret_cast< wxColour * >(argp1);
4082 {
4083 PyThreadState* __tstate = wxPyBeginAllowThreads();
4084 result = (bool)(arg1)->IsOk();
4085 wxPyEndAllowThreads(__tstate);
4086 if (PyErr_Occurred()) SWIG_fail;
4087 }
4088 {
4089 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4090 }
4091 return resultobj;
4092 fail:
4093 return NULL;
4094 }
4095
4096
4097 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4098 PyObject *resultobj = 0;
4099 wxColour *arg1 = (wxColour *) 0 ;
4100 byte arg2 ;
4101 byte arg3 ;
4102 byte arg4 ;
4103 byte arg5 = (byte) wxALPHA_OPAQUE ;
4104 void *argp1 = 0 ;
4105 int res1 = 0 ;
4106 unsigned char val2 ;
4107 int ecode2 = 0 ;
4108 unsigned char val3 ;
4109 int ecode3 = 0 ;
4110 unsigned char val4 ;
4111 int ecode4 = 0 ;
4112 unsigned char val5 ;
4113 int ecode5 = 0 ;
4114 PyObject * obj0 = 0 ;
4115 PyObject * obj1 = 0 ;
4116 PyObject * obj2 = 0 ;
4117 PyObject * obj3 = 0 ;
4118 PyObject * obj4 = 0 ;
4119 char * kwnames[] = {
4120 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4121 };
4122
4123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4125 if (!SWIG_IsOK(res1)) {
4126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4127 }
4128 arg1 = reinterpret_cast< wxColour * >(argp1);
4129 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4130 if (!SWIG_IsOK(ecode2)) {
4131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4132 }
4133 arg2 = static_cast< byte >(val2);
4134 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4135 if (!SWIG_IsOK(ecode3)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4137 }
4138 arg3 = static_cast< byte >(val3);
4139 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4140 if (!SWIG_IsOK(ecode4)) {
4141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4142 }
4143 arg4 = static_cast< byte >(val4);
4144 if (obj4) {
4145 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4146 if (!SWIG_IsOK(ecode5)) {
4147 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4148 }
4149 arg5 = static_cast< byte >(val5);
4150 }
4151 {
4152 PyThreadState* __tstate = wxPyBeginAllowThreads();
4153 (arg1)->Set(arg2,arg3,arg4,arg5);
4154 wxPyEndAllowThreads(__tstate);
4155 if (PyErr_Occurred()) SWIG_fail;
4156 }
4157 resultobj = SWIG_Py_Void();
4158 return resultobj;
4159 fail:
4160 return NULL;
4161 }
4162
4163
4164 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4165 PyObject *resultobj = 0;
4166 wxColour *arg1 = (wxColour *) 0 ;
4167 unsigned long arg2 ;
4168 void *argp1 = 0 ;
4169 int res1 = 0 ;
4170 unsigned long val2 ;
4171 int ecode2 = 0 ;
4172 PyObject * obj0 = 0 ;
4173 PyObject * obj1 = 0 ;
4174 char * kwnames[] = {
4175 (char *) "self",(char *) "colRGB", NULL
4176 };
4177
4178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4180 if (!SWIG_IsOK(res1)) {
4181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4182 }
4183 arg1 = reinterpret_cast< wxColour * >(argp1);
4184 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4185 if (!SWIG_IsOK(ecode2)) {
4186 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4187 }
4188 arg2 = static_cast< unsigned long >(val2);
4189 {
4190 PyThreadState* __tstate = wxPyBeginAllowThreads();
4191 (arg1)->Set(arg2);
4192 wxPyEndAllowThreads(__tstate);
4193 if (PyErr_Occurred()) SWIG_fail;
4194 }
4195 resultobj = SWIG_Py_Void();
4196 return resultobj;
4197 fail:
4198 return NULL;
4199 }
4200
4201
4202 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4203 PyObject *resultobj = 0;
4204 wxColour *arg1 = (wxColour *) 0 ;
4205 wxString *arg2 = 0 ;
4206 void *argp1 = 0 ;
4207 int res1 = 0 ;
4208 bool temp2 = false ;
4209 PyObject * obj0 = 0 ;
4210 PyObject * obj1 = 0 ;
4211 char * kwnames[] = {
4212 (char *) "self",(char *) "colourName", NULL
4213 };
4214
4215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4217 if (!SWIG_IsOK(res1)) {
4218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4219 }
4220 arg1 = reinterpret_cast< wxColour * >(argp1);
4221 {
4222 arg2 = wxString_in_helper(obj1);
4223 if (arg2 == NULL) SWIG_fail;
4224 temp2 = true;
4225 }
4226 {
4227 PyThreadState* __tstate = wxPyBeginAllowThreads();
4228 (arg1)->Set((wxString const &)*arg2);
4229 wxPyEndAllowThreads(__tstate);
4230 if (PyErr_Occurred()) SWIG_fail;
4231 }
4232 resultobj = SWIG_Py_Void();
4233 {
4234 if (temp2)
4235 delete arg2;
4236 }
4237 return resultobj;
4238 fail:
4239 {
4240 if (temp2)
4241 delete arg2;
4242 }
4243 return NULL;
4244 }
4245
4246
4247 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4248 PyObject *resultobj = 0;
4249 wxColour *arg1 = (wxColour *) 0 ;
4250 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4251 wxString result;
4252 void *argp1 = 0 ;
4253 int res1 = 0 ;
4254 long val2 ;
4255 int ecode2 = 0 ;
4256 PyObject * obj0 = 0 ;
4257 PyObject * obj1 = 0 ;
4258 char * kwnames[] = {
4259 (char *) "self",(char *) "flags", NULL
4260 };
4261
4262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4264 if (!SWIG_IsOK(res1)) {
4265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4266 }
4267 arg1 = reinterpret_cast< wxColour * >(argp1);
4268 if (obj1) {
4269 ecode2 = SWIG_AsVal_long(obj1, &val2);
4270 if (!SWIG_IsOK(ecode2)) {
4271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4272 }
4273 arg2 = static_cast< long >(val2);
4274 }
4275 {
4276 PyThreadState* __tstate = wxPyBeginAllowThreads();
4277 result = ((wxColour const *)arg1)->GetAsString(arg2);
4278 wxPyEndAllowThreads(__tstate);
4279 if (PyErr_Occurred()) SWIG_fail;
4280 }
4281 {
4282 #if wxUSE_UNICODE
4283 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4284 #else
4285 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4286 #endif
4287 }
4288 return resultobj;
4289 fail:
4290 return NULL;
4291 }
4292
4293
4294 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4295 PyObject *resultobj = 0;
4296 wxColour *arg1 = (wxColour *) 0 ;
4297 long result;
4298 void *argp1 = 0 ;
4299 int res1 = 0 ;
4300 PyObject *swig_obj[1] ;
4301
4302 if (!args) SWIG_fail;
4303 swig_obj[0] = args;
4304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4305 if (!SWIG_IsOK(res1)) {
4306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4307 }
4308 arg1 = reinterpret_cast< wxColour * >(argp1);
4309 {
4310 PyThreadState* __tstate = wxPyBeginAllowThreads();
4311 result = (long)((wxColour const *)arg1)->GetPixel();
4312 wxPyEndAllowThreads(__tstate);
4313 if (PyErr_Occurred()) SWIG_fail;
4314 }
4315 resultobj = SWIG_From_long(static_cast< long >(result));
4316 return resultobj;
4317 fail:
4318 return NULL;
4319 }
4320
4321
4322 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4323 PyObject *resultobj = 0;
4324 wxColour *arg1 = (wxColour *) 0 ;
4325 PyObject *arg2 = (PyObject *) 0 ;
4326 bool result;
4327 void *argp1 = 0 ;
4328 int res1 = 0 ;
4329 PyObject * obj0 = 0 ;
4330 PyObject * obj1 = 0 ;
4331 char * kwnames[] = {
4332 (char *) "self",(char *) "other", NULL
4333 };
4334
4335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4337 if (!SWIG_IsOK(res1)) {
4338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4339 }
4340 arg1 = reinterpret_cast< wxColour * >(argp1);
4341 arg2 = obj1;
4342 {
4343 result = (bool)wxColour___eq__(arg1,arg2);
4344 if (PyErr_Occurred()) SWIG_fail;
4345 }
4346 {
4347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4348 }
4349 return resultobj;
4350 fail:
4351 return NULL;
4352 }
4353
4354
4355 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4356 PyObject *resultobj = 0;
4357 wxColour *arg1 = (wxColour *) 0 ;
4358 PyObject *arg2 = (PyObject *) 0 ;
4359 bool result;
4360 void *argp1 = 0 ;
4361 int res1 = 0 ;
4362 PyObject * obj0 = 0 ;
4363 PyObject * obj1 = 0 ;
4364 char * kwnames[] = {
4365 (char *) "self",(char *) "other", NULL
4366 };
4367
4368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4370 if (!SWIG_IsOK(res1)) {
4371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4372 }
4373 arg1 = reinterpret_cast< wxColour * >(argp1);
4374 arg2 = obj1;
4375 {
4376 result = (bool)wxColour___ne__(arg1,arg2);
4377 if (PyErr_Occurred()) SWIG_fail;
4378 }
4379 {
4380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4381 }
4382 return resultobj;
4383 fail:
4384 return NULL;
4385 }
4386
4387
4388 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4389 PyObject *resultobj = 0;
4390 wxColour *arg1 = (wxColour *) 0 ;
4391 bool arg2 = (bool) false ;
4392 PyObject *result = 0 ;
4393 void *argp1 = 0 ;
4394 int res1 = 0 ;
4395 bool val2 ;
4396 int ecode2 = 0 ;
4397 PyObject * obj0 = 0 ;
4398 PyObject * obj1 = 0 ;
4399 char * kwnames[] = {
4400 (char *) "self",(char *) "includeAlpha", NULL
4401 };
4402
4403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4405 if (!SWIG_IsOK(res1)) {
4406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4407 }
4408 arg1 = reinterpret_cast< wxColour * >(argp1);
4409 if (obj1) {
4410 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4411 if (!SWIG_IsOK(ecode2)) {
4412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4413 }
4414 arg2 = static_cast< bool >(val2);
4415 }
4416 {
4417 result = (PyObject *)wxColour_Get(arg1,arg2);
4418 if (PyErr_Occurred()) SWIG_fail;
4419 }
4420 resultobj = result;
4421 return resultobj;
4422 fail:
4423 return NULL;
4424 }
4425
4426
4427 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4428 PyObject *resultobj = 0;
4429 wxColour *arg1 = (wxColour *) 0 ;
4430 unsigned long result;
4431 void *argp1 = 0 ;
4432 int res1 = 0 ;
4433 PyObject *swig_obj[1] ;
4434
4435 if (!args) SWIG_fail;
4436 swig_obj[0] = args;
4437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4438 if (!SWIG_IsOK(res1)) {
4439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4440 }
4441 arg1 = reinterpret_cast< wxColour * >(argp1);
4442 {
4443 result = (unsigned long)wxColour_GetRGB(arg1);
4444 if (PyErr_Occurred()) SWIG_fail;
4445 }
4446 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4447 return resultobj;
4448 fail:
4449 return NULL;
4450 }
4451
4452
4453 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4454 PyObject *obj;
4455 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4456 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4457 return SWIG_Py_Void();
4458 }
4459
4460 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4461 return SWIG_Python_InitShadowInstance(args);
4462 }
4463
4464 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4465 PyObject *resultobj = 0;
4466 int arg1 ;
4467 unsigned char *arg2 = (unsigned char *) 0 ;
4468 unsigned char *arg3 = (unsigned char *) 0 ;
4469 unsigned char *arg4 = (unsigned char *) 0 ;
4470 wxPalette *result = 0 ;
4471 int val1 ;
4472 int ecode1 = 0 ;
4473 void *argp2 = 0 ;
4474 int res2 = 0 ;
4475 void *argp3 = 0 ;
4476 int res3 = 0 ;
4477 void *argp4 = 0 ;
4478 int res4 = 0 ;
4479 PyObject * obj0 = 0 ;
4480 PyObject * obj1 = 0 ;
4481 PyObject * obj2 = 0 ;
4482 PyObject * obj3 = 0 ;
4483 char * kwnames[] = {
4484 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4485 };
4486
4487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4488 ecode1 = SWIG_AsVal_int(obj0, &val1);
4489 if (!SWIG_IsOK(ecode1)) {
4490 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4491 }
4492 arg1 = static_cast< int >(val1);
4493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4494 if (!SWIG_IsOK(res2)) {
4495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4496 }
4497 arg2 = reinterpret_cast< unsigned char * >(argp2);
4498 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4499 if (!SWIG_IsOK(res3)) {
4500 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4501 }
4502 arg3 = reinterpret_cast< unsigned char * >(argp3);
4503 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4504 if (!SWIG_IsOK(res4)) {
4505 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4506 }
4507 arg4 = reinterpret_cast< unsigned char * >(argp4);
4508 {
4509 if (!wxPyCheckForApp()) SWIG_fail;
4510 PyThreadState* __tstate = wxPyBeginAllowThreads();
4511 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4512 wxPyEndAllowThreads(__tstate);
4513 if (PyErr_Occurred()) SWIG_fail;
4514 }
4515 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4516 return resultobj;
4517 fail:
4518 return NULL;
4519 }
4520
4521
4522 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4523 PyObject *resultobj = 0;
4524 wxPalette *arg1 = (wxPalette *) 0 ;
4525 void *argp1 = 0 ;
4526 int res1 = 0 ;
4527 PyObject *swig_obj[1] ;
4528
4529 if (!args) SWIG_fail;
4530 swig_obj[0] = args;
4531 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4534 }
4535 arg1 = reinterpret_cast< wxPalette * >(argp1);
4536 {
4537 PyThreadState* __tstate = wxPyBeginAllowThreads();
4538 delete arg1;
4539
4540 wxPyEndAllowThreads(__tstate);
4541 if (PyErr_Occurred()) SWIG_fail;
4542 }
4543 resultobj = SWIG_Py_Void();
4544 return resultobj;
4545 fail:
4546 return NULL;
4547 }
4548
4549
4550 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4551 PyObject *resultobj = 0;
4552 wxPalette *arg1 = (wxPalette *) 0 ;
4553 byte arg2 ;
4554 byte arg3 ;
4555 byte arg4 ;
4556 int result;
4557 void *argp1 = 0 ;
4558 int res1 = 0 ;
4559 unsigned char val2 ;
4560 int ecode2 = 0 ;
4561 unsigned char val3 ;
4562 int ecode3 = 0 ;
4563 unsigned char val4 ;
4564 int ecode4 = 0 ;
4565 PyObject * obj0 = 0 ;
4566 PyObject * obj1 = 0 ;
4567 PyObject * obj2 = 0 ;
4568 PyObject * obj3 = 0 ;
4569 char * kwnames[] = {
4570 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4571 };
4572
4573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4575 if (!SWIG_IsOK(res1)) {
4576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4577 }
4578 arg1 = reinterpret_cast< wxPalette * >(argp1);
4579 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4580 if (!SWIG_IsOK(ecode2)) {
4581 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4582 }
4583 arg2 = static_cast< byte >(val2);
4584 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4585 if (!SWIG_IsOK(ecode3)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4587 }
4588 arg3 = static_cast< byte >(val3);
4589 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4590 if (!SWIG_IsOK(ecode4)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4592 }
4593 arg4 = static_cast< byte >(val4);
4594 {
4595 PyThreadState* __tstate = wxPyBeginAllowThreads();
4596 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4597 wxPyEndAllowThreads(__tstate);
4598 if (PyErr_Occurred()) SWIG_fail;
4599 }
4600 resultobj = SWIG_From_int(static_cast< int >(result));
4601 return resultobj;
4602 fail:
4603 return NULL;
4604 }
4605
4606
4607 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4608 PyObject *resultobj = 0;
4609 wxPalette *arg1 = (wxPalette *) 0 ;
4610 int arg2 ;
4611 byte *arg3 = (byte *) 0 ;
4612 byte *arg4 = (byte *) 0 ;
4613 byte *arg5 = (byte *) 0 ;
4614 bool result;
4615 void *argp1 = 0 ;
4616 int res1 = 0 ;
4617 int val2 ;
4618 int ecode2 = 0 ;
4619 byte temp3 ;
4620 int res3 = SWIG_TMPOBJ ;
4621 byte temp4 ;
4622 int res4 = SWIG_TMPOBJ ;
4623 byte temp5 ;
4624 int res5 = SWIG_TMPOBJ ;
4625 PyObject * obj0 = 0 ;
4626 PyObject * obj1 = 0 ;
4627 char * kwnames[] = {
4628 (char *) "self",(char *) "pixel", NULL
4629 };
4630
4631 arg3 = &temp3;
4632 arg4 = &temp4;
4633 arg5 = &temp5;
4634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4636 if (!SWIG_IsOK(res1)) {
4637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4638 }
4639 arg1 = reinterpret_cast< wxPalette * >(argp1);
4640 ecode2 = SWIG_AsVal_int(obj1, &val2);
4641 if (!SWIG_IsOK(ecode2)) {
4642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4643 }
4644 arg2 = static_cast< int >(val2);
4645 {
4646 PyThreadState* __tstate = wxPyBeginAllowThreads();
4647 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4648 wxPyEndAllowThreads(__tstate);
4649 if (PyErr_Occurred()) SWIG_fail;
4650 }
4651 {
4652 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4653 }
4654 if (SWIG_IsTmpObj(res3)) {
4655 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4656 } else {
4657 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4658 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4659 }
4660 if (SWIG_IsTmpObj(res4)) {
4661 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4662 } else {
4663 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4664 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4665 }
4666 if (SWIG_IsTmpObj(res5)) {
4667 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4668 } else {
4669 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4670 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4671 }
4672 return resultobj;
4673 fail:
4674 return NULL;
4675 }
4676
4677
4678 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4679 PyObject *resultobj = 0;
4680 wxPalette *arg1 = (wxPalette *) 0 ;
4681 int result;
4682 void *argp1 = 0 ;
4683 int res1 = 0 ;
4684 PyObject *swig_obj[1] ;
4685
4686 if (!args) SWIG_fail;
4687 swig_obj[0] = args;
4688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4689 if (!SWIG_IsOK(res1)) {
4690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4691 }
4692 arg1 = reinterpret_cast< wxPalette * >(argp1);
4693 {
4694 PyThreadState* __tstate = wxPyBeginAllowThreads();
4695 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4696 wxPyEndAllowThreads(__tstate);
4697 if (PyErr_Occurred()) SWIG_fail;
4698 }
4699 resultobj = SWIG_From_int(static_cast< int >(result));
4700 return resultobj;
4701 fail:
4702 return NULL;
4703 }
4704
4705
4706 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4707 PyObject *resultobj = 0;
4708 wxPalette *arg1 = (wxPalette *) 0 ;
4709 bool result;
4710 void *argp1 = 0 ;
4711 int res1 = 0 ;
4712 PyObject *swig_obj[1] ;
4713
4714 if (!args) SWIG_fail;
4715 swig_obj[0] = args;
4716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4717 if (!SWIG_IsOK(res1)) {
4718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4719 }
4720 arg1 = reinterpret_cast< wxPalette * >(argp1);
4721 {
4722 PyThreadState* __tstate = wxPyBeginAllowThreads();
4723 result = (bool)(arg1)->IsOk();
4724 wxPyEndAllowThreads(__tstate);
4725 if (PyErr_Occurred()) SWIG_fail;
4726 }
4727 {
4728 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4729 }
4730 return resultobj;
4731 fail:
4732 return NULL;
4733 }
4734
4735
4736 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4737 PyObject *obj;
4738 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4739 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4740 return SWIG_Py_Void();
4741 }
4742
4743 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4744 return SWIG_Python_InitShadowInstance(args);
4745 }
4746
4747 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj = 0;
4749 wxColour *arg1 = 0 ;
4750 int arg2 = (int) 1 ;
4751 int arg3 = (int) wxSOLID ;
4752 wxPen *result = 0 ;
4753 wxColour temp1 ;
4754 int val2 ;
4755 int ecode2 = 0 ;
4756 int val3 ;
4757 int ecode3 = 0 ;
4758 PyObject * obj0 = 0 ;
4759 PyObject * obj1 = 0 ;
4760 PyObject * obj2 = 0 ;
4761 char * kwnames[] = {
4762 (char *) "colour",(char *) "width",(char *) "style", NULL
4763 };
4764
4765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4766 {
4767 arg1 = &temp1;
4768 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4769 }
4770 if (obj1) {
4771 ecode2 = SWIG_AsVal_int(obj1, &val2);
4772 if (!SWIG_IsOK(ecode2)) {
4773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4774 }
4775 arg2 = static_cast< int >(val2);
4776 }
4777 if (obj2) {
4778 ecode3 = SWIG_AsVal_int(obj2, &val3);
4779 if (!SWIG_IsOK(ecode3)) {
4780 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4781 }
4782 arg3 = static_cast< int >(val3);
4783 }
4784 {
4785 if (!wxPyCheckForApp()) SWIG_fail;
4786 PyThreadState* __tstate = wxPyBeginAllowThreads();
4787 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4788 wxPyEndAllowThreads(__tstate);
4789 if (PyErr_Occurred()) SWIG_fail;
4790 }
4791 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4792 return resultobj;
4793 fail:
4794 return NULL;
4795 }
4796
4797
4798 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4799 PyObject *resultobj = 0;
4800 wxPen *arg1 = (wxPen *) 0 ;
4801 void *argp1 = 0 ;
4802 int res1 = 0 ;
4803 PyObject *swig_obj[1] ;
4804
4805 if (!args) SWIG_fail;
4806 swig_obj[0] = args;
4807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4808 if (!SWIG_IsOK(res1)) {
4809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4810 }
4811 arg1 = reinterpret_cast< wxPen * >(argp1);
4812 {
4813 PyThreadState* __tstate = wxPyBeginAllowThreads();
4814 delete arg1;
4815
4816 wxPyEndAllowThreads(__tstate);
4817 if (PyErr_Occurred()) SWIG_fail;
4818 }
4819 resultobj = SWIG_Py_Void();
4820 return resultobj;
4821 fail:
4822 return NULL;
4823 }
4824
4825
4826 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4827 PyObject *resultobj = 0;
4828 wxPen *arg1 = (wxPen *) 0 ;
4829 int result;
4830 void *argp1 = 0 ;
4831 int res1 = 0 ;
4832 PyObject *swig_obj[1] ;
4833
4834 if (!args) SWIG_fail;
4835 swig_obj[0] = args;
4836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4837 if (!SWIG_IsOK(res1)) {
4838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4839 }
4840 arg1 = reinterpret_cast< wxPen * >(argp1);
4841 {
4842 PyThreadState* __tstate = wxPyBeginAllowThreads();
4843 result = (int)(arg1)->GetCap();
4844 wxPyEndAllowThreads(__tstate);
4845 if (PyErr_Occurred()) SWIG_fail;
4846 }
4847 resultobj = SWIG_From_int(static_cast< int >(result));
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4855 PyObject *resultobj = 0;
4856 wxPen *arg1 = (wxPen *) 0 ;
4857 wxColour result;
4858 void *argp1 = 0 ;
4859 int res1 = 0 ;
4860 PyObject *swig_obj[1] ;
4861
4862 if (!args) SWIG_fail;
4863 swig_obj[0] = args;
4864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4865 if (!SWIG_IsOK(res1)) {
4866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4867 }
4868 arg1 = reinterpret_cast< wxPen * >(argp1);
4869 {
4870 PyThreadState* __tstate = wxPyBeginAllowThreads();
4871 result = (arg1)->GetColour();
4872 wxPyEndAllowThreads(__tstate);
4873 if (PyErr_Occurred()) SWIG_fail;
4874 }
4875 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4876 return resultobj;
4877 fail:
4878 return NULL;
4879 }
4880
4881
4882 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4883 PyObject *resultobj = 0;
4884 wxPen *arg1 = (wxPen *) 0 ;
4885 int result;
4886 void *argp1 = 0 ;
4887 int res1 = 0 ;
4888 PyObject *swig_obj[1] ;
4889
4890 if (!args) SWIG_fail;
4891 swig_obj[0] = args;
4892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4893 if (!SWIG_IsOK(res1)) {
4894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4895 }
4896 arg1 = reinterpret_cast< wxPen * >(argp1);
4897 {
4898 PyThreadState* __tstate = wxPyBeginAllowThreads();
4899 result = (int)(arg1)->GetJoin();
4900 wxPyEndAllowThreads(__tstate);
4901 if (PyErr_Occurred()) SWIG_fail;
4902 }
4903 resultobj = SWIG_From_int(static_cast< int >(result));
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4911 PyObject *resultobj = 0;
4912 wxPen *arg1 = (wxPen *) 0 ;
4913 int result;
4914 void *argp1 = 0 ;
4915 int res1 = 0 ;
4916 PyObject *swig_obj[1] ;
4917
4918 if (!args) SWIG_fail;
4919 swig_obj[0] = args;
4920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4921 if (!SWIG_IsOK(res1)) {
4922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4923 }
4924 arg1 = reinterpret_cast< wxPen * >(argp1);
4925 {
4926 PyThreadState* __tstate = wxPyBeginAllowThreads();
4927 result = (int)(arg1)->GetStyle();
4928 wxPyEndAllowThreads(__tstate);
4929 if (PyErr_Occurred()) SWIG_fail;
4930 }
4931 resultobj = SWIG_From_int(static_cast< int >(result));
4932 return resultobj;
4933 fail:
4934 return NULL;
4935 }
4936
4937
4938 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4939 PyObject *resultobj = 0;
4940 wxPen *arg1 = (wxPen *) 0 ;
4941 int result;
4942 void *argp1 = 0 ;
4943 int res1 = 0 ;
4944 PyObject *swig_obj[1] ;
4945
4946 if (!args) SWIG_fail;
4947 swig_obj[0] = args;
4948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4951 }
4952 arg1 = reinterpret_cast< wxPen * >(argp1);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 result = (int)(arg1)->GetWidth();
4956 wxPyEndAllowThreads(__tstate);
4957 if (PyErr_Occurred()) SWIG_fail;
4958 }
4959 resultobj = SWIG_From_int(static_cast< int >(result));
4960 return resultobj;
4961 fail:
4962 return NULL;
4963 }
4964
4965
4966 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4967 PyObject *resultobj = 0;
4968 wxPen *arg1 = (wxPen *) 0 ;
4969 bool result;
4970 void *argp1 = 0 ;
4971 int res1 = 0 ;
4972 PyObject *swig_obj[1] ;
4973
4974 if (!args) SWIG_fail;
4975 swig_obj[0] = args;
4976 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4977 if (!SWIG_IsOK(res1)) {
4978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4979 }
4980 arg1 = reinterpret_cast< wxPen * >(argp1);
4981 {
4982 PyThreadState* __tstate = wxPyBeginAllowThreads();
4983 result = (bool)(arg1)->IsOk();
4984 wxPyEndAllowThreads(__tstate);
4985 if (PyErr_Occurred()) SWIG_fail;
4986 }
4987 {
4988 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4989 }
4990 return resultobj;
4991 fail:
4992 return NULL;
4993 }
4994
4995
4996 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4997 PyObject *resultobj = 0;
4998 wxPen *arg1 = (wxPen *) 0 ;
4999 int arg2 ;
5000 void *argp1 = 0 ;
5001 int res1 = 0 ;
5002 int val2 ;
5003 int ecode2 = 0 ;
5004 PyObject * obj0 = 0 ;
5005 PyObject * obj1 = 0 ;
5006 char * kwnames[] = {
5007 (char *) "self",(char *) "cap_style", NULL
5008 };
5009
5010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5012 if (!SWIG_IsOK(res1)) {
5013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5014 }
5015 arg1 = reinterpret_cast< wxPen * >(argp1);
5016 ecode2 = SWIG_AsVal_int(obj1, &val2);
5017 if (!SWIG_IsOK(ecode2)) {
5018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5019 }
5020 arg2 = static_cast< int >(val2);
5021 {
5022 PyThreadState* __tstate = wxPyBeginAllowThreads();
5023 (arg1)->SetCap(arg2);
5024 wxPyEndAllowThreads(__tstate);
5025 if (PyErr_Occurred()) SWIG_fail;
5026 }
5027 resultobj = SWIG_Py_Void();
5028 return resultobj;
5029 fail:
5030 return NULL;
5031 }
5032
5033
5034 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5035 PyObject *resultobj = 0;
5036 wxPen *arg1 = (wxPen *) 0 ;
5037 wxColour *arg2 = 0 ;
5038 void *argp1 = 0 ;
5039 int res1 = 0 ;
5040 wxColour temp2 ;
5041 PyObject * obj0 = 0 ;
5042 PyObject * obj1 = 0 ;
5043 char * kwnames[] = {
5044 (char *) "self",(char *) "colour", NULL
5045 };
5046
5047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5049 if (!SWIG_IsOK(res1)) {
5050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5051 }
5052 arg1 = reinterpret_cast< wxPen * >(argp1);
5053 {
5054 arg2 = &temp2;
5055 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5056 }
5057 {
5058 PyThreadState* __tstate = wxPyBeginAllowThreads();
5059 (arg1)->SetColour(*arg2);
5060 wxPyEndAllowThreads(__tstate);
5061 if (PyErr_Occurred()) SWIG_fail;
5062 }
5063 resultobj = SWIG_Py_Void();
5064 return resultobj;
5065 fail:
5066 return NULL;
5067 }
5068
5069
5070 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5071 PyObject *resultobj = 0;
5072 wxPen *arg1 = (wxPen *) 0 ;
5073 int arg2 ;
5074 void *argp1 = 0 ;
5075 int res1 = 0 ;
5076 int val2 ;
5077 int ecode2 = 0 ;
5078 PyObject * obj0 = 0 ;
5079 PyObject * obj1 = 0 ;
5080 char * kwnames[] = {
5081 (char *) "self",(char *) "join_style", NULL
5082 };
5083
5084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5086 if (!SWIG_IsOK(res1)) {
5087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5088 }
5089 arg1 = reinterpret_cast< wxPen * >(argp1);
5090 ecode2 = SWIG_AsVal_int(obj1, &val2);
5091 if (!SWIG_IsOK(ecode2)) {
5092 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5093 }
5094 arg2 = static_cast< int >(val2);
5095 {
5096 PyThreadState* __tstate = wxPyBeginAllowThreads();
5097 (arg1)->SetJoin(arg2);
5098 wxPyEndAllowThreads(__tstate);
5099 if (PyErr_Occurred()) SWIG_fail;
5100 }
5101 resultobj = SWIG_Py_Void();
5102 return resultobj;
5103 fail:
5104 return NULL;
5105 }
5106
5107
5108 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5109 PyObject *resultobj = 0;
5110 wxPen *arg1 = (wxPen *) 0 ;
5111 int arg2 ;
5112 void *argp1 = 0 ;
5113 int res1 = 0 ;
5114 int val2 ;
5115 int ecode2 = 0 ;
5116 PyObject * obj0 = 0 ;
5117 PyObject * obj1 = 0 ;
5118 char * kwnames[] = {
5119 (char *) "self",(char *) "style", NULL
5120 };
5121
5122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5124 if (!SWIG_IsOK(res1)) {
5125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5126 }
5127 arg1 = reinterpret_cast< wxPen * >(argp1);
5128 ecode2 = SWIG_AsVal_int(obj1, &val2);
5129 if (!SWIG_IsOK(ecode2)) {
5130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5131 }
5132 arg2 = static_cast< int >(val2);
5133 {
5134 PyThreadState* __tstate = wxPyBeginAllowThreads();
5135 (arg1)->SetStyle(arg2);
5136 wxPyEndAllowThreads(__tstate);
5137 if (PyErr_Occurred()) SWIG_fail;
5138 }
5139 resultobj = SWIG_Py_Void();
5140 return resultobj;
5141 fail:
5142 return NULL;
5143 }
5144
5145
5146 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5147 PyObject *resultobj = 0;
5148 wxPen *arg1 = (wxPen *) 0 ;
5149 int arg2 ;
5150 void *argp1 = 0 ;
5151 int res1 = 0 ;
5152 int val2 ;
5153 int ecode2 = 0 ;
5154 PyObject * obj0 = 0 ;
5155 PyObject * obj1 = 0 ;
5156 char * kwnames[] = {
5157 (char *) "self",(char *) "width", NULL
5158 };
5159
5160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5162 if (!SWIG_IsOK(res1)) {
5163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5164 }
5165 arg1 = reinterpret_cast< wxPen * >(argp1);
5166 ecode2 = SWIG_AsVal_int(obj1, &val2);
5167 if (!SWIG_IsOK(ecode2)) {
5168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5169 }
5170 arg2 = static_cast< int >(val2);
5171 {
5172 PyThreadState* __tstate = wxPyBeginAllowThreads();
5173 (arg1)->SetWidth(arg2);
5174 wxPyEndAllowThreads(__tstate);
5175 if (PyErr_Occurred()) SWIG_fail;
5176 }
5177 resultobj = SWIG_Py_Void();
5178 return resultobj;
5179 fail:
5180 return NULL;
5181 }
5182
5183
5184 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5185 PyObject *resultobj = 0;
5186 wxPen *arg1 = (wxPen *) 0 ;
5187 int arg2 ;
5188 wxDash *arg3 = (wxDash *) 0 ;
5189 void *argp1 = 0 ;
5190 int res1 = 0 ;
5191 PyObject * obj0 = 0 ;
5192 PyObject * obj1 = 0 ;
5193 char * kwnames[] = {
5194 (char *) "self",(char *) "dashes", NULL
5195 };
5196
5197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5199 if (!SWIG_IsOK(res1)) {
5200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5201 }
5202 arg1 = reinterpret_cast< wxPen * >(argp1);
5203 {
5204 arg2 = PyList_Size(obj1);
5205 arg3 = (wxDash*)byte_LIST_helper(obj1);
5206 if (arg3 == NULL) SWIG_fail;
5207 }
5208 {
5209 PyThreadState* __tstate = wxPyBeginAllowThreads();
5210 (arg1)->SetDashes(arg2,arg3);
5211 wxPyEndAllowThreads(__tstate);
5212 if (PyErr_Occurred()) SWIG_fail;
5213 }
5214 resultobj = SWIG_Py_Void();
5215 {
5216 if (arg3) delete [] arg3;
5217 }
5218 return resultobj;
5219 fail:
5220 {
5221 if (arg3) delete [] arg3;
5222 }
5223 return NULL;
5224 }
5225
5226
5227 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5228 PyObject *resultobj = 0;
5229 wxPen *arg1 = (wxPen *) 0 ;
5230 PyObject *result = 0 ;
5231 void *argp1 = 0 ;
5232 int res1 = 0 ;
5233 PyObject *swig_obj[1] ;
5234
5235 if (!args) SWIG_fail;
5236 swig_obj[0] = args;
5237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5238 if (!SWIG_IsOK(res1)) {
5239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5240 }
5241 arg1 = reinterpret_cast< wxPen * >(argp1);
5242 {
5243 PyThreadState* __tstate = wxPyBeginAllowThreads();
5244 result = (PyObject *)wxPen_GetDashes(arg1);
5245 wxPyEndAllowThreads(__tstate);
5246 if (PyErr_Occurred()) SWIG_fail;
5247 }
5248 resultobj = result;
5249 return resultobj;
5250 fail:
5251 return NULL;
5252 }
5253
5254
5255 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5256 PyObject *resultobj = 0;
5257 wxPen *arg1 = (wxPen *) 0 ;
5258 PyObject *arg2 = (PyObject *) 0 ;
5259 PyObject *arg3 = (PyObject *) 0 ;
5260 void *argp1 = 0 ;
5261 int res1 = 0 ;
5262 PyObject * obj0 = 0 ;
5263 PyObject * obj1 = 0 ;
5264 PyObject * obj2 = 0 ;
5265 char * kwnames[] = {
5266 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5267 };
5268
5269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5271 if (!SWIG_IsOK(res1)) {
5272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5273 }
5274 arg1 = reinterpret_cast< wxPen * >(argp1);
5275 arg2 = obj1;
5276 arg3 = obj2;
5277 {
5278 PyThreadState* __tstate = wxPyBeginAllowThreads();
5279 wxPen__SetDashes(arg1,arg2,arg3);
5280 wxPyEndAllowThreads(__tstate);
5281 if (PyErr_Occurred()) SWIG_fail;
5282 }
5283 resultobj = SWIG_Py_Void();
5284 return resultobj;
5285 fail:
5286 return NULL;
5287 }
5288
5289
5290 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5291 PyObject *resultobj = 0;
5292 wxPen *arg1 = (wxPen *) 0 ;
5293 int result;
5294 void *argp1 = 0 ;
5295 int res1 = 0 ;
5296 PyObject *swig_obj[1] ;
5297
5298 if (!args) SWIG_fail;
5299 swig_obj[0] = args;
5300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5301 if (!SWIG_IsOK(res1)) {
5302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5303 }
5304 arg1 = reinterpret_cast< wxPen * >(argp1);
5305 {
5306 PyThreadState* __tstate = wxPyBeginAllowThreads();
5307 result = (int)((wxPen const *)arg1)->GetDashCount();
5308 wxPyEndAllowThreads(__tstate);
5309 if (PyErr_Occurred()) SWIG_fail;
5310 }
5311 resultobj = SWIG_From_int(static_cast< int >(result));
5312 return resultobj;
5313 fail:
5314 return NULL;
5315 }
5316
5317
5318 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5319 PyObject *resultobj = 0;
5320 wxPen *arg1 = (wxPen *) 0 ;
5321 wxBitmap *result = 0 ;
5322 void *argp1 = 0 ;
5323 int res1 = 0 ;
5324 PyObject *swig_obj[1] ;
5325
5326 if (!args) SWIG_fail;
5327 swig_obj[0] = args;
5328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5329 if (!SWIG_IsOK(res1)) {
5330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5331 }
5332 arg1 = reinterpret_cast< wxPen * >(argp1);
5333 {
5334 PyThreadState* __tstate = wxPyBeginAllowThreads();
5335 result = (wxBitmap *)(arg1)->GetStipple();
5336 wxPyEndAllowThreads(__tstate);
5337 if (PyErr_Occurred()) SWIG_fail;
5338 }
5339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5340 return resultobj;
5341 fail:
5342 return NULL;
5343 }
5344
5345
5346 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5347 PyObject *resultobj = 0;
5348 wxPen *arg1 = (wxPen *) 0 ;
5349 wxBitmap *arg2 = 0 ;
5350 void *argp1 = 0 ;
5351 int res1 = 0 ;
5352 void *argp2 = 0 ;
5353 int res2 = 0 ;
5354 PyObject * obj0 = 0 ;
5355 PyObject * obj1 = 0 ;
5356 char * kwnames[] = {
5357 (char *) "self",(char *) "stipple", NULL
5358 };
5359
5360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5362 if (!SWIG_IsOK(res1)) {
5363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5364 }
5365 arg1 = reinterpret_cast< wxPen * >(argp1);
5366 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5367 if (!SWIG_IsOK(res2)) {
5368 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5369 }
5370 if (!argp2) {
5371 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5372 }
5373 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5374 {
5375 PyThreadState* __tstate = wxPyBeginAllowThreads();
5376 (arg1)->SetStipple(*arg2);
5377 wxPyEndAllowThreads(__tstate);
5378 if (PyErr_Occurred()) SWIG_fail;
5379 }
5380 resultobj = SWIG_Py_Void();
5381 return resultobj;
5382 fail:
5383 return NULL;
5384 }
5385
5386
5387 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5388 PyObject *resultobj = 0;
5389 wxPen *arg1 = (wxPen *) 0 ;
5390 wxPen *arg2 = (wxPen *) 0 ;
5391 bool result;
5392 void *argp1 = 0 ;
5393 int res1 = 0 ;
5394 void *argp2 = 0 ;
5395 int res2 = 0 ;
5396 PyObject * obj0 = 0 ;
5397 PyObject * obj1 = 0 ;
5398 char * kwnames[] = {
5399 (char *) "self",(char *) "other", NULL
5400 };
5401
5402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5404 if (!SWIG_IsOK(res1)) {
5405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5406 }
5407 arg1 = reinterpret_cast< wxPen * >(argp1);
5408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5409 if (!SWIG_IsOK(res2)) {
5410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5411 }
5412 arg2 = reinterpret_cast< wxPen * >(argp2);
5413 {
5414 PyThreadState* __tstate = wxPyBeginAllowThreads();
5415 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5416 wxPyEndAllowThreads(__tstate);
5417 if (PyErr_Occurred()) SWIG_fail;
5418 }
5419 {
5420 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5421 }
5422 return resultobj;
5423 fail:
5424 return NULL;
5425 }
5426
5427
5428 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5429 PyObject *resultobj = 0;
5430 wxPen *arg1 = (wxPen *) 0 ;
5431 wxPen *arg2 = (wxPen *) 0 ;
5432 bool result;
5433 void *argp1 = 0 ;
5434 int res1 = 0 ;
5435 void *argp2 = 0 ;
5436 int res2 = 0 ;
5437 PyObject * obj0 = 0 ;
5438 PyObject * obj1 = 0 ;
5439 char * kwnames[] = {
5440 (char *) "self",(char *) "other", NULL
5441 };
5442
5443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5445 if (!SWIG_IsOK(res1)) {
5446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5447 }
5448 arg1 = reinterpret_cast< wxPen * >(argp1);
5449 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5450 if (!SWIG_IsOK(res2)) {
5451 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5452 }
5453 arg2 = reinterpret_cast< wxPen * >(argp2);
5454 {
5455 PyThreadState* __tstate = wxPyBeginAllowThreads();
5456 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5457 wxPyEndAllowThreads(__tstate);
5458 if (PyErr_Occurred()) SWIG_fail;
5459 }
5460 {
5461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5462 }
5463 return resultobj;
5464 fail:
5465 return NULL;
5466 }
5467
5468
5469 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5470 PyObject *obj;
5471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5472 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5473 return SWIG_Py_Void();
5474 }
5475
5476 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5477 return SWIG_Python_InitShadowInstance(args);
5478 }
5479
5480 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5481 PyObject *resultobj = 0;
5482 wxColour *arg1 = 0 ;
5483 int arg2 = (int) wxSOLID ;
5484 wxBrush *result = 0 ;
5485 wxColour temp1 ;
5486 int val2 ;
5487 int ecode2 = 0 ;
5488 PyObject * obj0 = 0 ;
5489 PyObject * obj1 = 0 ;
5490 char * kwnames[] = {
5491 (char *) "colour",(char *) "style", NULL
5492 };
5493
5494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5495 {
5496 arg1 = &temp1;
5497 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5498 }
5499 if (obj1) {
5500 ecode2 = SWIG_AsVal_int(obj1, &val2);
5501 if (!SWIG_IsOK(ecode2)) {
5502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5503 }
5504 arg2 = static_cast< int >(val2);
5505 }
5506 {
5507 if (!wxPyCheckForApp()) SWIG_fail;
5508 PyThreadState* __tstate = wxPyBeginAllowThreads();
5509 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5510 wxPyEndAllowThreads(__tstate);
5511 if (PyErr_Occurred()) SWIG_fail;
5512 }
5513 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5514 return resultobj;
5515 fail:
5516 return NULL;
5517 }
5518
5519
5520 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5521 PyObject *resultobj = 0;
5522 wxBitmap *arg1 = 0 ;
5523 wxBrush *result = 0 ;
5524 void *argp1 = 0 ;
5525 int res1 = 0 ;
5526 PyObject * obj0 = 0 ;
5527 char * kwnames[] = {
5528 (char *) "stippleBitmap", NULL
5529 };
5530
5531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5532 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5533 if (!SWIG_IsOK(res1)) {
5534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5535 }
5536 if (!argp1) {
5537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5538 }
5539 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5540 {
5541 if (!wxPyCheckForApp()) SWIG_fail;
5542 PyThreadState* __tstate = wxPyBeginAllowThreads();
5543 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5544 wxPyEndAllowThreads(__tstate);
5545 if (PyErr_Occurred()) SWIG_fail;
5546 }
5547 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5548 return resultobj;
5549 fail:
5550 return NULL;
5551 }
5552
5553
5554 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5555 PyObject *resultobj = 0;
5556 wxBrush *arg1 = (wxBrush *) 0 ;
5557 void *argp1 = 0 ;
5558 int res1 = 0 ;
5559 PyObject *swig_obj[1] ;
5560
5561 if (!args) SWIG_fail;
5562 swig_obj[0] = args;
5563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5566 }
5567 arg1 = reinterpret_cast< wxBrush * >(argp1);
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 delete arg1;
5571
5572 wxPyEndAllowThreads(__tstate);
5573 if (PyErr_Occurred()) SWIG_fail;
5574 }
5575 resultobj = SWIG_Py_Void();
5576 return resultobj;
5577 fail:
5578 return NULL;
5579 }
5580
5581
5582 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5583 PyObject *resultobj = 0;
5584 wxBrush *arg1 = (wxBrush *) 0 ;
5585 wxColour *arg2 = 0 ;
5586 void *argp1 = 0 ;
5587 int res1 = 0 ;
5588 wxColour temp2 ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 char * kwnames[] = {
5592 (char *) "self",(char *) "col", NULL
5593 };
5594
5595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5597 if (!SWIG_IsOK(res1)) {
5598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5599 }
5600 arg1 = reinterpret_cast< wxBrush * >(argp1);
5601 {
5602 arg2 = &temp2;
5603 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5604 }
5605 {
5606 PyThreadState* __tstate = wxPyBeginAllowThreads();
5607 (arg1)->SetColour((wxColour const &)*arg2);
5608 wxPyEndAllowThreads(__tstate);
5609 if (PyErr_Occurred()) SWIG_fail;
5610 }
5611 resultobj = SWIG_Py_Void();
5612 return resultobj;
5613 fail:
5614 return NULL;
5615 }
5616
5617
5618 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5619 PyObject *resultobj = 0;
5620 wxBrush *arg1 = (wxBrush *) 0 ;
5621 int arg2 ;
5622 void *argp1 = 0 ;
5623 int res1 = 0 ;
5624 int val2 ;
5625 int ecode2 = 0 ;
5626 PyObject * obj0 = 0 ;
5627 PyObject * obj1 = 0 ;
5628 char * kwnames[] = {
5629 (char *) "self",(char *) "style", NULL
5630 };
5631
5632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5634 if (!SWIG_IsOK(res1)) {
5635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5636 }
5637 arg1 = reinterpret_cast< wxBrush * >(argp1);
5638 ecode2 = SWIG_AsVal_int(obj1, &val2);
5639 if (!SWIG_IsOK(ecode2)) {
5640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5641 }
5642 arg2 = static_cast< int >(val2);
5643 {
5644 PyThreadState* __tstate = wxPyBeginAllowThreads();
5645 (arg1)->SetStyle(arg2);
5646 wxPyEndAllowThreads(__tstate);
5647 if (PyErr_Occurred()) SWIG_fail;
5648 }
5649 resultobj = SWIG_Py_Void();
5650 return resultobj;
5651 fail:
5652 return NULL;
5653 }
5654
5655
5656 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5657 PyObject *resultobj = 0;
5658 wxBrush *arg1 = (wxBrush *) 0 ;
5659 wxBitmap *arg2 = 0 ;
5660 void *argp1 = 0 ;
5661 int res1 = 0 ;
5662 void *argp2 = 0 ;
5663 int res2 = 0 ;
5664 PyObject * obj0 = 0 ;
5665 PyObject * obj1 = 0 ;
5666 char * kwnames[] = {
5667 (char *) "self",(char *) "stipple", NULL
5668 };
5669
5670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5672 if (!SWIG_IsOK(res1)) {
5673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5674 }
5675 arg1 = reinterpret_cast< wxBrush * >(argp1);
5676 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5677 if (!SWIG_IsOK(res2)) {
5678 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5679 }
5680 if (!argp2) {
5681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5682 }
5683 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5684 {
5685 PyThreadState* __tstate = wxPyBeginAllowThreads();
5686 (arg1)->SetStipple((wxBitmap const &)*arg2);
5687 wxPyEndAllowThreads(__tstate);
5688 if (PyErr_Occurred()) SWIG_fail;
5689 }
5690 resultobj = SWIG_Py_Void();
5691 return resultobj;
5692 fail:
5693 return NULL;
5694 }
5695
5696
5697 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5698 PyObject *resultobj = 0;
5699 wxBrush *arg1 = (wxBrush *) 0 ;
5700 wxColour result;
5701 void *argp1 = 0 ;
5702 int res1 = 0 ;
5703 PyObject *swig_obj[1] ;
5704
5705 if (!args) SWIG_fail;
5706 swig_obj[0] = args;
5707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5708 if (!SWIG_IsOK(res1)) {
5709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5710 }
5711 arg1 = reinterpret_cast< wxBrush * >(argp1);
5712 {
5713 PyThreadState* __tstate = wxPyBeginAllowThreads();
5714 result = ((wxBrush const *)arg1)->GetColour();
5715 wxPyEndAllowThreads(__tstate);
5716 if (PyErr_Occurred()) SWIG_fail;
5717 }
5718 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5726 PyObject *resultobj = 0;
5727 wxBrush *arg1 = (wxBrush *) 0 ;
5728 int result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 PyObject *swig_obj[1] ;
5732
5733 if (!args) SWIG_fail;
5734 swig_obj[0] = args;
5735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5738 }
5739 arg1 = reinterpret_cast< wxBrush * >(argp1);
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 result = (int)((wxBrush const *)arg1)->GetStyle();
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 resultobj = SWIG_From_int(static_cast< int >(result));
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5754 PyObject *resultobj = 0;
5755 wxBrush *arg1 = (wxBrush *) 0 ;
5756 wxBitmap *result = 0 ;
5757 void *argp1 = 0 ;
5758 int res1 = 0 ;
5759 PyObject *swig_obj[1] ;
5760
5761 if (!args) SWIG_fail;
5762 swig_obj[0] = args;
5763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5764 if (!SWIG_IsOK(res1)) {
5765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5766 }
5767 arg1 = reinterpret_cast< wxBrush * >(argp1);
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) SWIG_fail;
5773 }
5774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5775 return resultobj;
5776 fail:
5777 return NULL;
5778 }
5779
5780
5781 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5782 PyObject *resultobj = 0;
5783 wxBrush *arg1 = (wxBrush *) 0 ;
5784 bool result;
5785 void *argp1 = 0 ;
5786 int res1 = 0 ;
5787 PyObject *swig_obj[1] ;
5788
5789 if (!args) SWIG_fail;
5790 swig_obj[0] = args;
5791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5792 if (!SWIG_IsOK(res1)) {
5793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5794 }
5795 arg1 = reinterpret_cast< wxBrush * >(argp1);
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (bool)((wxBrush const *)arg1)->IsHatch();
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 {
5803 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5804 }
5805 return resultobj;
5806 fail:
5807 return NULL;
5808 }
5809
5810
5811 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5812 PyObject *resultobj = 0;
5813 wxBrush *arg1 = (wxBrush *) 0 ;
5814 bool result;
5815 void *argp1 = 0 ;
5816 int res1 = 0 ;
5817 PyObject *swig_obj[1] ;
5818
5819 if (!args) SWIG_fail;
5820 swig_obj[0] = args;
5821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5822 if (!SWIG_IsOK(res1)) {
5823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5824 }
5825 arg1 = reinterpret_cast< wxBrush * >(argp1);
5826 {
5827 PyThreadState* __tstate = wxPyBeginAllowThreads();
5828 result = (bool)(arg1)->IsOk();
5829 wxPyEndAllowThreads(__tstate);
5830 if (PyErr_Occurred()) SWIG_fail;
5831 }
5832 {
5833 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5834 }
5835 return resultobj;
5836 fail:
5837 return NULL;
5838 }
5839
5840
5841 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5842 PyObject *obj;
5843 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5844 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5845 return SWIG_Py_Void();
5846 }
5847
5848 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5849 return SWIG_Python_InitShadowInstance(args);
5850 }
5851
5852 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5853 PyObject *resultobj = 0;
5854 wxString *arg1 = 0 ;
5855 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5856 wxBitmap *result = 0 ;
5857 bool temp1 = false ;
5858 int val2 ;
5859 int ecode2 = 0 ;
5860 PyObject * obj0 = 0 ;
5861 PyObject * obj1 = 0 ;
5862 char * kwnames[] = {
5863 (char *) "name",(char *) "type", NULL
5864 };
5865
5866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5867 {
5868 arg1 = wxString_in_helper(obj0);
5869 if (arg1 == NULL) SWIG_fail;
5870 temp1 = true;
5871 }
5872 if (obj1) {
5873 ecode2 = SWIG_AsVal_int(obj1, &val2);
5874 if (!SWIG_IsOK(ecode2)) {
5875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5876 }
5877 arg2 = static_cast< wxBitmapType >(val2);
5878 }
5879 {
5880 if (!wxPyCheckForApp()) SWIG_fail;
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5887 {
5888 if (temp1)
5889 delete arg1;
5890 }
5891 return resultobj;
5892 fail:
5893 {
5894 if (temp1)
5895 delete arg1;
5896 }
5897 return NULL;
5898 }
5899
5900
5901 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5902 PyObject *resultobj = 0;
5903 wxBitmap *arg1 = (wxBitmap *) 0 ;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 PyObject *swig_obj[1] ;
5907
5908 if (!args) SWIG_fail;
5909 swig_obj[0] = args;
5910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5911 if (!SWIG_IsOK(res1)) {
5912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5913 }
5914 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5915 {
5916 delete arg1;
5917
5918 if (PyErr_Occurred()) SWIG_fail;
5919 }
5920 resultobj = SWIG_Py_Void();
5921 return resultobj;
5922 fail:
5923 return NULL;
5924 }
5925
5926
5927 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5928 PyObject *resultobj = 0;
5929 int arg1 ;
5930 int arg2 ;
5931 int arg3 = (int) -1 ;
5932 wxBitmap *result = 0 ;
5933 int val1 ;
5934 int ecode1 = 0 ;
5935 int val2 ;
5936 int ecode2 = 0 ;
5937 int val3 ;
5938 int ecode3 = 0 ;
5939 PyObject * obj0 = 0 ;
5940 PyObject * obj1 = 0 ;
5941 PyObject * obj2 = 0 ;
5942 char * kwnames[] = {
5943 (char *) "width",(char *) "height",(char *) "depth", NULL
5944 };
5945
5946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5947 ecode1 = SWIG_AsVal_int(obj0, &val1);
5948 if (!SWIG_IsOK(ecode1)) {
5949 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5950 }
5951 arg1 = static_cast< int >(val1);
5952 ecode2 = SWIG_AsVal_int(obj1, &val2);
5953 if (!SWIG_IsOK(ecode2)) {
5954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5955 }
5956 arg2 = static_cast< int >(val2);
5957 if (obj2) {
5958 ecode3 = SWIG_AsVal_int(obj2, &val3);
5959 if (!SWIG_IsOK(ecode3)) {
5960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5961 }
5962 arg3 = static_cast< int >(val3);
5963 }
5964 {
5965 if (!wxPyCheckForApp()) SWIG_fail;
5966 PyThreadState* __tstate = wxPyBeginAllowThreads();
5967 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5968 wxPyEndAllowThreads(__tstate);
5969 if (PyErr_Occurred()) SWIG_fail;
5970 }
5971 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5972 return resultobj;
5973 fail:
5974 return NULL;
5975 }
5976
5977
5978 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5979 PyObject *resultobj = 0;
5980 wxIcon *arg1 = 0 ;
5981 wxBitmap *result = 0 ;
5982 void *argp1 = 0 ;
5983 int res1 = 0 ;
5984 PyObject * obj0 = 0 ;
5985 char * kwnames[] = {
5986 (char *) "icon", NULL
5987 };
5988
5989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5990 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5991 if (!SWIG_IsOK(res1)) {
5992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5993 }
5994 if (!argp1) {
5995 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5996 }
5997 arg1 = reinterpret_cast< wxIcon * >(argp1);
5998 {
5999 if (!wxPyCheckForApp()) SWIG_fail;
6000 PyThreadState* __tstate = wxPyBeginAllowThreads();
6001 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6002 wxPyEndAllowThreads(__tstate);
6003 if (PyErr_Occurred()) SWIG_fail;
6004 }
6005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6006 return resultobj;
6007 fail:
6008 return NULL;
6009 }
6010
6011
6012 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6013 PyObject *resultobj = 0;
6014 wxImage *arg1 = 0 ;
6015 int arg2 = (int) -1 ;
6016 wxBitmap *result = 0 ;
6017 void *argp1 = 0 ;
6018 int res1 = 0 ;
6019 int val2 ;
6020 int ecode2 = 0 ;
6021 PyObject * obj0 = 0 ;
6022 PyObject * obj1 = 0 ;
6023 char * kwnames[] = {
6024 (char *) "image",(char *) "depth", NULL
6025 };
6026
6027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6028 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6029 if (!SWIG_IsOK(res1)) {
6030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6031 }
6032 if (!argp1) {
6033 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6034 }
6035 arg1 = reinterpret_cast< wxImage * >(argp1);
6036 if (obj1) {
6037 ecode2 = SWIG_AsVal_int(obj1, &val2);
6038 if (!SWIG_IsOK(ecode2)) {
6039 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6040 }
6041 arg2 = static_cast< int >(val2);
6042 }
6043 {
6044 if (!wxPyCheckForApp()) SWIG_fail;
6045 PyThreadState* __tstate = wxPyBeginAllowThreads();
6046 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6047 wxPyEndAllowThreads(__tstate);
6048 if (PyErr_Occurred()) SWIG_fail;
6049 }
6050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6051 return resultobj;
6052 fail:
6053 return NULL;
6054 }
6055
6056
6057 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6058 PyObject *resultobj = 0;
6059 PyObject *arg1 = (PyObject *) 0 ;
6060 wxBitmap *result = 0 ;
6061 PyObject * obj0 = 0 ;
6062 char * kwnames[] = {
6063 (char *) "listOfStrings", NULL
6064 };
6065
6066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6067 arg1 = obj0;
6068 {
6069 if (!wxPyCheckForApp()) SWIG_fail;
6070 PyThreadState* __tstate = wxPyBeginAllowThreads();
6071 result = (wxBitmap *)new_wxBitmap(arg1);
6072 wxPyEndAllowThreads(__tstate);
6073 if (PyErr_Occurred()) SWIG_fail;
6074 }
6075 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6076 return resultobj;
6077 fail:
6078 return NULL;
6079 }
6080
6081
6082 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6083 PyObject *resultobj = 0;
6084 PyObject *arg1 = (PyObject *) 0 ;
6085 int arg2 ;
6086 int arg3 ;
6087 int arg4 = (int) 1 ;
6088 wxBitmap *result = 0 ;
6089 int val2 ;
6090 int ecode2 = 0 ;
6091 int val3 ;
6092 int ecode3 = 0 ;
6093 int val4 ;
6094 int ecode4 = 0 ;
6095 PyObject * obj0 = 0 ;
6096 PyObject * obj1 = 0 ;
6097 PyObject * obj2 = 0 ;
6098 PyObject * obj3 = 0 ;
6099 char * kwnames[] = {
6100 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6101 };
6102
6103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6104 arg1 = obj0;
6105 ecode2 = SWIG_AsVal_int(obj1, &val2);
6106 if (!SWIG_IsOK(ecode2)) {
6107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6108 }
6109 arg2 = static_cast< int >(val2);
6110 ecode3 = SWIG_AsVal_int(obj2, &val3);
6111 if (!SWIG_IsOK(ecode3)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6113 }
6114 arg3 = static_cast< int >(val3);
6115 if (obj3) {
6116 ecode4 = SWIG_AsVal_int(obj3, &val4);
6117 if (!SWIG_IsOK(ecode4)) {
6118 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6119 }
6120 arg4 = static_cast< int >(val4);
6121 }
6122 {
6123 if (!wxPyCheckForApp()) SWIG_fail;
6124 PyThreadState* __tstate = wxPyBeginAllowThreads();
6125 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6126 wxPyEndAllowThreads(__tstate);
6127 if (PyErr_Occurred()) SWIG_fail;
6128 }
6129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6130 return resultobj;
6131 fail:
6132 return NULL;
6133 }
6134
6135
6136 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6137 PyObject *resultobj = 0;
6138 wxBitmap *arg1 = (wxBitmap *) 0 ;
6139 long result;
6140 void *argp1 = 0 ;
6141 int res1 = 0 ;
6142 PyObject *swig_obj[1] ;
6143
6144 if (!args) SWIG_fail;
6145 swig_obj[0] = args;
6146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6147 if (!SWIG_IsOK(res1)) {
6148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6149 }
6150 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6151 {
6152 result = (long)(arg1)->GetHandle();
6153 if (PyErr_Occurred()) SWIG_fail;
6154 }
6155 resultobj = SWIG_From_long(static_cast< long >(result));
6156 return resultobj;
6157 fail:
6158 return NULL;
6159 }
6160
6161
6162 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6163 PyObject *resultobj = 0;
6164 wxBitmap *arg1 = (wxBitmap *) 0 ;
6165 long arg2 ;
6166 void *argp1 = 0 ;
6167 int res1 = 0 ;
6168 long val2 ;
6169 int ecode2 = 0 ;
6170 PyObject * obj0 = 0 ;
6171 PyObject * obj1 = 0 ;
6172 char * kwnames[] = {
6173 (char *) "self",(char *) "handle", NULL
6174 };
6175
6176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6178 if (!SWIG_IsOK(res1)) {
6179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6180 }
6181 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6182 ecode2 = SWIG_AsVal_long(obj1, &val2);
6183 if (!SWIG_IsOK(ecode2)) {
6184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6185 }
6186 arg2 = static_cast< long >(val2);
6187 {
6188 wxBitmap_SetHandle(arg1,arg2);
6189 if (PyErr_Occurred()) SWIG_fail;
6190 }
6191 resultobj = SWIG_Py_Void();
6192 return resultobj;
6193 fail:
6194 return NULL;
6195 }
6196
6197
6198 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6199 PyObject *resultobj = 0;
6200 wxBitmap *arg1 = (wxBitmap *) 0 ;
6201 bool result;
6202 void *argp1 = 0 ;
6203 int res1 = 0 ;
6204 PyObject *swig_obj[1] ;
6205
6206 if (!args) SWIG_fail;
6207 swig_obj[0] = args;
6208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6209 if (!SWIG_IsOK(res1)) {
6210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6211 }
6212 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6213 {
6214 result = (bool)(arg1)->IsOk();
6215 if (PyErr_Occurred()) SWIG_fail;
6216 }
6217 {
6218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6219 }
6220 return resultobj;
6221 fail:
6222 return NULL;
6223 }
6224
6225
6226 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6227 PyObject *resultobj = 0;
6228 wxBitmap *arg1 = (wxBitmap *) 0 ;
6229 int result;
6230 void *argp1 = 0 ;
6231 int res1 = 0 ;
6232 PyObject *swig_obj[1] ;
6233
6234 if (!args) SWIG_fail;
6235 swig_obj[0] = args;
6236 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6237 if (!SWIG_IsOK(res1)) {
6238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6239 }
6240 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6241 {
6242 result = (int)(arg1)->GetWidth();
6243 if (PyErr_Occurred()) SWIG_fail;
6244 }
6245 resultobj = SWIG_From_int(static_cast< int >(result));
6246 return resultobj;
6247 fail:
6248 return NULL;
6249 }
6250
6251
6252 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6253 PyObject *resultobj = 0;
6254 wxBitmap *arg1 = (wxBitmap *) 0 ;
6255 int result;
6256 void *argp1 = 0 ;
6257 int res1 = 0 ;
6258 PyObject *swig_obj[1] ;
6259
6260 if (!args) SWIG_fail;
6261 swig_obj[0] = args;
6262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6263 if (!SWIG_IsOK(res1)) {
6264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6265 }
6266 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6267 {
6268 result = (int)(arg1)->GetHeight();
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 resultobj = SWIG_From_int(static_cast< int >(result));
6272 return resultobj;
6273 fail:
6274 return NULL;
6275 }
6276
6277
6278 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6279 PyObject *resultobj = 0;
6280 wxBitmap *arg1 = (wxBitmap *) 0 ;
6281 int result;
6282 void *argp1 = 0 ;
6283 int res1 = 0 ;
6284 PyObject *swig_obj[1] ;
6285
6286 if (!args) SWIG_fail;
6287 swig_obj[0] = args;
6288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6289 if (!SWIG_IsOK(res1)) {
6290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6291 }
6292 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6293 {
6294 result = (int)(arg1)->GetDepth();
6295 if (PyErr_Occurred()) SWIG_fail;
6296 }
6297 resultobj = SWIG_From_int(static_cast< int >(result));
6298 return resultobj;
6299 fail:
6300 return NULL;
6301 }
6302
6303
6304 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6305 PyObject *resultobj = 0;
6306 wxBitmap *arg1 = (wxBitmap *) 0 ;
6307 wxSize result;
6308 void *argp1 = 0 ;
6309 int res1 = 0 ;
6310 PyObject *swig_obj[1] ;
6311
6312 if (!args) SWIG_fail;
6313 swig_obj[0] = args;
6314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6315 if (!SWIG_IsOK(res1)) {
6316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6317 }
6318 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6319 {
6320 result = wxBitmap_GetSize(arg1);
6321 if (PyErr_Occurred()) SWIG_fail;
6322 }
6323 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6324 return resultobj;
6325 fail:
6326 return NULL;
6327 }
6328
6329
6330 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6331 PyObject *resultobj = 0;
6332 wxBitmap *arg1 = (wxBitmap *) 0 ;
6333 SwigValueWrapper<wxImage > result;
6334 void *argp1 = 0 ;
6335 int res1 = 0 ;
6336 PyObject *swig_obj[1] ;
6337
6338 if (!args) SWIG_fail;
6339 swig_obj[0] = args;
6340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6341 if (!SWIG_IsOK(res1)) {
6342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6343 }
6344 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6345 {
6346 result = ((wxBitmap const *)arg1)->ConvertToImage();
6347 if (PyErr_Occurred()) SWIG_fail;
6348 }
6349 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6350 return resultobj;
6351 fail:
6352 return NULL;
6353 }
6354
6355
6356 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6357 PyObject *resultobj = 0;
6358 wxBitmap *arg1 = (wxBitmap *) 0 ;
6359 wxMask *result = 0 ;
6360 void *argp1 = 0 ;
6361 int res1 = 0 ;
6362 PyObject *swig_obj[1] ;
6363
6364 if (!args) SWIG_fail;
6365 swig_obj[0] = args;
6366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6367 if (!SWIG_IsOK(res1)) {
6368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6369 }
6370 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6371 {
6372 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6383 PyObject *resultobj = 0;
6384 wxBitmap *arg1 = (wxBitmap *) 0 ;
6385 wxMask *arg2 = (wxMask *) 0 ;
6386 void *argp1 = 0 ;
6387 int res1 = 0 ;
6388 int res2 = 0 ;
6389 PyObject * obj0 = 0 ;
6390 PyObject * obj1 = 0 ;
6391 char * kwnames[] = {
6392 (char *) "self",(char *) "mask", NULL
6393 };
6394
6395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6397 if (!SWIG_IsOK(res1)) {
6398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6399 }
6400 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6401 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6402 if (!SWIG_IsOK(res2)) {
6403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6404 }
6405 {
6406 (arg1)->SetMask(arg2);
6407 if (PyErr_Occurred()) SWIG_fail;
6408 }
6409 resultobj = SWIG_Py_Void();
6410 return resultobj;
6411 fail:
6412 return NULL;
6413 }
6414
6415
6416 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6417 PyObject *resultobj = 0;
6418 wxBitmap *arg1 = (wxBitmap *) 0 ;
6419 wxColour *arg2 = 0 ;
6420 void *argp1 = 0 ;
6421 int res1 = 0 ;
6422 wxColour temp2 ;
6423 PyObject * obj0 = 0 ;
6424 PyObject * obj1 = 0 ;
6425 char * kwnames[] = {
6426 (char *) "self",(char *) "colour", NULL
6427 };
6428
6429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6431 if (!SWIG_IsOK(res1)) {
6432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6433 }
6434 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6435 {
6436 arg2 = &temp2;
6437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6438 }
6439 {
6440 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 resultobj = SWIG_Py_Void();
6444 return resultobj;
6445 fail:
6446 return NULL;
6447 }
6448
6449
6450 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6451 PyObject *resultobj = 0;
6452 wxBitmap *arg1 = (wxBitmap *) 0 ;
6453 wxRect *arg2 = 0 ;
6454 SwigValueWrapper<wxBitmap > result;
6455 void *argp1 = 0 ;
6456 int res1 = 0 ;
6457 wxRect temp2 ;
6458 PyObject * obj0 = 0 ;
6459 PyObject * obj1 = 0 ;
6460 char * kwnames[] = {
6461 (char *) "self",(char *) "rect", NULL
6462 };
6463
6464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6466 if (!SWIG_IsOK(res1)) {
6467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6468 }
6469 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6470 {
6471 arg2 = &temp2;
6472 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6473 }
6474 {
6475 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6476 if (PyErr_Occurred()) SWIG_fail;
6477 }
6478 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6479 return resultobj;
6480 fail:
6481 return NULL;
6482 }
6483
6484
6485 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6486 PyObject *resultobj = 0;
6487 wxBitmap *arg1 = (wxBitmap *) 0 ;
6488 wxString *arg2 = 0 ;
6489 wxBitmapType arg3 ;
6490 wxPalette *arg4 = (wxPalette *) NULL ;
6491 bool result;
6492 void *argp1 = 0 ;
6493 int res1 = 0 ;
6494 bool temp2 = false ;
6495 int val3 ;
6496 int ecode3 = 0 ;
6497 void *argp4 = 0 ;
6498 int res4 = 0 ;
6499 PyObject * obj0 = 0 ;
6500 PyObject * obj1 = 0 ;
6501 PyObject * obj2 = 0 ;
6502 PyObject * obj3 = 0 ;
6503 char * kwnames[] = {
6504 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6505 };
6506
6507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6509 if (!SWIG_IsOK(res1)) {
6510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6511 }
6512 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6513 {
6514 arg2 = wxString_in_helper(obj1);
6515 if (arg2 == NULL) SWIG_fail;
6516 temp2 = true;
6517 }
6518 ecode3 = SWIG_AsVal_int(obj2, &val3);
6519 if (!SWIG_IsOK(ecode3)) {
6520 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6521 }
6522 arg3 = static_cast< wxBitmapType >(val3);
6523 if (obj3) {
6524 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6525 if (!SWIG_IsOK(res4)) {
6526 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6527 }
6528 arg4 = reinterpret_cast< wxPalette * >(argp4);
6529 }
6530 {
6531 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6532 if (PyErr_Occurred()) SWIG_fail;
6533 }
6534 {
6535 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6536 }
6537 {
6538 if (temp2)
6539 delete arg2;
6540 }
6541 return resultobj;
6542 fail:
6543 {
6544 if (temp2)
6545 delete arg2;
6546 }
6547 return NULL;
6548 }
6549
6550
6551 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6552 PyObject *resultobj = 0;
6553 wxBitmap *arg1 = (wxBitmap *) 0 ;
6554 wxString *arg2 = 0 ;
6555 wxBitmapType arg3 ;
6556 bool result;
6557 void *argp1 = 0 ;
6558 int res1 = 0 ;
6559 bool temp2 = false ;
6560 int val3 ;
6561 int ecode3 = 0 ;
6562 PyObject * obj0 = 0 ;
6563 PyObject * obj1 = 0 ;
6564 PyObject * obj2 = 0 ;
6565 char * kwnames[] = {
6566 (char *) "self",(char *) "name",(char *) "type", NULL
6567 };
6568
6569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6571 if (!SWIG_IsOK(res1)) {
6572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6573 }
6574 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6575 {
6576 arg2 = wxString_in_helper(obj1);
6577 if (arg2 == NULL) SWIG_fail;
6578 temp2 = true;
6579 }
6580 ecode3 = SWIG_AsVal_int(obj2, &val3);
6581 if (!SWIG_IsOK(ecode3)) {
6582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6583 }
6584 arg3 = static_cast< wxBitmapType >(val3);
6585 {
6586 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6587 if (PyErr_Occurred()) SWIG_fail;
6588 }
6589 {
6590 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6591 }
6592 {
6593 if (temp2)
6594 delete arg2;
6595 }
6596 return resultobj;
6597 fail:
6598 {
6599 if (temp2)
6600 delete arg2;
6601 }
6602 return NULL;
6603 }
6604
6605
6606 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6607 PyObject *resultobj = 0;
6608 wxBitmap *arg1 = (wxBitmap *) 0 ;
6609 wxPalette *result = 0 ;
6610 void *argp1 = 0 ;
6611 int res1 = 0 ;
6612 PyObject *swig_obj[1] ;
6613
6614 if (!args) SWIG_fail;
6615 swig_obj[0] = args;
6616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6617 if (!SWIG_IsOK(res1)) {
6618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6619 }
6620 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6621 {
6622 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6623 if (PyErr_Occurred()) SWIG_fail;
6624 }
6625 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6626 return resultobj;
6627 fail:
6628 return NULL;
6629 }
6630
6631
6632 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6633 PyObject *resultobj = 0;
6634 wxBitmap *arg1 = (wxBitmap *) 0 ;
6635 wxPalette *arg2 = 0 ;
6636 void *argp1 = 0 ;
6637 int res1 = 0 ;
6638 void *argp2 = 0 ;
6639 int res2 = 0 ;
6640 PyObject * obj0 = 0 ;
6641 PyObject * obj1 = 0 ;
6642 char * kwnames[] = {
6643 (char *) "self",(char *) "palette", NULL
6644 };
6645
6646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6648 if (!SWIG_IsOK(res1)) {
6649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6650 }
6651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6652 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6653 if (!SWIG_IsOK(res2)) {
6654 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6655 }
6656 if (!argp2) {
6657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6658 }
6659 arg2 = reinterpret_cast< wxPalette * >(argp2);
6660 {
6661 (arg1)->SetPalette((wxPalette const &)*arg2);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = SWIG_Py_Void();
6665 return resultobj;
6666 fail:
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6672 PyObject *resultobj = 0;
6673 wxBitmap *arg1 = (wxBitmap *) 0 ;
6674 wxIcon *arg2 = 0 ;
6675 bool result;
6676 void *argp1 = 0 ;
6677 int res1 = 0 ;
6678 void *argp2 = 0 ;
6679 int res2 = 0 ;
6680 PyObject * obj0 = 0 ;
6681 PyObject * obj1 = 0 ;
6682 char * kwnames[] = {
6683 (char *) "self",(char *) "icon", NULL
6684 };
6685
6686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6690 }
6691 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6692 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6693 if (!SWIG_IsOK(res2)) {
6694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6695 }
6696 if (!argp2) {
6697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6698 }
6699 arg2 = reinterpret_cast< wxIcon * >(argp2);
6700 {
6701 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6702 if (PyErr_Occurred()) SWIG_fail;
6703 }
6704 {
6705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6706 }
6707 return resultobj;
6708 fail:
6709 return NULL;
6710 }
6711
6712
6713 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6714 PyObject *resultobj = 0;
6715 wxBitmap *arg1 = (wxBitmap *) 0 ;
6716 int arg2 ;
6717 void *argp1 = 0 ;
6718 int res1 = 0 ;
6719 int val2 ;
6720 int ecode2 = 0 ;
6721 PyObject * obj0 = 0 ;
6722 PyObject * obj1 = 0 ;
6723 char * kwnames[] = {
6724 (char *) "self",(char *) "height", NULL
6725 };
6726
6727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6729 if (!SWIG_IsOK(res1)) {
6730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6731 }
6732 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6733 ecode2 = SWIG_AsVal_int(obj1, &val2);
6734 if (!SWIG_IsOK(ecode2)) {
6735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6736 }
6737 arg2 = static_cast< int >(val2);
6738 {
6739 (arg1)->SetHeight(arg2);
6740 if (PyErr_Occurred()) SWIG_fail;
6741 }
6742 resultobj = SWIG_Py_Void();
6743 return resultobj;
6744 fail:
6745 return NULL;
6746 }
6747
6748
6749 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6750 PyObject *resultobj = 0;
6751 wxBitmap *arg1 = (wxBitmap *) 0 ;
6752 int arg2 ;
6753 void *argp1 = 0 ;
6754 int res1 = 0 ;
6755 int val2 ;
6756 int ecode2 = 0 ;
6757 PyObject * obj0 = 0 ;
6758 PyObject * obj1 = 0 ;
6759 char * kwnames[] = {
6760 (char *) "self",(char *) "width", NULL
6761 };
6762
6763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) 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 '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6767 }
6768 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6769 ecode2 = SWIG_AsVal_int(obj1, &val2);
6770 if (!SWIG_IsOK(ecode2)) {
6771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6772 }
6773 arg2 = static_cast< int >(val2);
6774 {
6775 (arg1)->SetWidth(arg2);
6776 if (PyErr_Occurred()) SWIG_fail;
6777 }
6778 resultobj = SWIG_Py_Void();
6779 return resultobj;
6780 fail:
6781 return NULL;
6782 }
6783
6784
6785 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj = 0;
6787 wxBitmap *arg1 = (wxBitmap *) 0 ;
6788 int arg2 ;
6789 void *argp1 = 0 ;
6790 int res1 = 0 ;
6791 int val2 ;
6792 int ecode2 = 0 ;
6793 PyObject * obj0 = 0 ;
6794 PyObject * obj1 = 0 ;
6795 char * kwnames[] = {
6796 (char *) "self",(char *) "depth", NULL
6797 };
6798
6799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6801 if (!SWIG_IsOK(res1)) {
6802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6803 }
6804 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6805 ecode2 = SWIG_AsVal_int(obj1, &val2);
6806 if (!SWIG_IsOK(ecode2)) {
6807 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6808 }
6809 arg2 = static_cast< int >(val2);
6810 {
6811 (arg1)->SetDepth(arg2);
6812 if (PyErr_Occurred()) SWIG_fail;
6813 }
6814 resultobj = SWIG_Py_Void();
6815 return resultobj;
6816 fail:
6817 return NULL;
6818 }
6819
6820
6821 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6822 PyObject *resultobj = 0;
6823 wxBitmap *arg1 = (wxBitmap *) 0 ;
6824 wxSize *arg2 = 0 ;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 wxSize temp2 ;
6828 PyObject * obj0 = 0 ;
6829 PyObject * obj1 = 0 ;
6830 char * kwnames[] = {
6831 (char *) "self",(char *) "size", NULL
6832 };
6833
6834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6836 if (!SWIG_IsOK(res1)) {
6837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6838 }
6839 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6840 {
6841 arg2 = &temp2;
6842 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6843 }
6844 {
6845 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6846 if (PyErr_Occurred()) SWIG_fail;
6847 }
6848 resultobj = SWIG_Py_Void();
6849 return resultobj;
6850 fail:
6851 return NULL;
6852 }
6853
6854
6855 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6856 PyObject *resultobj = 0;
6857 wxBitmap *arg1 = (wxBitmap *) 0 ;
6858 wxCursor *arg2 = 0 ;
6859 bool result;
6860 void *argp1 = 0 ;
6861 int res1 = 0 ;
6862 void *argp2 = 0 ;
6863 int res2 = 0 ;
6864 PyObject * obj0 = 0 ;
6865 PyObject * obj1 = 0 ;
6866 char * kwnames[] = {
6867 (char *) "self",(char *) "cursor", NULL
6868 };
6869
6870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6872 if (!SWIG_IsOK(res1)) {
6873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6874 }
6875 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6877 if (!SWIG_IsOK(res2)) {
6878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6879 }
6880 if (!argp2) {
6881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6882 }
6883 arg2 = reinterpret_cast< wxCursor * >(argp2);
6884 {
6885 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 }
6888 {
6889 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6890 }
6891 return resultobj;
6892 fail:
6893 return NULL;
6894 }
6895
6896
6897 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6898 PyObject *resultobj = 0;
6899 wxBitmap *arg1 = (wxBitmap *) 0 ;
6900 wxBitmap *arg2 = (wxBitmap *) 0 ;
6901 bool result;
6902 void *argp1 = 0 ;
6903 int res1 = 0 ;
6904 void *argp2 = 0 ;
6905 int res2 = 0 ;
6906 PyObject * obj0 = 0 ;
6907 PyObject * obj1 = 0 ;
6908 char * kwnames[] = {
6909 (char *) "self",(char *) "other", NULL
6910 };
6911
6912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6914 if (!SWIG_IsOK(res1)) {
6915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6916 }
6917 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6918 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6919 if (!SWIG_IsOK(res2)) {
6920 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6921 }
6922 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6923 {
6924 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 {
6928 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6929 }
6930 return resultobj;
6931 fail:
6932 return NULL;
6933 }
6934
6935
6936 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6937 PyObject *resultobj = 0;
6938 wxBitmap *arg1 = (wxBitmap *) 0 ;
6939 wxBitmap *arg2 = (wxBitmap *) 0 ;
6940 bool result;
6941 void *argp1 = 0 ;
6942 int res1 = 0 ;
6943 void *argp2 = 0 ;
6944 int res2 = 0 ;
6945 PyObject * obj0 = 0 ;
6946 PyObject * obj1 = 0 ;
6947 char * kwnames[] = {
6948 (char *) "self",(char *) "other", NULL
6949 };
6950
6951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6955 }
6956 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6957 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6958 if (!SWIG_IsOK(res2)) {
6959 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6960 }
6961 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6962 {
6963 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6964 if (PyErr_Occurred()) SWIG_fail;
6965 }
6966 {
6967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6968 }
6969 return resultobj;
6970 fail:
6971 return NULL;
6972 }
6973
6974
6975 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6976 PyObject *obj;
6977 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6978 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6979 return SWIG_Py_Void();
6980 }
6981
6982 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6983 return SWIG_Python_InitShadowInstance(args);
6984 }
6985
6986 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6987 PyObject *resultobj = 0;
6988 int arg1 ;
6989 int arg2 ;
6990 buffer arg3 ;
6991 int arg4 ;
6992 buffer arg5 ;
6993 int arg6 ;
6994 wxBitmap *result = 0 ;
6995 int val1 ;
6996 int ecode1 = 0 ;
6997 int val2 ;
6998 int ecode2 = 0 ;
6999 Py_ssize_t temp3 ;
7000 Py_ssize_t temp5 ;
7001 PyObject * obj0 = 0 ;
7002 PyObject * obj1 = 0 ;
7003 PyObject * obj2 = 0 ;
7004 PyObject * obj3 = 0 ;
7005 char * kwnames[] = {
7006 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7007 };
7008
7009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7010 ecode1 = SWIG_AsVal_int(obj0, &val1);
7011 if (!SWIG_IsOK(ecode1)) {
7012 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7013 }
7014 arg1 = static_cast< int >(val1);
7015 ecode2 = SWIG_AsVal_int(obj1, &val2);
7016 if (!SWIG_IsOK(ecode2)) {
7017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7018 }
7019 arg2 = static_cast< int >(val2);
7020 {
7021 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7022 arg4 = (int)temp3;
7023 }
7024 {
7025 if (obj3 != Py_None) {
7026 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7027 arg6 = (int)temp5;
7028 }
7029 }
7030 {
7031 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7032 if (PyErr_Occurred()) SWIG_fail;
7033 }
7034 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7035 return resultobj;
7036 fail:
7037 return NULL;
7038 }
7039
7040
7041 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7042 PyObject *resultobj = 0;
7043 int arg1 ;
7044 int arg2 ;
7045 buffer arg3 ;
7046 int arg4 ;
7047 wxBitmap *result = 0 ;
7048 int val1 ;
7049 int ecode1 = 0 ;
7050 int val2 ;
7051 int ecode2 = 0 ;
7052 Py_ssize_t temp3 ;
7053 PyObject * obj0 = 0 ;
7054 PyObject * obj1 = 0 ;
7055 PyObject * obj2 = 0 ;
7056 char * kwnames[] = {
7057 (char *) "width",(char *) "height",(char *) "data", NULL
7058 };
7059
7060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7061 ecode1 = SWIG_AsVal_int(obj0, &val1);
7062 if (!SWIG_IsOK(ecode1)) {
7063 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7064 }
7065 arg1 = static_cast< int >(val1);
7066 ecode2 = SWIG_AsVal_int(obj1, &val2);
7067 if (!SWIG_IsOK(ecode2)) {
7068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7069 }
7070 arg2 = static_cast< int >(val2);
7071 {
7072 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7073 arg4 = (int)temp3;
7074 }
7075 {
7076 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj = 0;
7088 int arg1 ;
7089 int arg2 ;
7090 buffer arg3 ;
7091 int arg4 ;
7092 wxBitmap *result = 0 ;
7093 int val1 ;
7094 int ecode1 = 0 ;
7095 int val2 ;
7096 int ecode2 = 0 ;
7097 Py_ssize_t temp3 ;
7098 PyObject * obj0 = 0 ;
7099 PyObject * obj1 = 0 ;
7100 PyObject * obj2 = 0 ;
7101 char * kwnames[] = {
7102 (char *) "width",(char *) "height",(char *) "data", NULL
7103 };
7104
7105 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7106 ecode1 = SWIG_AsVal_int(obj0, &val1);
7107 if (!SWIG_IsOK(ecode1)) {
7108 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7109 }
7110 arg1 = static_cast< int >(val1);
7111 ecode2 = SWIG_AsVal_int(obj1, &val2);
7112 if (!SWIG_IsOK(ecode2)) {
7113 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7114 }
7115 arg2 = static_cast< int >(val2);
7116 {
7117 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7118 arg4 = (int)temp3;
7119 }
7120 {
7121 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7122 if (PyErr_Occurred()) SWIG_fail;
7123 }
7124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7125 return resultobj;
7126 fail:
7127 return NULL;
7128 }
7129
7130
7131 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7132 PyObject *resultobj = 0;
7133 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7134 wxPoint result;
7135 void *argp1 = 0 ;
7136 int res1 = 0 ;
7137 PyObject *swig_obj[1] ;
7138
7139 if (!args) SWIG_fail;
7140 swig_obj[0] = args;
7141 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7142 if (!SWIG_IsOK(res1)) {
7143 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7144 }
7145 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7146 {
7147 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7148 if (PyErr_Occurred()) SWIG_fail;
7149 }
7150 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7151 return resultobj;
7152 fail:
7153 return NULL;
7154 }
7155
7156
7157 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7158 PyObject *resultobj = 0;
7159 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7160 int result;
7161 void *argp1 = 0 ;
7162 int res1 = 0 ;
7163 PyObject *swig_obj[1] ;
7164
7165 if (!args) SWIG_fail;
7166 swig_obj[0] = args;
7167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7168 if (!SWIG_IsOK(res1)) {
7169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7170 }
7171 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7172 {
7173 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7174 if (PyErr_Occurred()) SWIG_fail;
7175 }
7176 resultobj = SWIG_From_int(static_cast< int >(result));
7177 return resultobj;
7178 fail:
7179 return NULL;
7180 }
7181
7182
7183 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7184 PyObject *resultobj = 0;
7185 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7186 int result;
7187 void *argp1 = 0 ;
7188 int res1 = 0 ;
7189 PyObject *swig_obj[1] ;
7190
7191 if (!args) SWIG_fail;
7192 swig_obj[0] = args;
7193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7194 if (!SWIG_IsOK(res1)) {
7195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7196 }
7197 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7198 {
7199 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7200 if (PyErr_Occurred()) SWIG_fail;
7201 }
7202 resultobj = SWIG_From_int(static_cast< int >(result));
7203 return resultobj;
7204 fail:
7205 return NULL;
7206 }
7207
7208
7209 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7210 PyObject *resultobj = 0;
7211 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7212 wxSize result;
7213 void *argp1 = 0 ;
7214 int res1 = 0 ;
7215 PyObject *swig_obj[1] ;
7216
7217 if (!args) SWIG_fail;
7218 swig_obj[0] = args;
7219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7220 if (!SWIG_IsOK(res1)) {
7221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7222 }
7223 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7224 {
7225 result = ((wxPixelDataBase const *)arg1)->GetSize();
7226 if (PyErr_Occurred()) SWIG_fail;
7227 }
7228 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7229 return resultobj;
7230 fail:
7231 return NULL;
7232 }
7233
7234
7235 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7236 PyObject *resultobj = 0;
7237 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7238 int result;
7239 void *argp1 = 0 ;
7240 int res1 = 0 ;
7241 PyObject *swig_obj[1] ;
7242
7243 if (!args) SWIG_fail;
7244 swig_obj[0] = args;
7245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7246 if (!SWIG_IsOK(res1)) {
7247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7248 }
7249 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7250 {
7251 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7252 if (PyErr_Occurred()) SWIG_fail;
7253 }
7254 resultobj = SWIG_From_int(static_cast< int >(result));
7255 return resultobj;
7256 fail:
7257 return NULL;
7258 }
7259
7260
7261 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7262 PyObject *obj;
7263 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7264 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7265 return SWIG_Py_Void();
7266 }
7267
7268 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7269 PyObject *resultobj = 0;
7270 wxBitmap *arg1 = 0 ;
7271 wxNativePixelData *result = 0 ;
7272 void *argp1 = 0 ;
7273 int res1 = 0 ;
7274
7275 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7277 if (!SWIG_IsOK(res1)) {
7278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7279 }
7280 if (!argp1) {
7281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7282 }
7283 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7284 {
7285 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7286 if (PyErr_Occurred()) SWIG_fail;
7287 }
7288 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7289 return resultobj;
7290 fail:
7291 return NULL;
7292 }
7293
7294
7295 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7296 PyObject *resultobj = 0;
7297 wxBitmap *arg1 = 0 ;
7298 wxRect *arg2 = 0 ;
7299 wxNativePixelData *result = 0 ;
7300 void *argp1 = 0 ;
7301 int res1 = 0 ;
7302 wxRect temp2 ;
7303
7304 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7306 if (!SWIG_IsOK(res1)) {
7307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7308 }
7309 if (!argp1) {
7310 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7311 }
7312 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7313 {
7314 arg2 = &temp2;
7315 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7316 }
7317 {
7318 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7329 PyObject *resultobj = 0;
7330 wxBitmap *arg1 = 0 ;
7331 wxPoint *arg2 = 0 ;
7332 wxSize *arg3 = 0 ;
7333 wxNativePixelData *result = 0 ;
7334 void *argp1 = 0 ;
7335 int res1 = 0 ;
7336 wxPoint temp2 ;
7337 wxSize temp3 ;
7338
7339 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7341 if (!SWIG_IsOK(res1)) {
7342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7343 }
7344 if (!argp1) {
7345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7346 }
7347 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7348 {
7349 arg2 = &temp2;
7350 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7351 }
7352 {
7353 arg3 = &temp3;
7354 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7355 }
7356 {
7357 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7358 if (PyErr_Occurred()) SWIG_fail;
7359 }
7360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7368 int argc;
7369 PyObject *argv[4];
7370
7371 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7372 --argc;
7373 if (argc == 1) {
7374 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7375 }
7376 if (argc == 2) {
7377 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7378 }
7379 if (argc == 3) {
7380 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7381 }
7382
7383 fail:
7384 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7385 return NULL;
7386 }
7387
7388
7389 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7390 PyObject *resultobj = 0;
7391 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7392 void *argp1 = 0 ;
7393 int res1 = 0 ;
7394 PyObject *swig_obj[1] ;
7395
7396 if (!args) SWIG_fail;
7397 swig_obj[0] = args;
7398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7399 if (!SWIG_IsOK(res1)) {
7400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7401 }
7402 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7403 {
7404 delete arg1;
7405
7406 if (PyErr_Occurred()) SWIG_fail;
7407 }
7408 resultobj = SWIG_Py_Void();
7409 return resultobj;
7410 fail:
7411 return NULL;
7412 }
7413
7414
7415 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7416 PyObject *resultobj = 0;
7417 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7418 wxNativePixelData_Accessor result;
7419 void *argp1 = 0 ;
7420 int res1 = 0 ;
7421 PyObject *swig_obj[1] ;
7422
7423 if (!args) SWIG_fail;
7424 swig_obj[0] = args;
7425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7426 if (!SWIG_IsOK(res1)) {
7427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7428 }
7429 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7430 {
7431 result = ((wxNativePixelData const *)arg1)->GetPixels();
7432 if (PyErr_Occurred()) SWIG_fail;
7433 }
7434 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7435 return resultobj;
7436 fail:
7437 return NULL;
7438 }
7439
7440
7441 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7442 PyObject *resultobj = 0;
7443 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 PyObject *swig_obj[1] ;
7447
7448 if (!args) SWIG_fail;
7449 swig_obj[0] = args;
7450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7451 if (!SWIG_IsOK(res1)) {
7452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7453 }
7454 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7455 {
7456 (arg1)->UseAlpha();
7457 if (PyErr_Occurred()) SWIG_fail;
7458 }
7459 resultobj = SWIG_Py_Void();
7460 return resultobj;
7461 fail:
7462 return NULL;
7463 }
7464
7465
7466 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7467 PyObject *resultobj = 0;
7468 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7469 bool result;
7470 void *argp1 = 0 ;
7471 int res1 = 0 ;
7472 PyObject *swig_obj[1] ;
7473
7474 if (!args) SWIG_fail;
7475 swig_obj[0] = args;
7476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7477 if (!SWIG_IsOK(res1)) {
7478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7479 }
7480 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7481 {
7482 result = (bool)wxNativePixelData___nonzero__(arg1);
7483 if (PyErr_Occurred()) SWIG_fail;
7484 }
7485 {
7486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7487 }
7488 return resultobj;
7489 fail:
7490 return NULL;
7491 }
7492
7493
7494 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7495 PyObject *obj;
7496 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7497 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7498 return SWIG_Py_Void();
7499 }
7500
7501 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7502 return SWIG_Python_InitShadowInstance(args);
7503 }
7504
7505 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7506 PyObject *resultobj = 0;
7507 wxNativePixelData *arg1 = 0 ;
7508 wxNativePixelData_Accessor *result = 0 ;
7509 void *argp1 = 0 ;
7510 int res1 = 0 ;
7511
7512 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7514 if (!SWIG_IsOK(res1)) {
7515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7516 }
7517 if (!argp1) {
7518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7519 }
7520 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7521 {
7522 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7523 if (PyErr_Occurred()) SWIG_fail;
7524 }
7525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7526 return resultobj;
7527 fail:
7528 return NULL;
7529 }
7530
7531
7532 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7533 PyObject *resultobj = 0;
7534 wxBitmap *arg1 = 0 ;
7535 wxNativePixelData *arg2 = 0 ;
7536 wxNativePixelData_Accessor *result = 0 ;
7537 void *argp1 = 0 ;
7538 int res1 = 0 ;
7539 void *argp2 = 0 ;
7540 int res2 = 0 ;
7541
7542 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7544 if (!SWIG_IsOK(res1)) {
7545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7546 }
7547 if (!argp1) {
7548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7549 }
7550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7551 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7552 if (!SWIG_IsOK(res2)) {
7553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7554 }
7555 if (!argp2) {
7556 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7557 }
7558 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7559 {
7560 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7561 if (PyErr_Occurred()) SWIG_fail;
7562 }
7563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7564 return resultobj;
7565 fail:
7566 return NULL;
7567 }
7568
7569
7570 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7571 PyObject *resultobj = 0;
7572 wxNativePixelData_Accessor *result = 0 ;
7573
7574 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7575 {
7576 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7577 if (PyErr_Occurred()) SWIG_fail;
7578 }
7579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7580 return resultobj;
7581 fail:
7582 return NULL;
7583 }
7584
7585
7586 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7587 int argc;
7588 PyObject *argv[3];
7589
7590 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7591 --argc;
7592 if (argc == 0) {
7593 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7594 }
7595 if (argc == 1) {
7596 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7597 }
7598 if (argc == 2) {
7599 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7600 }
7601
7602 fail:
7603 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7604 return NULL;
7605 }
7606
7607
7608 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7609 PyObject *resultobj = 0;
7610 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7611 void *argp1 = 0 ;
7612 int res1 = 0 ;
7613 PyObject *swig_obj[1] ;
7614
7615 if (!args) SWIG_fail;
7616 swig_obj[0] = args;
7617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7618 if (!SWIG_IsOK(res1)) {
7619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7620 }
7621 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7622 {
7623 delete arg1;
7624
7625 if (PyErr_Occurred()) SWIG_fail;
7626 }
7627 resultobj = SWIG_Py_Void();
7628 return resultobj;
7629 fail:
7630 return NULL;
7631 }
7632
7633
7634 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7635 PyObject *resultobj = 0;
7636 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7637 wxNativePixelData *arg2 = 0 ;
7638 void *argp1 = 0 ;
7639 int res1 = 0 ;
7640 void *argp2 = 0 ;
7641 int res2 = 0 ;
7642 PyObject * obj0 = 0 ;
7643 PyObject * obj1 = 0 ;
7644 char * kwnames[] = {
7645 (char *) "self",(char *) "data", NULL
7646 };
7647
7648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7650 if (!SWIG_IsOK(res1)) {
7651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7652 }
7653 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7655 if (!SWIG_IsOK(res2)) {
7656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7657 }
7658 if (!argp2) {
7659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7660 }
7661 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7662 {
7663 (arg1)->Reset((wxNativePixelData const &)*arg2);
7664 if (PyErr_Occurred()) SWIG_fail;
7665 }
7666 resultobj = SWIG_Py_Void();
7667 return resultobj;
7668 fail:
7669 return NULL;
7670 }
7671
7672
7673 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7674 PyObject *resultobj = 0;
7675 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7676 bool result;
7677 void *argp1 = 0 ;
7678 int res1 = 0 ;
7679 PyObject *swig_obj[1] ;
7680
7681 if (!args) SWIG_fail;
7682 swig_obj[0] = args;
7683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7684 if (!SWIG_IsOK(res1)) {
7685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7686 }
7687 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7688 {
7689 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7690 if (PyErr_Occurred()) SWIG_fail;
7691 }
7692 {
7693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7694 }
7695 return resultobj;
7696 fail:
7697 return NULL;
7698 }
7699
7700
7701 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7702 PyObject *resultobj = 0;
7703 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7704 void *argp1 = 0 ;
7705 int res1 = 0 ;
7706 PyObject *swig_obj[1] ;
7707
7708 if (!args) SWIG_fail;
7709 swig_obj[0] = args;
7710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7711 if (!SWIG_IsOK(res1)) {
7712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7713 }
7714 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7715 {
7716 wxNativePixelData_Accessor_nextPixel(arg1);
7717 if (PyErr_Occurred()) SWIG_fail;
7718 }
7719 resultobj = SWIG_Py_Void();
7720 return resultobj;
7721 fail:
7722 return NULL;
7723 }
7724
7725
7726 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7727 PyObject *resultobj = 0;
7728 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7729 wxNativePixelData *arg2 = 0 ;
7730 int arg3 ;
7731 int arg4 ;
7732 void *argp1 = 0 ;
7733 int res1 = 0 ;
7734 void *argp2 = 0 ;
7735 int res2 = 0 ;
7736 int val3 ;
7737 int ecode3 = 0 ;
7738 int val4 ;
7739 int ecode4 = 0 ;
7740 PyObject * obj0 = 0 ;
7741 PyObject * obj1 = 0 ;
7742 PyObject * obj2 = 0 ;
7743 PyObject * obj3 = 0 ;
7744 char * kwnames[] = {
7745 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7746 };
7747
7748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7750 if (!SWIG_IsOK(res1)) {
7751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7752 }
7753 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7754 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7755 if (!SWIG_IsOK(res2)) {
7756 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7757 }
7758 if (!argp2) {
7759 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7760 }
7761 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7762 ecode3 = SWIG_AsVal_int(obj2, &val3);
7763 if (!SWIG_IsOK(ecode3)) {
7764 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7765 }
7766 arg3 = static_cast< int >(val3);
7767 ecode4 = SWIG_AsVal_int(obj3, &val4);
7768 if (!SWIG_IsOK(ecode4)) {
7769 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7770 }
7771 arg4 = static_cast< int >(val4);
7772 {
7773 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7774 if (PyErr_Occurred()) SWIG_fail;
7775 }
7776 resultobj = SWIG_Py_Void();
7777 return resultobj;
7778 fail:
7779 return NULL;
7780 }
7781
7782
7783 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7784 PyObject *resultobj = 0;
7785 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7786 wxNativePixelData *arg2 = 0 ;
7787 int arg3 ;
7788 void *argp1 = 0 ;
7789 int res1 = 0 ;
7790 void *argp2 = 0 ;
7791 int res2 = 0 ;
7792 int val3 ;
7793 int ecode3 = 0 ;
7794 PyObject * obj0 = 0 ;
7795 PyObject * obj1 = 0 ;
7796 PyObject * obj2 = 0 ;
7797 char * kwnames[] = {
7798 (char *) "self",(char *) "data",(char *) "x", NULL
7799 };
7800
7801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7803 if (!SWIG_IsOK(res1)) {
7804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7805 }
7806 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7808 if (!SWIG_IsOK(res2)) {
7809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7810 }
7811 if (!argp2) {
7812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7813 }
7814 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7815 ecode3 = SWIG_AsVal_int(obj2, &val3);
7816 if (!SWIG_IsOK(ecode3)) {
7817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7818 }
7819 arg3 = static_cast< int >(val3);
7820 {
7821 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7822 if (PyErr_Occurred()) SWIG_fail;
7823 }
7824 resultobj = SWIG_Py_Void();
7825 return resultobj;
7826 fail:
7827 return NULL;
7828 }
7829
7830
7831 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7832 PyObject *resultobj = 0;
7833 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7834 wxNativePixelData *arg2 = 0 ;
7835 int arg3 ;
7836 void *argp1 = 0 ;
7837 int res1 = 0 ;
7838 void *argp2 = 0 ;
7839 int res2 = 0 ;
7840 int val3 ;
7841 int ecode3 = 0 ;
7842 PyObject * obj0 = 0 ;
7843 PyObject * obj1 = 0 ;
7844 PyObject * obj2 = 0 ;
7845 char * kwnames[] = {
7846 (char *) "self",(char *) "data",(char *) "y", NULL
7847 };
7848
7849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7851 if (!SWIG_IsOK(res1)) {
7852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7853 }
7854 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7855 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7856 if (!SWIG_IsOK(res2)) {
7857 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7858 }
7859 if (!argp2) {
7860 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7861 }
7862 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7863 ecode3 = SWIG_AsVal_int(obj2, &val3);
7864 if (!SWIG_IsOK(ecode3)) {
7865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7866 }
7867 arg3 = static_cast< int >(val3);
7868 {
7869 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7870 if (PyErr_Occurred()) SWIG_fail;
7871 }
7872 resultobj = SWIG_Py_Void();
7873 return resultobj;
7874 fail:
7875 return NULL;
7876 }
7877
7878
7879 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7880 PyObject *resultobj = 0;
7881 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7882 wxNativePixelData *arg2 = 0 ;
7883 int arg3 ;
7884 int arg4 ;
7885 void *argp1 = 0 ;
7886 int res1 = 0 ;
7887 void *argp2 = 0 ;
7888 int res2 = 0 ;
7889 int val3 ;
7890 int ecode3 = 0 ;
7891 int val4 ;
7892 int ecode4 = 0 ;
7893 PyObject * obj0 = 0 ;
7894 PyObject * obj1 = 0 ;
7895 PyObject * obj2 = 0 ;
7896 PyObject * obj3 = 0 ;
7897 char * kwnames[] = {
7898 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7899 };
7900
7901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7903 if (!SWIG_IsOK(res1)) {
7904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7905 }
7906 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7907 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7908 if (!SWIG_IsOK(res2)) {
7909 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7910 }
7911 if (!argp2) {
7912 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7913 }
7914 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7915 ecode3 = SWIG_AsVal_int(obj2, &val3);
7916 if (!SWIG_IsOK(ecode3)) {
7917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7918 }
7919 arg3 = static_cast< int >(val3);
7920 ecode4 = SWIG_AsVal_int(obj3, &val4);
7921 if (!SWIG_IsOK(ecode4)) {
7922 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7923 }
7924 arg4 = static_cast< int >(val4);
7925 {
7926 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7927 if (PyErr_Occurred()) SWIG_fail;
7928 }
7929 resultobj = SWIG_Py_Void();
7930 return resultobj;
7931 fail:
7932 return NULL;
7933 }
7934
7935
7936 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7937 PyObject *resultobj = 0;
7938 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7939 byte arg2 ;
7940 byte arg3 ;
7941 byte arg4 ;
7942 void *argp1 = 0 ;
7943 int res1 = 0 ;
7944 unsigned char val2 ;
7945 int ecode2 = 0 ;
7946 unsigned char val3 ;
7947 int ecode3 = 0 ;
7948 unsigned char val4 ;
7949 int ecode4 = 0 ;
7950 PyObject * obj0 = 0 ;
7951 PyObject * obj1 = 0 ;
7952 PyObject * obj2 = 0 ;
7953 PyObject * obj3 = 0 ;
7954 char * kwnames[] = {
7955 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7956 };
7957
7958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7960 if (!SWIG_IsOK(res1)) {
7961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7962 }
7963 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7964 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7965 if (!SWIG_IsOK(ecode2)) {
7966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7967 }
7968 arg2 = static_cast< byte >(val2);
7969 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7970 if (!SWIG_IsOK(ecode3)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7972 }
7973 arg3 = static_cast< byte >(val3);
7974 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7975 if (!SWIG_IsOK(ecode4)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7977 }
7978 arg4 = static_cast< byte >(val4);
7979 {
7980 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 resultobj = SWIG_Py_Void();
7984 return resultobj;
7985 fail:
7986 return NULL;
7987 }
7988
7989
7990 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7991 PyObject *resultobj = 0;
7992 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7993 PyObject *result = 0 ;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 PyObject *swig_obj[1] ;
7997
7998 if (!args) SWIG_fail;
7999 swig_obj[0] = args;
8000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8001 if (!SWIG_IsOK(res1)) {
8002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8003 }
8004 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8005 {
8006 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8007 if (PyErr_Occurred()) SWIG_fail;
8008 }
8009 resultobj = result;
8010 return resultobj;
8011 fail:
8012 return NULL;
8013 }
8014
8015
8016 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8017 PyObject *obj;
8018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8019 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8020 return SWIG_Py_Void();
8021 }
8022
8023 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8024 return SWIG_Python_InitShadowInstance(args);
8025 }
8026
8027 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8028 PyObject *resultobj = 0;
8029 wxBitmap *arg1 = 0 ;
8030 wxAlphaPixelData *result = 0 ;
8031 void *argp1 = 0 ;
8032 int res1 = 0 ;
8033
8034 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8036 if (!SWIG_IsOK(res1)) {
8037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8038 }
8039 if (!argp1) {
8040 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8041 }
8042 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8043 {
8044 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8045 if (PyErr_Occurred()) SWIG_fail;
8046 }
8047 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8048 return resultobj;
8049 fail:
8050 return NULL;
8051 }
8052
8053
8054 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8055 PyObject *resultobj = 0;
8056 wxBitmap *arg1 = 0 ;
8057 wxRect *arg2 = 0 ;
8058 wxAlphaPixelData *result = 0 ;
8059 void *argp1 = 0 ;
8060 int res1 = 0 ;
8061 wxRect temp2 ;
8062
8063 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8064 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8065 if (!SWIG_IsOK(res1)) {
8066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8067 }
8068 if (!argp1) {
8069 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8070 }
8071 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8072 {
8073 arg2 = &temp2;
8074 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8075 }
8076 {
8077 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8078 if (PyErr_Occurred()) SWIG_fail;
8079 }
8080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8081 return resultobj;
8082 fail:
8083 return NULL;
8084 }
8085
8086
8087 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8088 PyObject *resultobj = 0;
8089 wxBitmap *arg1 = 0 ;
8090 wxPoint *arg2 = 0 ;
8091 wxSize *arg3 = 0 ;
8092 wxAlphaPixelData *result = 0 ;
8093 void *argp1 = 0 ;
8094 int res1 = 0 ;
8095 wxPoint temp2 ;
8096 wxSize temp3 ;
8097
8098 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8100 if (!SWIG_IsOK(res1)) {
8101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8102 }
8103 if (!argp1) {
8104 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8105 }
8106 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8107 {
8108 arg2 = &temp2;
8109 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8110 }
8111 {
8112 arg3 = &temp3;
8113 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8114 }
8115 {
8116 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8117 if (PyErr_Occurred()) SWIG_fail;
8118 }
8119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8120 return resultobj;
8121 fail:
8122 return NULL;
8123 }
8124
8125
8126 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8127 int argc;
8128 PyObject *argv[4];
8129
8130 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8131 --argc;
8132 if (argc == 1) {
8133 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8134 }
8135 if (argc == 2) {
8136 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8137 }
8138 if (argc == 3) {
8139 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8140 }
8141
8142 fail:
8143 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8144 return NULL;
8145 }
8146
8147
8148 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8149 PyObject *resultobj = 0;
8150 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8151 void *argp1 = 0 ;
8152 int res1 = 0 ;
8153 PyObject *swig_obj[1] ;
8154
8155 if (!args) SWIG_fail;
8156 swig_obj[0] = args;
8157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8158 if (!SWIG_IsOK(res1)) {
8159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8160 }
8161 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8162 {
8163 delete arg1;
8164
8165 if (PyErr_Occurred()) SWIG_fail;
8166 }
8167 resultobj = SWIG_Py_Void();
8168 return resultobj;
8169 fail:
8170 return NULL;
8171 }
8172
8173
8174 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8175 PyObject *resultobj = 0;
8176 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8177 wxAlphaPixelData_Accessor result;
8178 void *argp1 = 0 ;
8179 int res1 = 0 ;
8180 PyObject *swig_obj[1] ;
8181
8182 if (!args) SWIG_fail;
8183 swig_obj[0] = args;
8184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8185 if (!SWIG_IsOK(res1)) {
8186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8187 }
8188 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8189 {
8190 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8191 if (PyErr_Occurred()) SWIG_fail;
8192 }
8193 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8194 return resultobj;
8195 fail:
8196 return NULL;
8197 }
8198
8199
8200 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8201 PyObject *resultobj = 0;
8202 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8203 void *argp1 = 0 ;
8204 int res1 = 0 ;
8205 PyObject *swig_obj[1] ;
8206
8207 if (!args) SWIG_fail;
8208 swig_obj[0] = args;
8209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8210 if (!SWIG_IsOK(res1)) {
8211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8212 }
8213 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8214 {
8215 (arg1)->UseAlpha();
8216 if (PyErr_Occurred()) SWIG_fail;
8217 }
8218 resultobj = SWIG_Py_Void();
8219 return resultobj;
8220 fail:
8221 return NULL;
8222 }
8223
8224
8225 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8226 PyObject *resultobj = 0;
8227 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8228 bool result;
8229 void *argp1 = 0 ;
8230 int res1 = 0 ;
8231 PyObject *swig_obj[1] ;
8232
8233 if (!args) SWIG_fail;
8234 swig_obj[0] = args;
8235 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8236 if (!SWIG_IsOK(res1)) {
8237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8238 }
8239 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8240 {
8241 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8242 if (PyErr_Occurred()) SWIG_fail;
8243 }
8244 {
8245 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8246 }
8247 return resultobj;
8248 fail:
8249 return NULL;
8250 }
8251
8252
8253 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8254 PyObject *obj;
8255 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8256 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8257 return SWIG_Py_Void();
8258 }
8259
8260 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8261 return SWIG_Python_InitShadowInstance(args);
8262 }
8263
8264 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8265 PyObject *resultobj = 0;
8266 wxAlphaPixelData *arg1 = 0 ;
8267 wxAlphaPixelData_Accessor *result = 0 ;
8268 void *argp1 = 0 ;
8269 int res1 = 0 ;
8270
8271 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8273 if (!SWIG_IsOK(res1)) {
8274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8275 }
8276 if (!argp1) {
8277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8278 }
8279 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8280 {
8281 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8292 PyObject *resultobj = 0;
8293 wxBitmap *arg1 = 0 ;
8294 wxAlphaPixelData *arg2 = 0 ;
8295 wxAlphaPixelData_Accessor *result = 0 ;
8296 void *argp1 = 0 ;
8297 int res1 = 0 ;
8298 void *argp2 = 0 ;
8299 int res2 = 0 ;
8300
8301 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8303 if (!SWIG_IsOK(res1)) {
8304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8305 }
8306 if (!argp1) {
8307 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8308 }
8309 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8310 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8311 if (!SWIG_IsOK(res2)) {
8312 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8313 }
8314 if (!argp2) {
8315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8316 }
8317 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8318 {
8319 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8320 if (PyErr_Occurred()) SWIG_fail;
8321 }
8322 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8323 return resultobj;
8324 fail:
8325 return NULL;
8326 }
8327
8328
8329 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8330 PyObject *resultobj = 0;
8331 wxAlphaPixelData_Accessor *result = 0 ;
8332
8333 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8334 {
8335 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8336 if (PyErr_Occurred()) SWIG_fail;
8337 }
8338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8339 return resultobj;
8340 fail:
8341 return NULL;
8342 }
8343
8344
8345 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8346 int argc;
8347 PyObject *argv[3];
8348
8349 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8350 --argc;
8351 if (argc == 0) {
8352 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8353 }
8354 if (argc == 1) {
8355 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8356 }
8357 if (argc == 2) {
8358 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8359 }
8360
8361 fail:
8362 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8363 return NULL;
8364 }
8365
8366
8367 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8368 PyObject *resultobj = 0;
8369 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8370 void *argp1 = 0 ;
8371 int res1 = 0 ;
8372 PyObject *swig_obj[1] ;
8373
8374 if (!args) SWIG_fail;
8375 swig_obj[0] = args;
8376 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8377 if (!SWIG_IsOK(res1)) {
8378 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8379 }
8380 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8381 {
8382 delete arg1;
8383
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = SWIG_Py_Void();
8387 return resultobj;
8388 fail:
8389 return NULL;
8390 }
8391
8392
8393 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj = 0;
8395 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8396 wxAlphaPixelData *arg2 = 0 ;
8397 void *argp1 = 0 ;
8398 int res1 = 0 ;
8399 void *argp2 = 0 ;
8400 int res2 = 0 ;
8401 PyObject * obj0 = 0 ;
8402 PyObject * obj1 = 0 ;
8403 char * kwnames[] = {
8404 (char *) "self",(char *) "data", NULL
8405 };
8406
8407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8409 if (!SWIG_IsOK(res1)) {
8410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8411 }
8412 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8413 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8414 if (!SWIG_IsOK(res2)) {
8415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8416 }
8417 if (!argp2) {
8418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8419 }
8420 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8421 {
8422 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8423 if (PyErr_Occurred()) SWIG_fail;
8424 }
8425 resultobj = SWIG_Py_Void();
8426 return resultobj;
8427 fail:
8428 return NULL;
8429 }
8430
8431
8432 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8433 PyObject *resultobj = 0;
8434 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8435 bool result;
8436 void *argp1 = 0 ;
8437 int res1 = 0 ;
8438 PyObject *swig_obj[1] ;
8439
8440 if (!args) SWIG_fail;
8441 swig_obj[0] = args;
8442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8443 if (!SWIG_IsOK(res1)) {
8444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8445 }
8446 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8447 {
8448 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8449 if (PyErr_Occurred()) SWIG_fail;
8450 }
8451 {
8452 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8453 }
8454 return resultobj;
8455 fail:
8456 return NULL;
8457 }
8458
8459
8460 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8461 PyObject *resultobj = 0;
8462 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8463 void *argp1 = 0 ;
8464 int res1 = 0 ;
8465 PyObject *swig_obj[1] ;
8466
8467 if (!args) SWIG_fail;
8468 swig_obj[0] = args;
8469 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8470 if (!SWIG_IsOK(res1)) {
8471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8472 }
8473 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8474 {
8475 wxAlphaPixelData_Accessor_nextPixel(arg1);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 resultobj = SWIG_Py_Void();
8479 return resultobj;
8480 fail:
8481 return NULL;
8482 }
8483
8484
8485 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8486 PyObject *resultobj = 0;
8487 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8488 wxAlphaPixelData *arg2 = 0 ;
8489 int arg3 ;
8490 int arg4 ;
8491 void *argp1 = 0 ;
8492 int res1 = 0 ;
8493 void *argp2 = 0 ;
8494 int res2 = 0 ;
8495 int val3 ;
8496 int ecode3 = 0 ;
8497 int val4 ;
8498 int ecode4 = 0 ;
8499 PyObject * obj0 = 0 ;
8500 PyObject * obj1 = 0 ;
8501 PyObject * obj2 = 0 ;
8502 PyObject * obj3 = 0 ;
8503 char * kwnames[] = {
8504 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8505 };
8506
8507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8509 if (!SWIG_IsOK(res1)) {
8510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8511 }
8512 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8514 if (!SWIG_IsOK(res2)) {
8515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8516 }
8517 if (!argp2) {
8518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8519 }
8520 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8521 ecode3 = SWIG_AsVal_int(obj2, &val3);
8522 if (!SWIG_IsOK(ecode3)) {
8523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8524 }
8525 arg3 = static_cast< int >(val3);
8526 ecode4 = SWIG_AsVal_int(obj3, &val4);
8527 if (!SWIG_IsOK(ecode4)) {
8528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8529 }
8530 arg4 = static_cast< int >(val4);
8531 {
8532 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8533 if (PyErr_Occurred()) SWIG_fail;
8534 }
8535 resultobj = SWIG_Py_Void();
8536 return resultobj;
8537 fail:
8538 return NULL;
8539 }
8540
8541
8542 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8543 PyObject *resultobj = 0;
8544 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8545 wxAlphaPixelData *arg2 = 0 ;
8546 int arg3 ;
8547 void *argp1 = 0 ;
8548 int res1 = 0 ;
8549 void *argp2 = 0 ;
8550 int res2 = 0 ;
8551 int val3 ;
8552 int ecode3 = 0 ;
8553 PyObject * obj0 = 0 ;
8554 PyObject * obj1 = 0 ;
8555 PyObject * obj2 = 0 ;
8556 char * kwnames[] = {
8557 (char *) "self",(char *) "data",(char *) "x", NULL
8558 };
8559
8560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8562 if (!SWIG_IsOK(res1)) {
8563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8564 }
8565 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8566 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8567 if (!SWIG_IsOK(res2)) {
8568 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8569 }
8570 if (!argp2) {
8571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8572 }
8573 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8574 ecode3 = SWIG_AsVal_int(obj2, &val3);
8575 if (!SWIG_IsOK(ecode3)) {
8576 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8577 }
8578 arg3 = static_cast< int >(val3);
8579 {
8580 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8581 if (PyErr_Occurred()) SWIG_fail;
8582 }
8583 resultobj = SWIG_Py_Void();
8584 return resultobj;
8585 fail:
8586 return NULL;
8587 }
8588
8589
8590 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8591 PyObject *resultobj = 0;
8592 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8593 wxAlphaPixelData *arg2 = 0 ;
8594 int arg3 ;
8595 void *argp1 = 0 ;
8596 int res1 = 0 ;
8597 void *argp2 = 0 ;
8598 int res2 = 0 ;
8599 int val3 ;
8600 int ecode3 = 0 ;
8601 PyObject * obj0 = 0 ;
8602 PyObject * obj1 = 0 ;
8603 PyObject * obj2 = 0 ;
8604 char * kwnames[] = {
8605 (char *) "self",(char *) "data",(char *) "y", NULL
8606 };
8607
8608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8610 if (!SWIG_IsOK(res1)) {
8611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8612 }
8613 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8614 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8615 if (!SWIG_IsOK(res2)) {
8616 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8617 }
8618 if (!argp2) {
8619 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8620 }
8621 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8622 ecode3 = SWIG_AsVal_int(obj2, &val3);
8623 if (!SWIG_IsOK(ecode3)) {
8624 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8625 }
8626 arg3 = static_cast< int >(val3);
8627 {
8628 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8629 if (PyErr_Occurred()) SWIG_fail;
8630 }
8631 resultobj = SWIG_Py_Void();
8632 return resultobj;
8633 fail:
8634 return NULL;
8635 }
8636
8637
8638 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8639 PyObject *resultobj = 0;
8640 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8641 wxAlphaPixelData *arg2 = 0 ;
8642 int arg3 ;
8643 int arg4 ;
8644 void *argp1 = 0 ;
8645 int res1 = 0 ;
8646 void *argp2 = 0 ;
8647 int res2 = 0 ;
8648 int val3 ;
8649 int ecode3 = 0 ;
8650 int val4 ;
8651 int ecode4 = 0 ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 PyObject * obj2 = 0 ;
8655 PyObject * obj3 = 0 ;
8656 char * kwnames[] = {
8657 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8658 };
8659
8660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8662 if (!SWIG_IsOK(res1)) {
8663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8664 }
8665 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8666 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8667 if (!SWIG_IsOK(res2)) {
8668 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8669 }
8670 if (!argp2) {
8671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8672 }
8673 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8674 ecode3 = SWIG_AsVal_int(obj2, &val3);
8675 if (!SWIG_IsOK(ecode3)) {
8676 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8677 }
8678 arg3 = static_cast< int >(val3);
8679 ecode4 = SWIG_AsVal_int(obj3, &val4);
8680 if (!SWIG_IsOK(ecode4)) {
8681 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8682 }
8683 arg4 = static_cast< int >(val4);
8684 {
8685 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8686 if (PyErr_Occurred()) SWIG_fail;
8687 }
8688 resultobj = SWIG_Py_Void();
8689 return resultobj;
8690 fail:
8691 return NULL;
8692 }
8693
8694
8695 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8696 PyObject *resultobj = 0;
8697 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8698 byte arg2 ;
8699 byte arg3 ;
8700 byte arg4 ;
8701 byte arg5 ;
8702 void *argp1 = 0 ;
8703 int res1 = 0 ;
8704 unsigned char val2 ;
8705 int ecode2 = 0 ;
8706 unsigned char val3 ;
8707 int ecode3 = 0 ;
8708 unsigned char val4 ;
8709 int ecode4 = 0 ;
8710 unsigned char val5 ;
8711 int ecode5 = 0 ;
8712 PyObject * obj0 = 0 ;
8713 PyObject * obj1 = 0 ;
8714 PyObject * obj2 = 0 ;
8715 PyObject * obj3 = 0 ;
8716 PyObject * obj4 = 0 ;
8717 char * kwnames[] = {
8718 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8719 };
8720
8721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8723 if (!SWIG_IsOK(res1)) {
8724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8725 }
8726 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8727 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8728 if (!SWIG_IsOK(ecode2)) {
8729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8730 }
8731 arg2 = static_cast< byte >(val2);
8732 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8733 if (!SWIG_IsOK(ecode3)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8735 }
8736 arg3 = static_cast< byte >(val3);
8737 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8738 if (!SWIG_IsOK(ecode4)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8740 }
8741 arg4 = static_cast< byte >(val4);
8742 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8743 if (!SWIG_IsOK(ecode5)) {
8744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8745 }
8746 arg5 = static_cast< byte >(val5);
8747 {
8748 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8749 if (PyErr_Occurred()) SWIG_fail;
8750 }
8751 resultobj = SWIG_Py_Void();
8752 return resultobj;
8753 fail:
8754 return NULL;
8755 }
8756
8757
8758 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8759 PyObject *resultobj = 0;
8760 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8761 PyObject *result = 0 ;
8762 void *argp1 = 0 ;
8763 int res1 = 0 ;
8764 PyObject *swig_obj[1] ;
8765
8766 if (!args) SWIG_fail;
8767 swig_obj[0] = args;
8768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8771 }
8772 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8773 {
8774 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 resultobj = result;
8778 return resultobj;
8779 fail:
8780 return NULL;
8781 }
8782
8783
8784 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 PyObject *obj;
8786 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8787 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8788 return SWIG_Py_Void();
8789 }
8790
8791 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8792 return SWIG_Python_InitShadowInstance(args);
8793 }
8794
8795 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8796 PyObject *resultobj = 0;
8797 wxBitmap *arg1 = 0 ;
8798 wxColour const &arg2_defvalue = wxNullColour ;
8799 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8800 wxMask *result = 0 ;
8801 void *argp1 = 0 ;
8802 int res1 = 0 ;
8803 wxColour temp2 ;
8804 PyObject * obj0 = 0 ;
8805 PyObject * obj1 = 0 ;
8806 char * kwnames[] = {
8807 (char *) "bitmap",(char *) "colour", NULL
8808 };
8809
8810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8811 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8812 if (!SWIG_IsOK(res1)) {
8813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8814 }
8815 if (!argp1) {
8816 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8817 }
8818 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8819 if (obj1) {
8820 {
8821 arg2 = &temp2;
8822 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8823 }
8824 }
8825 {
8826 if (!wxPyCheckForApp()) SWIG_fail;
8827 PyThreadState* __tstate = wxPyBeginAllowThreads();
8828 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8829 wxPyEndAllowThreads(__tstate);
8830 if (PyErr_Occurred()) SWIG_fail;
8831 }
8832 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8833 return resultobj;
8834 fail:
8835 return NULL;
8836 }
8837
8838
8839 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8840 PyObject *resultobj = 0;
8841 wxMask *arg1 = (wxMask *) 0 ;
8842 void *argp1 = 0 ;
8843 int res1 = 0 ;
8844 PyObject *swig_obj[1] ;
8845
8846 if (!args) SWIG_fail;
8847 swig_obj[0] = args;
8848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8849 if (!SWIG_IsOK(res1)) {
8850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8851 }
8852 arg1 = reinterpret_cast< wxMask * >(argp1);
8853 {
8854 delete arg1;
8855
8856 if (PyErr_Occurred()) SWIG_fail;
8857 }
8858 resultobj = SWIG_Py_Void();
8859 return resultobj;
8860 fail:
8861 return NULL;
8862 }
8863
8864
8865 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8866 PyObject *obj;
8867 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8868 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8869 return SWIG_Py_Void();
8870 }
8871
8872 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8873 return SWIG_Python_InitShadowInstance(args);
8874 }
8875
8876 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8877 PyObject *resultobj = 0;
8878 wxString *arg1 = 0 ;
8879 wxBitmapType arg2 ;
8880 int arg3 = (int) -1 ;
8881 int arg4 = (int) -1 ;
8882 wxIcon *result = 0 ;
8883 bool temp1 = false ;
8884 int val2 ;
8885 int ecode2 = 0 ;
8886 int val3 ;
8887 int ecode3 = 0 ;
8888 int val4 ;
8889 int ecode4 = 0 ;
8890 PyObject * obj0 = 0 ;
8891 PyObject * obj1 = 0 ;
8892 PyObject * obj2 = 0 ;
8893 PyObject * obj3 = 0 ;
8894 char * kwnames[] = {
8895 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8896 };
8897
8898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8899 {
8900 arg1 = wxString_in_helper(obj0);
8901 if (arg1 == NULL) SWIG_fail;
8902 temp1 = true;
8903 }
8904 ecode2 = SWIG_AsVal_int(obj1, &val2);
8905 if (!SWIG_IsOK(ecode2)) {
8906 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8907 }
8908 arg2 = static_cast< wxBitmapType >(val2);
8909 if (obj2) {
8910 ecode3 = SWIG_AsVal_int(obj2, &val3);
8911 if (!SWIG_IsOK(ecode3)) {
8912 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8913 }
8914 arg3 = static_cast< int >(val3);
8915 }
8916 if (obj3) {
8917 ecode4 = SWIG_AsVal_int(obj3, &val4);
8918 if (!SWIG_IsOK(ecode4)) {
8919 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8920 }
8921 arg4 = static_cast< int >(val4);
8922 }
8923 {
8924 if (!wxPyCheckForApp()) SWIG_fail;
8925 PyThreadState* __tstate = wxPyBeginAllowThreads();
8926 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8927 wxPyEndAllowThreads(__tstate);
8928 if (PyErr_Occurred()) SWIG_fail;
8929 }
8930 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8931 {
8932 if (temp1)
8933 delete arg1;
8934 }
8935 return resultobj;
8936 fail:
8937 {
8938 if (temp1)
8939 delete arg1;
8940 }
8941 return NULL;
8942 }
8943
8944
8945 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8946 PyObject *resultobj = 0;
8947 wxIcon *arg1 = (wxIcon *) 0 ;
8948 void *argp1 = 0 ;
8949 int res1 = 0 ;
8950 PyObject *swig_obj[1] ;
8951
8952 if (!args) SWIG_fail;
8953 swig_obj[0] = args;
8954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8955 if (!SWIG_IsOK(res1)) {
8956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8957 }
8958 arg1 = reinterpret_cast< wxIcon * >(argp1);
8959 {
8960 PyThreadState* __tstate = wxPyBeginAllowThreads();
8961 delete arg1;
8962
8963 wxPyEndAllowThreads(__tstate);
8964 if (PyErr_Occurred()) SWIG_fail;
8965 }
8966 resultobj = SWIG_Py_Void();
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8974 PyObject *resultobj = 0;
8975 wxIcon *result = 0 ;
8976
8977 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8978 {
8979 if (!wxPyCheckForApp()) SWIG_fail;
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 result = (wxIcon *)new wxIcon();
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8986 return resultobj;
8987 fail:
8988 return NULL;
8989 }
8990
8991
8992 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8993 PyObject *resultobj = 0;
8994 wxIconLocation *arg1 = 0 ;
8995 wxIcon *result = 0 ;
8996 void *argp1 = 0 ;
8997 int res1 = 0 ;
8998 PyObject * obj0 = 0 ;
8999 char * kwnames[] = {
9000 (char *) "loc", NULL
9001 };
9002
9003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9004 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9005 if (!SWIG_IsOK(res1)) {
9006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9007 }
9008 if (!argp1) {
9009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9010 }
9011 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9012 {
9013 if (!wxPyCheckForApp()) SWIG_fail;
9014 PyThreadState* __tstate = wxPyBeginAllowThreads();
9015 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9016 wxPyEndAllowThreads(__tstate);
9017 if (PyErr_Occurred()) SWIG_fail;
9018 }
9019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9020 return resultobj;
9021 fail:
9022 return NULL;
9023 }
9024
9025
9026 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9027 PyObject *resultobj = 0;
9028 wxBitmap *arg1 = 0 ;
9029 wxIcon *result = 0 ;
9030 void *argp1 = 0 ;
9031 int res1 = 0 ;
9032 PyObject * obj0 = 0 ;
9033 char * kwnames[] = {
9034 (char *) "bmp", NULL
9035 };
9036
9037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9038 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9039 if (!SWIG_IsOK(res1)) {
9040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9041 }
9042 if (!argp1) {
9043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9044 }
9045 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9046 {
9047 if (!wxPyCheckForApp()) SWIG_fail;
9048 PyThreadState* __tstate = wxPyBeginAllowThreads();
9049 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9050 wxPyEndAllowThreads(__tstate);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 }
9053 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9054 return resultobj;
9055 fail:
9056 return NULL;
9057 }
9058
9059
9060 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9061 PyObject *resultobj = 0;
9062 PyObject *arg1 = (PyObject *) 0 ;
9063 wxIcon *result = 0 ;
9064 PyObject * obj0 = 0 ;
9065 char * kwnames[] = {
9066 (char *) "listOfStrings", NULL
9067 };
9068
9069 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9070 arg1 = obj0;
9071 {
9072 if (!wxPyCheckForApp()) SWIG_fail;
9073 PyThreadState* __tstate = wxPyBeginAllowThreads();
9074 result = (wxIcon *)new_wxIcon(arg1);
9075 wxPyEndAllowThreads(__tstate);
9076 if (PyErr_Occurred()) SWIG_fail;
9077 }
9078 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9079 return resultobj;
9080 fail:
9081 return NULL;
9082 }
9083
9084
9085 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9086 PyObject *resultobj = 0;
9087 wxIcon *arg1 = (wxIcon *) 0 ;
9088 wxString *arg2 = 0 ;
9089 wxBitmapType arg3 ;
9090 bool result;
9091 void *argp1 = 0 ;
9092 int res1 = 0 ;
9093 bool temp2 = false ;
9094 int val3 ;
9095 int ecode3 = 0 ;
9096 PyObject * obj0 = 0 ;
9097 PyObject * obj1 = 0 ;
9098 PyObject * obj2 = 0 ;
9099 char * kwnames[] = {
9100 (char *) "self",(char *) "name",(char *) "type", NULL
9101 };
9102
9103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9105 if (!SWIG_IsOK(res1)) {
9106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9107 }
9108 arg1 = reinterpret_cast< wxIcon * >(argp1);
9109 {
9110 arg2 = wxString_in_helper(obj1);
9111 if (arg2 == NULL) SWIG_fail;
9112 temp2 = true;
9113 }
9114 ecode3 = SWIG_AsVal_int(obj2, &val3);
9115 if (!SWIG_IsOK(ecode3)) {
9116 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9117 }
9118 arg3 = static_cast< wxBitmapType >(val3);
9119 {
9120 PyThreadState* __tstate = wxPyBeginAllowThreads();
9121 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9122 wxPyEndAllowThreads(__tstate);
9123 if (PyErr_Occurred()) SWIG_fail;
9124 }
9125 {
9126 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9127 }
9128 {
9129 if (temp2)
9130 delete arg2;
9131 }
9132 return resultobj;
9133 fail:
9134 {
9135 if (temp2)
9136 delete arg2;
9137 }
9138 return NULL;
9139 }
9140
9141
9142 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9143 PyObject *resultobj = 0;
9144 wxIcon *arg1 = (wxIcon *) 0 ;
9145 long result;
9146 void *argp1 = 0 ;
9147 int res1 = 0 ;
9148 PyObject *swig_obj[1] ;
9149
9150 if (!args) SWIG_fail;
9151 swig_obj[0] = args;
9152 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9153 if (!SWIG_IsOK(res1)) {
9154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9155 }
9156 arg1 = reinterpret_cast< wxIcon * >(argp1);
9157 {
9158 PyThreadState* __tstate = wxPyBeginAllowThreads();
9159 result = (long)(arg1)->GetHandle();
9160 wxPyEndAllowThreads(__tstate);
9161 if (PyErr_Occurred()) SWIG_fail;
9162 }
9163 resultobj = SWIG_From_long(static_cast< long >(result));
9164 return resultobj;
9165 fail:
9166 return NULL;
9167 }
9168
9169
9170 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9171 PyObject *resultobj = 0;
9172 wxIcon *arg1 = (wxIcon *) 0 ;
9173 long arg2 ;
9174 void *argp1 = 0 ;
9175 int res1 = 0 ;
9176 long val2 ;
9177 int ecode2 = 0 ;
9178 PyObject * obj0 = 0 ;
9179 PyObject * obj1 = 0 ;
9180 char * kwnames[] = {
9181 (char *) "self",(char *) "handle", NULL
9182 };
9183
9184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9186 if (!SWIG_IsOK(res1)) {
9187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9188 }
9189 arg1 = reinterpret_cast< wxIcon * >(argp1);
9190 ecode2 = SWIG_AsVal_long(obj1, &val2);
9191 if (!SWIG_IsOK(ecode2)) {
9192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9193 }
9194 arg2 = static_cast< long >(val2);
9195 {
9196 PyThreadState* __tstate = wxPyBeginAllowThreads();
9197 wxIcon_SetHandle(arg1,arg2);
9198 wxPyEndAllowThreads(__tstate);
9199 if (PyErr_Occurred()) SWIG_fail;
9200 }
9201 resultobj = SWIG_Py_Void();
9202 return resultobj;
9203 fail:
9204 return NULL;
9205 }
9206
9207
9208 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9209 PyObject *resultobj = 0;
9210 wxIcon *arg1 = (wxIcon *) 0 ;
9211 bool result;
9212 void *argp1 = 0 ;
9213 int res1 = 0 ;
9214 PyObject *swig_obj[1] ;
9215
9216 if (!args) SWIG_fail;
9217 swig_obj[0] = args;
9218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9219 if (!SWIG_IsOK(res1)) {
9220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9221 }
9222 arg1 = reinterpret_cast< wxIcon * >(argp1);
9223 {
9224 PyThreadState* __tstate = wxPyBeginAllowThreads();
9225 result = (bool)(arg1)->IsOk();
9226 wxPyEndAllowThreads(__tstate);
9227 if (PyErr_Occurred()) SWIG_fail;
9228 }
9229 {
9230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9231 }
9232 return resultobj;
9233 fail:
9234 return NULL;
9235 }
9236
9237
9238 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9239 PyObject *resultobj = 0;
9240 wxIcon *arg1 = (wxIcon *) 0 ;
9241 int result;
9242 void *argp1 = 0 ;
9243 int res1 = 0 ;
9244 PyObject *swig_obj[1] ;
9245
9246 if (!args) SWIG_fail;
9247 swig_obj[0] = args;
9248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9249 if (!SWIG_IsOK(res1)) {
9250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9251 }
9252 arg1 = reinterpret_cast< wxIcon * >(argp1);
9253 {
9254 PyThreadState* __tstate = wxPyBeginAllowThreads();
9255 result = (int)(arg1)->GetWidth();
9256 wxPyEndAllowThreads(__tstate);
9257 if (PyErr_Occurred()) SWIG_fail;
9258 }
9259 resultobj = SWIG_From_int(static_cast< int >(result));
9260 return resultobj;
9261 fail:
9262 return NULL;
9263 }
9264
9265
9266 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9267 PyObject *resultobj = 0;
9268 wxIcon *arg1 = (wxIcon *) 0 ;
9269 int result;
9270 void *argp1 = 0 ;
9271 int res1 = 0 ;
9272 PyObject *swig_obj[1] ;
9273
9274 if (!args) SWIG_fail;
9275 swig_obj[0] = args;
9276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9279 }
9280 arg1 = reinterpret_cast< wxIcon * >(argp1);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 result = (int)(arg1)->GetHeight();
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 resultobj = SWIG_From_int(static_cast< int >(result));
9288 return resultobj;
9289 fail:
9290 return NULL;
9291 }
9292
9293
9294 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9295 PyObject *resultobj = 0;
9296 wxIcon *arg1 = (wxIcon *) 0 ;
9297 int result;
9298 void *argp1 = 0 ;
9299 int res1 = 0 ;
9300 PyObject *swig_obj[1] ;
9301
9302 if (!args) SWIG_fail;
9303 swig_obj[0] = args;
9304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9305 if (!SWIG_IsOK(res1)) {
9306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9307 }
9308 arg1 = reinterpret_cast< wxIcon * >(argp1);
9309 {
9310 PyThreadState* __tstate = wxPyBeginAllowThreads();
9311 result = (int)(arg1)->GetDepth();
9312 wxPyEndAllowThreads(__tstate);
9313 if (PyErr_Occurred()) SWIG_fail;
9314 }
9315 resultobj = SWIG_From_int(static_cast< int >(result));
9316 return resultobj;
9317 fail:
9318 return NULL;
9319 }
9320
9321
9322 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9323 PyObject *resultobj = 0;
9324 wxIcon *arg1 = (wxIcon *) 0 ;
9325 int arg2 ;
9326 void *argp1 = 0 ;
9327 int res1 = 0 ;
9328 int val2 ;
9329 int ecode2 = 0 ;
9330 PyObject * obj0 = 0 ;
9331 PyObject * obj1 = 0 ;
9332 char * kwnames[] = {
9333 (char *) "self",(char *) "w", NULL
9334 };
9335
9336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9338 if (!SWIG_IsOK(res1)) {
9339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9340 }
9341 arg1 = reinterpret_cast< wxIcon * >(argp1);
9342 ecode2 = SWIG_AsVal_int(obj1, &val2);
9343 if (!SWIG_IsOK(ecode2)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9345 }
9346 arg2 = static_cast< int >(val2);
9347 {
9348 PyThreadState* __tstate = wxPyBeginAllowThreads();
9349 (arg1)->SetWidth(arg2);
9350 wxPyEndAllowThreads(__tstate);
9351 if (PyErr_Occurred()) SWIG_fail;
9352 }
9353 resultobj = SWIG_Py_Void();
9354 return resultobj;
9355 fail:
9356 return NULL;
9357 }
9358
9359
9360 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9361 PyObject *resultobj = 0;
9362 wxIcon *arg1 = (wxIcon *) 0 ;
9363 int arg2 ;
9364 void *argp1 = 0 ;
9365 int res1 = 0 ;
9366 int val2 ;
9367 int ecode2 = 0 ;
9368 PyObject * obj0 = 0 ;
9369 PyObject * obj1 = 0 ;
9370 char * kwnames[] = {
9371 (char *) "self",(char *) "h", NULL
9372 };
9373
9374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9376 if (!SWIG_IsOK(res1)) {
9377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9378 }
9379 arg1 = reinterpret_cast< wxIcon * >(argp1);
9380 ecode2 = SWIG_AsVal_int(obj1, &val2);
9381 if (!SWIG_IsOK(ecode2)) {
9382 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9383 }
9384 arg2 = static_cast< int >(val2);
9385 {
9386 PyThreadState* __tstate = wxPyBeginAllowThreads();
9387 (arg1)->SetHeight(arg2);
9388 wxPyEndAllowThreads(__tstate);
9389 if (PyErr_Occurred()) SWIG_fail;
9390 }
9391 resultobj = SWIG_Py_Void();
9392 return resultobj;
9393 fail:
9394 return NULL;
9395 }
9396
9397
9398 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9399 PyObject *resultobj = 0;
9400 wxIcon *arg1 = (wxIcon *) 0 ;
9401 int arg2 ;
9402 void *argp1 = 0 ;
9403 int res1 = 0 ;
9404 int val2 ;
9405 int ecode2 = 0 ;
9406 PyObject * obj0 = 0 ;
9407 PyObject * obj1 = 0 ;
9408 char * kwnames[] = {
9409 (char *) "self",(char *) "d", NULL
9410 };
9411
9412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9414 if (!SWIG_IsOK(res1)) {
9415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9416 }
9417 arg1 = reinterpret_cast< wxIcon * >(argp1);
9418 ecode2 = SWIG_AsVal_int(obj1, &val2);
9419 if (!SWIG_IsOK(ecode2)) {
9420 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9421 }
9422 arg2 = static_cast< int >(val2);
9423 {
9424 PyThreadState* __tstate = wxPyBeginAllowThreads();
9425 (arg1)->SetDepth(arg2);
9426 wxPyEndAllowThreads(__tstate);
9427 if (PyErr_Occurred()) SWIG_fail;
9428 }
9429 resultobj = SWIG_Py_Void();
9430 return resultobj;
9431 fail:
9432 return NULL;
9433 }
9434
9435
9436 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9437 PyObject *resultobj = 0;
9438 wxIcon *arg1 = (wxIcon *) 0 ;
9439 wxSize *arg2 = 0 ;
9440 void *argp1 = 0 ;
9441 int res1 = 0 ;
9442 wxSize temp2 ;
9443 PyObject * obj0 = 0 ;
9444 PyObject * obj1 = 0 ;
9445 char * kwnames[] = {
9446 (char *) "self",(char *) "size", NULL
9447 };
9448
9449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9451 if (!SWIG_IsOK(res1)) {
9452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9453 }
9454 arg1 = reinterpret_cast< wxIcon * >(argp1);
9455 {
9456 arg2 = &temp2;
9457 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9458 }
9459 {
9460 PyThreadState* __tstate = wxPyBeginAllowThreads();
9461 (arg1)->SetSize((wxSize const &)*arg2);
9462 wxPyEndAllowThreads(__tstate);
9463 if (PyErr_Occurred()) SWIG_fail;
9464 }
9465 resultobj = SWIG_Py_Void();
9466 return resultobj;
9467 fail:
9468 return NULL;
9469 }
9470
9471
9472 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9473 PyObject *resultobj = 0;
9474 wxIcon *arg1 = (wxIcon *) 0 ;
9475 wxBitmap *arg2 = 0 ;
9476 void *argp1 = 0 ;
9477 int res1 = 0 ;
9478 void *argp2 = 0 ;
9479 int res2 = 0 ;
9480 PyObject * obj0 = 0 ;
9481 PyObject * obj1 = 0 ;
9482 char * kwnames[] = {
9483 (char *) "self",(char *) "bmp", NULL
9484 };
9485
9486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9488 if (!SWIG_IsOK(res1)) {
9489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9490 }
9491 arg1 = reinterpret_cast< wxIcon * >(argp1);
9492 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9493 if (!SWIG_IsOK(res2)) {
9494 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9495 }
9496 if (!argp2) {
9497 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9498 }
9499 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9500 {
9501 PyThreadState* __tstate = wxPyBeginAllowThreads();
9502 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9503 wxPyEndAllowThreads(__tstate);
9504 if (PyErr_Occurred()) SWIG_fail;
9505 }
9506 resultobj = SWIG_Py_Void();
9507 return resultobj;
9508 fail:
9509 return NULL;
9510 }
9511
9512
9513 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9514 PyObject *obj;
9515 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9516 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9517 return SWIG_Py_Void();
9518 }
9519
9520 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9521 return SWIG_Python_InitShadowInstance(args);
9522 }
9523
9524 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9525 PyObject *resultobj = 0;
9526 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9527 int arg2 = (int) 0 ;
9528 wxIconLocation *result = 0 ;
9529 bool temp1 = false ;
9530 int val2 ;
9531 int ecode2 = 0 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 char * kwnames[] = {
9535 (char *) "filename",(char *) "num", NULL
9536 };
9537
9538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9539 if (obj0) {
9540 {
9541 arg1 = wxString_in_helper(obj0);
9542 if (arg1 == NULL) SWIG_fail;
9543 temp1 = true;
9544 }
9545 }
9546 if (obj1) {
9547 ecode2 = SWIG_AsVal_int(obj1, &val2);
9548 if (!SWIG_IsOK(ecode2)) {
9549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9550 }
9551 arg2 = static_cast< int >(val2);
9552 }
9553 {
9554 PyThreadState* __tstate = wxPyBeginAllowThreads();
9555 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9556 wxPyEndAllowThreads(__tstate);
9557 if (PyErr_Occurred()) SWIG_fail;
9558 }
9559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9560 {
9561 if (temp1)
9562 delete arg1;
9563 }
9564 return resultobj;
9565 fail:
9566 {
9567 if (temp1)
9568 delete arg1;
9569 }
9570 return NULL;
9571 }
9572
9573
9574 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9575 PyObject *resultobj = 0;
9576 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9577 void *argp1 = 0 ;
9578 int res1 = 0 ;
9579 PyObject *swig_obj[1] ;
9580
9581 if (!args) SWIG_fail;
9582 swig_obj[0] = args;
9583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9584 if (!SWIG_IsOK(res1)) {
9585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9586 }
9587 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9588 {
9589 PyThreadState* __tstate = wxPyBeginAllowThreads();
9590 delete arg1;
9591
9592 wxPyEndAllowThreads(__tstate);
9593 if (PyErr_Occurred()) SWIG_fail;
9594 }
9595 resultobj = SWIG_Py_Void();
9596 return resultobj;
9597 fail:
9598 return NULL;
9599 }
9600
9601
9602 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9603 PyObject *resultobj = 0;
9604 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9605 bool result;
9606 void *argp1 = 0 ;
9607 int res1 = 0 ;
9608 PyObject *swig_obj[1] ;
9609
9610 if (!args) SWIG_fail;
9611 swig_obj[0] = args;
9612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9615 }
9616 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9617 {
9618 PyThreadState* __tstate = wxPyBeginAllowThreads();
9619 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9620 wxPyEndAllowThreads(__tstate);
9621 if (PyErr_Occurred()) SWIG_fail;
9622 }
9623 {
9624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9625 }
9626 return resultobj;
9627 fail:
9628 return NULL;
9629 }
9630
9631
9632 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9633 PyObject *resultobj = 0;
9634 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9635 wxString *arg2 = 0 ;
9636 void *argp1 = 0 ;
9637 int res1 = 0 ;
9638 bool temp2 = false ;
9639 PyObject * obj0 = 0 ;
9640 PyObject * obj1 = 0 ;
9641 char * kwnames[] = {
9642 (char *) "self",(char *) "filename", NULL
9643 };
9644
9645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9647 if (!SWIG_IsOK(res1)) {
9648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9649 }
9650 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9651 {
9652 arg2 = wxString_in_helper(obj1);
9653 if (arg2 == NULL) SWIG_fail;
9654 temp2 = true;
9655 }
9656 {
9657 PyThreadState* __tstate = wxPyBeginAllowThreads();
9658 (arg1)->SetFileName((wxString const &)*arg2);
9659 wxPyEndAllowThreads(__tstate);
9660 if (PyErr_Occurred()) SWIG_fail;
9661 }
9662 resultobj = SWIG_Py_Void();
9663 {
9664 if (temp2)
9665 delete arg2;
9666 }
9667 return resultobj;
9668 fail:
9669 {
9670 if (temp2)
9671 delete arg2;
9672 }
9673 return NULL;
9674 }
9675
9676
9677 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9678 PyObject *resultobj = 0;
9679 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9680 wxString *result = 0 ;
9681 void *argp1 = 0 ;
9682 int res1 = 0 ;
9683 PyObject *swig_obj[1] ;
9684
9685 if (!args) SWIG_fail;
9686 swig_obj[0] = args;
9687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9688 if (!SWIG_IsOK(res1)) {
9689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9690 }
9691 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9692 {
9693 PyThreadState* __tstate = wxPyBeginAllowThreads();
9694 {
9695 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9696 result = (wxString *) &_result_ref;
9697 }
9698 wxPyEndAllowThreads(__tstate);
9699 if (PyErr_Occurred()) SWIG_fail;
9700 }
9701 {
9702 #if wxUSE_UNICODE
9703 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9704 #else
9705 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9706 #endif
9707 }
9708 return resultobj;
9709 fail:
9710 return NULL;
9711 }
9712
9713
9714 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9715 PyObject *resultobj = 0;
9716 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9717 int arg2 ;
9718 void *argp1 = 0 ;
9719 int res1 = 0 ;
9720 int val2 ;
9721 int ecode2 = 0 ;
9722 PyObject * obj0 = 0 ;
9723 PyObject * obj1 = 0 ;
9724 char * kwnames[] = {
9725 (char *) "self",(char *) "num", NULL
9726 };
9727
9728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9732 }
9733 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9734 ecode2 = SWIG_AsVal_int(obj1, &val2);
9735 if (!SWIG_IsOK(ecode2)) {
9736 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9737 }
9738 arg2 = static_cast< int >(val2);
9739 {
9740 PyThreadState* __tstate = wxPyBeginAllowThreads();
9741 wxIconLocation_SetIndex(arg1,arg2);
9742 wxPyEndAllowThreads(__tstate);
9743 if (PyErr_Occurred()) SWIG_fail;
9744 }
9745 resultobj = SWIG_Py_Void();
9746 return resultobj;
9747 fail:
9748 return NULL;
9749 }
9750
9751
9752 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9753 PyObject *resultobj = 0;
9754 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9755 int result;
9756 void *argp1 = 0 ;
9757 int res1 = 0 ;
9758 PyObject *swig_obj[1] ;
9759
9760 if (!args) SWIG_fail;
9761 swig_obj[0] = args;
9762 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9763 if (!SWIG_IsOK(res1)) {
9764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9765 }
9766 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9767 {
9768 PyThreadState* __tstate = wxPyBeginAllowThreads();
9769 result = (int)wxIconLocation_GetIndex(arg1);
9770 wxPyEndAllowThreads(__tstate);
9771 if (PyErr_Occurred()) SWIG_fail;
9772 }
9773 resultobj = SWIG_From_int(static_cast< int >(result));
9774 return resultobj;
9775 fail:
9776 return NULL;
9777 }
9778
9779
9780 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9781 PyObject *obj;
9782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9783 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9784 return SWIG_Py_Void();
9785 }
9786
9787 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9788 return SWIG_Python_InitShadowInstance(args);
9789 }
9790
9791 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9792 PyObject *resultobj = 0;
9793 wxIconBundle *result = 0 ;
9794
9795 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9796 {
9797 PyThreadState* __tstate = wxPyBeginAllowThreads();
9798 result = (wxIconBundle *)new wxIconBundle();
9799 wxPyEndAllowThreads(__tstate);
9800 if (PyErr_Occurred()) SWIG_fail;
9801 }
9802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9803 return resultobj;
9804 fail:
9805 return NULL;
9806 }
9807
9808
9809 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9810 PyObject *resultobj = 0;
9811 wxString *arg1 = 0 ;
9812 long arg2 ;
9813 wxIconBundle *result = 0 ;
9814 bool temp1 = false ;
9815 long val2 ;
9816 int ecode2 = 0 ;
9817 PyObject * obj0 = 0 ;
9818 PyObject * obj1 = 0 ;
9819 char * kwnames[] = {
9820 (char *) "file",(char *) "type", NULL
9821 };
9822
9823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9824 {
9825 arg1 = wxString_in_helper(obj0);
9826 if (arg1 == NULL) SWIG_fail;
9827 temp1 = true;
9828 }
9829 ecode2 = SWIG_AsVal_long(obj1, &val2);
9830 if (!SWIG_IsOK(ecode2)) {
9831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9832 }
9833 arg2 = static_cast< long >(val2);
9834 {
9835 PyThreadState* __tstate = wxPyBeginAllowThreads();
9836 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9837 wxPyEndAllowThreads(__tstate);
9838 if (PyErr_Occurred()) SWIG_fail;
9839 }
9840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9841 {
9842 if (temp1)
9843 delete arg1;
9844 }
9845 return resultobj;
9846 fail:
9847 {
9848 if (temp1)
9849 delete arg1;
9850 }
9851 return NULL;
9852 }
9853
9854
9855 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9856 PyObject *resultobj = 0;
9857 wxIcon *arg1 = 0 ;
9858 wxIconBundle *result = 0 ;
9859 void *argp1 = 0 ;
9860 int res1 = 0 ;
9861 PyObject * obj0 = 0 ;
9862 char * kwnames[] = {
9863 (char *) "icon", NULL
9864 };
9865
9866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9867 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9868 if (!SWIG_IsOK(res1)) {
9869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9870 }
9871 if (!argp1) {
9872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9873 }
9874 arg1 = reinterpret_cast< wxIcon * >(argp1);
9875 {
9876 PyThreadState* __tstate = wxPyBeginAllowThreads();
9877 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9878 wxPyEndAllowThreads(__tstate);
9879 if (PyErr_Occurred()) SWIG_fail;
9880 }
9881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9882 return resultobj;
9883 fail:
9884 return NULL;
9885 }
9886
9887
9888 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9889 PyObject *resultobj = 0;
9890 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9891 void *argp1 = 0 ;
9892 int res1 = 0 ;
9893 PyObject *swig_obj[1] ;
9894
9895 if (!args) SWIG_fail;
9896 swig_obj[0] = args;
9897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9898 if (!SWIG_IsOK(res1)) {
9899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9900 }
9901 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 delete arg1;
9905
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_Py_Void();
9910 return resultobj;
9911 fail:
9912 return NULL;
9913 }
9914
9915
9916 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9917 PyObject *resultobj = 0;
9918 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9919 wxIcon *arg2 = 0 ;
9920 void *argp1 = 0 ;
9921 int res1 = 0 ;
9922 void *argp2 = 0 ;
9923 int res2 = 0 ;
9924 PyObject * obj0 = 0 ;
9925 PyObject * obj1 = 0 ;
9926 char * kwnames[] = {
9927 (char *) "self",(char *) "icon", NULL
9928 };
9929
9930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9931 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9932 if (!SWIG_IsOK(res1)) {
9933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9934 }
9935 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9936 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9937 if (!SWIG_IsOK(res2)) {
9938 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9939 }
9940 if (!argp2) {
9941 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9942 }
9943 arg2 = reinterpret_cast< wxIcon * >(argp2);
9944 {
9945 PyThreadState* __tstate = wxPyBeginAllowThreads();
9946 (arg1)->AddIcon((wxIcon const &)*arg2);
9947 wxPyEndAllowThreads(__tstate);
9948 if (PyErr_Occurred()) SWIG_fail;
9949 }
9950 resultobj = SWIG_Py_Void();
9951 return resultobj;
9952 fail:
9953 return NULL;
9954 }
9955
9956
9957 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9958 PyObject *resultobj = 0;
9959 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9960 wxString *arg2 = 0 ;
9961 long arg3 ;
9962 void *argp1 = 0 ;
9963 int res1 = 0 ;
9964 bool temp2 = false ;
9965 long val3 ;
9966 int ecode3 = 0 ;
9967 PyObject * obj0 = 0 ;
9968 PyObject * obj1 = 0 ;
9969 PyObject * obj2 = 0 ;
9970 char * kwnames[] = {
9971 (char *) "self",(char *) "file",(char *) "type", NULL
9972 };
9973
9974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9976 if (!SWIG_IsOK(res1)) {
9977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9978 }
9979 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9980 {
9981 arg2 = wxString_in_helper(obj1);
9982 if (arg2 == NULL) SWIG_fail;
9983 temp2 = true;
9984 }
9985 ecode3 = SWIG_AsVal_long(obj2, &val3);
9986 if (!SWIG_IsOK(ecode3)) {
9987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9988 }
9989 arg3 = static_cast< long >(val3);
9990 {
9991 PyThreadState* __tstate = wxPyBeginAllowThreads();
9992 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9993 wxPyEndAllowThreads(__tstate);
9994 if (PyErr_Occurred()) SWIG_fail;
9995 }
9996 resultobj = SWIG_Py_Void();
9997 {
9998 if (temp2)
9999 delete arg2;
10000 }
10001 return resultobj;
10002 fail:
10003 {
10004 if (temp2)
10005 delete arg2;
10006 }
10007 return NULL;
10008 }
10009
10010
10011 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10012 PyObject *resultobj = 0;
10013 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10014 wxSize *arg2 = 0 ;
10015 wxIcon *result = 0 ;
10016 void *argp1 = 0 ;
10017 int res1 = 0 ;
10018 wxSize temp2 ;
10019 PyObject * obj0 = 0 ;
10020 PyObject * obj1 = 0 ;
10021 char * kwnames[] = {
10022 (char *) "self",(char *) "size", NULL
10023 };
10024
10025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10027 if (!SWIG_IsOK(res1)) {
10028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10029 }
10030 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10031 {
10032 arg2 = &temp2;
10033 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10034 }
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 {
10038 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10039 result = (wxIcon *) &_result_ref;
10040 }
10041 wxPyEndAllowThreads(__tstate);
10042 if (PyErr_Occurred()) SWIG_fail;
10043 }
10044 {
10045 wxIcon* resultptr = new wxIcon(*result);
10046 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10047 }
10048 return resultobj;
10049 fail:
10050 return NULL;
10051 }
10052
10053
10054 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10055 PyObject *obj;
10056 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10057 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10058 return SWIG_Py_Void();
10059 }
10060
10061 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10062 return SWIG_Python_InitShadowInstance(args);
10063 }
10064
10065 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10066 PyObject *resultobj = 0;
10067 wxString *arg1 = 0 ;
10068 long arg2 ;
10069 int arg3 = (int) 0 ;
10070 int arg4 = (int) 0 ;
10071 wxCursor *result = 0 ;
10072 bool temp1 = false ;
10073 long val2 ;
10074 int ecode2 = 0 ;
10075 int val3 ;
10076 int ecode3 = 0 ;
10077 int val4 ;
10078 int ecode4 = 0 ;
10079 PyObject * obj0 = 0 ;
10080 PyObject * obj1 = 0 ;
10081 PyObject * obj2 = 0 ;
10082 PyObject * obj3 = 0 ;
10083 char * kwnames[] = {
10084 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10085 };
10086
10087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10088 {
10089 arg1 = wxString_in_helper(obj0);
10090 if (arg1 == NULL) SWIG_fail;
10091 temp1 = true;
10092 }
10093 ecode2 = SWIG_AsVal_long(obj1, &val2);
10094 if (!SWIG_IsOK(ecode2)) {
10095 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10096 }
10097 arg2 = static_cast< long >(val2);
10098 if (obj2) {
10099 ecode3 = SWIG_AsVal_int(obj2, &val3);
10100 if (!SWIG_IsOK(ecode3)) {
10101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10102 }
10103 arg3 = static_cast< int >(val3);
10104 }
10105 if (obj3) {
10106 ecode4 = SWIG_AsVal_int(obj3, &val4);
10107 if (!SWIG_IsOK(ecode4)) {
10108 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10109 }
10110 arg4 = static_cast< int >(val4);
10111 }
10112 {
10113 if (!wxPyCheckForApp()) SWIG_fail;
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10120 {
10121 if (temp1)
10122 delete arg1;
10123 }
10124 return resultobj;
10125 fail:
10126 {
10127 if (temp1)
10128 delete arg1;
10129 }
10130 return NULL;
10131 }
10132
10133
10134 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10135 PyObject *resultobj = 0;
10136 wxCursor *arg1 = (wxCursor *) 0 ;
10137 void *argp1 = 0 ;
10138 int res1 = 0 ;
10139 PyObject *swig_obj[1] ;
10140
10141 if (!args) SWIG_fail;
10142 swig_obj[0] = args;
10143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10144 if (!SWIG_IsOK(res1)) {
10145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10146 }
10147 arg1 = reinterpret_cast< wxCursor * >(argp1);
10148 {
10149 PyThreadState* __tstate = wxPyBeginAllowThreads();
10150 delete arg1;
10151
10152 wxPyEndAllowThreads(__tstate);
10153 if (PyErr_Occurred()) SWIG_fail;
10154 }
10155 resultobj = SWIG_Py_Void();
10156 return resultobj;
10157 fail:
10158 return NULL;
10159 }
10160
10161
10162 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10163 PyObject *resultobj = 0;
10164 int arg1 ;
10165 wxCursor *result = 0 ;
10166 int val1 ;
10167 int ecode1 = 0 ;
10168 PyObject * obj0 = 0 ;
10169 char * kwnames[] = {
10170 (char *) "id", NULL
10171 };
10172
10173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10174 ecode1 = SWIG_AsVal_int(obj0, &val1);
10175 if (!SWIG_IsOK(ecode1)) {
10176 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10177 }
10178 arg1 = static_cast< int >(val1);
10179 {
10180 if (!wxPyCheckForApp()) SWIG_fail;
10181 PyThreadState* __tstate = wxPyBeginAllowThreads();
10182 result = (wxCursor *)new wxCursor(arg1);
10183 wxPyEndAllowThreads(__tstate);
10184 if (PyErr_Occurred()) SWIG_fail;
10185 }
10186 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10187 return resultobj;
10188 fail:
10189 return NULL;
10190 }
10191
10192
10193 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10194 PyObject *resultobj = 0;
10195 wxImage *arg1 = 0 ;
10196 wxCursor *result = 0 ;
10197 void *argp1 = 0 ;
10198 int res1 = 0 ;
10199 PyObject * obj0 = 0 ;
10200 char * kwnames[] = {
10201 (char *) "image", NULL
10202 };
10203
10204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10205 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10206 if (!SWIG_IsOK(res1)) {
10207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10208 }
10209 if (!argp1) {
10210 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10211 }
10212 arg1 = reinterpret_cast< wxImage * >(argp1);
10213 {
10214 if (!wxPyCheckForApp()) SWIG_fail;
10215 PyThreadState* __tstate = wxPyBeginAllowThreads();
10216 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10217 wxPyEndAllowThreads(__tstate);
10218 if (PyErr_Occurred()) SWIG_fail;
10219 }
10220 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10221 return resultobj;
10222 fail:
10223 return NULL;
10224 }
10225
10226
10227 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10228 PyObject *resultobj = 0;
10229 wxCursor *arg1 = (wxCursor *) 0 ;
10230 long result;
10231 void *argp1 = 0 ;
10232 int res1 = 0 ;
10233 PyObject *swig_obj[1] ;
10234
10235 if (!args) SWIG_fail;
10236 swig_obj[0] = args;
10237 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10238 if (!SWIG_IsOK(res1)) {
10239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10240 }
10241 arg1 = reinterpret_cast< wxCursor * >(argp1);
10242 {
10243 PyThreadState* __tstate = wxPyBeginAllowThreads();
10244 result = (long)(arg1)->GetHandle();
10245 wxPyEndAllowThreads(__tstate);
10246 if (PyErr_Occurred()) SWIG_fail;
10247 }
10248 resultobj = SWIG_From_long(static_cast< long >(result));
10249 return resultobj;
10250 fail:
10251 return NULL;
10252 }
10253
10254
10255 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10256 PyObject *resultobj = 0;
10257 wxCursor *arg1 = (wxCursor *) 0 ;
10258 long arg2 ;
10259 void *argp1 = 0 ;
10260 int res1 = 0 ;
10261 long val2 ;
10262 int ecode2 = 0 ;
10263 PyObject * obj0 = 0 ;
10264 PyObject * obj1 = 0 ;
10265 char * kwnames[] = {
10266 (char *) "self",(char *) "handle", NULL
10267 };
10268
10269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10271 if (!SWIG_IsOK(res1)) {
10272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10273 }
10274 arg1 = reinterpret_cast< wxCursor * >(argp1);
10275 ecode2 = SWIG_AsVal_long(obj1, &val2);
10276 if (!SWIG_IsOK(ecode2)) {
10277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10278 }
10279 arg2 = static_cast< long >(val2);
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 wxCursor_SetHandle(arg1,arg2);
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 resultobj = SWIG_Py_Void();
10287 return resultobj;
10288 fail:
10289 return NULL;
10290 }
10291
10292
10293 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10294 PyObject *resultobj = 0;
10295 wxCursor *arg1 = (wxCursor *) 0 ;
10296 bool 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_wxCursor, 0 | 0 );
10304 if (!SWIG_IsOK(res1)) {
10305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10306 }
10307 arg1 = reinterpret_cast< wxCursor * >(argp1);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (bool)(arg1)->IsOk();
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 {
10315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10316 }
10317 return resultobj;
10318 fail:
10319 return NULL;
10320 }
10321
10322
10323 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10324 PyObject *resultobj = 0;
10325 wxCursor *arg1 = (wxCursor *) 0 ;
10326 int result;
10327 void *argp1 = 0 ;
10328 int res1 = 0 ;
10329 PyObject *swig_obj[1] ;
10330
10331 if (!args) SWIG_fail;
10332 swig_obj[0] = args;
10333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10334 if (!SWIG_IsOK(res1)) {
10335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10336 }
10337 arg1 = reinterpret_cast< wxCursor * >(argp1);
10338 {
10339 PyThreadState* __tstate = wxPyBeginAllowThreads();
10340 result = (int)(arg1)->GetWidth();
10341 wxPyEndAllowThreads(__tstate);
10342 if (PyErr_Occurred()) SWIG_fail;
10343 }
10344 resultobj = SWIG_From_int(static_cast< int >(result));
10345 return resultobj;
10346 fail:
10347 return NULL;
10348 }
10349
10350
10351 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10352 PyObject *resultobj = 0;
10353 wxCursor *arg1 = (wxCursor *) 0 ;
10354 int result;
10355 void *argp1 = 0 ;
10356 int res1 = 0 ;
10357 PyObject *swig_obj[1] ;
10358
10359 if (!args) SWIG_fail;
10360 swig_obj[0] = args;
10361 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10362 if (!SWIG_IsOK(res1)) {
10363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10364 }
10365 arg1 = reinterpret_cast< wxCursor * >(argp1);
10366 {
10367 PyThreadState* __tstate = wxPyBeginAllowThreads();
10368 result = (int)(arg1)->GetHeight();
10369 wxPyEndAllowThreads(__tstate);
10370 if (PyErr_Occurred()) SWIG_fail;
10371 }
10372 resultobj = SWIG_From_int(static_cast< int >(result));
10373 return resultobj;
10374 fail:
10375 return NULL;
10376 }
10377
10378
10379 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10380 PyObject *resultobj = 0;
10381 wxCursor *arg1 = (wxCursor *) 0 ;
10382 int result;
10383 void *argp1 = 0 ;
10384 int res1 = 0 ;
10385 PyObject *swig_obj[1] ;
10386
10387 if (!args) SWIG_fail;
10388 swig_obj[0] = args;
10389 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10390 if (!SWIG_IsOK(res1)) {
10391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10392 }
10393 arg1 = reinterpret_cast< wxCursor * >(argp1);
10394 {
10395 PyThreadState* __tstate = wxPyBeginAllowThreads();
10396 result = (int)(arg1)->GetDepth();
10397 wxPyEndAllowThreads(__tstate);
10398 if (PyErr_Occurred()) SWIG_fail;
10399 }
10400 resultobj = SWIG_From_int(static_cast< int >(result));
10401 return resultobj;
10402 fail:
10403 return NULL;
10404 }
10405
10406
10407 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10408 PyObject *resultobj = 0;
10409 wxCursor *arg1 = (wxCursor *) 0 ;
10410 int arg2 ;
10411 void *argp1 = 0 ;
10412 int res1 = 0 ;
10413 int val2 ;
10414 int ecode2 = 0 ;
10415 PyObject * obj0 = 0 ;
10416 PyObject * obj1 = 0 ;
10417 char * kwnames[] = {
10418 (char *) "self",(char *) "w", NULL
10419 };
10420
10421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10423 if (!SWIG_IsOK(res1)) {
10424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10425 }
10426 arg1 = reinterpret_cast< wxCursor * >(argp1);
10427 ecode2 = SWIG_AsVal_int(obj1, &val2);
10428 if (!SWIG_IsOK(ecode2)) {
10429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10430 }
10431 arg2 = static_cast< int >(val2);
10432 {
10433 PyThreadState* __tstate = wxPyBeginAllowThreads();
10434 (arg1)->SetWidth(arg2);
10435 wxPyEndAllowThreads(__tstate);
10436 if (PyErr_Occurred()) SWIG_fail;
10437 }
10438 resultobj = SWIG_Py_Void();
10439 return resultobj;
10440 fail:
10441 return NULL;
10442 }
10443
10444
10445 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10446 PyObject *resultobj = 0;
10447 wxCursor *arg1 = (wxCursor *) 0 ;
10448 int arg2 ;
10449 void *argp1 = 0 ;
10450 int res1 = 0 ;
10451 int val2 ;
10452 int ecode2 = 0 ;
10453 PyObject * obj0 = 0 ;
10454 PyObject * obj1 = 0 ;
10455 char * kwnames[] = {
10456 (char *) "self",(char *) "h", NULL
10457 };
10458
10459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10461 if (!SWIG_IsOK(res1)) {
10462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10463 }
10464 arg1 = reinterpret_cast< wxCursor * >(argp1);
10465 ecode2 = SWIG_AsVal_int(obj1, &val2);
10466 if (!SWIG_IsOK(ecode2)) {
10467 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10468 }
10469 arg2 = static_cast< int >(val2);
10470 {
10471 PyThreadState* __tstate = wxPyBeginAllowThreads();
10472 (arg1)->SetHeight(arg2);
10473 wxPyEndAllowThreads(__tstate);
10474 if (PyErr_Occurred()) SWIG_fail;
10475 }
10476 resultobj = SWIG_Py_Void();
10477 return resultobj;
10478 fail:
10479 return NULL;
10480 }
10481
10482
10483 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10484 PyObject *resultobj = 0;
10485 wxCursor *arg1 = (wxCursor *) 0 ;
10486 int arg2 ;
10487 void *argp1 = 0 ;
10488 int res1 = 0 ;
10489 int val2 ;
10490 int ecode2 = 0 ;
10491 PyObject * obj0 = 0 ;
10492 PyObject * obj1 = 0 ;
10493 char * kwnames[] = {
10494 (char *) "self",(char *) "d", NULL
10495 };
10496
10497 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10498 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10499 if (!SWIG_IsOK(res1)) {
10500 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10501 }
10502 arg1 = reinterpret_cast< wxCursor * >(argp1);
10503 ecode2 = SWIG_AsVal_int(obj1, &val2);
10504 if (!SWIG_IsOK(ecode2)) {
10505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10506 }
10507 arg2 = static_cast< int >(val2);
10508 {
10509 PyThreadState* __tstate = wxPyBeginAllowThreads();
10510 (arg1)->SetDepth(arg2);
10511 wxPyEndAllowThreads(__tstate);
10512 if (PyErr_Occurred()) SWIG_fail;
10513 }
10514 resultobj = SWIG_Py_Void();
10515 return resultobj;
10516 fail:
10517 return NULL;
10518 }
10519
10520
10521 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10522 PyObject *resultobj = 0;
10523 wxCursor *arg1 = (wxCursor *) 0 ;
10524 wxSize *arg2 = 0 ;
10525 void *argp1 = 0 ;
10526 int res1 = 0 ;
10527 wxSize temp2 ;
10528 PyObject * obj0 = 0 ;
10529 PyObject * obj1 = 0 ;
10530 char * kwnames[] = {
10531 (char *) "self",(char *) "size", NULL
10532 };
10533
10534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10536 if (!SWIG_IsOK(res1)) {
10537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10538 }
10539 arg1 = reinterpret_cast< wxCursor * >(argp1);
10540 {
10541 arg2 = &temp2;
10542 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10543 }
10544 {
10545 PyThreadState* __tstate = wxPyBeginAllowThreads();
10546 (arg1)->SetSize((wxSize const &)*arg2);
10547 wxPyEndAllowThreads(__tstate);
10548 if (PyErr_Occurred()) SWIG_fail;
10549 }
10550 resultobj = SWIG_Py_Void();
10551 return resultobj;
10552 fail:
10553 return NULL;
10554 }
10555
10556
10557 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10558 PyObject *obj;
10559 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10560 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10561 return SWIG_Py_Void();
10562 }
10563
10564 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10565 return SWIG_Python_InitShadowInstance(args);
10566 }
10567
10568 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10569 PyObject *resultobj = 0;
10570 int arg1 = (int) 0 ;
10571 int arg2 = (int) 0 ;
10572 int arg3 = (int) 0 ;
10573 int arg4 = (int) 0 ;
10574 wxRegion *result = 0 ;
10575 int val1 ;
10576 int ecode1 = 0 ;
10577 int val2 ;
10578 int ecode2 = 0 ;
10579 int val3 ;
10580 int ecode3 = 0 ;
10581 int val4 ;
10582 int ecode4 = 0 ;
10583 PyObject * obj0 = 0 ;
10584 PyObject * obj1 = 0 ;
10585 PyObject * obj2 = 0 ;
10586 PyObject * obj3 = 0 ;
10587 char * kwnames[] = {
10588 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10589 };
10590
10591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10592 if (obj0) {
10593 ecode1 = SWIG_AsVal_int(obj0, &val1);
10594 if (!SWIG_IsOK(ecode1)) {
10595 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10596 }
10597 arg1 = static_cast< int >(val1);
10598 }
10599 if (obj1) {
10600 ecode2 = SWIG_AsVal_int(obj1, &val2);
10601 if (!SWIG_IsOK(ecode2)) {
10602 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10603 }
10604 arg2 = static_cast< int >(val2);
10605 }
10606 if (obj2) {
10607 ecode3 = SWIG_AsVal_int(obj2, &val3);
10608 if (!SWIG_IsOK(ecode3)) {
10609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10610 }
10611 arg3 = static_cast< int >(val3);
10612 }
10613 if (obj3) {
10614 ecode4 = SWIG_AsVal_int(obj3, &val4);
10615 if (!SWIG_IsOK(ecode4)) {
10616 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10617 }
10618 arg4 = static_cast< int >(val4);
10619 }
10620 {
10621 if (!wxPyCheckForApp()) SWIG_fail;
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10624 wxPyEndAllowThreads(__tstate);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxBitmap *arg1 = 0 ;
10637 wxRegion *result = 0 ;
10638 void *argp1 = 0 ;
10639 int res1 = 0 ;
10640 PyObject * obj0 = 0 ;
10641 char * kwnames[] = {
10642 (char *) "bmp", NULL
10643 };
10644
10645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10646 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10647 if (!SWIG_IsOK(res1)) {
10648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10649 }
10650 if (!argp1) {
10651 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10652 }
10653 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10654 {
10655 if (!wxPyCheckForApp()) SWIG_fail;
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10662 return resultobj;
10663 fail:
10664 return NULL;
10665 }
10666
10667
10668 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10669 PyObject *resultobj = 0;
10670 wxBitmap *arg1 = 0 ;
10671 wxColour *arg2 = 0 ;
10672 int arg3 = (int) 0 ;
10673 wxRegion *result = 0 ;
10674 void *argp1 = 0 ;
10675 int res1 = 0 ;
10676 wxColour temp2 ;
10677 int val3 ;
10678 int ecode3 = 0 ;
10679 PyObject * obj0 = 0 ;
10680 PyObject * obj1 = 0 ;
10681 PyObject * obj2 = 0 ;
10682 char * kwnames[] = {
10683 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10684 };
10685
10686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10687 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10688 if (!SWIG_IsOK(res1)) {
10689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10690 }
10691 if (!argp1) {
10692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10693 }
10694 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10695 {
10696 arg2 = &temp2;
10697 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10698 }
10699 if (obj2) {
10700 ecode3 = SWIG_AsVal_int(obj2, &val3);
10701 if (!SWIG_IsOK(ecode3)) {
10702 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10703 }
10704 arg3 = static_cast< int >(val3);
10705 }
10706 {
10707 if (!wxPyCheckForApp()) SWIG_fail;
10708 PyThreadState* __tstate = wxPyBeginAllowThreads();
10709 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10710 wxPyEndAllowThreads(__tstate);
10711 if (PyErr_Occurred()) SWIG_fail;
10712 }
10713 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10714 return resultobj;
10715 fail:
10716 return NULL;
10717 }
10718
10719
10720 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10721 PyObject *resultobj = 0;
10722 int arg1 ;
10723 wxPoint *arg2 = (wxPoint *) 0 ;
10724 int arg3 = (int) wxWINDING_RULE ;
10725 wxRegion *result = 0 ;
10726 int val3 ;
10727 int ecode3 = 0 ;
10728 PyObject * obj0 = 0 ;
10729 PyObject * obj1 = 0 ;
10730 char * kwnames[] = {
10731 (char *) "points",(char *) "fillStyle", NULL
10732 };
10733
10734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10735 {
10736 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10737 if (arg2 == NULL) SWIG_fail;
10738 }
10739 if (obj1) {
10740 ecode3 = SWIG_AsVal_int(obj1, &val3);
10741 if (!SWIG_IsOK(ecode3)) {
10742 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10743 }
10744 arg3 = static_cast< int >(val3);
10745 }
10746 {
10747 if (!wxPyCheckForApp()) SWIG_fail;
10748 PyThreadState* __tstate = wxPyBeginAllowThreads();
10749 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10750 wxPyEndAllowThreads(__tstate);
10751 if (PyErr_Occurred()) SWIG_fail;
10752 }
10753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10754 {
10755 if (arg2) delete [] arg2;
10756 }
10757 return resultobj;
10758 fail:
10759 {
10760 if (arg2) delete [] arg2;
10761 }
10762 return NULL;
10763 }
10764
10765
10766 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10767 PyObject *resultobj = 0;
10768 wxRegion *arg1 = (wxRegion *) 0 ;
10769 void *argp1 = 0 ;
10770 int res1 = 0 ;
10771 PyObject *swig_obj[1] ;
10772
10773 if (!args) SWIG_fail;
10774 swig_obj[0] = args;
10775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10776 if (!SWIG_IsOK(res1)) {
10777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10778 }
10779 arg1 = reinterpret_cast< wxRegion * >(argp1);
10780 {
10781 PyThreadState* __tstate = wxPyBeginAllowThreads();
10782 delete arg1;
10783
10784 wxPyEndAllowThreads(__tstate);
10785 if (PyErr_Occurred()) SWIG_fail;
10786 }
10787 resultobj = SWIG_Py_Void();
10788 return resultobj;
10789 fail:
10790 return NULL;
10791 }
10792
10793
10794 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10795 PyObject *resultobj = 0;
10796 wxRegion *arg1 = (wxRegion *) 0 ;
10797 void *argp1 = 0 ;
10798 int res1 = 0 ;
10799 PyObject *swig_obj[1] ;
10800
10801 if (!args) SWIG_fail;
10802 swig_obj[0] = args;
10803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10804 if (!SWIG_IsOK(res1)) {
10805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10806 }
10807 arg1 = reinterpret_cast< wxRegion * >(argp1);
10808 {
10809 PyThreadState* __tstate = wxPyBeginAllowThreads();
10810 (arg1)->Clear();
10811 wxPyEndAllowThreads(__tstate);
10812 if (PyErr_Occurred()) SWIG_fail;
10813 }
10814 resultobj = SWIG_Py_Void();
10815 return resultobj;
10816 fail:
10817 return NULL;
10818 }
10819
10820
10821 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10822 PyObject *resultobj = 0;
10823 wxRegion *arg1 = (wxRegion *) 0 ;
10824 int arg2 ;
10825 int arg3 ;
10826 bool result;
10827 void *argp1 = 0 ;
10828 int res1 = 0 ;
10829 int val2 ;
10830 int ecode2 = 0 ;
10831 int val3 ;
10832 int ecode3 = 0 ;
10833 PyObject * obj0 = 0 ;
10834 PyObject * obj1 = 0 ;
10835 PyObject * obj2 = 0 ;
10836 char * kwnames[] = {
10837 (char *) "self",(char *) "x",(char *) "y", NULL
10838 };
10839
10840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10844 }
10845 arg1 = reinterpret_cast< wxRegion * >(argp1);
10846 ecode2 = SWIG_AsVal_int(obj1, &val2);
10847 if (!SWIG_IsOK(ecode2)) {
10848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10849 }
10850 arg2 = static_cast< int >(val2);
10851 ecode3 = SWIG_AsVal_int(obj2, &val3);
10852 if (!SWIG_IsOK(ecode3)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10854 }
10855 arg3 = static_cast< int >(val3);
10856 {
10857 PyThreadState* __tstate = wxPyBeginAllowThreads();
10858 result = (bool)(arg1)->Offset(arg2,arg3);
10859 wxPyEndAllowThreads(__tstate);
10860 if (PyErr_Occurred()) SWIG_fail;
10861 }
10862 {
10863 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10864 }
10865 return resultobj;
10866 fail:
10867 return NULL;
10868 }
10869
10870
10871 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10872 PyObject *resultobj = 0;
10873 wxRegion *arg1 = (wxRegion *) 0 ;
10874 int arg2 ;
10875 int arg3 ;
10876 wxRegionContain result;
10877 void *argp1 = 0 ;
10878 int res1 = 0 ;
10879 int val2 ;
10880 int ecode2 = 0 ;
10881 int val3 ;
10882 int ecode3 = 0 ;
10883 PyObject * obj0 = 0 ;
10884 PyObject * obj1 = 0 ;
10885 PyObject * obj2 = 0 ;
10886 char * kwnames[] = {
10887 (char *) "self",(char *) "x",(char *) "y", NULL
10888 };
10889
10890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10892 if (!SWIG_IsOK(res1)) {
10893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10894 }
10895 arg1 = reinterpret_cast< wxRegion * >(argp1);
10896 ecode2 = SWIG_AsVal_int(obj1, &val2);
10897 if (!SWIG_IsOK(ecode2)) {
10898 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10899 }
10900 arg2 = static_cast< int >(val2);
10901 ecode3 = SWIG_AsVal_int(obj2, &val3);
10902 if (!SWIG_IsOK(ecode3)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10904 }
10905 arg3 = static_cast< int >(val3);
10906 {
10907 PyThreadState* __tstate = wxPyBeginAllowThreads();
10908 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10909 wxPyEndAllowThreads(__tstate);
10910 if (PyErr_Occurred()) SWIG_fail;
10911 }
10912 resultobj = SWIG_From_int(static_cast< int >(result));
10913 return resultobj;
10914 fail:
10915 return NULL;
10916 }
10917
10918
10919 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10920 PyObject *resultobj = 0;
10921 wxRegion *arg1 = (wxRegion *) 0 ;
10922 wxPoint *arg2 = 0 ;
10923 wxRegionContain result;
10924 void *argp1 = 0 ;
10925 int res1 = 0 ;
10926 wxPoint temp2 ;
10927 PyObject * obj0 = 0 ;
10928 PyObject * obj1 = 0 ;
10929 char * kwnames[] = {
10930 (char *) "self",(char *) "pt", NULL
10931 };
10932
10933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10935 if (!SWIG_IsOK(res1)) {
10936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10937 }
10938 arg1 = reinterpret_cast< wxRegion * >(argp1);
10939 {
10940 arg2 = &temp2;
10941 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10942 }
10943 {
10944 PyThreadState* __tstate = wxPyBeginAllowThreads();
10945 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10946 wxPyEndAllowThreads(__tstate);
10947 if (PyErr_Occurred()) SWIG_fail;
10948 }
10949 resultobj = SWIG_From_int(static_cast< int >(result));
10950 return resultobj;
10951 fail:
10952 return NULL;
10953 }
10954
10955
10956 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10957 PyObject *resultobj = 0;
10958 wxRegion *arg1 = (wxRegion *) 0 ;
10959 wxRect *arg2 = 0 ;
10960 wxRegionContain result;
10961 void *argp1 = 0 ;
10962 int res1 = 0 ;
10963 wxRect temp2 ;
10964 PyObject * obj0 = 0 ;
10965 PyObject * obj1 = 0 ;
10966 char * kwnames[] = {
10967 (char *) "self",(char *) "rect", NULL
10968 };
10969
10970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10972 if (!SWIG_IsOK(res1)) {
10973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10974 }
10975 arg1 = reinterpret_cast< wxRegion * >(argp1);
10976 {
10977 arg2 = &temp2;
10978 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10979 }
10980 {
10981 PyThreadState* __tstate = wxPyBeginAllowThreads();
10982 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10983 wxPyEndAllowThreads(__tstate);
10984 if (PyErr_Occurred()) SWIG_fail;
10985 }
10986 resultobj = SWIG_From_int(static_cast< int >(result));
10987 return resultobj;
10988 fail:
10989 return NULL;
10990 }
10991
10992
10993 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10994 PyObject *resultobj = 0;
10995 wxRegion *arg1 = (wxRegion *) 0 ;
10996 int arg2 ;
10997 int arg3 ;
10998 int arg4 ;
10999 int arg5 ;
11000 wxRegionContain result;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 int val2 ;
11004 int ecode2 = 0 ;
11005 int val3 ;
11006 int ecode3 = 0 ;
11007 int val4 ;
11008 int ecode4 = 0 ;
11009 int val5 ;
11010 int ecode5 = 0 ;
11011 PyObject * obj0 = 0 ;
11012 PyObject * obj1 = 0 ;
11013 PyObject * obj2 = 0 ;
11014 PyObject * obj3 = 0 ;
11015 PyObject * obj4 = 0 ;
11016 char * kwnames[] = {
11017 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11018 };
11019
11020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11022 if (!SWIG_IsOK(res1)) {
11023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11024 }
11025 arg1 = reinterpret_cast< wxRegion * >(argp1);
11026 ecode2 = SWIG_AsVal_int(obj1, &val2);
11027 if (!SWIG_IsOK(ecode2)) {
11028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11029 }
11030 arg2 = static_cast< int >(val2);
11031 ecode3 = SWIG_AsVal_int(obj2, &val3);
11032 if (!SWIG_IsOK(ecode3)) {
11033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11034 }
11035 arg3 = static_cast< int >(val3);
11036 ecode4 = SWIG_AsVal_int(obj3, &val4);
11037 if (!SWIG_IsOK(ecode4)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11039 }
11040 arg4 = static_cast< int >(val4);
11041 ecode5 = SWIG_AsVal_int(obj4, &val5);
11042 if (!SWIG_IsOK(ecode5)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11044 }
11045 arg5 = static_cast< int >(val5);
11046 {
11047 PyThreadState* __tstate = wxPyBeginAllowThreads();
11048 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11049 wxPyEndAllowThreads(__tstate);
11050 if (PyErr_Occurred()) SWIG_fail;
11051 }
11052 resultobj = SWIG_From_int(static_cast< int >(result));
11053 return resultobj;
11054 fail:
11055 return NULL;
11056 }
11057
11058
11059 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11060 PyObject *resultobj = 0;
11061 wxRegion *arg1 = (wxRegion *) 0 ;
11062 wxRect result;
11063 void *argp1 = 0 ;
11064 int res1 = 0 ;
11065 PyObject *swig_obj[1] ;
11066
11067 if (!args) SWIG_fail;
11068 swig_obj[0] = args;
11069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11070 if (!SWIG_IsOK(res1)) {
11071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11072 }
11073 arg1 = reinterpret_cast< wxRegion * >(argp1);
11074 {
11075 PyThreadState* __tstate = wxPyBeginAllowThreads();
11076 result = (arg1)->GetBox();
11077 wxPyEndAllowThreads(__tstate);
11078 if (PyErr_Occurred()) SWIG_fail;
11079 }
11080 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11081 return resultobj;
11082 fail:
11083 return NULL;
11084 }
11085
11086
11087 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11088 PyObject *resultobj = 0;
11089 wxRegion *arg1 = (wxRegion *) 0 ;
11090 int arg2 ;
11091 int arg3 ;
11092 int arg4 ;
11093 int arg5 ;
11094 bool result;
11095 void *argp1 = 0 ;
11096 int res1 = 0 ;
11097 int val2 ;
11098 int ecode2 = 0 ;
11099 int val3 ;
11100 int ecode3 = 0 ;
11101 int val4 ;
11102 int ecode4 = 0 ;
11103 int val5 ;
11104 int ecode5 = 0 ;
11105 PyObject * obj0 = 0 ;
11106 PyObject * obj1 = 0 ;
11107 PyObject * obj2 = 0 ;
11108 PyObject * obj3 = 0 ;
11109 PyObject * obj4 = 0 ;
11110 char * kwnames[] = {
11111 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11112 };
11113
11114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11116 if (!SWIG_IsOK(res1)) {
11117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11118 }
11119 arg1 = reinterpret_cast< wxRegion * >(argp1);
11120 ecode2 = SWIG_AsVal_int(obj1, &val2);
11121 if (!SWIG_IsOK(ecode2)) {
11122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11123 }
11124 arg2 = static_cast< int >(val2);
11125 ecode3 = SWIG_AsVal_int(obj2, &val3);
11126 if (!SWIG_IsOK(ecode3)) {
11127 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11128 }
11129 arg3 = static_cast< int >(val3);
11130 ecode4 = SWIG_AsVal_int(obj3, &val4);
11131 if (!SWIG_IsOK(ecode4)) {
11132 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11133 }
11134 arg4 = static_cast< int >(val4);
11135 ecode5 = SWIG_AsVal_int(obj4, &val5);
11136 if (!SWIG_IsOK(ecode5)) {
11137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11138 }
11139 arg5 = static_cast< int >(val5);
11140 {
11141 PyThreadState* __tstate = wxPyBeginAllowThreads();
11142 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11143 wxPyEndAllowThreads(__tstate);
11144 if (PyErr_Occurred()) SWIG_fail;
11145 }
11146 {
11147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11148 }
11149 return resultobj;
11150 fail:
11151 return NULL;
11152 }
11153
11154
11155 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11156 PyObject *resultobj = 0;
11157 wxRegion *arg1 = (wxRegion *) 0 ;
11158 wxRect *arg2 = 0 ;
11159 bool result;
11160 void *argp1 = 0 ;
11161 int res1 = 0 ;
11162 wxRect temp2 ;
11163 PyObject * obj0 = 0 ;
11164 PyObject * obj1 = 0 ;
11165 char * kwnames[] = {
11166 (char *) "self",(char *) "rect", NULL
11167 };
11168
11169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11171 if (!SWIG_IsOK(res1)) {
11172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11173 }
11174 arg1 = reinterpret_cast< wxRegion * >(argp1);
11175 {
11176 arg2 = &temp2;
11177 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11178 }
11179 {
11180 PyThreadState* __tstate = wxPyBeginAllowThreads();
11181 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11182 wxPyEndAllowThreads(__tstate);
11183 if (PyErr_Occurred()) SWIG_fail;
11184 }
11185 {
11186 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11187 }
11188 return resultobj;
11189 fail:
11190 return NULL;
11191 }
11192
11193
11194 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11195 PyObject *resultobj = 0;
11196 wxRegion *arg1 = (wxRegion *) 0 ;
11197 wxRegion *arg2 = 0 ;
11198 bool result;
11199 void *argp1 = 0 ;
11200 int res1 = 0 ;
11201 void *argp2 = 0 ;
11202 int res2 = 0 ;
11203 PyObject * obj0 = 0 ;
11204 PyObject * obj1 = 0 ;
11205 char * kwnames[] = {
11206 (char *) "self",(char *) "region", NULL
11207 };
11208
11209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11211 if (!SWIG_IsOK(res1)) {
11212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11213 }
11214 arg1 = reinterpret_cast< wxRegion * >(argp1);
11215 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11216 if (!SWIG_IsOK(res2)) {
11217 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11218 }
11219 if (!argp2) {
11220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11221 }
11222 arg2 = reinterpret_cast< wxRegion * >(argp2);
11223 {
11224 PyThreadState* __tstate = wxPyBeginAllowThreads();
11225 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11226 wxPyEndAllowThreads(__tstate);
11227 if (PyErr_Occurred()) SWIG_fail;
11228 }
11229 {
11230 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11231 }
11232 return resultobj;
11233 fail:
11234 return NULL;
11235 }
11236
11237
11238 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11239 PyObject *resultobj = 0;
11240 wxRegion *arg1 = (wxRegion *) 0 ;
11241 bool result;
11242 void *argp1 = 0 ;
11243 int res1 = 0 ;
11244 PyObject *swig_obj[1] ;
11245
11246 if (!args) SWIG_fail;
11247 swig_obj[0] = args;
11248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11249 if (!SWIG_IsOK(res1)) {
11250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11251 }
11252 arg1 = reinterpret_cast< wxRegion * >(argp1);
11253 {
11254 PyThreadState* __tstate = wxPyBeginAllowThreads();
11255 result = (bool)(arg1)->IsEmpty();
11256 wxPyEndAllowThreads(__tstate);
11257 if (PyErr_Occurred()) SWIG_fail;
11258 }
11259 {
11260 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11261 }
11262 return resultobj;
11263 fail:
11264 return NULL;
11265 }
11266
11267
11268 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11269 PyObject *resultobj = 0;
11270 wxRegion *arg1 = (wxRegion *) 0 ;
11271 wxRegion *arg2 = 0 ;
11272 bool result;
11273 void *argp1 = 0 ;
11274 int res1 = 0 ;
11275 void *argp2 = 0 ;
11276 int res2 = 0 ;
11277 PyObject * obj0 = 0 ;
11278 PyObject * obj1 = 0 ;
11279 char * kwnames[] = {
11280 (char *) "self",(char *) "region", NULL
11281 };
11282
11283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11285 if (!SWIG_IsOK(res1)) {
11286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11287 }
11288 arg1 = reinterpret_cast< wxRegion * >(argp1);
11289 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11290 if (!SWIG_IsOK(res2)) {
11291 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11292 }
11293 if (!argp2) {
11294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11295 }
11296 arg2 = reinterpret_cast< wxRegion * >(argp2);
11297 {
11298 PyThreadState* __tstate = wxPyBeginAllowThreads();
11299 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11300 wxPyEndAllowThreads(__tstate);
11301 if (PyErr_Occurred()) SWIG_fail;
11302 }
11303 {
11304 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11305 }
11306 return resultobj;
11307 fail:
11308 return NULL;
11309 }
11310
11311
11312 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11313 PyObject *resultobj = 0;
11314 wxRegion *arg1 = (wxRegion *) 0 ;
11315 int arg2 ;
11316 int arg3 ;
11317 int arg4 ;
11318 int arg5 ;
11319 bool result;
11320 void *argp1 = 0 ;
11321 int res1 = 0 ;
11322 int val2 ;
11323 int ecode2 = 0 ;
11324 int val3 ;
11325 int ecode3 = 0 ;
11326 int val4 ;
11327 int ecode4 = 0 ;
11328 int val5 ;
11329 int ecode5 = 0 ;
11330 PyObject * obj0 = 0 ;
11331 PyObject * obj1 = 0 ;
11332 PyObject * obj2 = 0 ;
11333 PyObject * obj3 = 0 ;
11334 PyObject * obj4 = 0 ;
11335 char * kwnames[] = {
11336 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11337 };
11338
11339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11341 if (!SWIG_IsOK(res1)) {
11342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11343 }
11344 arg1 = reinterpret_cast< wxRegion * >(argp1);
11345 ecode2 = SWIG_AsVal_int(obj1, &val2);
11346 if (!SWIG_IsOK(ecode2)) {
11347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11348 }
11349 arg2 = static_cast< int >(val2);
11350 ecode3 = SWIG_AsVal_int(obj2, &val3);
11351 if (!SWIG_IsOK(ecode3)) {
11352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11353 }
11354 arg3 = static_cast< int >(val3);
11355 ecode4 = SWIG_AsVal_int(obj3, &val4);
11356 if (!SWIG_IsOK(ecode4)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11358 }
11359 arg4 = static_cast< int >(val4);
11360 ecode5 = SWIG_AsVal_int(obj4, &val5);
11361 if (!SWIG_IsOK(ecode5)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11363 }
11364 arg5 = static_cast< int >(val5);
11365 {
11366 PyThreadState* __tstate = wxPyBeginAllowThreads();
11367 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11368 wxPyEndAllowThreads(__tstate);
11369 if (PyErr_Occurred()) SWIG_fail;
11370 }
11371 {
11372 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11373 }
11374 return resultobj;
11375 fail:
11376 return NULL;
11377 }
11378
11379
11380 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11381 PyObject *resultobj = 0;
11382 wxRegion *arg1 = (wxRegion *) 0 ;
11383 wxRect *arg2 = 0 ;
11384 bool result;
11385 void *argp1 = 0 ;
11386 int res1 = 0 ;
11387 wxRect temp2 ;
11388 PyObject * obj0 = 0 ;
11389 PyObject * obj1 = 0 ;
11390 char * kwnames[] = {
11391 (char *) "self",(char *) "rect", NULL
11392 };
11393
11394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11396 if (!SWIG_IsOK(res1)) {
11397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11398 }
11399 arg1 = reinterpret_cast< wxRegion * >(argp1);
11400 {
11401 arg2 = &temp2;
11402 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11403 }
11404 {
11405 PyThreadState* __tstate = wxPyBeginAllowThreads();
11406 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11407 wxPyEndAllowThreads(__tstate);
11408 if (PyErr_Occurred()) SWIG_fail;
11409 }
11410 {
11411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11412 }
11413 return resultobj;
11414 fail:
11415 return NULL;
11416 }
11417
11418
11419 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11420 PyObject *resultobj = 0;
11421 wxRegion *arg1 = (wxRegion *) 0 ;
11422 wxRegion *arg2 = 0 ;
11423 bool result;
11424 void *argp1 = 0 ;
11425 int res1 = 0 ;
11426 void *argp2 = 0 ;
11427 int res2 = 0 ;
11428 PyObject * obj0 = 0 ;
11429 PyObject * obj1 = 0 ;
11430 char * kwnames[] = {
11431 (char *) "self",(char *) "region", NULL
11432 };
11433
11434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11436 if (!SWIG_IsOK(res1)) {
11437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11438 }
11439 arg1 = reinterpret_cast< wxRegion * >(argp1);
11440 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11441 if (!SWIG_IsOK(res2)) {
11442 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11443 }
11444 if (!argp2) {
11445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11446 }
11447 arg2 = reinterpret_cast< wxRegion * >(argp2);
11448 {
11449 PyThreadState* __tstate = wxPyBeginAllowThreads();
11450 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11451 wxPyEndAllowThreads(__tstate);
11452 if (PyErr_Occurred()) SWIG_fail;
11453 }
11454 {
11455 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11456 }
11457 return resultobj;
11458 fail:
11459 return NULL;
11460 }
11461
11462
11463 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11464 PyObject *resultobj = 0;
11465 wxRegion *arg1 = (wxRegion *) 0 ;
11466 int arg2 ;
11467 int arg3 ;
11468 int arg4 ;
11469 int arg5 ;
11470 bool result;
11471 void *argp1 = 0 ;
11472 int res1 = 0 ;
11473 int val2 ;
11474 int ecode2 = 0 ;
11475 int val3 ;
11476 int ecode3 = 0 ;
11477 int val4 ;
11478 int ecode4 = 0 ;
11479 int val5 ;
11480 int ecode5 = 0 ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 PyObject * obj2 = 0 ;
11484 PyObject * obj3 = 0 ;
11485 PyObject * obj4 = 0 ;
11486 char * kwnames[] = {
11487 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11488 };
11489
11490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11492 if (!SWIG_IsOK(res1)) {
11493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11494 }
11495 arg1 = reinterpret_cast< wxRegion * >(argp1);
11496 ecode2 = SWIG_AsVal_int(obj1, &val2);
11497 if (!SWIG_IsOK(ecode2)) {
11498 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11499 }
11500 arg2 = static_cast< int >(val2);
11501 ecode3 = SWIG_AsVal_int(obj2, &val3);
11502 if (!SWIG_IsOK(ecode3)) {
11503 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11504 }
11505 arg3 = static_cast< int >(val3);
11506 ecode4 = SWIG_AsVal_int(obj3, &val4);
11507 if (!SWIG_IsOK(ecode4)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11509 }
11510 arg4 = static_cast< int >(val4);
11511 ecode5 = SWIG_AsVal_int(obj4, &val5);
11512 if (!SWIG_IsOK(ecode5)) {
11513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11514 }
11515 arg5 = static_cast< int >(val5);
11516 {
11517 PyThreadState* __tstate = wxPyBeginAllowThreads();
11518 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11519 wxPyEndAllowThreads(__tstate);
11520 if (PyErr_Occurred()) SWIG_fail;
11521 }
11522 {
11523 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11524 }
11525 return resultobj;
11526 fail:
11527 return NULL;
11528 }
11529
11530
11531 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11532 PyObject *resultobj = 0;
11533 wxRegion *arg1 = (wxRegion *) 0 ;
11534 wxRect *arg2 = 0 ;
11535 bool result;
11536 void *argp1 = 0 ;
11537 int res1 = 0 ;
11538 wxRect temp2 ;
11539 PyObject * obj0 = 0 ;
11540 PyObject * obj1 = 0 ;
11541 char * kwnames[] = {
11542 (char *) "self",(char *) "rect", NULL
11543 };
11544
11545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11547 if (!SWIG_IsOK(res1)) {
11548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11549 }
11550 arg1 = reinterpret_cast< wxRegion * >(argp1);
11551 {
11552 arg2 = &temp2;
11553 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11554 }
11555 {
11556 PyThreadState* __tstate = wxPyBeginAllowThreads();
11557 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11558 wxPyEndAllowThreads(__tstate);
11559 if (PyErr_Occurred()) SWIG_fail;
11560 }
11561 {
11562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11563 }
11564 return resultobj;
11565 fail:
11566 return NULL;
11567 }
11568
11569
11570 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11571 PyObject *resultobj = 0;
11572 wxRegion *arg1 = (wxRegion *) 0 ;
11573 wxRegion *arg2 = 0 ;
11574 bool result;
11575 void *argp1 = 0 ;
11576 int res1 = 0 ;
11577 void *argp2 = 0 ;
11578 int res2 = 0 ;
11579 PyObject * obj0 = 0 ;
11580 PyObject * obj1 = 0 ;
11581 char * kwnames[] = {
11582 (char *) "self",(char *) "region", NULL
11583 };
11584
11585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11587 if (!SWIG_IsOK(res1)) {
11588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11589 }
11590 arg1 = reinterpret_cast< wxRegion * >(argp1);
11591 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11592 if (!SWIG_IsOK(res2)) {
11593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11594 }
11595 if (!argp2) {
11596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11597 }
11598 arg2 = reinterpret_cast< wxRegion * >(argp2);
11599 {
11600 PyThreadState* __tstate = wxPyBeginAllowThreads();
11601 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11602 wxPyEndAllowThreads(__tstate);
11603 if (PyErr_Occurred()) SWIG_fail;
11604 }
11605 {
11606 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11607 }
11608 return resultobj;
11609 fail:
11610 return NULL;
11611 }
11612
11613
11614 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11615 PyObject *resultobj = 0;
11616 wxRegion *arg1 = (wxRegion *) 0 ;
11617 int arg2 ;
11618 int arg3 ;
11619 int arg4 ;
11620 int arg5 ;
11621 bool result;
11622 void *argp1 = 0 ;
11623 int res1 = 0 ;
11624 int val2 ;
11625 int ecode2 = 0 ;
11626 int val3 ;
11627 int ecode3 = 0 ;
11628 int val4 ;
11629 int ecode4 = 0 ;
11630 int val5 ;
11631 int ecode5 = 0 ;
11632 PyObject * obj0 = 0 ;
11633 PyObject * obj1 = 0 ;
11634 PyObject * obj2 = 0 ;
11635 PyObject * obj3 = 0 ;
11636 PyObject * obj4 = 0 ;
11637 char * kwnames[] = {
11638 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11639 };
11640
11641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11643 if (!SWIG_IsOK(res1)) {
11644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11645 }
11646 arg1 = reinterpret_cast< wxRegion * >(argp1);
11647 ecode2 = SWIG_AsVal_int(obj1, &val2);
11648 if (!SWIG_IsOK(ecode2)) {
11649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11650 }
11651 arg2 = static_cast< int >(val2);
11652 ecode3 = SWIG_AsVal_int(obj2, &val3);
11653 if (!SWIG_IsOK(ecode3)) {
11654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11655 }
11656 arg3 = static_cast< int >(val3);
11657 ecode4 = SWIG_AsVal_int(obj3, &val4);
11658 if (!SWIG_IsOK(ecode4)) {
11659 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11660 }
11661 arg4 = static_cast< int >(val4);
11662 ecode5 = SWIG_AsVal_int(obj4, &val5);
11663 if (!SWIG_IsOK(ecode5)) {
11664 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11665 }
11666 arg5 = static_cast< int >(val5);
11667 {
11668 PyThreadState* __tstate = wxPyBeginAllowThreads();
11669 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11670 wxPyEndAllowThreads(__tstate);
11671 if (PyErr_Occurred()) SWIG_fail;
11672 }
11673 {
11674 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11675 }
11676 return resultobj;
11677 fail:
11678 return NULL;
11679 }
11680
11681
11682 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11683 PyObject *resultobj = 0;
11684 wxRegion *arg1 = (wxRegion *) 0 ;
11685 wxRect *arg2 = 0 ;
11686 bool result;
11687 void *argp1 = 0 ;
11688 int res1 = 0 ;
11689 wxRect temp2 ;
11690 PyObject * obj0 = 0 ;
11691 PyObject * obj1 = 0 ;
11692 char * kwnames[] = {
11693 (char *) "self",(char *) "rect", NULL
11694 };
11695
11696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11698 if (!SWIG_IsOK(res1)) {
11699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11700 }
11701 arg1 = reinterpret_cast< wxRegion * >(argp1);
11702 {
11703 arg2 = &temp2;
11704 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11705 }
11706 {
11707 PyThreadState* __tstate = wxPyBeginAllowThreads();
11708 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11709 wxPyEndAllowThreads(__tstate);
11710 if (PyErr_Occurred()) SWIG_fail;
11711 }
11712 {
11713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11714 }
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11722 PyObject *resultobj = 0;
11723 wxRegion *arg1 = (wxRegion *) 0 ;
11724 wxRegion *arg2 = 0 ;
11725 bool result;
11726 void *argp1 = 0 ;
11727 int res1 = 0 ;
11728 void *argp2 = 0 ;
11729 int res2 = 0 ;
11730 PyObject * obj0 = 0 ;
11731 PyObject * obj1 = 0 ;
11732 char * kwnames[] = {
11733 (char *) "self",(char *) "region", NULL
11734 };
11735
11736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11738 if (!SWIG_IsOK(res1)) {
11739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11740 }
11741 arg1 = reinterpret_cast< wxRegion * >(argp1);
11742 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11743 if (!SWIG_IsOK(res2)) {
11744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11745 }
11746 if (!argp2) {
11747 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11748 }
11749 arg2 = reinterpret_cast< wxRegion * >(argp2);
11750 {
11751 PyThreadState* __tstate = wxPyBeginAllowThreads();
11752 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11753 wxPyEndAllowThreads(__tstate);
11754 if (PyErr_Occurred()) SWIG_fail;
11755 }
11756 {
11757 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11758 }
11759 return resultobj;
11760 fail:
11761 return NULL;
11762 }
11763
11764
11765 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11766 PyObject *resultobj = 0;
11767 wxRegion *arg1 = (wxRegion *) 0 ;
11768 SwigValueWrapper<wxBitmap > result;
11769 void *argp1 = 0 ;
11770 int res1 = 0 ;
11771 PyObject *swig_obj[1] ;
11772
11773 if (!args) SWIG_fail;
11774 swig_obj[0] = args;
11775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11776 if (!SWIG_IsOK(res1)) {
11777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11778 }
11779 arg1 = reinterpret_cast< wxRegion * >(argp1);
11780 {
11781 PyThreadState* __tstate = wxPyBeginAllowThreads();
11782 result = (arg1)->ConvertToBitmap();
11783 wxPyEndAllowThreads(__tstate);
11784 if (PyErr_Occurred()) SWIG_fail;
11785 }
11786 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11787 return resultobj;
11788 fail:
11789 return NULL;
11790 }
11791
11792
11793 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11794 PyObject *resultobj = 0;
11795 wxRegion *arg1 = (wxRegion *) 0 ;
11796 wxBitmap *arg2 = 0 ;
11797 bool result;
11798 void *argp1 = 0 ;
11799 int res1 = 0 ;
11800 void *argp2 = 0 ;
11801 int res2 = 0 ;
11802 PyObject * obj0 = 0 ;
11803 PyObject * obj1 = 0 ;
11804 char * kwnames[] = {
11805 (char *) "self",(char *) "bmp", NULL
11806 };
11807
11808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11810 if (!SWIG_IsOK(res1)) {
11811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11812 }
11813 arg1 = reinterpret_cast< wxRegion * >(argp1);
11814 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11815 if (!SWIG_IsOK(res2)) {
11816 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11817 }
11818 if (!argp2) {
11819 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11820 }
11821 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11822 {
11823 PyThreadState* __tstate = wxPyBeginAllowThreads();
11824 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 {
11829 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11830 }
11831 return resultobj;
11832 fail:
11833 return NULL;
11834 }
11835
11836
11837 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11838 PyObject *resultobj = 0;
11839 wxRegion *arg1 = (wxRegion *) 0 ;
11840 wxBitmap *arg2 = 0 ;
11841 wxColour *arg3 = 0 ;
11842 int arg4 = (int) 0 ;
11843 bool result;
11844 void *argp1 = 0 ;
11845 int res1 = 0 ;
11846 void *argp2 = 0 ;
11847 int res2 = 0 ;
11848 wxColour temp3 ;
11849 int val4 ;
11850 int ecode4 = 0 ;
11851 PyObject * obj0 = 0 ;
11852 PyObject * obj1 = 0 ;
11853 PyObject * obj2 = 0 ;
11854 PyObject * obj3 = 0 ;
11855 char * kwnames[] = {
11856 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11857 };
11858
11859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11861 if (!SWIG_IsOK(res1)) {
11862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11863 }
11864 arg1 = reinterpret_cast< wxRegion * >(argp1);
11865 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11866 if (!SWIG_IsOK(res2)) {
11867 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11868 }
11869 if (!argp2) {
11870 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11871 }
11872 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11873 {
11874 arg3 = &temp3;
11875 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11876 }
11877 if (obj3) {
11878 ecode4 = SWIG_AsVal_int(obj3, &val4);
11879 if (!SWIG_IsOK(ecode4)) {
11880 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11881 }
11882 arg4 = static_cast< int >(val4);
11883 }
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 {
11891 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11892 }
11893 return resultobj;
11894 fail:
11895 return NULL;
11896 }
11897
11898
11899 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11900 PyObject *obj;
11901 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11902 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11903 return SWIG_Py_Void();
11904 }
11905
11906 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11907 return SWIG_Python_InitShadowInstance(args);
11908 }
11909
11910 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11911 PyObject *resultobj = 0;
11912 wxRegion *arg1 = 0 ;
11913 wxRegionIterator *result = 0 ;
11914 void *argp1 = 0 ;
11915 int res1 = 0 ;
11916 PyObject * obj0 = 0 ;
11917 char * kwnames[] = {
11918 (char *) "region", NULL
11919 };
11920
11921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11922 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11923 if (!SWIG_IsOK(res1)) {
11924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11925 }
11926 if (!argp1) {
11927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11928 }
11929 arg1 = reinterpret_cast< wxRegion * >(argp1);
11930 {
11931 if (!wxPyCheckForApp()) SWIG_fail;
11932 PyThreadState* __tstate = wxPyBeginAllowThreads();
11933 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11934 wxPyEndAllowThreads(__tstate);
11935 if (PyErr_Occurred()) SWIG_fail;
11936 }
11937 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11938 return resultobj;
11939 fail:
11940 return NULL;
11941 }
11942
11943
11944 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11945 PyObject *resultobj = 0;
11946 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11947 void *argp1 = 0 ;
11948 int res1 = 0 ;
11949 PyObject *swig_obj[1] ;
11950
11951 if (!args) SWIG_fail;
11952 swig_obj[0] = args;
11953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11954 if (!SWIG_IsOK(res1)) {
11955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11956 }
11957 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11958 {
11959 PyThreadState* __tstate = wxPyBeginAllowThreads();
11960 delete arg1;
11961
11962 wxPyEndAllowThreads(__tstate);
11963 if (PyErr_Occurred()) SWIG_fail;
11964 }
11965 resultobj = SWIG_Py_Void();
11966 return resultobj;
11967 fail:
11968 return NULL;
11969 }
11970
11971
11972 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11973 PyObject *resultobj = 0;
11974 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11975 int result;
11976 void *argp1 = 0 ;
11977 int res1 = 0 ;
11978 PyObject *swig_obj[1] ;
11979
11980 if (!args) SWIG_fail;
11981 swig_obj[0] = args;
11982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11983 if (!SWIG_IsOK(res1)) {
11984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11985 }
11986 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11987 {
11988 PyThreadState* __tstate = wxPyBeginAllowThreads();
11989 result = (int)(arg1)->GetX();
11990 wxPyEndAllowThreads(__tstate);
11991 if (PyErr_Occurred()) SWIG_fail;
11992 }
11993 resultobj = SWIG_From_int(static_cast< int >(result));
11994 return resultobj;
11995 fail:
11996 return NULL;
11997 }
11998
11999
12000 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12001 PyObject *resultobj = 0;
12002 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12003 int result;
12004 void *argp1 = 0 ;
12005 int res1 = 0 ;
12006 PyObject *swig_obj[1] ;
12007
12008 if (!args) SWIG_fail;
12009 swig_obj[0] = args;
12010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12013 }
12014 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12015 {
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (int)(arg1)->GetY();
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 resultobj = SWIG_From_int(static_cast< int >(result));
12022 return resultobj;
12023 fail:
12024 return NULL;
12025 }
12026
12027
12028 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12029 PyObject *resultobj = 0;
12030 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12031 int result;
12032 void *argp1 = 0 ;
12033 int res1 = 0 ;
12034 PyObject *swig_obj[1] ;
12035
12036 if (!args) SWIG_fail;
12037 swig_obj[0] = args;
12038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12039 if (!SWIG_IsOK(res1)) {
12040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12041 }
12042 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12043 {
12044 PyThreadState* __tstate = wxPyBeginAllowThreads();
12045 result = (int)(arg1)->GetW();
12046 wxPyEndAllowThreads(__tstate);
12047 if (PyErr_Occurred()) SWIG_fail;
12048 }
12049 resultobj = SWIG_From_int(static_cast< int >(result));
12050 return resultobj;
12051 fail:
12052 return NULL;
12053 }
12054
12055
12056 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12057 PyObject *resultobj = 0;
12058 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12059 int result;
12060 void *argp1 = 0 ;
12061 int res1 = 0 ;
12062 PyObject *swig_obj[1] ;
12063
12064 if (!args) SWIG_fail;
12065 swig_obj[0] = args;
12066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12067 if (!SWIG_IsOK(res1)) {
12068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12069 }
12070 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12071 {
12072 PyThreadState* __tstate = wxPyBeginAllowThreads();
12073 result = (int)(arg1)->GetWidth();
12074 wxPyEndAllowThreads(__tstate);
12075 if (PyErr_Occurred()) SWIG_fail;
12076 }
12077 resultobj = SWIG_From_int(static_cast< int >(result));
12078 return resultobj;
12079 fail:
12080 return NULL;
12081 }
12082
12083
12084 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12085 PyObject *resultobj = 0;
12086 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12087 int result;
12088 void *argp1 = 0 ;
12089 int res1 = 0 ;
12090 PyObject *swig_obj[1] ;
12091
12092 if (!args) SWIG_fail;
12093 swig_obj[0] = args;
12094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12095 if (!SWIG_IsOK(res1)) {
12096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12097 }
12098 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12099 {
12100 PyThreadState* __tstate = wxPyBeginAllowThreads();
12101 result = (int)(arg1)->GetH();
12102 wxPyEndAllowThreads(__tstate);
12103 if (PyErr_Occurred()) SWIG_fail;
12104 }
12105 resultobj = SWIG_From_int(static_cast< int >(result));
12106 return resultobj;
12107 fail:
12108 return NULL;
12109 }
12110
12111
12112 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12113 PyObject *resultobj = 0;
12114 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12115 int result;
12116 void *argp1 = 0 ;
12117 int res1 = 0 ;
12118 PyObject *swig_obj[1] ;
12119
12120 if (!args) SWIG_fail;
12121 swig_obj[0] = args;
12122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12123 if (!SWIG_IsOK(res1)) {
12124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12125 }
12126 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12127 {
12128 PyThreadState* __tstate = wxPyBeginAllowThreads();
12129 result = (int)(arg1)->GetHeight();
12130 wxPyEndAllowThreads(__tstate);
12131 if (PyErr_Occurred()) SWIG_fail;
12132 }
12133 resultobj = SWIG_From_int(static_cast< int >(result));
12134 return resultobj;
12135 fail:
12136 return NULL;
12137 }
12138
12139
12140 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12141 PyObject *resultobj = 0;
12142 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12143 wxRect result;
12144 void *argp1 = 0 ;
12145 int res1 = 0 ;
12146 PyObject *swig_obj[1] ;
12147
12148 if (!args) SWIG_fail;
12149 swig_obj[0] = args;
12150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12151 if (!SWIG_IsOK(res1)) {
12152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12153 }
12154 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12155 {
12156 PyThreadState* __tstate = wxPyBeginAllowThreads();
12157 result = (arg1)->GetRect();
12158 wxPyEndAllowThreads(__tstate);
12159 if (PyErr_Occurred()) SWIG_fail;
12160 }
12161 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12162 return resultobj;
12163 fail:
12164 return NULL;
12165 }
12166
12167
12168 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12169 PyObject *resultobj = 0;
12170 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12171 bool result;
12172 void *argp1 = 0 ;
12173 int res1 = 0 ;
12174 PyObject *swig_obj[1] ;
12175
12176 if (!args) SWIG_fail;
12177 swig_obj[0] = args;
12178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12179 if (!SWIG_IsOK(res1)) {
12180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12181 }
12182 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12183 {
12184 PyThreadState* __tstate = wxPyBeginAllowThreads();
12185 result = (bool)(arg1)->HaveRects();
12186 wxPyEndAllowThreads(__tstate);
12187 if (PyErr_Occurred()) SWIG_fail;
12188 }
12189 {
12190 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12191 }
12192 return resultobj;
12193 fail:
12194 return NULL;
12195 }
12196
12197
12198 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12199 PyObject *resultobj = 0;
12200 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12201 void *argp1 = 0 ;
12202 int res1 = 0 ;
12203 PyObject *swig_obj[1] ;
12204
12205 if (!args) SWIG_fail;
12206 swig_obj[0] = args;
12207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12208 if (!SWIG_IsOK(res1)) {
12209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12210 }
12211 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12212 {
12213 PyThreadState* __tstate = wxPyBeginAllowThreads();
12214 (arg1)->Reset();
12215 wxPyEndAllowThreads(__tstate);
12216 if (PyErr_Occurred()) SWIG_fail;
12217 }
12218 resultobj = SWIG_Py_Void();
12219 return resultobj;
12220 fail:
12221 return NULL;
12222 }
12223
12224
12225 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12226 PyObject *resultobj = 0;
12227 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12228 void *argp1 = 0 ;
12229 int res1 = 0 ;
12230 PyObject *swig_obj[1] ;
12231
12232 if (!args) SWIG_fail;
12233 swig_obj[0] = args;
12234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12235 if (!SWIG_IsOK(res1)) {
12236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12237 }
12238 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12239 {
12240 PyThreadState* __tstate = wxPyBeginAllowThreads();
12241 wxRegionIterator_Next(arg1);
12242 wxPyEndAllowThreads(__tstate);
12243 if (PyErr_Occurred()) SWIG_fail;
12244 }
12245 resultobj = SWIG_Py_Void();
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12253 PyObject *resultobj = 0;
12254 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12255 bool result;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 PyObject *swig_obj[1] ;
12259
12260 if (!args) SWIG_fail;
12261 swig_obj[0] = args;
12262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12263 if (!SWIG_IsOK(res1)) {
12264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12265 }
12266 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12267 {
12268 PyThreadState* __tstate = wxPyBeginAllowThreads();
12269 result = (bool)wxRegionIterator___nonzero__(arg1);
12270 wxPyEndAllowThreads(__tstate);
12271 if (PyErr_Occurred()) SWIG_fail;
12272 }
12273 {
12274 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12275 }
12276 return resultobj;
12277 fail:
12278 return NULL;
12279 }
12280
12281
12282 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12283 PyObject *obj;
12284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12285 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12286 return SWIG_Py_Void();
12287 }
12288
12289 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12290 return SWIG_Python_InitShadowInstance(args);
12291 }
12292
12293 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12294 PyObject *resultobj = 0;
12295 wxNativeFontInfo *result = 0 ;
12296
12297 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12298 {
12299 PyThreadState* __tstate = wxPyBeginAllowThreads();
12300 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12301 wxPyEndAllowThreads(__tstate);
12302 if (PyErr_Occurred()) SWIG_fail;
12303 }
12304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12305 return resultobj;
12306 fail:
12307 return NULL;
12308 }
12309
12310
12311 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12312 PyObject *resultobj = 0;
12313 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12314 void *argp1 = 0 ;
12315 int res1 = 0 ;
12316 PyObject *swig_obj[1] ;
12317
12318 if (!args) SWIG_fail;
12319 swig_obj[0] = args;
12320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12321 if (!SWIG_IsOK(res1)) {
12322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12323 }
12324 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12325 {
12326 PyThreadState* __tstate = wxPyBeginAllowThreads();
12327 delete arg1;
12328
12329 wxPyEndAllowThreads(__tstate);
12330 if (PyErr_Occurred()) SWIG_fail;
12331 }
12332 resultobj = SWIG_Py_Void();
12333 return resultobj;
12334 fail:
12335 return NULL;
12336 }
12337
12338
12339 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12340 PyObject *resultobj = 0;
12341 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12342 void *argp1 = 0 ;
12343 int res1 = 0 ;
12344 PyObject *swig_obj[1] ;
12345
12346 if (!args) SWIG_fail;
12347 swig_obj[0] = args;
12348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12349 if (!SWIG_IsOK(res1)) {
12350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12351 }
12352 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12353 {
12354 PyThreadState* __tstate = wxPyBeginAllowThreads();
12355 (arg1)->Init();
12356 wxPyEndAllowThreads(__tstate);
12357 if (PyErr_Occurred()) SWIG_fail;
12358 }
12359 resultobj = SWIG_Py_Void();
12360 return resultobj;
12361 fail:
12362 return NULL;
12363 }
12364
12365
12366 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12367 PyObject *resultobj = 0;
12368 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12369 wxFont *arg2 = 0 ;
12370 void *argp1 = 0 ;
12371 int res1 = 0 ;
12372 void *argp2 = 0 ;
12373 int res2 = 0 ;
12374 PyObject * obj0 = 0 ;
12375 PyObject * obj1 = 0 ;
12376 char * kwnames[] = {
12377 (char *) "self",(char *) "font", NULL
12378 };
12379
12380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12382 if (!SWIG_IsOK(res1)) {
12383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12384 }
12385 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12387 if (!SWIG_IsOK(res2)) {
12388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12389 }
12390 if (!argp2) {
12391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12392 }
12393 arg2 = reinterpret_cast< wxFont * >(argp2);
12394 {
12395 PyThreadState* __tstate = wxPyBeginAllowThreads();
12396 (arg1)->InitFromFont((wxFont const &)*arg2);
12397 wxPyEndAllowThreads(__tstate);
12398 if (PyErr_Occurred()) SWIG_fail;
12399 }
12400 resultobj = SWIG_Py_Void();
12401 return resultobj;
12402 fail:
12403 return NULL;
12404 }
12405
12406
12407 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12408 PyObject *resultobj = 0;
12409 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12410 int result;
12411 void *argp1 = 0 ;
12412 int res1 = 0 ;
12413 PyObject *swig_obj[1] ;
12414
12415 if (!args) SWIG_fail;
12416 swig_obj[0] = args;
12417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12418 if (!SWIG_IsOK(res1)) {
12419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12420 }
12421 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12422 {
12423 PyThreadState* __tstate = wxPyBeginAllowThreads();
12424 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12425 wxPyEndAllowThreads(__tstate);
12426 if (PyErr_Occurred()) SWIG_fail;
12427 }
12428 resultobj = SWIG_From_int(static_cast< int >(result));
12429 return resultobj;
12430 fail:
12431 return NULL;
12432 }
12433
12434
12435 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12436 PyObject *resultobj = 0;
12437 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12438 wxSize result;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 PyObject *swig_obj[1] ;
12442
12443 if (!args) SWIG_fail;
12444 swig_obj[0] = args;
12445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12446 if (!SWIG_IsOK(res1)) {
12447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12448 }
12449 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12457 return resultobj;
12458 fail:
12459 return NULL;
12460 }
12461
12462
12463 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12464 PyObject *resultobj = 0;
12465 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12466 wxFontStyle result;
12467 void *argp1 = 0 ;
12468 int res1 = 0 ;
12469 PyObject *swig_obj[1] ;
12470
12471 if (!args) SWIG_fail;
12472 swig_obj[0] = args;
12473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12474 if (!SWIG_IsOK(res1)) {
12475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12476 }
12477 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12478 {
12479 PyThreadState* __tstate = wxPyBeginAllowThreads();
12480 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12481 wxPyEndAllowThreads(__tstate);
12482 if (PyErr_Occurred()) SWIG_fail;
12483 }
12484 resultobj = SWIG_From_int(static_cast< int >(result));
12485 return resultobj;
12486 fail:
12487 return NULL;
12488 }
12489
12490
12491 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12492 PyObject *resultobj = 0;
12493 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12494 wxFontWeight result;
12495 void *argp1 = 0 ;
12496 int res1 = 0 ;
12497 PyObject *swig_obj[1] ;
12498
12499 if (!args) SWIG_fail;
12500 swig_obj[0] = args;
12501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12502 if (!SWIG_IsOK(res1)) {
12503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12504 }
12505 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12506 {
12507 PyThreadState* __tstate = wxPyBeginAllowThreads();
12508 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12509 wxPyEndAllowThreads(__tstate);
12510 if (PyErr_Occurred()) SWIG_fail;
12511 }
12512 resultobj = SWIG_From_int(static_cast< int >(result));
12513 return resultobj;
12514 fail:
12515 return NULL;
12516 }
12517
12518
12519 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12520 PyObject *resultobj = 0;
12521 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12522 bool result;
12523 void *argp1 = 0 ;
12524 int res1 = 0 ;
12525 PyObject *swig_obj[1] ;
12526
12527 if (!args) SWIG_fail;
12528 swig_obj[0] = args;
12529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12530 if (!SWIG_IsOK(res1)) {
12531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12532 }
12533 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12534 {
12535 PyThreadState* __tstate = wxPyBeginAllowThreads();
12536 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12537 wxPyEndAllowThreads(__tstate);
12538 if (PyErr_Occurred()) SWIG_fail;
12539 }
12540 {
12541 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12542 }
12543 return resultobj;
12544 fail:
12545 return NULL;
12546 }
12547
12548
12549 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12550 PyObject *resultobj = 0;
12551 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12552 wxString result;
12553 void *argp1 = 0 ;
12554 int res1 = 0 ;
12555 PyObject *swig_obj[1] ;
12556
12557 if (!args) SWIG_fail;
12558 swig_obj[0] = args;
12559 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12560 if (!SWIG_IsOK(res1)) {
12561 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12562 }
12563 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 {
12571 #if wxUSE_UNICODE
12572 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12573 #else
12574 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12575 #endif
12576 }
12577 return resultobj;
12578 fail:
12579 return NULL;
12580 }
12581
12582
12583 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12584 PyObject *resultobj = 0;
12585 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12586 wxFontFamily result;
12587 void *argp1 = 0 ;
12588 int res1 = 0 ;
12589 PyObject *swig_obj[1] ;
12590
12591 if (!args) SWIG_fail;
12592 swig_obj[0] = args;
12593 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12594 if (!SWIG_IsOK(res1)) {
12595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12596 }
12597 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12598 {
12599 PyThreadState* __tstate = wxPyBeginAllowThreads();
12600 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12601 wxPyEndAllowThreads(__tstate);
12602 if (PyErr_Occurred()) SWIG_fail;
12603 }
12604 resultobj = SWIG_From_int(static_cast< int >(result));
12605 return resultobj;
12606 fail:
12607 return NULL;
12608 }
12609
12610
12611 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12612 PyObject *resultobj = 0;
12613 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12614 wxFontEncoding result;
12615 void *argp1 = 0 ;
12616 int res1 = 0 ;
12617 PyObject *swig_obj[1] ;
12618
12619 if (!args) SWIG_fail;
12620 swig_obj[0] = args;
12621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12622 if (!SWIG_IsOK(res1)) {
12623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12624 }
12625 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12626 {
12627 PyThreadState* __tstate = wxPyBeginAllowThreads();
12628 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12629 wxPyEndAllowThreads(__tstate);
12630 if (PyErr_Occurred()) SWIG_fail;
12631 }
12632 resultobj = SWIG_From_int(static_cast< int >(result));
12633 return resultobj;
12634 fail:
12635 return NULL;
12636 }
12637
12638
12639 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12640 PyObject *resultobj = 0;
12641 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12642 int arg2 ;
12643 void *argp1 = 0 ;
12644 int res1 = 0 ;
12645 int val2 ;
12646 int ecode2 = 0 ;
12647 PyObject * obj0 = 0 ;
12648 PyObject * obj1 = 0 ;
12649 char * kwnames[] = {
12650 (char *) "self",(char *) "pointsize", NULL
12651 };
12652
12653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12655 if (!SWIG_IsOK(res1)) {
12656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12657 }
12658 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12659 ecode2 = SWIG_AsVal_int(obj1, &val2);
12660 if (!SWIG_IsOK(ecode2)) {
12661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12662 }
12663 arg2 = static_cast< int >(val2);
12664 {
12665 PyThreadState* __tstate = wxPyBeginAllowThreads();
12666 (arg1)->SetPointSize(arg2);
12667 wxPyEndAllowThreads(__tstate);
12668 if (PyErr_Occurred()) SWIG_fail;
12669 }
12670 resultobj = SWIG_Py_Void();
12671 return resultobj;
12672 fail:
12673 return NULL;
12674 }
12675
12676
12677 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12678 PyObject *resultobj = 0;
12679 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12680 wxSize *arg2 = 0 ;
12681 void *argp1 = 0 ;
12682 int res1 = 0 ;
12683 wxSize temp2 ;
12684 PyObject * obj0 = 0 ;
12685 PyObject * obj1 = 0 ;
12686 char * kwnames[] = {
12687 (char *) "self",(char *) "pixelSize", NULL
12688 };
12689
12690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12692 if (!SWIG_IsOK(res1)) {
12693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12694 }
12695 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12696 {
12697 arg2 = &temp2;
12698 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12699 }
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 (arg1)->SetPixelSize((wxSize const &)*arg2);
12703 wxPyEndAllowThreads(__tstate);
12704 if (PyErr_Occurred()) SWIG_fail;
12705 }
12706 resultobj = SWIG_Py_Void();
12707 return resultobj;
12708 fail:
12709 return NULL;
12710 }
12711
12712
12713 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12714 PyObject *resultobj = 0;
12715 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12716 wxFontStyle arg2 ;
12717 void *argp1 = 0 ;
12718 int res1 = 0 ;
12719 int val2 ;
12720 int ecode2 = 0 ;
12721 PyObject * obj0 = 0 ;
12722 PyObject * obj1 = 0 ;
12723 char * kwnames[] = {
12724 (char *) "self",(char *) "style", NULL
12725 };
12726
12727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12729 if (!SWIG_IsOK(res1)) {
12730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12731 }
12732 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12733 ecode2 = SWIG_AsVal_int(obj1, &val2);
12734 if (!SWIG_IsOK(ecode2)) {
12735 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12736 }
12737 arg2 = static_cast< wxFontStyle >(val2);
12738 {
12739 PyThreadState* __tstate = wxPyBeginAllowThreads();
12740 (arg1)->SetStyle(arg2);
12741 wxPyEndAllowThreads(__tstate);
12742 if (PyErr_Occurred()) SWIG_fail;
12743 }
12744 resultobj = SWIG_Py_Void();
12745 return resultobj;
12746 fail:
12747 return NULL;
12748 }
12749
12750
12751 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12752 PyObject *resultobj = 0;
12753 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12754 wxFontWeight arg2 ;
12755 void *argp1 = 0 ;
12756 int res1 = 0 ;
12757 int val2 ;
12758 int ecode2 = 0 ;
12759 PyObject * obj0 = 0 ;
12760 PyObject * obj1 = 0 ;
12761 char * kwnames[] = {
12762 (char *) "self",(char *) "weight", NULL
12763 };
12764
12765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12767 if (!SWIG_IsOK(res1)) {
12768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12769 }
12770 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12771 ecode2 = SWIG_AsVal_int(obj1, &val2);
12772 if (!SWIG_IsOK(ecode2)) {
12773 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12774 }
12775 arg2 = static_cast< wxFontWeight >(val2);
12776 {
12777 PyThreadState* __tstate = wxPyBeginAllowThreads();
12778 (arg1)->SetWeight(arg2);
12779 wxPyEndAllowThreads(__tstate);
12780 if (PyErr_Occurred()) SWIG_fail;
12781 }
12782 resultobj = SWIG_Py_Void();
12783 return resultobj;
12784 fail:
12785 return NULL;
12786 }
12787
12788
12789 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12790 PyObject *resultobj = 0;
12791 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12792 bool arg2 ;
12793 void *argp1 = 0 ;
12794 int res1 = 0 ;
12795 bool val2 ;
12796 int ecode2 = 0 ;
12797 PyObject * obj0 = 0 ;
12798 PyObject * obj1 = 0 ;
12799 char * kwnames[] = {
12800 (char *) "self",(char *) "underlined", NULL
12801 };
12802
12803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12805 if (!SWIG_IsOK(res1)) {
12806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12807 }
12808 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12809 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12810 if (!SWIG_IsOK(ecode2)) {
12811 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12812 }
12813 arg2 = static_cast< bool >(val2);
12814 {
12815 PyThreadState* __tstate = wxPyBeginAllowThreads();
12816 (arg1)->SetUnderlined(arg2);
12817 wxPyEndAllowThreads(__tstate);
12818 if (PyErr_Occurred()) SWIG_fail;
12819 }
12820 resultobj = SWIG_Py_Void();
12821 return resultobj;
12822 fail:
12823 return NULL;
12824 }
12825
12826
12827 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12828 PyObject *resultobj = 0;
12829 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12830 wxString arg2 ;
12831 bool result;
12832 void *argp1 = 0 ;
12833 int res1 = 0 ;
12834 PyObject * obj0 = 0 ;
12835 PyObject * obj1 = 0 ;
12836 char * kwnames[] = {
12837 (char *) "self",(char *) "facename", NULL
12838 };
12839
12840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12842 if (!SWIG_IsOK(res1)) {
12843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12844 }
12845 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12846 {
12847 wxString* sptr = wxString_in_helper(obj1);
12848 if (sptr == NULL) SWIG_fail;
12849 arg2 = *sptr;
12850 delete sptr;
12851 }
12852 {
12853 PyThreadState* __tstate = wxPyBeginAllowThreads();
12854 result = (bool)(arg1)->SetFaceName(arg2);
12855 wxPyEndAllowThreads(__tstate);
12856 if (PyErr_Occurred()) SWIG_fail;
12857 }
12858 {
12859 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12860 }
12861 return resultobj;
12862 fail:
12863 return NULL;
12864 }
12865
12866
12867 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12868 PyObject *resultobj = 0;
12869 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12870 wxFontFamily arg2 ;
12871 void *argp1 = 0 ;
12872 int res1 = 0 ;
12873 int val2 ;
12874 int ecode2 = 0 ;
12875 PyObject * obj0 = 0 ;
12876 PyObject * obj1 = 0 ;
12877 char * kwnames[] = {
12878 (char *) "self",(char *) "family", NULL
12879 };
12880
12881 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12882 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12883 if (!SWIG_IsOK(res1)) {
12884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12885 }
12886 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12887 ecode2 = SWIG_AsVal_int(obj1, &val2);
12888 if (!SWIG_IsOK(ecode2)) {
12889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12890 }
12891 arg2 = static_cast< wxFontFamily >(val2);
12892 {
12893 PyThreadState* __tstate = wxPyBeginAllowThreads();
12894 (arg1)->SetFamily(arg2);
12895 wxPyEndAllowThreads(__tstate);
12896 if (PyErr_Occurred()) SWIG_fail;
12897 }
12898 resultobj = SWIG_Py_Void();
12899 return resultobj;
12900 fail:
12901 return NULL;
12902 }
12903
12904
12905 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12906 PyObject *resultobj = 0;
12907 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12908 wxFontEncoding arg2 ;
12909 void *argp1 = 0 ;
12910 int res1 = 0 ;
12911 int val2 ;
12912 int ecode2 = 0 ;
12913 PyObject * obj0 = 0 ;
12914 PyObject * obj1 = 0 ;
12915 char * kwnames[] = {
12916 (char *) "self",(char *) "encoding", NULL
12917 };
12918
12919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12921 if (!SWIG_IsOK(res1)) {
12922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12923 }
12924 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12925 ecode2 = SWIG_AsVal_int(obj1, &val2);
12926 if (!SWIG_IsOK(ecode2)) {
12927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12928 }
12929 arg2 = static_cast< wxFontEncoding >(val2);
12930 {
12931 PyThreadState* __tstate = wxPyBeginAllowThreads();
12932 (arg1)->SetEncoding(arg2);
12933 wxPyEndAllowThreads(__tstate);
12934 if (PyErr_Occurred()) SWIG_fail;
12935 }
12936 resultobj = SWIG_Py_Void();
12937 return resultobj;
12938 fail:
12939 return NULL;
12940 }
12941
12942
12943 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj = 0;
12945 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12946 wxString *arg2 = 0 ;
12947 bool result;
12948 void *argp1 = 0 ;
12949 int res1 = 0 ;
12950 bool temp2 = false ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 char * kwnames[] = {
12954 (char *) "self",(char *) "s", NULL
12955 };
12956
12957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12959 if (!SWIG_IsOK(res1)) {
12960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12961 }
12962 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12963 {
12964 arg2 = wxString_in_helper(obj1);
12965 if (arg2 == NULL) SWIG_fail;
12966 temp2 = true;
12967 }
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 {
12975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12976 }
12977 {
12978 if (temp2)
12979 delete arg2;
12980 }
12981 return resultobj;
12982 fail:
12983 {
12984 if (temp2)
12985 delete arg2;
12986 }
12987 return NULL;
12988 }
12989
12990
12991 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12992 PyObject *resultobj = 0;
12993 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12994 wxString result;
12995 void *argp1 = 0 ;
12996 int res1 = 0 ;
12997 PyObject *swig_obj[1] ;
12998
12999 if (!args) SWIG_fail;
13000 swig_obj[0] = args;
13001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13002 if (!SWIG_IsOK(res1)) {
13003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13004 }
13005 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 result = ((wxNativeFontInfo const *)arg1)->ToString();
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 {
13013 #if wxUSE_UNICODE
13014 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13015 #else
13016 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13017 #endif
13018 }
13019 return resultobj;
13020 fail:
13021 return NULL;
13022 }
13023
13024
13025 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13026 PyObject *resultobj = 0;
13027 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13028 wxString result;
13029 void *argp1 = 0 ;
13030 int res1 = 0 ;
13031 PyObject *swig_obj[1] ;
13032
13033 if (!args) SWIG_fail;
13034 swig_obj[0] = args;
13035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13036 if (!SWIG_IsOK(res1)) {
13037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13038 }
13039 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13040 {
13041 PyThreadState* __tstate = wxPyBeginAllowThreads();
13042 result = wxNativeFontInfo___str__(arg1);
13043 wxPyEndAllowThreads(__tstate);
13044 if (PyErr_Occurred()) SWIG_fail;
13045 }
13046 {
13047 #if wxUSE_UNICODE
13048 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13049 #else
13050 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13051 #endif
13052 }
13053 return resultobj;
13054 fail:
13055 return NULL;
13056 }
13057
13058
13059 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13060 PyObject *resultobj = 0;
13061 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13062 wxString *arg2 = 0 ;
13063 bool result;
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 *) "s", NULL
13071 };
13072
13073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13077 }
13078 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13079 {
13080 arg2 = wxString_in_helper(obj1);
13081 if (arg2 == NULL) SWIG_fail;
13082 temp2 = true;
13083 }
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 {
13091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13092 }
13093 {
13094 if (temp2)
13095 delete arg2;
13096 }
13097 return resultobj;
13098 fail:
13099 {
13100 if (temp2)
13101 delete arg2;
13102 }
13103 return NULL;
13104 }
13105
13106
13107 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13108 PyObject *resultobj = 0;
13109 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13110 wxString result;
13111 void *argp1 = 0 ;
13112 int res1 = 0 ;
13113 PyObject *swig_obj[1] ;
13114
13115 if (!args) SWIG_fail;
13116 swig_obj[0] = args;
13117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13118 if (!SWIG_IsOK(res1)) {
13119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13120 }
13121 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13122 {
13123 PyThreadState* __tstate = wxPyBeginAllowThreads();
13124 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13125 wxPyEndAllowThreads(__tstate);
13126 if (PyErr_Occurred()) SWIG_fail;
13127 }
13128 {
13129 #if wxUSE_UNICODE
13130 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13131 #else
13132 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13133 #endif
13134 }
13135 return resultobj;
13136 fail:
13137 return NULL;
13138 }
13139
13140
13141 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13142 PyObject *obj;
13143 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13144 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13145 return SWIG_Py_Void();
13146 }
13147
13148 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13149 return SWIG_Python_InitShadowInstance(args);
13150 }
13151
13152 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13153 PyObject *resultobj = 0;
13154 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13155 wxString *arg2 = (wxString *) 0 ;
13156 void *argp1 = 0 ;
13157 int res1 = 0 ;
13158 bool temp2 = false ;
13159 PyObject *swig_obj[2] ;
13160
13161 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13163 if (!SWIG_IsOK(res1)) {
13164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13165 }
13166 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13167 {
13168 arg2 = wxString_in_helper(swig_obj[1]);
13169 if (arg2 == NULL) SWIG_fail;
13170 temp2 = true;
13171 }
13172 if (arg1) (arg1)->facename = *arg2;
13173
13174 resultobj = SWIG_Py_Void();
13175 {
13176 if (temp2)
13177 delete arg2;
13178 }
13179 return resultobj;
13180 fail:
13181 {
13182 if (temp2)
13183 delete arg2;
13184 }
13185 return NULL;
13186 }
13187
13188
13189 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13190 PyObject *resultobj = 0;
13191 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13192 wxString *result = 0 ;
13193 void *argp1 = 0 ;
13194 int res1 = 0 ;
13195 PyObject *swig_obj[1] ;
13196
13197 if (!args) SWIG_fail;
13198 swig_obj[0] = args;
13199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13200 if (!SWIG_IsOK(res1)) {
13201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13202 }
13203 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13204 result = (wxString *)& ((arg1)->facename);
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_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13219 PyObject *resultobj = 0;
13220 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13221 wxFontEncoding arg2 ;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 int val2 ;
13225 int ecode2 = 0 ;
13226 PyObject *swig_obj[2] ;
13227
13228 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13230 if (!SWIG_IsOK(res1)) {
13231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13232 }
13233 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13234 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13235 if (!SWIG_IsOK(ecode2)) {
13236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13237 }
13238 arg2 = static_cast< wxFontEncoding >(val2);
13239 if (arg1) (arg1)->encoding = arg2;
13240
13241 resultobj = SWIG_Py_Void();
13242 return resultobj;
13243 fail:
13244 return NULL;
13245 }
13246
13247
13248 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13249 PyObject *resultobj = 0;
13250 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13251 wxFontEncoding result;
13252 void *argp1 = 0 ;
13253 int res1 = 0 ;
13254 PyObject *swig_obj[1] ;
13255
13256 if (!args) SWIG_fail;
13257 swig_obj[0] = args;
13258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13259 if (!SWIG_IsOK(res1)) {
13260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13261 }
13262 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13263 result = (wxFontEncoding) ((arg1)->encoding);
13264 resultobj = SWIG_From_int(static_cast< int >(result));
13265 return resultobj;
13266 fail:
13267 return NULL;
13268 }
13269
13270
13271 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13272 PyObject *resultobj = 0;
13273 wxNativeEncodingInfo *result = 0 ;
13274
13275 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13276 {
13277 PyThreadState* __tstate = wxPyBeginAllowThreads();
13278 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13279 wxPyEndAllowThreads(__tstate);
13280 if (PyErr_Occurred()) SWIG_fail;
13281 }
13282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13283 return resultobj;
13284 fail:
13285 return NULL;
13286 }
13287
13288
13289 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13290 PyObject *resultobj = 0;
13291 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13292 void *argp1 = 0 ;
13293 int res1 = 0 ;
13294 PyObject *swig_obj[1] ;
13295
13296 if (!args) SWIG_fail;
13297 swig_obj[0] = args;
13298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13299 if (!SWIG_IsOK(res1)) {
13300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13301 }
13302 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13303 {
13304 PyThreadState* __tstate = wxPyBeginAllowThreads();
13305 delete arg1;
13306
13307 wxPyEndAllowThreads(__tstate);
13308 if (PyErr_Occurred()) SWIG_fail;
13309 }
13310 resultobj = SWIG_Py_Void();
13311 return resultobj;
13312 fail:
13313 return NULL;
13314 }
13315
13316
13317 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13318 PyObject *resultobj = 0;
13319 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13320 wxString *arg2 = 0 ;
13321 bool result;
13322 void *argp1 = 0 ;
13323 int res1 = 0 ;
13324 bool temp2 = false ;
13325 PyObject * obj0 = 0 ;
13326 PyObject * obj1 = 0 ;
13327 char * kwnames[] = {
13328 (char *) "self",(char *) "s", NULL
13329 };
13330
13331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13333 if (!SWIG_IsOK(res1)) {
13334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13335 }
13336 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13337 {
13338 arg2 = wxString_in_helper(obj1);
13339 if (arg2 == NULL) SWIG_fail;
13340 temp2 = true;
13341 }
13342 {
13343 PyThreadState* __tstate = wxPyBeginAllowThreads();
13344 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13345 wxPyEndAllowThreads(__tstate);
13346 if (PyErr_Occurred()) SWIG_fail;
13347 }
13348 {
13349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13350 }
13351 {
13352 if (temp2)
13353 delete arg2;
13354 }
13355 return resultobj;
13356 fail:
13357 {
13358 if (temp2)
13359 delete arg2;
13360 }
13361 return NULL;
13362 }
13363
13364
13365 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13366 PyObject *resultobj = 0;
13367 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13368 wxString result;
13369 void *argp1 = 0 ;
13370 int res1 = 0 ;
13371 PyObject *swig_obj[1] ;
13372
13373 if (!args) SWIG_fail;
13374 swig_obj[0] = args;
13375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13376 if (!SWIG_IsOK(res1)) {
13377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13378 }
13379 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13380 {
13381 PyThreadState* __tstate = wxPyBeginAllowThreads();
13382 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13383 wxPyEndAllowThreads(__tstate);
13384 if (PyErr_Occurred()) SWIG_fail;
13385 }
13386 {
13387 #if wxUSE_UNICODE
13388 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13389 #else
13390 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13391 #endif
13392 }
13393 return resultobj;
13394 fail:
13395 return NULL;
13396 }
13397
13398
13399 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13400 PyObject *obj;
13401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13402 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13403 return SWIG_Py_Void();
13404 }
13405
13406 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13407 return SWIG_Python_InitShadowInstance(args);
13408 }
13409
13410 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13411 PyObject *resultobj = 0;
13412 wxFontEncoding arg1 ;
13413 wxNativeEncodingInfo *result = 0 ;
13414 int val1 ;
13415 int ecode1 = 0 ;
13416 PyObject * obj0 = 0 ;
13417 char * kwnames[] = {
13418 (char *) "encoding", NULL
13419 };
13420
13421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13422 ecode1 = SWIG_AsVal_int(obj0, &val1);
13423 if (!SWIG_IsOK(ecode1)) {
13424 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13425 }
13426 arg1 = static_cast< wxFontEncoding >(val1);
13427 {
13428 PyThreadState* __tstate = wxPyBeginAllowThreads();
13429 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj = 0;
13442 wxNativeEncodingInfo *arg1 = 0 ;
13443 bool result;
13444 void *argp1 = 0 ;
13445 int res1 = 0 ;
13446 PyObject * obj0 = 0 ;
13447 char * kwnames[] = {
13448 (char *) "info", NULL
13449 };
13450
13451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13452 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13453 if (!SWIG_IsOK(res1)) {
13454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13455 }
13456 if (!argp1) {
13457 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13458 }
13459 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13468 }
13469 return resultobj;
13470 fail:
13471 return NULL;
13472 }
13473
13474
13475 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13476 PyObject *resultobj = 0;
13477 wxFontMapper *result = 0 ;
13478
13479 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (wxFontMapper *)new wxFontMapper();
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13494 PyObject *resultobj = 0;
13495 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13496 void *argp1 = 0 ;
13497 int res1 = 0 ;
13498 PyObject *swig_obj[1] ;
13499
13500 if (!args) SWIG_fail;
13501 swig_obj[0] = args;
13502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13503 if (!SWIG_IsOK(res1)) {
13504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13505 }
13506 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13507 {
13508 PyThreadState* __tstate = wxPyBeginAllowThreads();
13509 delete arg1;
13510
13511 wxPyEndAllowThreads(__tstate);
13512 if (PyErr_Occurred()) SWIG_fail;
13513 }
13514 resultobj = SWIG_Py_Void();
13515 return resultobj;
13516 fail:
13517 return NULL;
13518 }
13519
13520
13521 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13522 PyObject *resultobj = 0;
13523 wxFontMapper *result = 0 ;
13524
13525 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13526 {
13527 PyThreadState* __tstate = wxPyBeginAllowThreads();
13528 result = (wxFontMapper *)wxFontMapper::Get();
13529 wxPyEndAllowThreads(__tstate);
13530 if (PyErr_Occurred()) SWIG_fail;
13531 }
13532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13533 return resultobj;
13534 fail:
13535 return NULL;
13536 }
13537
13538
13539 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13540 PyObject *resultobj = 0;
13541 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13542 wxFontMapper *result = 0 ;
13543 void *argp1 = 0 ;
13544 int res1 = 0 ;
13545 PyObject * obj0 = 0 ;
13546 char * kwnames[] = {
13547 (char *) "mapper", NULL
13548 };
13549
13550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13554 }
13555 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13563 return resultobj;
13564 fail:
13565 return NULL;
13566 }
13567
13568
13569 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13570 PyObject *resultobj = 0;
13571 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13572 wxString *arg2 = 0 ;
13573 bool arg3 = (bool) true ;
13574 wxFontEncoding result;
13575 void *argp1 = 0 ;
13576 int res1 = 0 ;
13577 bool temp2 = false ;
13578 bool val3 ;
13579 int ecode3 = 0 ;
13580 PyObject * obj0 = 0 ;
13581 PyObject * obj1 = 0 ;
13582 PyObject * obj2 = 0 ;
13583 char * kwnames[] = {
13584 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13585 };
13586
13587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13591 }
13592 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13593 {
13594 arg2 = wxString_in_helper(obj1);
13595 if (arg2 == NULL) SWIG_fail;
13596 temp2 = true;
13597 }
13598 if (obj2) {
13599 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13600 if (!SWIG_IsOK(ecode3)) {
13601 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13602 }
13603 arg3 = static_cast< bool >(val3);
13604 }
13605 {
13606 PyThreadState* __tstate = wxPyBeginAllowThreads();
13607 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13608 wxPyEndAllowThreads(__tstate);
13609 if (PyErr_Occurred()) SWIG_fail;
13610 }
13611 resultobj = SWIG_From_int(static_cast< int >(result));
13612 {
13613 if (temp2)
13614 delete arg2;
13615 }
13616 return resultobj;
13617 fail:
13618 {
13619 if (temp2)
13620 delete arg2;
13621 }
13622 return NULL;
13623 }
13624
13625
13626 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13627 PyObject *resultobj = 0;
13628 size_t result;
13629
13630 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13631 {
13632 PyThreadState* __tstate = wxPyBeginAllowThreads();
13633 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13634 wxPyEndAllowThreads(__tstate);
13635 if (PyErr_Occurred()) SWIG_fail;
13636 }
13637 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13638 return resultobj;
13639 fail:
13640 return NULL;
13641 }
13642
13643
13644 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13645 PyObject *resultobj = 0;
13646 size_t arg1 ;
13647 wxFontEncoding result;
13648 size_t val1 ;
13649 int ecode1 = 0 ;
13650 PyObject * obj0 = 0 ;
13651 char * kwnames[] = {
13652 (char *) "n", NULL
13653 };
13654
13655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13656 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13657 if (!SWIG_IsOK(ecode1)) {
13658 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13659 }
13660 arg1 = static_cast< size_t >(val1);
13661 {
13662 PyThreadState* __tstate = wxPyBeginAllowThreads();
13663 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13664 wxPyEndAllowThreads(__tstate);
13665 if (PyErr_Occurred()) SWIG_fail;
13666 }
13667 resultobj = SWIG_From_int(static_cast< int >(result));
13668 return resultobj;
13669 fail:
13670 return NULL;
13671 }
13672
13673
13674 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13675 PyObject *resultobj = 0;
13676 wxFontEncoding arg1 ;
13677 wxString result;
13678 int val1 ;
13679 int ecode1 = 0 ;
13680 PyObject * obj0 = 0 ;
13681 char * kwnames[] = {
13682 (char *) "encoding", NULL
13683 };
13684
13685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13686 ecode1 = SWIG_AsVal_int(obj0, &val1);
13687 if (!SWIG_IsOK(ecode1)) {
13688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13689 }
13690 arg1 = static_cast< wxFontEncoding >(val1);
13691 {
13692 PyThreadState* __tstate = wxPyBeginAllowThreads();
13693 result = wxFontMapper::GetEncodingName(arg1);
13694 wxPyEndAllowThreads(__tstate);
13695 if (PyErr_Occurred()) SWIG_fail;
13696 }
13697 {
13698 #if wxUSE_UNICODE
13699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13700 #else
13701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13702 #endif
13703 }
13704 return resultobj;
13705 fail:
13706 return NULL;
13707 }
13708
13709
13710 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13711 PyObject *resultobj = 0;
13712 wxFontEncoding arg1 ;
13713 wxString result;
13714 int val1 ;
13715 int ecode1 = 0 ;
13716 PyObject * obj0 = 0 ;
13717 char * kwnames[] = {
13718 (char *) "encoding", NULL
13719 };
13720
13721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13722 ecode1 = SWIG_AsVal_int(obj0, &val1);
13723 if (!SWIG_IsOK(ecode1)) {
13724 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13725 }
13726 arg1 = static_cast< wxFontEncoding >(val1);
13727 {
13728 PyThreadState* __tstate = wxPyBeginAllowThreads();
13729 result = wxFontMapper::GetEncodingDescription(arg1);
13730 wxPyEndAllowThreads(__tstate);
13731 if (PyErr_Occurred()) SWIG_fail;
13732 }
13733 {
13734 #if wxUSE_UNICODE
13735 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13736 #else
13737 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13738 #endif
13739 }
13740 return resultobj;
13741 fail:
13742 return NULL;
13743 }
13744
13745
13746 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13747 PyObject *resultobj = 0;
13748 wxString *arg1 = 0 ;
13749 wxFontEncoding result;
13750 bool temp1 = false ;
13751 PyObject * obj0 = 0 ;
13752 char * kwnames[] = {
13753 (char *) "name", NULL
13754 };
13755
13756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13757 {
13758 arg1 = wxString_in_helper(obj0);
13759 if (arg1 == NULL) SWIG_fail;
13760 temp1 = true;
13761 }
13762 {
13763 PyThreadState* __tstate = wxPyBeginAllowThreads();
13764 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13765 wxPyEndAllowThreads(__tstate);
13766 if (PyErr_Occurred()) SWIG_fail;
13767 }
13768 resultobj = SWIG_From_int(static_cast< int >(result));
13769 {
13770 if (temp1)
13771 delete arg1;
13772 }
13773 return resultobj;
13774 fail:
13775 {
13776 if (temp1)
13777 delete arg1;
13778 }
13779 return NULL;
13780 }
13781
13782
13783 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13784 PyObject *resultobj = 0;
13785 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13786 wxString *arg2 = 0 ;
13787 void *argp1 = 0 ;
13788 int res1 = 0 ;
13789 bool temp2 = false ;
13790 PyObject * obj0 = 0 ;
13791 PyObject * obj1 = 0 ;
13792 char * kwnames[] = {
13793 (char *) "self",(char *) "prefix", NULL
13794 };
13795
13796 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13797 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13798 if (!SWIG_IsOK(res1)) {
13799 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13800 }
13801 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13802 {
13803 arg2 = wxString_in_helper(obj1);
13804 if (arg2 == NULL) SWIG_fail;
13805 temp2 = true;
13806 }
13807 {
13808 PyThreadState* __tstate = wxPyBeginAllowThreads();
13809 (arg1)->SetConfigPath((wxString const &)*arg2);
13810 wxPyEndAllowThreads(__tstate);
13811 if (PyErr_Occurred()) SWIG_fail;
13812 }
13813 resultobj = SWIG_Py_Void();
13814 {
13815 if (temp2)
13816 delete arg2;
13817 }
13818 return resultobj;
13819 fail:
13820 {
13821 if (temp2)
13822 delete arg2;
13823 }
13824 return NULL;
13825 }
13826
13827
13828 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13829 PyObject *resultobj = 0;
13830 wxString result;
13831
13832 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13833 {
13834 PyThreadState* __tstate = wxPyBeginAllowThreads();
13835 result = wxFontMapper::GetDefaultConfigPath();
13836 wxPyEndAllowThreads(__tstate);
13837 if (PyErr_Occurred()) SWIG_fail;
13838 }
13839 {
13840 #if wxUSE_UNICODE
13841 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13842 #else
13843 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13844 #endif
13845 }
13846 return resultobj;
13847 fail:
13848 return NULL;
13849 }
13850
13851
13852 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13853 PyObject *resultobj = 0;
13854 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13855 wxFontEncoding arg2 ;
13856 wxString const &arg3_defvalue = wxPyEmptyString ;
13857 wxString *arg3 = (wxString *) &arg3_defvalue ;
13858 bool arg4 = (bool) true ;
13859 PyObject *result = 0 ;
13860 void *argp1 = 0 ;
13861 int res1 = 0 ;
13862 int val2 ;
13863 int ecode2 = 0 ;
13864 bool temp3 = false ;
13865 bool val4 ;
13866 int ecode4 = 0 ;
13867 PyObject * obj0 = 0 ;
13868 PyObject * obj1 = 0 ;
13869 PyObject * obj2 = 0 ;
13870 PyObject * obj3 = 0 ;
13871 char * kwnames[] = {
13872 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13873 };
13874
13875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13877 if (!SWIG_IsOK(res1)) {
13878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13879 }
13880 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13881 ecode2 = SWIG_AsVal_int(obj1, &val2);
13882 if (!SWIG_IsOK(ecode2)) {
13883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13884 }
13885 arg2 = static_cast< wxFontEncoding >(val2);
13886 if (obj2) {
13887 {
13888 arg3 = wxString_in_helper(obj2);
13889 if (arg3 == NULL) SWIG_fail;
13890 temp3 = true;
13891 }
13892 }
13893 if (obj3) {
13894 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13895 if (!SWIG_IsOK(ecode4)) {
13896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13897 }
13898 arg4 = static_cast< bool >(val4);
13899 }
13900 {
13901 PyThreadState* __tstate = wxPyBeginAllowThreads();
13902 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13903 wxPyEndAllowThreads(__tstate);
13904 if (PyErr_Occurred()) SWIG_fail;
13905 }
13906 resultobj = result;
13907 {
13908 if (temp3)
13909 delete arg3;
13910 }
13911 return resultobj;
13912 fail:
13913 {
13914 if (temp3)
13915 delete arg3;
13916 }
13917 return NULL;
13918 }
13919
13920
13921 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13922 PyObject *resultobj = 0;
13923 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13924 wxFontEncoding arg2 ;
13925 wxString const &arg3_defvalue = wxPyEmptyString ;
13926 wxString *arg3 = (wxString *) &arg3_defvalue ;
13927 bool result;
13928 void *argp1 = 0 ;
13929 int res1 = 0 ;
13930 int val2 ;
13931 int ecode2 = 0 ;
13932 bool temp3 = false ;
13933 PyObject * obj0 = 0 ;
13934 PyObject * obj1 = 0 ;
13935 PyObject * obj2 = 0 ;
13936 char * kwnames[] = {
13937 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13938 };
13939
13940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13942 if (!SWIG_IsOK(res1)) {
13943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13944 }
13945 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13946 ecode2 = SWIG_AsVal_int(obj1, &val2);
13947 if (!SWIG_IsOK(ecode2)) {
13948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13949 }
13950 arg2 = static_cast< wxFontEncoding >(val2);
13951 if (obj2) {
13952 {
13953 arg3 = wxString_in_helper(obj2);
13954 if (arg3 == NULL) SWIG_fail;
13955 temp3 = true;
13956 }
13957 }
13958 {
13959 PyThreadState* __tstate = wxPyBeginAllowThreads();
13960 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13961 wxPyEndAllowThreads(__tstate);
13962 if (PyErr_Occurred()) SWIG_fail;
13963 }
13964 {
13965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13966 }
13967 {
13968 if (temp3)
13969 delete arg3;
13970 }
13971 return resultobj;
13972 fail:
13973 {
13974 if (temp3)
13975 delete arg3;
13976 }
13977 return NULL;
13978 }
13979
13980
13981 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13982 PyObject *resultobj = 0;
13983 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13984 wxWindow *arg2 = (wxWindow *) 0 ;
13985 void *argp1 = 0 ;
13986 int res1 = 0 ;
13987 void *argp2 = 0 ;
13988 int res2 = 0 ;
13989 PyObject * obj0 = 0 ;
13990 PyObject * obj1 = 0 ;
13991 char * kwnames[] = {
13992 (char *) "self",(char *) "parent", NULL
13993 };
13994
13995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
13996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13997 if (!SWIG_IsOK(res1)) {
13998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13999 }
14000 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14001 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14002 if (!SWIG_IsOK(res2)) {
14003 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14004 }
14005 arg2 = reinterpret_cast< wxWindow * >(argp2);
14006 {
14007 PyThreadState* __tstate = wxPyBeginAllowThreads();
14008 (arg1)->SetDialogParent(arg2);
14009 wxPyEndAllowThreads(__tstate);
14010 if (PyErr_Occurred()) SWIG_fail;
14011 }
14012 resultobj = SWIG_Py_Void();
14013 return resultobj;
14014 fail:
14015 return NULL;
14016 }
14017
14018
14019 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14020 PyObject *resultobj = 0;
14021 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14022 wxString *arg2 = 0 ;
14023 void *argp1 = 0 ;
14024 int res1 = 0 ;
14025 bool temp2 = false ;
14026 PyObject * obj0 = 0 ;
14027 PyObject * obj1 = 0 ;
14028 char * kwnames[] = {
14029 (char *) "self",(char *) "title", NULL
14030 };
14031
14032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14034 if (!SWIG_IsOK(res1)) {
14035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14036 }
14037 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14038 {
14039 arg2 = wxString_in_helper(obj1);
14040 if (arg2 == NULL) SWIG_fail;
14041 temp2 = true;
14042 }
14043 {
14044 PyThreadState* __tstate = wxPyBeginAllowThreads();
14045 (arg1)->SetDialogTitle((wxString const &)*arg2);
14046 wxPyEndAllowThreads(__tstate);
14047 if (PyErr_Occurred()) SWIG_fail;
14048 }
14049 resultobj = SWIG_Py_Void();
14050 {
14051 if (temp2)
14052 delete arg2;
14053 }
14054 return resultobj;
14055 fail:
14056 {
14057 if (temp2)
14058 delete arg2;
14059 }
14060 return NULL;
14061 }
14062
14063
14064 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14065 PyObject *obj;
14066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14067 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14068 return SWIG_Py_Void();
14069 }
14070
14071 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14072 return SWIG_Python_InitShadowInstance(args);
14073 }
14074
14075 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14076 PyObject *resultobj = 0;
14077 int arg1 ;
14078 int arg2 ;
14079 int arg3 ;
14080 int arg4 ;
14081 bool arg5 = (bool) false ;
14082 wxString const &arg6_defvalue = wxPyEmptyString ;
14083 wxString *arg6 = (wxString *) &arg6_defvalue ;
14084 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14085 wxFont *result = 0 ;
14086 int val1 ;
14087 int ecode1 = 0 ;
14088 int val2 ;
14089 int ecode2 = 0 ;
14090 int val3 ;
14091 int ecode3 = 0 ;
14092 int val4 ;
14093 int ecode4 = 0 ;
14094 bool val5 ;
14095 int ecode5 = 0 ;
14096 bool temp6 = false ;
14097 int val7 ;
14098 int ecode7 = 0 ;
14099 PyObject * obj0 = 0 ;
14100 PyObject * obj1 = 0 ;
14101 PyObject * obj2 = 0 ;
14102 PyObject * obj3 = 0 ;
14103 PyObject * obj4 = 0 ;
14104 PyObject * obj5 = 0 ;
14105 PyObject * obj6 = 0 ;
14106 char * kwnames[] = {
14107 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14108 };
14109
14110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14111 ecode1 = SWIG_AsVal_int(obj0, &val1);
14112 if (!SWIG_IsOK(ecode1)) {
14113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14114 }
14115 arg1 = static_cast< int >(val1);
14116 ecode2 = SWIG_AsVal_int(obj1, &val2);
14117 if (!SWIG_IsOK(ecode2)) {
14118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14119 }
14120 arg2 = static_cast< int >(val2);
14121 ecode3 = SWIG_AsVal_int(obj2, &val3);
14122 if (!SWIG_IsOK(ecode3)) {
14123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14124 }
14125 arg3 = static_cast< int >(val3);
14126 ecode4 = SWIG_AsVal_int(obj3, &val4);
14127 if (!SWIG_IsOK(ecode4)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14129 }
14130 arg4 = static_cast< int >(val4);
14131 if (obj4) {
14132 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14133 if (!SWIG_IsOK(ecode5)) {
14134 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14135 }
14136 arg5 = static_cast< bool >(val5);
14137 }
14138 if (obj5) {
14139 {
14140 arg6 = wxString_in_helper(obj5);
14141 if (arg6 == NULL) SWIG_fail;
14142 temp6 = true;
14143 }
14144 }
14145 if (obj6) {
14146 ecode7 = SWIG_AsVal_int(obj6, &val7);
14147 if (!SWIG_IsOK(ecode7)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14149 }
14150 arg7 = static_cast< wxFontEncoding >(val7);
14151 }
14152 {
14153 if (!wxPyCheckForApp()) SWIG_fail;
14154 PyThreadState* __tstate = wxPyBeginAllowThreads();
14155 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14156 wxPyEndAllowThreads(__tstate);
14157 if (PyErr_Occurred()) SWIG_fail;
14158 }
14159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14160 {
14161 if (temp6)
14162 delete arg6;
14163 }
14164 return resultobj;
14165 fail:
14166 {
14167 if (temp6)
14168 delete arg6;
14169 }
14170 return NULL;
14171 }
14172
14173
14174 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14175 PyObject *resultobj = 0;
14176 wxFont *arg1 = (wxFont *) 0 ;
14177 void *argp1 = 0 ;
14178 int res1 = 0 ;
14179 PyObject *swig_obj[1] ;
14180
14181 if (!args) SWIG_fail;
14182 swig_obj[0] = args;
14183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14184 if (!SWIG_IsOK(res1)) {
14185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14186 }
14187 arg1 = reinterpret_cast< wxFont * >(argp1);
14188 {
14189 PyThreadState* __tstate = wxPyBeginAllowThreads();
14190 delete arg1;
14191
14192 wxPyEndAllowThreads(__tstate);
14193 if (PyErr_Occurred()) SWIG_fail;
14194 }
14195 resultobj = SWIG_Py_Void();
14196 return resultobj;
14197 fail:
14198 return NULL;
14199 }
14200
14201
14202 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14203 PyObject *resultobj = 0;
14204 wxNativeFontInfo *arg1 = 0 ;
14205 wxFont *result = 0 ;
14206 void *argp1 = 0 ;
14207 int res1 = 0 ;
14208 PyObject * obj0 = 0 ;
14209 char * kwnames[] = {
14210 (char *) "info", NULL
14211 };
14212
14213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14214 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14215 if (!SWIG_IsOK(res1)) {
14216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14217 }
14218 if (!argp1) {
14219 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14220 }
14221 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14222 {
14223 if (!wxPyCheckForApp()) SWIG_fail;
14224 PyThreadState* __tstate = wxPyBeginAllowThreads();
14225 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14226 wxPyEndAllowThreads(__tstate);
14227 if (PyErr_Occurred()) SWIG_fail;
14228 }
14229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14230 return resultobj;
14231 fail:
14232 return NULL;
14233 }
14234
14235
14236 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14237 PyObject *resultobj = 0;
14238 wxString *arg1 = 0 ;
14239 wxFont *result = 0 ;
14240 bool temp1 = false ;
14241 PyObject * obj0 = 0 ;
14242 char * kwnames[] = {
14243 (char *) "info", NULL
14244 };
14245
14246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14247 {
14248 arg1 = wxString_in_helper(obj0);
14249 if (arg1 == NULL) SWIG_fail;
14250 temp1 = true;
14251 }
14252 {
14253 if (!wxPyCheckForApp()) SWIG_fail;
14254 PyThreadState* __tstate = wxPyBeginAllowThreads();
14255 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14256 wxPyEndAllowThreads(__tstate);
14257 if (PyErr_Occurred()) SWIG_fail;
14258 }
14259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14260 {
14261 if (temp1)
14262 delete arg1;
14263 }
14264 return resultobj;
14265 fail:
14266 {
14267 if (temp1)
14268 delete arg1;
14269 }
14270 return NULL;
14271 }
14272
14273
14274 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14275 PyObject *resultobj = 0;
14276 int arg1 ;
14277 wxFontFamily arg2 ;
14278 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14279 wxString const &arg4_defvalue = wxPyEmptyString ;
14280 wxString *arg4 = (wxString *) &arg4_defvalue ;
14281 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14282 wxFont *result = 0 ;
14283 int val1 ;
14284 int ecode1 = 0 ;
14285 int val2 ;
14286 int ecode2 = 0 ;
14287 int val3 ;
14288 int ecode3 = 0 ;
14289 bool temp4 = false ;
14290 int val5 ;
14291 int ecode5 = 0 ;
14292 PyObject * obj0 = 0 ;
14293 PyObject * obj1 = 0 ;
14294 PyObject * obj2 = 0 ;
14295 PyObject * obj3 = 0 ;
14296 PyObject * obj4 = 0 ;
14297 char * kwnames[] = {
14298 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14299 };
14300
14301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14302 ecode1 = SWIG_AsVal_int(obj0, &val1);
14303 if (!SWIG_IsOK(ecode1)) {
14304 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14305 }
14306 arg1 = static_cast< int >(val1);
14307 ecode2 = SWIG_AsVal_int(obj1, &val2);
14308 if (!SWIG_IsOK(ecode2)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14310 }
14311 arg2 = static_cast< wxFontFamily >(val2);
14312 if (obj2) {
14313 ecode3 = SWIG_AsVal_int(obj2, &val3);
14314 if (!SWIG_IsOK(ecode3)) {
14315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14316 }
14317 arg3 = static_cast< int >(val3);
14318 }
14319 if (obj3) {
14320 {
14321 arg4 = wxString_in_helper(obj3);
14322 if (arg4 == NULL) SWIG_fail;
14323 temp4 = true;
14324 }
14325 }
14326 if (obj4) {
14327 ecode5 = SWIG_AsVal_int(obj4, &val5);
14328 if (!SWIG_IsOK(ecode5)) {
14329 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14330 }
14331 arg5 = static_cast< wxFontEncoding >(val5);
14332 }
14333 {
14334 if (!wxPyCheckForApp()) SWIG_fail;
14335 PyThreadState* __tstate = wxPyBeginAllowThreads();
14336 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14337 wxPyEndAllowThreads(__tstate);
14338 if (PyErr_Occurred()) SWIG_fail;
14339 }
14340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14341 {
14342 if (temp4)
14343 delete arg4;
14344 }
14345 return resultobj;
14346 fail:
14347 {
14348 if (temp4)
14349 delete arg4;
14350 }
14351 return NULL;
14352 }
14353
14354
14355 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14356 PyObject *resultobj = 0;
14357 wxSize *arg1 = 0 ;
14358 int arg2 ;
14359 int arg3 ;
14360 int arg4 ;
14361 bool arg5 = (bool) false ;
14362 wxString const &arg6_defvalue = wxEmptyString ;
14363 wxString *arg6 = (wxString *) &arg6_defvalue ;
14364 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14365 wxFont *result = 0 ;
14366 wxSize temp1 ;
14367 int val2 ;
14368 int ecode2 = 0 ;
14369 int val3 ;
14370 int ecode3 = 0 ;
14371 int val4 ;
14372 int ecode4 = 0 ;
14373 bool val5 ;
14374 int ecode5 = 0 ;
14375 bool temp6 = false ;
14376 int val7 ;
14377 int ecode7 = 0 ;
14378 PyObject * obj0 = 0 ;
14379 PyObject * obj1 = 0 ;
14380 PyObject * obj2 = 0 ;
14381 PyObject * obj3 = 0 ;
14382 PyObject * obj4 = 0 ;
14383 PyObject * obj5 = 0 ;
14384 PyObject * obj6 = 0 ;
14385 char * kwnames[] = {
14386 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14387 };
14388
14389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14390 {
14391 arg1 = &temp1;
14392 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14393 }
14394 ecode2 = SWIG_AsVal_int(obj1, &val2);
14395 if (!SWIG_IsOK(ecode2)) {
14396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14397 }
14398 arg2 = static_cast< int >(val2);
14399 ecode3 = SWIG_AsVal_int(obj2, &val3);
14400 if (!SWIG_IsOK(ecode3)) {
14401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14402 }
14403 arg3 = static_cast< int >(val3);
14404 ecode4 = SWIG_AsVal_int(obj3, &val4);
14405 if (!SWIG_IsOK(ecode4)) {
14406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14407 }
14408 arg4 = static_cast< int >(val4);
14409 if (obj4) {
14410 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14411 if (!SWIG_IsOK(ecode5)) {
14412 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14413 }
14414 arg5 = static_cast< bool >(val5);
14415 }
14416 if (obj5) {
14417 {
14418 arg6 = wxString_in_helper(obj5);
14419 if (arg6 == NULL) SWIG_fail;
14420 temp6 = true;
14421 }
14422 }
14423 if (obj6) {
14424 ecode7 = SWIG_AsVal_int(obj6, &val7);
14425 if (!SWIG_IsOK(ecode7)) {
14426 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14427 }
14428 arg7 = static_cast< wxFontEncoding >(val7);
14429 }
14430 {
14431 if (!wxPyCheckForApp()) SWIG_fail;
14432 PyThreadState* __tstate = wxPyBeginAllowThreads();
14433 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14434 wxPyEndAllowThreads(__tstate);
14435 if (PyErr_Occurred()) SWIG_fail;
14436 }
14437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14438 {
14439 if (temp6)
14440 delete arg6;
14441 }
14442 return resultobj;
14443 fail:
14444 {
14445 if (temp6)
14446 delete arg6;
14447 }
14448 return NULL;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj = 0;
14454 wxSize *arg1 = 0 ;
14455 wxFontFamily arg2 ;
14456 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14457 wxString const &arg4_defvalue = wxEmptyString ;
14458 wxString *arg4 = (wxString *) &arg4_defvalue ;
14459 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14460 wxFont *result = 0 ;
14461 wxSize temp1 ;
14462 int val2 ;
14463 int ecode2 = 0 ;
14464 int val3 ;
14465 int ecode3 = 0 ;
14466 bool temp4 = false ;
14467 int val5 ;
14468 int ecode5 = 0 ;
14469 PyObject * obj0 = 0 ;
14470 PyObject * obj1 = 0 ;
14471 PyObject * obj2 = 0 ;
14472 PyObject * obj3 = 0 ;
14473 PyObject * obj4 = 0 ;
14474 char * kwnames[] = {
14475 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14476 };
14477
14478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14479 {
14480 arg1 = &temp1;
14481 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14482 }
14483 ecode2 = SWIG_AsVal_int(obj1, &val2);
14484 if (!SWIG_IsOK(ecode2)) {
14485 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14486 }
14487 arg2 = static_cast< wxFontFamily >(val2);
14488 if (obj2) {
14489 ecode3 = SWIG_AsVal_int(obj2, &val3);
14490 if (!SWIG_IsOK(ecode3)) {
14491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14492 }
14493 arg3 = static_cast< int >(val3);
14494 }
14495 if (obj3) {
14496 {
14497 arg4 = wxString_in_helper(obj3);
14498 if (arg4 == NULL) SWIG_fail;
14499 temp4 = true;
14500 }
14501 }
14502 if (obj4) {
14503 ecode5 = SWIG_AsVal_int(obj4, &val5);
14504 if (!SWIG_IsOK(ecode5)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14506 }
14507 arg5 = static_cast< wxFontEncoding >(val5);
14508 }
14509 {
14510 if (!wxPyCheckForApp()) SWIG_fail;
14511 PyThreadState* __tstate = wxPyBeginAllowThreads();
14512 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14513 wxPyEndAllowThreads(__tstate);
14514 if (PyErr_Occurred()) SWIG_fail;
14515 }
14516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14517 {
14518 if (temp4)
14519 delete arg4;
14520 }
14521 return resultobj;
14522 fail:
14523 {
14524 if (temp4)
14525 delete arg4;
14526 }
14527 return NULL;
14528 }
14529
14530
14531 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14532 PyObject *resultobj = 0;
14533 wxFont *arg1 = (wxFont *) 0 ;
14534 bool result;
14535 void *argp1 = 0 ;
14536 int res1 = 0 ;
14537 PyObject *swig_obj[1] ;
14538
14539 if (!args) SWIG_fail;
14540 swig_obj[0] = args;
14541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14542 if (!SWIG_IsOK(res1)) {
14543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14544 }
14545 arg1 = reinterpret_cast< wxFont * >(argp1);
14546 {
14547 PyThreadState* __tstate = wxPyBeginAllowThreads();
14548 result = (bool)((wxFont const *)arg1)->IsOk();
14549 wxPyEndAllowThreads(__tstate);
14550 if (PyErr_Occurred()) SWIG_fail;
14551 }
14552 {
14553 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14554 }
14555 return resultobj;
14556 fail:
14557 return NULL;
14558 }
14559
14560
14561 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14562 PyObject *resultobj = 0;
14563 wxFont *arg1 = (wxFont *) 0 ;
14564 wxFont *arg2 = (wxFont *) 0 ;
14565 bool result;
14566 void *argp1 = 0 ;
14567 int res1 = 0 ;
14568 void *argp2 = 0 ;
14569 int res2 = 0 ;
14570 PyObject * obj0 = 0 ;
14571 PyObject * obj1 = 0 ;
14572 char * kwnames[] = {
14573 (char *) "self",(char *) "other", NULL
14574 };
14575
14576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14578 if (!SWIG_IsOK(res1)) {
14579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14580 }
14581 arg1 = reinterpret_cast< wxFont * >(argp1);
14582 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14583 if (!SWIG_IsOK(res2)) {
14584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14585 }
14586 arg2 = reinterpret_cast< wxFont * >(argp2);
14587 {
14588 PyThreadState* __tstate = wxPyBeginAllowThreads();
14589 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14590 wxPyEndAllowThreads(__tstate);
14591 if (PyErr_Occurred()) SWIG_fail;
14592 }
14593 {
14594 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14595 }
14596 return resultobj;
14597 fail:
14598 return NULL;
14599 }
14600
14601
14602 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14603 PyObject *resultobj = 0;
14604 wxFont *arg1 = (wxFont *) 0 ;
14605 wxFont *arg2 = (wxFont *) 0 ;
14606 bool result;
14607 void *argp1 = 0 ;
14608 int res1 = 0 ;
14609 void *argp2 = 0 ;
14610 int res2 = 0 ;
14611 PyObject * obj0 = 0 ;
14612 PyObject * obj1 = 0 ;
14613 char * kwnames[] = {
14614 (char *) "self",(char *) "other", NULL
14615 };
14616
14617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14619 if (!SWIG_IsOK(res1)) {
14620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14621 }
14622 arg1 = reinterpret_cast< wxFont * >(argp1);
14623 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14624 if (!SWIG_IsOK(res2)) {
14625 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14626 }
14627 arg2 = reinterpret_cast< wxFont * >(argp2);
14628 {
14629 PyThreadState* __tstate = wxPyBeginAllowThreads();
14630 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14631 wxPyEndAllowThreads(__tstate);
14632 if (PyErr_Occurred()) SWIG_fail;
14633 }
14634 {
14635 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14636 }
14637 return resultobj;
14638 fail:
14639 return NULL;
14640 }
14641
14642
14643 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14644 PyObject *resultobj = 0;
14645 wxFont *arg1 = (wxFont *) 0 ;
14646 int result;
14647 void *argp1 = 0 ;
14648 int res1 = 0 ;
14649 PyObject *swig_obj[1] ;
14650
14651 if (!args) SWIG_fail;
14652 swig_obj[0] = args;
14653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14654 if (!SWIG_IsOK(res1)) {
14655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14656 }
14657 arg1 = reinterpret_cast< wxFont * >(argp1);
14658 {
14659 PyThreadState* __tstate = wxPyBeginAllowThreads();
14660 result = (int)((wxFont const *)arg1)->GetPointSize();
14661 wxPyEndAllowThreads(__tstate);
14662 if (PyErr_Occurred()) SWIG_fail;
14663 }
14664 resultobj = SWIG_From_int(static_cast< int >(result));
14665 return resultobj;
14666 fail:
14667 return NULL;
14668 }
14669
14670
14671 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14672 PyObject *resultobj = 0;
14673 wxFont *arg1 = (wxFont *) 0 ;
14674 wxSize result;
14675 void *argp1 = 0 ;
14676 int res1 = 0 ;
14677 PyObject *swig_obj[1] ;
14678
14679 if (!args) SWIG_fail;
14680 swig_obj[0] = args;
14681 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14682 if (!SWIG_IsOK(res1)) {
14683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14684 }
14685 arg1 = reinterpret_cast< wxFont * >(argp1);
14686 {
14687 PyThreadState* __tstate = wxPyBeginAllowThreads();
14688 result = ((wxFont const *)arg1)->GetPixelSize();
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14693 return resultobj;
14694 fail:
14695 return NULL;
14696 }
14697
14698
14699 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14700 PyObject *resultobj = 0;
14701 wxFont *arg1 = (wxFont *) 0 ;
14702 bool result;
14703 void *argp1 = 0 ;
14704 int res1 = 0 ;
14705 PyObject *swig_obj[1] ;
14706
14707 if (!args) SWIG_fail;
14708 swig_obj[0] = args;
14709 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14710 if (!SWIG_IsOK(res1)) {
14711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14712 }
14713 arg1 = reinterpret_cast< wxFont * >(argp1);
14714 {
14715 PyThreadState* __tstate = wxPyBeginAllowThreads();
14716 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14717 wxPyEndAllowThreads(__tstate);
14718 if (PyErr_Occurred()) SWIG_fail;
14719 }
14720 {
14721 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14722 }
14723 return resultobj;
14724 fail:
14725 return NULL;
14726 }
14727
14728
14729 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14730 PyObject *resultobj = 0;
14731 wxFont *arg1 = (wxFont *) 0 ;
14732 int result;
14733 void *argp1 = 0 ;
14734 int res1 = 0 ;
14735 PyObject *swig_obj[1] ;
14736
14737 if (!args) SWIG_fail;
14738 swig_obj[0] = args;
14739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14740 if (!SWIG_IsOK(res1)) {
14741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14742 }
14743 arg1 = reinterpret_cast< wxFont * >(argp1);
14744 {
14745 PyThreadState* __tstate = wxPyBeginAllowThreads();
14746 result = (int)((wxFont const *)arg1)->GetFamily();
14747 wxPyEndAllowThreads(__tstate);
14748 if (PyErr_Occurred()) SWIG_fail;
14749 }
14750 resultobj = SWIG_From_int(static_cast< int >(result));
14751 return resultobj;
14752 fail:
14753 return NULL;
14754 }
14755
14756
14757 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14758 PyObject *resultobj = 0;
14759 wxFont *arg1 = (wxFont *) 0 ;
14760 int result;
14761 void *argp1 = 0 ;
14762 int res1 = 0 ;
14763 PyObject *swig_obj[1] ;
14764
14765 if (!args) SWIG_fail;
14766 swig_obj[0] = args;
14767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14768 if (!SWIG_IsOK(res1)) {
14769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14770 }
14771 arg1 = reinterpret_cast< wxFont * >(argp1);
14772 {
14773 PyThreadState* __tstate = wxPyBeginAllowThreads();
14774 result = (int)((wxFont const *)arg1)->GetStyle();
14775 wxPyEndAllowThreads(__tstate);
14776 if (PyErr_Occurred()) SWIG_fail;
14777 }
14778 resultobj = SWIG_From_int(static_cast< int >(result));
14779 return resultobj;
14780 fail:
14781 return NULL;
14782 }
14783
14784
14785 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14786 PyObject *resultobj = 0;
14787 wxFont *arg1 = (wxFont *) 0 ;
14788 int result;
14789 void *argp1 = 0 ;
14790 int res1 = 0 ;
14791 PyObject *swig_obj[1] ;
14792
14793 if (!args) SWIG_fail;
14794 swig_obj[0] = args;
14795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14796 if (!SWIG_IsOK(res1)) {
14797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14798 }
14799 arg1 = reinterpret_cast< wxFont * >(argp1);
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = (int)((wxFont const *)arg1)->GetWeight();
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 resultobj = SWIG_From_int(static_cast< int >(result));
14807 return resultobj;
14808 fail:
14809 return NULL;
14810 }
14811
14812
14813 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14814 PyObject *resultobj = 0;
14815 wxFont *arg1 = (wxFont *) 0 ;
14816 bool result;
14817 void *argp1 = 0 ;
14818 int res1 = 0 ;
14819 PyObject *swig_obj[1] ;
14820
14821 if (!args) SWIG_fail;
14822 swig_obj[0] = args;
14823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14824 if (!SWIG_IsOK(res1)) {
14825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14826 }
14827 arg1 = reinterpret_cast< wxFont * >(argp1);
14828 {
14829 PyThreadState* __tstate = wxPyBeginAllowThreads();
14830 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14831 wxPyEndAllowThreads(__tstate);
14832 if (PyErr_Occurred()) SWIG_fail;
14833 }
14834 {
14835 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14836 }
14837 return resultobj;
14838 fail:
14839 return NULL;
14840 }
14841
14842
14843 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14844 PyObject *resultobj = 0;
14845 wxFont *arg1 = (wxFont *) 0 ;
14846 wxString result;
14847 void *argp1 = 0 ;
14848 int res1 = 0 ;
14849 PyObject *swig_obj[1] ;
14850
14851 if (!args) SWIG_fail;
14852 swig_obj[0] = args;
14853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14854 if (!SWIG_IsOK(res1)) {
14855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14856 }
14857 arg1 = reinterpret_cast< wxFont * >(argp1);
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = ((wxFont const *)arg1)->GetFaceName();
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
14864 {
14865 #if wxUSE_UNICODE
14866 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14867 #else
14868 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14869 #endif
14870 }
14871 return resultobj;
14872 fail:
14873 return NULL;
14874 }
14875
14876
14877 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14878 PyObject *resultobj = 0;
14879 wxFont *arg1 = (wxFont *) 0 ;
14880 wxFontEncoding result;
14881 void *argp1 = 0 ;
14882 int res1 = 0 ;
14883 PyObject *swig_obj[1] ;
14884
14885 if (!args) SWIG_fail;
14886 swig_obj[0] = args;
14887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14888 if (!SWIG_IsOK(res1)) {
14889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14890 }
14891 arg1 = reinterpret_cast< wxFont * >(argp1);
14892 {
14893 PyThreadState* __tstate = wxPyBeginAllowThreads();
14894 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14895 wxPyEndAllowThreads(__tstate);
14896 if (PyErr_Occurred()) SWIG_fail;
14897 }
14898 resultobj = SWIG_From_int(static_cast< int >(result));
14899 return resultobj;
14900 fail:
14901 return NULL;
14902 }
14903
14904
14905 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14906 PyObject *resultobj = 0;
14907 wxFont *arg1 = (wxFont *) 0 ;
14908 wxNativeFontInfo *result = 0 ;
14909 void *argp1 = 0 ;
14910 int res1 = 0 ;
14911 PyObject *swig_obj[1] ;
14912
14913 if (!args) SWIG_fail;
14914 swig_obj[0] = args;
14915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14916 if (!SWIG_IsOK(res1)) {
14917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14918 }
14919 arg1 = reinterpret_cast< wxFont * >(argp1);
14920 {
14921 PyThreadState* __tstate = wxPyBeginAllowThreads();
14922 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14923 wxPyEndAllowThreads(__tstate);
14924 if (PyErr_Occurred()) SWIG_fail;
14925 }
14926 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14927 return resultobj;
14928 fail:
14929 return NULL;
14930 }
14931
14932
14933 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14934 PyObject *resultobj = 0;
14935 wxFont *arg1 = (wxFont *) 0 ;
14936 bool result;
14937 void *argp1 = 0 ;
14938 int res1 = 0 ;
14939 PyObject *swig_obj[1] ;
14940
14941 if (!args) SWIG_fail;
14942 swig_obj[0] = args;
14943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14944 if (!SWIG_IsOK(res1)) {
14945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14946 }
14947 arg1 = reinterpret_cast< wxFont * >(argp1);
14948 {
14949 PyThreadState* __tstate = wxPyBeginAllowThreads();
14950 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14951 wxPyEndAllowThreads(__tstate);
14952 if (PyErr_Occurred()) SWIG_fail;
14953 }
14954 {
14955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14956 }
14957 return resultobj;
14958 fail:
14959 return NULL;
14960 }
14961
14962
14963 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14964 PyObject *resultobj = 0;
14965 wxFont *arg1 = (wxFont *) 0 ;
14966 wxString result;
14967 void *argp1 = 0 ;
14968 int res1 = 0 ;
14969 PyObject *swig_obj[1] ;
14970
14971 if (!args) SWIG_fail;
14972 swig_obj[0] = args;
14973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14974 if (!SWIG_IsOK(res1)) {
14975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14976 }
14977 arg1 = reinterpret_cast< wxFont * >(argp1);
14978 {
14979 PyThreadState* __tstate = wxPyBeginAllowThreads();
14980 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14981 wxPyEndAllowThreads(__tstate);
14982 if (PyErr_Occurred()) SWIG_fail;
14983 }
14984 {
14985 #if wxUSE_UNICODE
14986 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14987 #else
14988 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14989 #endif
14990 }
14991 return resultobj;
14992 fail:
14993 return NULL;
14994 }
14995
14996
14997 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14998 PyObject *resultobj = 0;
14999 wxFont *arg1 = (wxFont *) 0 ;
15000 wxString result;
15001 void *argp1 = 0 ;
15002 int res1 = 0 ;
15003 PyObject *swig_obj[1] ;
15004
15005 if (!args) SWIG_fail;
15006 swig_obj[0] = args;
15007 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15008 if (!SWIG_IsOK(res1)) {
15009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15010 }
15011 arg1 = reinterpret_cast< wxFont * >(argp1);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 {
15019 #if wxUSE_UNICODE
15020 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15021 #else
15022 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15023 #endif
15024 }
15025 return resultobj;
15026 fail:
15027 return NULL;
15028 }
15029
15030
15031 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15032 PyObject *resultobj = 0;
15033 wxFont *arg1 = (wxFont *) 0 ;
15034 int arg2 ;
15035 void *argp1 = 0 ;
15036 int res1 = 0 ;
15037 int val2 ;
15038 int ecode2 = 0 ;
15039 PyObject * obj0 = 0 ;
15040 PyObject * obj1 = 0 ;
15041 char * kwnames[] = {
15042 (char *) "self",(char *) "pointSize", NULL
15043 };
15044
15045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15047 if (!SWIG_IsOK(res1)) {
15048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15049 }
15050 arg1 = reinterpret_cast< wxFont * >(argp1);
15051 ecode2 = SWIG_AsVal_int(obj1, &val2);
15052 if (!SWIG_IsOK(ecode2)) {
15053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15054 }
15055 arg2 = static_cast< int >(val2);
15056 {
15057 PyThreadState* __tstate = wxPyBeginAllowThreads();
15058 (arg1)->SetPointSize(arg2);
15059 wxPyEndAllowThreads(__tstate);
15060 if (PyErr_Occurred()) SWIG_fail;
15061 }
15062 resultobj = SWIG_Py_Void();
15063 return resultobj;
15064 fail:
15065 return NULL;
15066 }
15067
15068
15069 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15070 PyObject *resultobj = 0;
15071 wxFont *arg1 = (wxFont *) 0 ;
15072 wxSize *arg2 = 0 ;
15073 void *argp1 = 0 ;
15074 int res1 = 0 ;
15075 wxSize temp2 ;
15076 PyObject * obj0 = 0 ;
15077 PyObject * obj1 = 0 ;
15078 char * kwnames[] = {
15079 (char *) "self",(char *) "pixelSize", NULL
15080 };
15081
15082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15084 if (!SWIG_IsOK(res1)) {
15085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15086 }
15087 arg1 = reinterpret_cast< wxFont * >(argp1);
15088 {
15089 arg2 = &temp2;
15090 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15091 }
15092 {
15093 PyThreadState* __tstate = wxPyBeginAllowThreads();
15094 (arg1)->SetPixelSize((wxSize const &)*arg2);
15095 wxPyEndAllowThreads(__tstate);
15096 if (PyErr_Occurred()) SWIG_fail;
15097 }
15098 resultobj = SWIG_Py_Void();
15099 return resultobj;
15100 fail:
15101 return NULL;
15102 }
15103
15104
15105 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15106 PyObject *resultobj = 0;
15107 wxFont *arg1 = (wxFont *) 0 ;
15108 int arg2 ;
15109 void *argp1 = 0 ;
15110 int res1 = 0 ;
15111 int val2 ;
15112 int ecode2 = 0 ;
15113 PyObject * obj0 = 0 ;
15114 PyObject * obj1 = 0 ;
15115 char * kwnames[] = {
15116 (char *) "self",(char *) "family", NULL
15117 };
15118
15119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15121 if (!SWIG_IsOK(res1)) {
15122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15123 }
15124 arg1 = reinterpret_cast< wxFont * >(argp1);
15125 ecode2 = SWIG_AsVal_int(obj1, &val2);
15126 if (!SWIG_IsOK(ecode2)) {
15127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15128 }
15129 arg2 = static_cast< int >(val2);
15130 {
15131 PyThreadState* __tstate = wxPyBeginAllowThreads();
15132 (arg1)->SetFamily(arg2);
15133 wxPyEndAllowThreads(__tstate);
15134 if (PyErr_Occurred()) SWIG_fail;
15135 }
15136 resultobj = SWIG_Py_Void();
15137 return resultobj;
15138 fail:
15139 return NULL;
15140 }
15141
15142
15143 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15144 PyObject *resultobj = 0;
15145 wxFont *arg1 = (wxFont *) 0 ;
15146 int arg2 ;
15147 void *argp1 = 0 ;
15148 int res1 = 0 ;
15149 int val2 ;
15150 int ecode2 = 0 ;
15151 PyObject * obj0 = 0 ;
15152 PyObject * obj1 = 0 ;
15153 char * kwnames[] = {
15154 (char *) "self",(char *) "style", NULL
15155 };
15156
15157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15158 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15159 if (!SWIG_IsOK(res1)) {
15160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15161 }
15162 arg1 = reinterpret_cast< wxFont * >(argp1);
15163 ecode2 = SWIG_AsVal_int(obj1, &val2);
15164 if (!SWIG_IsOK(ecode2)) {
15165 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15166 }
15167 arg2 = static_cast< int >(val2);
15168 {
15169 PyThreadState* __tstate = wxPyBeginAllowThreads();
15170 (arg1)->SetStyle(arg2);
15171 wxPyEndAllowThreads(__tstate);
15172 if (PyErr_Occurred()) SWIG_fail;
15173 }
15174 resultobj = SWIG_Py_Void();
15175 return resultobj;
15176 fail:
15177 return NULL;
15178 }
15179
15180
15181 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15182 PyObject *resultobj = 0;
15183 wxFont *arg1 = (wxFont *) 0 ;
15184 int arg2 ;
15185 void *argp1 = 0 ;
15186 int res1 = 0 ;
15187 int val2 ;
15188 int ecode2 = 0 ;
15189 PyObject * obj0 = 0 ;
15190 PyObject * obj1 = 0 ;
15191 char * kwnames[] = {
15192 (char *) "self",(char *) "weight", NULL
15193 };
15194
15195 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15196 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15197 if (!SWIG_IsOK(res1)) {
15198 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15199 }
15200 arg1 = reinterpret_cast< wxFont * >(argp1);
15201 ecode2 = SWIG_AsVal_int(obj1, &val2);
15202 if (!SWIG_IsOK(ecode2)) {
15203 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15204 }
15205 arg2 = static_cast< int >(val2);
15206 {
15207 PyThreadState* __tstate = wxPyBeginAllowThreads();
15208 (arg1)->SetWeight(arg2);
15209 wxPyEndAllowThreads(__tstate);
15210 if (PyErr_Occurred()) SWIG_fail;
15211 }
15212 resultobj = SWIG_Py_Void();
15213 return resultobj;
15214 fail:
15215 return NULL;
15216 }
15217
15218
15219 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15220 PyObject *resultobj = 0;
15221 wxFont *arg1 = (wxFont *) 0 ;
15222 wxString *arg2 = 0 ;
15223 bool result;
15224 void *argp1 = 0 ;
15225 int res1 = 0 ;
15226 bool temp2 = false ;
15227 PyObject * obj0 = 0 ;
15228 PyObject * obj1 = 0 ;
15229 char * kwnames[] = {
15230 (char *) "self",(char *) "faceName", NULL
15231 };
15232
15233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15235 if (!SWIG_IsOK(res1)) {
15236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15237 }
15238 arg1 = reinterpret_cast< wxFont * >(argp1);
15239 {
15240 arg2 = wxString_in_helper(obj1);
15241 if (arg2 == NULL) SWIG_fail;
15242 temp2 = true;
15243 }
15244 {
15245 PyThreadState* __tstate = wxPyBeginAllowThreads();
15246 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15247 wxPyEndAllowThreads(__tstate);
15248 if (PyErr_Occurred()) SWIG_fail;
15249 }
15250 {
15251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15252 }
15253 {
15254 if (temp2)
15255 delete arg2;
15256 }
15257 return resultobj;
15258 fail:
15259 {
15260 if (temp2)
15261 delete arg2;
15262 }
15263 return NULL;
15264 }
15265
15266
15267 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15268 PyObject *resultobj = 0;
15269 wxFont *arg1 = (wxFont *) 0 ;
15270 bool arg2 ;
15271 void *argp1 = 0 ;
15272 int res1 = 0 ;
15273 bool val2 ;
15274 int ecode2 = 0 ;
15275 PyObject * obj0 = 0 ;
15276 PyObject * obj1 = 0 ;
15277 char * kwnames[] = {
15278 (char *) "self",(char *) "underlined", NULL
15279 };
15280
15281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15282 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15283 if (!SWIG_IsOK(res1)) {
15284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15285 }
15286 arg1 = reinterpret_cast< wxFont * >(argp1);
15287 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15288 if (!SWIG_IsOK(ecode2)) {
15289 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15290 }
15291 arg2 = static_cast< bool >(val2);
15292 {
15293 PyThreadState* __tstate = wxPyBeginAllowThreads();
15294 (arg1)->SetUnderlined(arg2);
15295 wxPyEndAllowThreads(__tstate);
15296 if (PyErr_Occurred()) SWIG_fail;
15297 }
15298 resultobj = SWIG_Py_Void();
15299 return resultobj;
15300 fail:
15301 return NULL;
15302 }
15303
15304
15305 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15306 PyObject *resultobj = 0;
15307 wxFont *arg1 = (wxFont *) 0 ;
15308 wxFontEncoding arg2 ;
15309 void *argp1 = 0 ;
15310 int res1 = 0 ;
15311 int val2 ;
15312 int ecode2 = 0 ;
15313 PyObject * obj0 = 0 ;
15314 PyObject * obj1 = 0 ;
15315 char * kwnames[] = {
15316 (char *) "self",(char *) "encoding", NULL
15317 };
15318
15319 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15320 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15321 if (!SWIG_IsOK(res1)) {
15322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15323 }
15324 arg1 = reinterpret_cast< wxFont * >(argp1);
15325 ecode2 = SWIG_AsVal_int(obj1, &val2);
15326 if (!SWIG_IsOK(ecode2)) {
15327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15328 }
15329 arg2 = static_cast< wxFontEncoding >(val2);
15330 {
15331 PyThreadState* __tstate = wxPyBeginAllowThreads();
15332 (arg1)->SetEncoding(arg2);
15333 wxPyEndAllowThreads(__tstate);
15334 if (PyErr_Occurred()) SWIG_fail;
15335 }
15336 resultobj = SWIG_Py_Void();
15337 return resultobj;
15338 fail:
15339 return NULL;
15340 }
15341
15342
15343 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15344 PyObject *resultobj = 0;
15345 wxFont *arg1 = (wxFont *) 0 ;
15346 wxNativeFontInfo *arg2 = 0 ;
15347 void *argp1 = 0 ;
15348 int res1 = 0 ;
15349 void *argp2 = 0 ;
15350 int res2 = 0 ;
15351 PyObject * obj0 = 0 ;
15352 PyObject * obj1 = 0 ;
15353 char * kwnames[] = {
15354 (char *) "self",(char *) "info", NULL
15355 };
15356
15357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15359 if (!SWIG_IsOK(res1)) {
15360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15361 }
15362 arg1 = reinterpret_cast< wxFont * >(argp1);
15363 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15364 if (!SWIG_IsOK(res2)) {
15365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15366 }
15367 if (!argp2) {
15368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15369 }
15370 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15371 {
15372 PyThreadState* __tstate = wxPyBeginAllowThreads();
15373 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15374 wxPyEndAllowThreads(__tstate);
15375 if (PyErr_Occurred()) SWIG_fail;
15376 }
15377 resultobj = SWIG_Py_Void();
15378 return resultobj;
15379 fail:
15380 return NULL;
15381 }
15382
15383
15384 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15385 PyObject *resultobj = 0;
15386 wxFont *arg1 = (wxFont *) 0 ;
15387 wxString *arg2 = 0 ;
15388 bool result;
15389 void *argp1 = 0 ;
15390 int res1 = 0 ;
15391 bool temp2 = false ;
15392 PyObject * obj0 = 0 ;
15393 PyObject * obj1 = 0 ;
15394 char * kwnames[] = {
15395 (char *) "self",(char *) "info", NULL
15396 };
15397
15398 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15399 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15400 if (!SWIG_IsOK(res1)) {
15401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15402 }
15403 arg1 = reinterpret_cast< wxFont * >(argp1);
15404 {
15405 arg2 = wxString_in_helper(obj1);
15406 if (arg2 == NULL) SWIG_fail;
15407 temp2 = true;
15408 }
15409 {
15410 PyThreadState* __tstate = wxPyBeginAllowThreads();
15411 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15412 wxPyEndAllowThreads(__tstate);
15413 if (PyErr_Occurred()) SWIG_fail;
15414 }
15415 {
15416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15417 }
15418 {
15419 if (temp2)
15420 delete arg2;
15421 }
15422 return resultobj;
15423 fail:
15424 {
15425 if (temp2)
15426 delete arg2;
15427 }
15428 return NULL;
15429 }
15430
15431
15432 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15433 PyObject *resultobj = 0;
15434 wxFont *arg1 = (wxFont *) 0 ;
15435 wxString *arg2 = 0 ;
15436 bool result;
15437 void *argp1 = 0 ;
15438 int res1 = 0 ;
15439 bool temp2 = false ;
15440 PyObject * obj0 = 0 ;
15441 PyObject * obj1 = 0 ;
15442 char * kwnames[] = {
15443 (char *) "self",(char *) "info", NULL
15444 };
15445
15446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15448 if (!SWIG_IsOK(res1)) {
15449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15450 }
15451 arg1 = reinterpret_cast< wxFont * >(argp1);
15452 {
15453 arg2 = wxString_in_helper(obj1);
15454 if (arg2 == NULL) SWIG_fail;
15455 temp2 = true;
15456 }
15457 {
15458 PyThreadState* __tstate = wxPyBeginAllowThreads();
15459 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15460 wxPyEndAllowThreads(__tstate);
15461 if (PyErr_Occurred()) SWIG_fail;
15462 }
15463 {
15464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15465 }
15466 {
15467 if (temp2)
15468 delete arg2;
15469 }
15470 return resultobj;
15471 fail:
15472 {
15473 if (temp2)
15474 delete arg2;
15475 }
15476 return NULL;
15477 }
15478
15479
15480 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15481 PyObject *resultobj = 0;
15482 wxFont *arg1 = (wxFont *) 0 ;
15483 wxString result;
15484 void *argp1 = 0 ;
15485 int res1 = 0 ;
15486 PyObject *swig_obj[1] ;
15487
15488 if (!args) SWIG_fail;
15489 swig_obj[0] = args;
15490 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15491 if (!SWIG_IsOK(res1)) {
15492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15493 }
15494 arg1 = reinterpret_cast< wxFont * >(argp1);
15495 {
15496 PyThreadState* __tstate = wxPyBeginAllowThreads();
15497 result = ((wxFont const *)arg1)->GetFamilyString();
15498 wxPyEndAllowThreads(__tstate);
15499 if (PyErr_Occurred()) SWIG_fail;
15500 }
15501 {
15502 #if wxUSE_UNICODE
15503 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15504 #else
15505 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15506 #endif
15507 }
15508 return resultobj;
15509 fail:
15510 return NULL;
15511 }
15512
15513
15514 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15515 PyObject *resultobj = 0;
15516 wxFont *arg1 = (wxFont *) 0 ;
15517 wxString result;
15518 void *argp1 = 0 ;
15519 int res1 = 0 ;
15520 PyObject *swig_obj[1] ;
15521
15522 if (!args) SWIG_fail;
15523 swig_obj[0] = args;
15524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15525 if (!SWIG_IsOK(res1)) {
15526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15527 }
15528 arg1 = reinterpret_cast< wxFont * >(argp1);
15529 {
15530 PyThreadState* __tstate = wxPyBeginAllowThreads();
15531 result = ((wxFont const *)arg1)->GetStyleString();
15532 wxPyEndAllowThreads(__tstate);
15533 if (PyErr_Occurred()) SWIG_fail;
15534 }
15535 {
15536 #if wxUSE_UNICODE
15537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15538 #else
15539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15540 #endif
15541 }
15542 return resultobj;
15543 fail:
15544 return NULL;
15545 }
15546
15547
15548 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15549 PyObject *resultobj = 0;
15550 wxFont *arg1 = (wxFont *) 0 ;
15551 wxString result;
15552 void *argp1 = 0 ;
15553 int res1 = 0 ;
15554 PyObject *swig_obj[1] ;
15555
15556 if (!args) SWIG_fail;
15557 swig_obj[0] = args;
15558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15559 if (!SWIG_IsOK(res1)) {
15560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15561 }
15562 arg1 = reinterpret_cast< wxFont * >(argp1);
15563 {
15564 PyThreadState* __tstate = wxPyBeginAllowThreads();
15565 result = ((wxFont const *)arg1)->GetWeightString();
15566 wxPyEndAllowThreads(__tstate);
15567 if (PyErr_Occurred()) SWIG_fail;
15568 }
15569 {
15570 #if wxUSE_UNICODE
15571 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15572 #else
15573 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15574 #endif
15575 }
15576 return resultobj;
15577 fail:
15578 return NULL;
15579 }
15580
15581
15582 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15583 PyObject *resultobj = 0;
15584 wxFont *arg1 = (wxFont *) 0 ;
15585 bool arg2 = (bool) true ;
15586 void *argp1 = 0 ;
15587 int res1 = 0 ;
15588 bool val2 ;
15589 int ecode2 = 0 ;
15590 PyObject * obj0 = 0 ;
15591 PyObject * obj1 = 0 ;
15592 char * kwnames[] = {
15593 (char *) "self",(char *) "no", NULL
15594 };
15595
15596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15598 if (!SWIG_IsOK(res1)) {
15599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15600 }
15601 arg1 = reinterpret_cast< wxFont * >(argp1);
15602 if (obj1) {
15603 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15604 if (!SWIG_IsOK(ecode2)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15606 }
15607 arg2 = static_cast< bool >(val2);
15608 }
15609 {
15610 PyThreadState* __tstate = wxPyBeginAllowThreads();
15611 (arg1)->SetNoAntiAliasing(arg2);
15612 wxPyEndAllowThreads(__tstate);
15613 if (PyErr_Occurred()) SWIG_fail;
15614 }
15615 resultobj = SWIG_Py_Void();
15616 return resultobj;
15617 fail:
15618 return NULL;
15619 }
15620
15621
15622 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15623 PyObject *resultobj = 0;
15624 wxFont *arg1 = (wxFont *) 0 ;
15625 bool result;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 PyObject *swig_obj[1] ;
15629
15630 if (!args) SWIG_fail;
15631 swig_obj[0] = args;
15632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15633 if (!SWIG_IsOK(res1)) {
15634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15635 }
15636 arg1 = reinterpret_cast< wxFont * >(argp1);
15637 {
15638 PyThreadState* __tstate = wxPyBeginAllowThreads();
15639 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15640 wxPyEndAllowThreads(__tstate);
15641 if (PyErr_Occurred()) SWIG_fail;
15642 }
15643 {
15644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15645 }
15646 return resultobj;
15647 fail:
15648 return NULL;
15649 }
15650
15651
15652 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15653 PyObject *resultobj = 0;
15654 wxFontEncoding result;
15655
15656 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15657 {
15658 if (!wxPyCheckForApp()) SWIG_fail;
15659 PyThreadState* __tstate = wxPyBeginAllowThreads();
15660 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15661 wxPyEndAllowThreads(__tstate);
15662 if (PyErr_Occurred()) SWIG_fail;
15663 }
15664 resultobj = SWIG_From_int(static_cast< int >(result));
15665 return resultobj;
15666 fail:
15667 return NULL;
15668 }
15669
15670
15671 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15672 PyObject *resultobj = 0;
15673 wxFontEncoding arg1 ;
15674 int val1 ;
15675 int ecode1 = 0 ;
15676 PyObject * obj0 = 0 ;
15677 char * kwnames[] = {
15678 (char *) "encoding", NULL
15679 };
15680
15681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15682 ecode1 = SWIG_AsVal_int(obj0, &val1);
15683 if (!SWIG_IsOK(ecode1)) {
15684 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15685 }
15686 arg1 = static_cast< wxFontEncoding >(val1);
15687 {
15688 if (!wxPyCheckForApp()) SWIG_fail;
15689 PyThreadState* __tstate = wxPyBeginAllowThreads();
15690 wxFont::SetDefaultEncoding(arg1);
15691 wxPyEndAllowThreads(__tstate);
15692 if (PyErr_Occurred()) SWIG_fail;
15693 }
15694 resultobj = SWIG_Py_Void();
15695 return resultobj;
15696 fail:
15697 return NULL;
15698 }
15699
15700
15701 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15702 PyObject *obj;
15703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15704 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15705 return SWIG_Py_Void();
15706 }
15707
15708 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15709 return SWIG_Python_InitShadowInstance(args);
15710 }
15711
15712 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15713 PyObject *resultobj = 0;
15714 wxPyFontEnumerator *result = 0 ;
15715
15716 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15717 {
15718 if (!wxPyCheckForApp()) SWIG_fail;
15719 PyThreadState* __tstate = wxPyBeginAllowThreads();
15720 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15721 wxPyEndAllowThreads(__tstate);
15722 if (PyErr_Occurred()) SWIG_fail;
15723 }
15724 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15725 return resultobj;
15726 fail:
15727 return NULL;
15728 }
15729
15730
15731 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15732 PyObject *resultobj = 0;
15733 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15734 void *argp1 = 0 ;
15735 int res1 = 0 ;
15736 PyObject *swig_obj[1] ;
15737
15738 if (!args) SWIG_fail;
15739 swig_obj[0] = args;
15740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15741 if (!SWIG_IsOK(res1)) {
15742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15743 }
15744 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15745 {
15746 PyThreadState* __tstate = wxPyBeginAllowThreads();
15747 delete arg1;
15748
15749 wxPyEndAllowThreads(__tstate);
15750 if (PyErr_Occurred()) SWIG_fail;
15751 }
15752 resultobj = SWIG_Py_Void();
15753 return resultobj;
15754 fail:
15755 return NULL;
15756 }
15757
15758
15759 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15760 PyObject *resultobj = 0;
15761 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15762 PyObject *arg2 = (PyObject *) 0 ;
15763 PyObject *arg3 = (PyObject *) 0 ;
15764 bool arg4 ;
15765 void *argp1 = 0 ;
15766 int res1 = 0 ;
15767 bool val4 ;
15768 int ecode4 = 0 ;
15769 PyObject * obj0 = 0 ;
15770 PyObject * obj1 = 0 ;
15771 PyObject * obj2 = 0 ;
15772 PyObject * obj3 = 0 ;
15773 char * kwnames[] = {
15774 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15775 };
15776
15777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15779 if (!SWIG_IsOK(res1)) {
15780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15781 }
15782 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15783 arg2 = obj1;
15784 arg3 = obj2;
15785 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15786 if (!SWIG_IsOK(ecode4)) {
15787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15788 }
15789 arg4 = static_cast< bool >(val4);
15790 {
15791 PyThreadState* __tstate = wxPyBeginAllowThreads();
15792 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15793 wxPyEndAllowThreads(__tstate);
15794 if (PyErr_Occurred()) SWIG_fail;
15795 }
15796 resultobj = SWIG_Py_Void();
15797 return resultobj;
15798 fail:
15799 return NULL;
15800 }
15801
15802
15803 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15804 PyObject *resultobj = 0;
15805 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15806 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15807 bool arg3 = (bool) false ;
15808 bool result;
15809 void *argp1 = 0 ;
15810 int res1 = 0 ;
15811 int val2 ;
15812 int ecode2 = 0 ;
15813 bool val3 ;
15814 int ecode3 = 0 ;
15815 PyObject * obj0 = 0 ;
15816 PyObject * obj1 = 0 ;
15817 PyObject * obj2 = 0 ;
15818 char * kwnames[] = {
15819 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15820 };
15821
15822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15824 if (!SWIG_IsOK(res1)) {
15825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15826 }
15827 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15828 if (obj1) {
15829 ecode2 = SWIG_AsVal_int(obj1, &val2);
15830 if (!SWIG_IsOK(ecode2)) {
15831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15832 }
15833 arg2 = static_cast< wxFontEncoding >(val2);
15834 }
15835 if (obj2) {
15836 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15837 if (!SWIG_IsOK(ecode3)) {
15838 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15839 }
15840 arg3 = static_cast< bool >(val3);
15841 }
15842 {
15843 PyThreadState* __tstate = wxPyBeginAllowThreads();
15844 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15845 wxPyEndAllowThreads(__tstate);
15846 if (PyErr_Occurred()) SWIG_fail;
15847 }
15848 {
15849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15850 }
15851 return resultobj;
15852 fail:
15853 return NULL;
15854 }
15855
15856
15857 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15858 PyObject *resultobj = 0;
15859 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15860 wxString const &arg2_defvalue = wxPyEmptyString ;
15861 wxString *arg2 = (wxString *) &arg2_defvalue ;
15862 bool result;
15863 void *argp1 = 0 ;
15864 int res1 = 0 ;
15865 bool temp2 = false ;
15866 PyObject * obj0 = 0 ;
15867 PyObject * obj1 = 0 ;
15868 char * kwnames[] = {
15869 (char *) "self",(char *) "facename", NULL
15870 };
15871
15872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15874 if (!SWIG_IsOK(res1)) {
15875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15876 }
15877 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15878 if (obj1) {
15879 {
15880 arg2 = wxString_in_helper(obj1);
15881 if (arg2 == NULL) SWIG_fail;
15882 temp2 = true;
15883 }
15884 }
15885 {
15886 PyThreadState* __tstate = wxPyBeginAllowThreads();
15887 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15888 wxPyEndAllowThreads(__tstate);
15889 if (PyErr_Occurred()) SWIG_fail;
15890 }
15891 {
15892 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15893 }
15894 {
15895 if (temp2)
15896 delete arg2;
15897 }
15898 return resultobj;
15899 fail:
15900 {
15901 if (temp2)
15902 delete arg2;
15903 }
15904 return NULL;
15905 }
15906
15907
15908 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15909 PyObject *resultobj = 0;
15910 PyObject *result = 0 ;
15911
15912 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15913 {
15914 PyThreadState* __tstate = wxPyBeginAllowThreads();
15915 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15916 wxPyEndAllowThreads(__tstate);
15917 if (PyErr_Occurred()) SWIG_fail;
15918 }
15919 resultobj = result;
15920 return resultobj;
15921 fail:
15922 return NULL;
15923 }
15924
15925
15926 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15927 PyObject *resultobj = 0;
15928 PyObject *result = 0 ;
15929
15930 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15931 {
15932 PyThreadState* __tstate = wxPyBeginAllowThreads();
15933 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15934 wxPyEndAllowThreads(__tstate);
15935 if (PyErr_Occurred()) SWIG_fail;
15936 }
15937 resultobj = result;
15938 return resultobj;
15939 fail:
15940 return NULL;
15941 }
15942
15943
15944 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15945 PyObject *resultobj = 0;
15946 wxString *arg1 = 0 ;
15947 bool result;
15948 bool temp1 = false ;
15949 PyObject * obj0 = 0 ;
15950 char * kwnames[] = {
15951 (char *) "str", NULL
15952 };
15953
15954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15955 {
15956 arg1 = wxString_in_helper(obj0);
15957 if (arg1 == NULL) SWIG_fail;
15958 temp1 = true;
15959 }
15960 {
15961 PyThreadState* __tstate = wxPyBeginAllowThreads();
15962 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15963 wxPyEndAllowThreads(__tstate);
15964 if (PyErr_Occurred()) SWIG_fail;
15965 }
15966 {
15967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15968 }
15969 {
15970 if (temp1)
15971 delete arg1;
15972 }
15973 return resultobj;
15974 fail:
15975 {
15976 if (temp1)
15977 delete arg1;
15978 }
15979 return NULL;
15980 }
15981
15982
15983 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15984 PyObject *obj;
15985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15986 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15987 return SWIG_Py_Void();
15988 }
15989
15990 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15991 return SWIG_Python_InitShadowInstance(args);
15992 }
15993
15994 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15995 PyObject *resultobj = 0;
15996 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
15997 int arg2 ;
15998 void *argp1 = 0 ;
15999 int res1 = 0 ;
16000 int val2 ;
16001 int ecode2 = 0 ;
16002 PyObject *swig_obj[2] ;
16003
16004 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16006 if (!SWIG_IsOK(res1)) {
16007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16008 }
16009 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16010 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16011 if (!SWIG_IsOK(ecode2)) {
16012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16013 }
16014 arg2 = static_cast< int >(val2);
16015 if (arg1) (arg1)->Language = arg2;
16016
16017 resultobj = SWIG_Py_Void();
16018 return resultobj;
16019 fail:
16020 return NULL;
16021 }
16022
16023
16024 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16025 PyObject *resultobj = 0;
16026 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16027 int result;
16028 void *argp1 = 0 ;
16029 int res1 = 0 ;
16030 PyObject *swig_obj[1] ;
16031
16032 if (!args) SWIG_fail;
16033 swig_obj[0] = args;
16034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16035 if (!SWIG_IsOK(res1)) {
16036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16037 }
16038 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16039 result = (int) ((arg1)->Language);
16040 resultobj = SWIG_From_int(static_cast< int >(result));
16041 return resultobj;
16042 fail:
16043 return NULL;
16044 }
16045
16046
16047 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16048 PyObject *resultobj = 0;
16049 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16050 wxString *arg2 = (wxString *) 0 ;
16051 void *argp1 = 0 ;
16052 int res1 = 0 ;
16053 bool temp2 = false ;
16054 PyObject *swig_obj[2] ;
16055
16056 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16058 if (!SWIG_IsOK(res1)) {
16059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16060 }
16061 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16062 {
16063 arg2 = wxString_in_helper(swig_obj[1]);
16064 if (arg2 == NULL) SWIG_fail;
16065 temp2 = true;
16066 }
16067 if (arg1) (arg1)->CanonicalName = *arg2;
16068
16069 resultobj = SWIG_Py_Void();
16070 {
16071 if (temp2)
16072 delete arg2;
16073 }
16074 return resultobj;
16075 fail:
16076 {
16077 if (temp2)
16078 delete arg2;
16079 }
16080 return NULL;
16081 }
16082
16083
16084 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16085 PyObject *resultobj = 0;
16086 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16087 wxString *result = 0 ;
16088 void *argp1 = 0 ;
16089 int res1 = 0 ;
16090 PyObject *swig_obj[1] ;
16091
16092 if (!args) SWIG_fail;
16093 swig_obj[0] = args;
16094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16095 if (!SWIG_IsOK(res1)) {
16096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16097 }
16098 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16099 result = (wxString *)& ((arg1)->CanonicalName);
16100 {
16101 #if wxUSE_UNICODE
16102 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16103 #else
16104 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16105 #endif
16106 }
16107 return resultobj;
16108 fail:
16109 return NULL;
16110 }
16111
16112
16113 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16114 PyObject *resultobj = 0;
16115 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16116 wxString *arg2 = (wxString *) 0 ;
16117 void *argp1 = 0 ;
16118 int res1 = 0 ;
16119 bool temp2 = false ;
16120 PyObject *swig_obj[2] ;
16121
16122 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16124 if (!SWIG_IsOK(res1)) {
16125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16126 }
16127 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16128 {
16129 arg2 = wxString_in_helper(swig_obj[1]);
16130 if (arg2 == NULL) SWIG_fail;
16131 temp2 = true;
16132 }
16133 if (arg1) (arg1)->Description = *arg2;
16134
16135 resultobj = SWIG_Py_Void();
16136 {
16137 if (temp2)
16138 delete arg2;
16139 }
16140 return resultobj;
16141 fail:
16142 {
16143 if (temp2)
16144 delete arg2;
16145 }
16146 return NULL;
16147 }
16148
16149
16150 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16151 PyObject *resultobj = 0;
16152 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16153 wxString *result = 0 ;
16154 void *argp1 = 0 ;
16155 int res1 = 0 ;
16156 PyObject *swig_obj[1] ;
16157
16158 if (!args) SWIG_fail;
16159 swig_obj[0] = args;
16160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16161 if (!SWIG_IsOK(res1)) {
16162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16163 }
16164 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16165 result = (wxString *)& ((arg1)->Description);
16166 {
16167 #if wxUSE_UNICODE
16168 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16169 #else
16170 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16171 #endif
16172 }
16173 return resultobj;
16174 fail:
16175 return NULL;
16176 }
16177
16178
16179 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16180 PyObject *obj;
16181 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16182 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16183 return SWIG_Py_Void();
16184 }
16185
16186 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16187 PyObject *resultobj = 0;
16188 int arg1 = (int) -1 ;
16189 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16190 wxLocale *result = 0 ;
16191 int val1 ;
16192 int ecode1 = 0 ;
16193 int val2 ;
16194 int ecode2 = 0 ;
16195 PyObject * obj0 = 0 ;
16196 PyObject * obj1 = 0 ;
16197 char * kwnames[] = {
16198 (char *) "language",(char *) "flags", NULL
16199 };
16200
16201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16202 if (obj0) {
16203 ecode1 = SWIG_AsVal_int(obj0, &val1);
16204 if (!SWIG_IsOK(ecode1)) {
16205 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16206 }
16207 arg1 = static_cast< int >(val1);
16208 }
16209 if (obj1) {
16210 ecode2 = SWIG_AsVal_int(obj1, &val2);
16211 if (!SWIG_IsOK(ecode2)) {
16212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16213 }
16214 arg2 = static_cast< int >(val2);
16215 }
16216 {
16217 PyThreadState* __tstate = wxPyBeginAllowThreads();
16218 result = (wxLocale *)new_wxLocale(arg1,arg2);
16219 wxPyEndAllowThreads(__tstate);
16220 if (PyErr_Occurred()) SWIG_fail;
16221 }
16222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16223 return resultobj;
16224 fail:
16225 return NULL;
16226 }
16227
16228
16229 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16230 PyObject *resultobj = 0;
16231 wxLocale *arg1 = (wxLocale *) 0 ;
16232 void *argp1 = 0 ;
16233 int res1 = 0 ;
16234 PyObject *swig_obj[1] ;
16235
16236 if (!args) SWIG_fail;
16237 swig_obj[0] = args;
16238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16239 if (!SWIG_IsOK(res1)) {
16240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16241 }
16242 arg1 = reinterpret_cast< wxLocale * >(argp1);
16243 {
16244 PyThreadState* __tstate = wxPyBeginAllowThreads();
16245 delete arg1;
16246
16247 wxPyEndAllowThreads(__tstate);
16248 if (PyErr_Occurred()) SWIG_fail;
16249 }
16250 resultobj = SWIG_Py_Void();
16251 return resultobj;
16252 fail:
16253 return NULL;
16254 }
16255
16256
16257 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16258 PyObject *resultobj = 0;
16259 wxLocale *arg1 = (wxLocale *) 0 ;
16260 wxString *arg2 = 0 ;
16261 wxString const &arg3_defvalue = wxPyEmptyString ;
16262 wxString *arg3 = (wxString *) &arg3_defvalue ;
16263 wxString const &arg4_defvalue = wxPyEmptyString ;
16264 wxString *arg4 = (wxString *) &arg4_defvalue ;
16265 bool arg5 = (bool) true ;
16266 bool arg6 = (bool) false ;
16267 bool result;
16268 void *argp1 = 0 ;
16269 int res1 = 0 ;
16270 bool temp2 = false ;
16271 bool temp3 = false ;
16272 bool temp4 = false ;
16273 bool val5 ;
16274 int ecode5 = 0 ;
16275 bool val6 ;
16276 int ecode6 = 0 ;
16277 PyObject * obj0 = 0 ;
16278 PyObject * obj1 = 0 ;
16279 PyObject * obj2 = 0 ;
16280 PyObject * obj3 = 0 ;
16281 PyObject * obj4 = 0 ;
16282 PyObject * obj5 = 0 ;
16283 char * kwnames[] = {
16284 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16285 };
16286
16287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16289 if (!SWIG_IsOK(res1)) {
16290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16291 }
16292 arg1 = reinterpret_cast< wxLocale * >(argp1);
16293 {
16294 arg2 = wxString_in_helper(obj1);
16295 if (arg2 == NULL) SWIG_fail;
16296 temp2 = true;
16297 }
16298 if (obj2) {
16299 {
16300 arg3 = wxString_in_helper(obj2);
16301 if (arg3 == NULL) SWIG_fail;
16302 temp3 = true;
16303 }
16304 }
16305 if (obj3) {
16306 {
16307 arg4 = wxString_in_helper(obj3);
16308 if (arg4 == NULL) SWIG_fail;
16309 temp4 = true;
16310 }
16311 }
16312 if (obj4) {
16313 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16314 if (!SWIG_IsOK(ecode5)) {
16315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16316 }
16317 arg5 = static_cast< bool >(val5);
16318 }
16319 if (obj5) {
16320 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16321 if (!SWIG_IsOK(ecode6)) {
16322 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16323 }
16324 arg6 = static_cast< bool >(val6);
16325 }
16326 {
16327 PyThreadState* __tstate = wxPyBeginAllowThreads();
16328 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16329 wxPyEndAllowThreads(__tstate);
16330 if (PyErr_Occurred()) SWIG_fail;
16331 }
16332 {
16333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16334 }
16335 {
16336 if (temp2)
16337 delete arg2;
16338 }
16339 {
16340 if (temp3)
16341 delete arg3;
16342 }
16343 {
16344 if (temp4)
16345 delete arg4;
16346 }
16347 return resultobj;
16348 fail:
16349 {
16350 if (temp2)
16351 delete arg2;
16352 }
16353 {
16354 if (temp3)
16355 delete arg3;
16356 }
16357 {
16358 if (temp4)
16359 delete arg4;
16360 }
16361 return NULL;
16362 }
16363
16364
16365 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16366 PyObject *resultobj = 0;
16367 wxLocale *arg1 = (wxLocale *) 0 ;
16368 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16369 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16370 bool result;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 int val2 ;
16374 int ecode2 = 0 ;
16375 int val3 ;
16376 int ecode3 = 0 ;
16377 PyObject * obj0 = 0 ;
16378 PyObject * obj1 = 0 ;
16379 PyObject * obj2 = 0 ;
16380 char * kwnames[] = {
16381 (char *) "self",(char *) "language",(char *) "flags", NULL
16382 };
16383
16384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16386 if (!SWIG_IsOK(res1)) {
16387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16388 }
16389 arg1 = reinterpret_cast< wxLocale * >(argp1);
16390 if (obj1) {
16391 ecode2 = SWIG_AsVal_int(obj1, &val2);
16392 if (!SWIG_IsOK(ecode2)) {
16393 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16394 }
16395 arg2 = static_cast< int >(val2);
16396 }
16397 if (obj2) {
16398 ecode3 = SWIG_AsVal_int(obj2, &val3);
16399 if (!SWIG_IsOK(ecode3)) {
16400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16401 }
16402 arg3 = static_cast< int >(val3);
16403 }
16404 {
16405 PyThreadState* __tstate = wxPyBeginAllowThreads();
16406 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16407 wxPyEndAllowThreads(__tstate);
16408 if (PyErr_Occurred()) SWIG_fail;
16409 }
16410 {
16411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16412 }
16413 return resultobj;
16414 fail:
16415 return NULL;
16416 }
16417
16418
16419 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16420 PyObject *resultobj = 0;
16421 int result;
16422
16423 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (int)wxLocale::GetSystemLanguage();
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 resultobj = SWIG_From_int(static_cast< int >(result));
16431 return resultobj;
16432 fail:
16433 return NULL;
16434 }
16435
16436
16437 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16438 PyObject *resultobj = 0;
16439 wxFontEncoding result;
16440
16441 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16442 {
16443 PyThreadState* __tstate = wxPyBeginAllowThreads();
16444 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16445 wxPyEndAllowThreads(__tstate);
16446 if (PyErr_Occurred()) SWIG_fail;
16447 }
16448 resultobj = SWIG_From_int(static_cast< int >(result));
16449 return resultobj;
16450 fail:
16451 return NULL;
16452 }
16453
16454
16455 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16456 PyObject *resultobj = 0;
16457 wxString result;
16458
16459 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 result = wxLocale::GetSystemEncodingName();
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 {
16467 #if wxUSE_UNICODE
16468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16469 #else
16470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16471 #endif
16472 }
16473 return resultobj;
16474 fail:
16475 return NULL;
16476 }
16477
16478
16479 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16480 PyObject *resultobj = 0;
16481 wxLocale *arg1 = (wxLocale *) 0 ;
16482 bool result;
16483 void *argp1 = 0 ;
16484 int res1 = 0 ;
16485 PyObject *swig_obj[1] ;
16486
16487 if (!args) SWIG_fail;
16488 swig_obj[0] = args;
16489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16490 if (!SWIG_IsOK(res1)) {
16491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16492 }
16493 arg1 = reinterpret_cast< wxLocale * >(argp1);
16494 {
16495 PyThreadState* __tstate = wxPyBeginAllowThreads();
16496 result = (bool)((wxLocale const *)arg1)->IsOk();
16497 wxPyEndAllowThreads(__tstate);
16498 if (PyErr_Occurred()) SWIG_fail;
16499 }
16500 {
16501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16502 }
16503 return resultobj;
16504 fail:
16505 return NULL;
16506 }
16507
16508
16509 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16510 PyObject *resultobj = 0;
16511 wxLocale *arg1 = (wxLocale *) 0 ;
16512 wxString result;
16513 void *argp1 = 0 ;
16514 int res1 = 0 ;
16515 PyObject *swig_obj[1] ;
16516
16517 if (!args) SWIG_fail;
16518 swig_obj[0] = args;
16519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16520 if (!SWIG_IsOK(res1)) {
16521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16522 }
16523 arg1 = reinterpret_cast< wxLocale * >(argp1);
16524 {
16525 PyThreadState* __tstate = wxPyBeginAllowThreads();
16526 result = ((wxLocale const *)arg1)->GetLocale();
16527 wxPyEndAllowThreads(__tstate);
16528 if (PyErr_Occurred()) SWIG_fail;
16529 }
16530 {
16531 #if wxUSE_UNICODE
16532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16533 #else
16534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16535 #endif
16536 }
16537 return resultobj;
16538 fail:
16539 return NULL;
16540 }
16541
16542
16543 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16544 PyObject *resultobj = 0;
16545 wxLocale *arg1 = (wxLocale *) 0 ;
16546 int result;
16547 void *argp1 = 0 ;
16548 int res1 = 0 ;
16549 PyObject *swig_obj[1] ;
16550
16551 if (!args) SWIG_fail;
16552 swig_obj[0] = args;
16553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16554 if (!SWIG_IsOK(res1)) {
16555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16556 }
16557 arg1 = reinterpret_cast< wxLocale * >(argp1);
16558 {
16559 PyThreadState* __tstate = wxPyBeginAllowThreads();
16560 result = (int)((wxLocale const *)arg1)->GetLanguage();
16561 wxPyEndAllowThreads(__tstate);
16562 if (PyErr_Occurred()) SWIG_fail;
16563 }
16564 resultobj = SWIG_From_int(static_cast< int >(result));
16565 return resultobj;
16566 fail:
16567 return NULL;
16568 }
16569
16570
16571 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16572 PyObject *resultobj = 0;
16573 wxLocale *arg1 = (wxLocale *) 0 ;
16574 wxString result;
16575 void *argp1 = 0 ;
16576 int res1 = 0 ;
16577 PyObject *swig_obj[1] ;
16578
16579 if (!args) SWIG_fail;
16580 swig_obj[0] = args;
16581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16582 if (!SWIG_IsOK(res1)) {
16583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16584 }
16585 arg1 = reinterpret_cast< wxLocale * >(argp1);
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 result = ((wxLocale const *)arg1)->GetSysName();
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 {
16593 #if wxUSE_UNICODE
16594 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16595 #else
16596 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16597 #endif
16598 }
16599 return resultobj;
16600 fail:
16601 return NULL;
16602 }
16603
16604
16605 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16606 PyObject *resultobj = 0;
16607 wxLocale *arg1 = (wxLocale *) 0 ;
16608 wxString result;
16609 void *argp1 = 0 ;
16610 int res1 = 0 ;
16611 PyObject *swig_obj[1] ;
16612
16613 if (!args) SWIG_fail;
16614 swig_obj[0] = args;
16615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16616 if (!SWIG_IsOK(res1)) {
16617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16618 }
16619 arg1 = reinterpret_cast< wxLocale * >(argp1);
16620 {
16621 PyThreadState* __tstate = wxPyBeginAllowThreads();
16622 result = ((wxLocale const *)arg1)->GetCanonicalName();
16623 wxPyEndAllowThreads(__tstate);
16624 if (PyErr_Occurred()) SWIG_fail;
16625 }
16626 {
16627 #if wxUSE_UNICODE
16628 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16629 #else
16630 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16631 #endif
16632 }
16633 return resultobj;
16634 fail:
16635 return NULL;
16636 }
16637
16638
16639 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16640 PyObject *resultobj = 0;
16641 wxString *arg1 = 0 ;
16642 bool temp1 = false ;
16643 PyObject * obj0 = 0 ;
16644 char * kwnames[] = {
16645 (char *) "prefix", NULL
16646 };
16647
16648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16649 {
16650 arg1 = wxString_in_helper(obj0);
16651 if (arg1 == NULL) SWIG_fail;
16652 temp1 = true;
16653 }
16654 {
16655 PyThreadState* __tstate = wxPyBeginAllowThreads();
16656 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16657 wxPyEndAllowThreads(__tstate);
16658 if (PyErr_Occurred()) SWIG_fail;
16659 }
16660 resultobj = SWIG_Py_Void();
16661 {
16662 if (temp1)
16663 delete arg1;
16664 }
16665 return resultobj;
16666 fail:
16667 {
16668 if (temp1)
16669 delete arg1;
16670 }
16671 return NULL;
16672 }
16673
16674
16675 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16676 PyObject *resultobj = 0;
16677 wxLocale *arg1 = (wxLocale *) 0 ;
16678 wxString *arg2 = 0 ;
16679 bool result;
16680 void *argp1 = 0 ;
16681 int res1 = 0 ;
16682 bool temp2 = false ;
16683 PyObject * obj0 = 0 ;
16684 PyObject * obj1 = 0 ;
16685 char * kwnames[] = {
16686 (char *) "self",(char *) "szDomain", NULL
16687 };
16688
16689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16691 if (!SWIG_IsOK(res1)) {
16692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16693 }
16694 arg1 = reinterpret_cast< wxLocale * >(argp1);
16695 {
16696 arg2 = wxString_in_helper(obj1);
16697 if (arg2 == NULL) SWIG_fail;
16698 temp2 = true;
16699 }
16700 {
16701 PyThreadState* __tstate = wxPyBeginAllowThreads();
16702 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16703 wxPyEndAllowThreads(__tstate);
16704 if (PyErr_Occurred()) SWIG_fail;
16705 }
16706 {
16707 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16708 }
16709 {
16710 if (temp2)
16711 delete arg2;
16712 }
16713 return resultobj;
16714 fail:
16715 {
16716 if (temp2)
16717 delete arg2;
16718 }
16719 return NULL;
16720 }
16721
16722
16723 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16724 PyObject *resultobj = 0;
16725 int arg1 ;
16726 bool result;
16727 int val1 ;
16728 int ecode1 = 0 ;
16729 PyObject * obj0 = 0 ;
16730 char * kwnames[] = {
16731 (char *) "lang", NULL
16732 };
16733
16734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16735 ecode1 = SWIG_AsVal_int(obj0, &val1);
16736 if (!SWIG_IsOK(ecode1)) {
16737 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16738 }
16739 arg1 = static_cast< int >(val1);
16740 {
16741 PyThreadState* __tstate = wxPyBeginAllowThreads();
16742 result = (bool)wxLocale::IsAvailable(arg1);
16743 wxPyEndAllowThreads(__tstate);
16744 if (PyErr_Occurred()) SWIG_fail;
16745 }
16746 {
16747 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16748 }
16749 return resultobj;
16750 fail:
16751 return NULL;
16752 }
16753
16754
16755 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16756 PyObject *resultobj = 0;
16757 wxLocale *arg1 = (wxLocale *) 0 ;
16758 wxString *arg2 = 0 ;
16759 bool result;
16760 void *argp1 = 0 ;
16761 int res1 = 0 ;
16762 bool temp2 = false ;
16763 PyObject * obj0 = 0 ;
16764 PyObject * obj1 = 0 ;
16765 char * kwnames[] = {
16766 (char *) "self",(char *) "szDomain", NULL
16767 };
16768
16769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16771 if (!SWIG_IsOK(res1)) {
16772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16773 }
16774 arg1 = reinterpret_cast< wxLocale * >(argp1);
16775 {
16776 arg2 = wxString_in_helper(obj1);
16777 if (arg2 == NULL) SWIG_fail;
16778 temp2 = true;
16779 }
16780 {
16781 PyThreadState* __tstate = wxPyBeginAllowThreads();
16782 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16783 wxPyEndAllowThreads(__tstate);
16784 if (PyErr_Occurred()) SWIG_fail;
16785 }
16786 {
16787 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16788 }
16789 {
16790 if (temp2)
16791 delete arg2;
16792 }
16793 return resultobj;
16794 fail:
16795 {
16796 if (temp2)
16797 delete arg2;
16798 }
16799 return NULL;
16800 }
16801
16802
16803 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16804 PyObject *resultobj = 0;
16805 int arg1 ;
16806 wxLanguageInfo *result = 0 ;
16807 int val1 ;
16808 int ecode1 = 0 ;
16809 PyObject * obj0 = 0 ;
16810 char * kwnames[] = {
16811 (char *) "lang", NULL
16812 };
16813
16814 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16815 ecode1 = SWIG_AsVal_int(obj0, &val1);
16816 if (!SWIG_IsOK(ecode1)) {
16817 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16818 }
16819 arg1 = static_cast< int >(val1);
16820 {
16821 PyThreadState* __tstate = wxPyBeginAllowThreads();
16822 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16823 wxPyEndAllowThreads(__tstate);
16824 if (PyErr_Occurred()) SWIG_fail;
16825 }
16826 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16827 return resultobj;
16828 fail:
16829 return NULL;
16830 }
16831
16832
16833 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16834 PyObject *resultobj = 0;
16835 int arg1 ;
16836 wxString result;
16837 int val1 ;
16838 int ecode1 = 0 ;
16839 PyObject * obj0 = 0 ;
16840 char * kwnames[] = {
16841 (char *) "lang", NULL
16842 };
16843
16844 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16845 ecode1 = SWIG_AsVal_int(obj0, &val1);
16846 if (!SWIG_IsOK(ecode1)) {
16847 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16848 }
16849 arg1 = static_cast< int >(val1);
16850 {
16851 PyThreadState* __tstate = wxPyBeginAllowThreads();
16852 result = wxLocale::GetLanguageName(arg1);
16853 wxPyEndAllowThreads(__tstate);
16854 if (PyErr_Occurred()) SWIG_fail;
16855 }
16856 {
16857 #if wxUSE_UNICODE
16858 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16859 #else
16860 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16861 #endif
16862 }
16863 return resultobj;
16864 fail:
16865 return NULL;
16866 }
16867
16868
16869 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16870 PyObject *resultobj = 0;
16871 wxString *arg1 = 0 ;
16872 wxLanguageInfo *result = 0 ;
16873 bool temp1 = false ;
16874 PyObject * obj0 = 0 ;
16875 char * kwnames[] = {
16876 (char *) "locale", NULL
16877 };
16878
16879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16880 {
16881 arg1 = wxString_in_helper(obj0);
16882 if (arg1 == NULL) SWIG_fail;
16883 temp1 = true;
16884 }
16885 {
16886 PyThreadState* __tstate = wxPyBeginAllowThreads();
16887 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16888 wxPyEndAllowThreads(__tstate);
16889 if (PyErr_Occurred()) SWIG_fail;
16890 }
16891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16892 {
16893 if (temp1)
16894 delete arg1;
16895 }
16896 return resultobj;
16897 fail:
16898 {
16899 if (temp1)
16900 delete arg1;
16901 }
16902 return NULL;
16903 }
16904
16905
16906 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16907 PyObject *resultobj = 0;
16908 wxLanguageInfo *arg1 = 0 ;
16909 void *argp1 = 0 ;
16910 int res1 = 0 ;
16911 PyObject * obj0 = 0 ;
16912 char * kwnames[] = {
16913 (char *) "info", NULL
16914 };
16915
16916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16920 }
16921 if (!argp1) {
16922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16923 }
16924 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16925 {
16926 PyThreadState* __tstate = wxPyBeginAllowThreads();
16927 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16928 wxPyEndAllowThreads(__tstate);
16929 if (PyErr_Occurred()) SWIG_fail;
16930 }
16931 resultobj = SWIG_Py_Void();
16932 return resultobj;
16933 fail:
16934 return NULL;
16935 }
16936
16937
16938 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16939 PyObject *resultobj = 0;
16940 wxLocale *arg1 = (wxLocale *) 0 ;
16941 wxString *arg2 = 0 ;
16942 wxString const &arg3_defvalue = wxPyEmptyString ;
16943 wxString *arg3 = (wxString *) &arg3_defvalue ;
16944 wxString result;
16945 void *argp1 = 0 ;
16946 int res1 = 0 ;
16947 bool temp2 = false ;
16948 bool temp3 = false ;
16949 PyObject * obj0 = 0 ;
16950 PyObject * obj1 = 0 ;
16951 PyObject * obj2 = 0 ;
16952 char * kwnames[] = {
16953 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16954 };
16955
16956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16958 if (!SWIG_IsOK(res1)) {
16959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16960 }
16961 arg1 = reinterpret_cast< wxLocale * >(argp1);
16962 {
16963 arg2 = wxString_in_helper(obj1);
16964 if (arg2 == NULL) SWIG_fail;
16965 temp2 = true;
16966 }
16967 if (obj2) {
16968 {
16969 arg3 = wxString_in_helper(obj2);
16970 if (arg3 == NULL) SWIG_fail;
16971 temp3 = true;
16972 }
16973 }
16974 {
16975 PyThreadState* __tstate = wxPyBeginAllowThreads();
16976 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16977 wxPyEndAllowThreads(__tstate);
16978 if (PyErr_Occurred()) SWIG_fail;
16979 }
16980 {
16981 #if wxUSE_UNICODE
16982 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16983 #else
16984 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16985 #endif
16986 }
16987 {
16988 if (temp2)
16989 delete arg2;
16990 }
16991 {
16992 if (temp3)
16993 delete arg3;
16994 }
16995 return resultobj;
16996 fail:
16997 {
16998 if (temp2)
16999 delete arg2;
17000 }
17001 {
17002 if (temp3)
17003 delete arg3;
17004 }
17005 return NULL;
17006 }
17007
17008
17009 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17010 PyObject *resultobj = 0;
17011 wxLocale *arg1 = (wxLocale *) 0 ;
17012 wxString *result = 0 ;
17013 void *argp1 = 0 ;
17014 int res1 = 0 ;
17015 PyObject *swig_obj[1] ;
17016
17017 if (!args) SWIG_fail;
17018 swig_obj[0] = args;
17019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17020 if (!SWIG_IsOK(res1)) {
17021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17022 }
17023 arg1 = reinterpret_cast< wxLocale * >(argp1);
17024 {
17025 PyThreadState* __tstate = wxPyBeginAllowThreads();
17026 {
17027 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17028 result = (wxString *) &_result_ref;
17029 }
17030 wxPyEndAllowThreads(__tstate);
17031 if (PyErr_Occurred()) SWIG_fail;
17032 }
17033 {
17034 #if wxUSE_UNICODE
17035 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17036 #else
17037 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17038 #endif
17039 }
17040 return resultobj;
17041 fail:
17042 return NULL;
17043 }
17044
17045
17046 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17047 PyObject *obj;
17048 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17049 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17050 return SWIG_Py_Void();
17051 }
17052
17053 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17054 return SWIG_Python_InitShadowInstance(args);
17055 }
17056
17057 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17058 PyObject *resultobj = 0;
17059 int arg1 = (int) -1 ;
17060 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17061 wxPyLocale *result = 0 ;
17062 int val1 ;
17063 int ecode1 = 0 ;
17064 int val2 ;
17065 int ecode2 = 0 ;
17066 PyObject * obj0 = 0 ;
17067 PyObject * obj1 = 0 ;
17068 char * kwnames[] = {
17069 (char *) "language",(char *) "flags", NULL
17070 };
17071
17072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17073 if (obj0) {
17074 ecode1 = SWIG_AsVal_int(obj0, &val1);
17075 if (!SWIG_IsOK(ecode1)) {
17076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17077 }
17078 arg1 = static_cast< int >(val1);
17079 }
17080 if (obj1) {
17081 ecode2 = SWIG_AsVal_int(obj1, &val2);
17082 if (!SWIG_IsOK(ecode2)) {
17083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17084 }
17085 arg2 = static_cast< int >(val2);
17086 }
17087 {
17088 PyThreadState* __tstate = wxPyBeginAllowThreads();
17089 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17090 wxPyEndAllowThreads(__tstate);
17091 if (PyErr_Occurred()) SWIG_fail;
17092 }
17093 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17094 return resultobj;
17095 fail:
17096 return NULL;
17097 }
17098
17099
17100 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17101 PyObject *resultobj = 0;
17102 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17103 void *argp1 = 0 ;
17104 int res1 = 0 ;
17105 PyObject *swig_obj[1] ;
17106
17107 if (!args) SWIG_fail;
17108 swig_obj[0] = args;
17109 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17110 if (!SWIG_IsOK(res1)) {
17111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17112 }
17113 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17114 {
17115 PyThreadState* __tstate = wxPyBeginAllowThreads();
17116 delete arg1;
17117
17118 wxPyEndAllowThreads(__tstate);
17119 if (PyErr_Occurred()) SWIG_fail;
17120 }
17121 resultobj = SWIG_Py_Void();
17122 return resultobj;
17123 fail:
17124 return NULL;
17125 }
17126
17127
17128 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17129 PyObject *resultobj = 0;
17130 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17131 PyObject *arg2 = (PyObject *) 0 ;
17132 PyObject *arg3 = (PyObject *) 0 ;
17133 void *argp1 = 0 ;
17134 int res1 = 0 ;
17135 PyObject * obj0 = 0 ;
17136 PyObject * obj1 = 0 ;
17137 PyObject * obj2 = 0 ;
17138 char * kwnames[] = {
17139 (char *) "self",(char *) "self",(char *) "_class", NULL
17140 };
17141
17142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17144 if (!SWIG_IsOK(res1)) {
17145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17146 }
17147 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17148 arg2 = obj1;
17149 arg3 = obj2;
17150 {
17151 PyThreadState* __tstate = wxPyBeginAllowThreads();
17152 (arg1)->_setCallbackInfo(arg2,arg3);
17153 wxPyEndAllowThreads(__tstate);
17154 if (PyErr_Occurred()) SWIG_fail;
17155 }
17156 resultobj = SWIG_Py_Void();
17157 return resultobj;
17158 fail:
17159 return NULL;
17160 }
17161
17162
17163 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17164 PyObject *resultobj = 0;
17165 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17166 wxChar *arg2 = (wxChar *) 0 ;
17167 wxChar *arg3 = (wxChar *) NULL ;
17168 wxChar *result = 0 ;
17169 void *argp1 = 0 ;
17170 int res1 = 0 ;
17171 void *argp2 = 0 ;
17172 int res2 = 0 ;
17173 void *argp3 = 0 ;
17174 int res3 = 0 ;
17175 PyObject * obj0 = 0 ;
17176 PyObject * obj1 = 0 ;
17177 PyObject * obj2 = 0 ;
17178 char * kwnames[] = {
17179 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17180 };
17181
17182 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17183 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17184 if (!SWIG_IsOK(res1)) {
17185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17186 }
17187 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17188 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17189 if (!SWIG_IsOK(res2)) {
17190 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17191 }
17192 arg2 = reinterpret_cast< wxChar * >(argp2);
17193 if (obj2) {
17194 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17195 if (!SWIG_IsOK(res3)) {
17196 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17197 }
17198 arg3 = reinterpret_cast< wxChar * >(argp3);
17199 }
17200 {
17201 PyThreadState* __tstate = wxPyBeginAllowThreads();
17202 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17203 wxPyEndAllowThreads(__tstate);
17204 if (PyErr_Occurred()) SWIG_fail;
17205 }
17206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17207 return resultobj;
17208 fail:
17209 return NULL;
17210 }
17211
17212
17213 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17214 PyObject *resultobj = 0;
17215 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17216 wxChar *arg2 = (wxChar *) 0 ;
17217 wxChar *arg3 = (wxChar *) 0 ;
17218 size_t arg4 ;
17219 wxChar *arg5 = (wxChar *) NULL ;
17220 wxChar *result = 0 ;
17221 void *argp1 = 0 ;
17222 int res1 = 0 ;
17223 void *argp2 = 0 ;
17224 int res2 = 0 ;
17225 void *argp3 = 0 ;
17226 int res3 = 0 ;
17227 size_t val4 ;
17228 int ecode4 = 0 ;
17229 void *argp5 = 0 ;
17230 int res5 = 0 ;
17231 PyObject * obj0 = 0 ;
17232 PyObject * obj1 = 0 ;
17233 PyObject * obj2 = 0 ;
17234 PyObject * obj3 = 0 ;
17235 PyObject * obj4 = 0 ;
17236 char * kwnames[] = {
17237 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17238 };
17239
17240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17242 if (!SWIG_IsOK(res1)) {
17243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17244 }
17245 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17246 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17247 if (!SWIG_IsOK(res2)) {
17248 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17249 }
17250 arg2 = reinterpret_cast< wxChar * >(argp2);
17251 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17252 if (!SWIG_IsOK(res3)) {
17253 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17254 }
17255 arg3 = reinterpret_cast< wxChar * >(argp3);
17256 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17257 if (!SWIG_IsOK(ecode4)) {
17258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17259 }
17260 arg4 = static_cast< size_t >(val4);
17261 if (obj4) {
17262 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17263 if (!SWIG_IsOK(res5)) {
17264 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17265 }
17266 arg5 = reinterpret_cast< wxChar * >(argp5);
17267 }
17268 {
17269 PyThreadState* __tstate = wxPyBeginAllowThreads();
17270 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17271 wxPyEndAllowThreads(__tstate);
17272 if (PyErr_Occurred()) SWIG_fail;
17273 }
17274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17275 return resultobj;
17276 fail:
17277 return NULL;
17278 }
17279
17280
17281 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17282 PyObject *obj;
17283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17284 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17285 return SWIG_Py_Void();
17286 }
17287
17288 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17289 return SWIG_Python_InitShadowInstance(args);
17290 }
17291
17292 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17293 PyObject *resultobj = 0;
17294 wxLocale *result = 0 ;
17295
17296 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17297 {
17298 PyThreadState* __tstate = wxPyBeginAllowThreads();
17299 result = (wxLocale *)wxGetLocale();
17300 wxPyEndAllowThreads(__tstate);
17301 if (PyErr_Occurred()) SWIG_fail;
17302 }
17303 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17304 return resultobj;
17305 fail:
17306 return NULL;
17307 }
17308
17309
17310 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17311 PyObject *resultobj = 0;
17312 wxString *arg1 = 0 ;
17313 wxString result;
17314 bool temp1 = false ;
17315
17316 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17317 {
17318 arg1 = wxString_in_helper(swig_obj[0]);
17319 if (arg1 == NULL) SWIG_fail;
17320 temp1 = true;
17321 }
17322 {
17323 PyThreadState* __tstate = wxPyBeginAllowThreads();
17324 result = wxGetTranslation((wxString const &)*arg1);
17325 wxPyEndAllowThreads(__tstate);
17326 if (PyErr_Occurred()) SWIG_fail;
17327 }
17328 {
17329 #if wxUSE_UNICODE
17330 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17331 #else
17332 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17333 #endif
17334 }
17335 {
17336 if (temp1)
17337 delete arg1;
17338 }
17339 return resultobj;
17340 fail:
17341 {
17342 if (temp1)
17343 delete arg1;
17344 }
17345 return NULL;
17346 }
17347
17348
17349 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17350 PyObject *resultobj = 0;
17351 wxString *arg1 = 0 ;
17352 wxString *arg2 = 0 ;
17353 wxString result;
17354 bool temp1 = false ;
17355 bool temp2 = false ;
17356
17357 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17358 {
17359 arg1 = wxString_in_helper(swig_obj[0]);
17360 if (arg1 == NULL) SWIG_fail;
17361 temp1 = true;
17362 }
17363 {
17364 arg2 = wxString_in_helper(swig_obj[1]);
17365 if (arg2 == NULL) SWIG_fail;
17366 temp2 = true;
17367 }
17368 {
17369 PyThreadState* __tstate = wxPyBeginAllowThreads();
17370 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17371 wxPyEndAllowThreads(__tstate);
17372 if (PyErr_Occurred()) SWIG_fail;
17373 }
17374 {
17375 #if wxUSE_UNICODE
17376 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17377 #else
17378 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17379 #endif
17380 }
17381 {
17382 if (temp1)
17383 delete arg1;
17384 }
17385 {
17386 if (temp2)
17387 delete arg2;
17388 }
17389 return resultobj;
17390 fail:
17391 {
17392 if (temp1)
17393 delete arg1;
17394 }
17395 {
17396 if (temp2)
17397 delete arg2;
17398 }
17399 return NULL;
17400 }
17401
17402
17403 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17404 PyObject *resultobj = 0;
17405 wxString *arg1 = 0 ;
17406 wxString *arg2 = 0 ;
17407 size_t arg3 ;
17408 wxString result;
17409 bool temp1 = false ;
17410 bool temp2 = false ;
17411 size_t val3 ;
17412 int ecode3 = 0 ;
17413
17414 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17415 {
17416 arg1 = wxString_in_helper(swig_obj[0]);
17417 if (arg1 == NULL) SWIG_fail;
17418 temp1 = true;
17419 }
17420 {
17421 arg2 = wxString_in_helper(swig_obj[1]);
17422 if (arg2 == NULL) SWIG_fail;
17423 temp2 = true;
17424 }
17425 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17426 if (!SWIG_IsOK(ecode3)) {
17427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17428 }
17429 arg3 = static_cast< size_t >(val3);
17430 {
17431 PyThreadState* __tstate = wxPyBeginAllowThreads();
17432 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17433 wxPyEndAllowThreads(__tstate);
17434 if (PyErr_Occurred()) SWIG_fail;
17435 }
17436 {
17437 #if wxUSE_UNICODE
17438 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17439 #else
17440 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17441 #endif
17442 }
17443 {
17444 if (temp1)
17445 delete arg1;
17446 }
17447 {
17448 if (temp2)
17449 delete arg2;
17450 }
17451 return resultobj;
17452 fail:
17453 {
17454 if (temp1)
17455 delete arg1;
17456 }
17457 {
17458 if (temp2)
17459 delete arg2;
17460 }
17461 return NULL;
17462 }
17463
17464
17465 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17466 PyObject *resultobj = 0;
17467 wxString *arg1 = 0 ;
17468 wxString *arg2 = 0 ;
17469 size_t arg3 ;
17470 wxString *arg4 = 0 ;
17471 wxString result;
17472 bool temp1 = false ;
17473 bool temp2 = false ;
17474 size_t val3 ;
17475 int ecode3 = 0 ;
17476 bool temp4 = false ;
17477
17478 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17479 {
17480 arg1 = wxString_in_helper(swig_obj[0]);
17481 if (arg1 == NULL) SWIG_fail;
17482 temp1 = true;
17483 }
17484 {
17485 arg2 = wxString_in_helper(swig_obj[1]);
17486 if (arg2 == NULL) SWIG_fail;
17487 temp2 = true;
17488 }
17489 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17490 if (!SWIG_IsOK(ecode3)) {
17491 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17492 }
17493 arg3 = static_cast< size_t >(val3);
17494 {
17495 arg4 = wxString_in_helper(swig_obj[3]);
17496 if (arg4 == NULL) SWIG_fail;
17497 temp4 = true;
17498 }
17499 {
17500 PyThreadState* __tstate = wxPyBeginAllowThreads();
17501 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17502 wxPyEndAllowThreads(__tstate);
17503 if (PyErr_Occurred()) SWIG_fail;
17504 }
17505 {
17506 #if wxUSE_UNICODE
17507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17508 #else
17509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17510 #endif
17511 }
17512 {
17513 if (temp1)
17514 delete arg1;
17515 }
17516 {
17517 if (temp2)
17518 delete arg2;
17519 }
17520 {
17521 if (temp4)
17522 delete arg4;
17523 }
17524 return resultobj;
17525 fail:
17526 {
17527 if (temp1)
17528 delete arg1;
17529 }
17530 {
17531 if (temp2)
17532 delete arg2;
17533 }
17534 {
17535 if (temp4)
17536 delete arg4;
17537 }
17538 return NULL;
17539 }
17540
17541
17542 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17543 int argc;
17544 PyObject *argv[5];
17545
17546 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17547 --argc;
17548 if (argc == 1) {
17549 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17550 }
17551 if (argc == 2) {
17552 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17553 }
17554 if (argc == 3) {
17555 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17556 }
17557 if (argc == 4) {
17558 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17559 }
17560
17561 fail:
17562 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17563 return NULL;
17564 }
17565
17566
17567 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17568 PyObject *resultobj = 0;
17569 wxEncodingConverter *result = 0 ;
17570
17571 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17572 {
17573 PyThreadState* __tstate = wxPyBeginAllowThreads();
17574 result = (wxEncodingConverter *)new wxEncodingConverter();
17575 wxPyEndAllowThreads(__tstate);
17576 if (PyErr_Occurred()) SWIG_fail;
17577 }
17578 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17579 return resultobj;
17580 fail:
17581 return NULL;
17582 }
17583
17584
17585 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17586 PyObject *resultobj = 0;
17587 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17588 void *argp1 = 0 ;
17589 int res1 = 0 ;
17590 PyObject *swig_obj[1] ;
17591
17592 if (!args) SWIG_fail;
17593 swig_obj[0] = args;
17594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17595 if (!SWIG_IsOK(res1)) {
17596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17597 }
17598 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17599 {
17600 PyThreadState* __tstate = wxPyBeginAllowThreads();
17601 delete arg1;
17602
17603 wxPyEndAllowThreads(__tstate);
17604 if (PyErr_Occurred()) SWIG_fail;
17605 }
17606 resultobj = SWIG_Py_Void();
17607 return resultobj;
17608 fail:
17609 return NULL;
17610 }
17611
17612
17613 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17614 PyObject *resultobj = 0;
17615 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17616 wxFontEncoding arg2 ;
17617 wxFontEncoding arg3 ;
17618 int arg4 = (int) wxCONVERT_STRICT ;
17619 bool result;
17620 void *argp1 = 0 ;
17621 int res1 = 0 ;
17622 int val2 ;
17623 int ecode2 = 0 ;
17624 int val3 ;
17625 int ecode3 = 0 ;
17626 int val4 ;
17627 int ecode4 = 0 ;
17628 PyObject * obj0 = 0 ;
17629 PyObject * obj1 = 0 ;
17630 PyObject * obj2 = 0 ;
17631 PyObject * obj3 = 0 ;
17632 char * kwnames[] = {
17633 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17634 };
17635
17636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17638 if (!SWIG_IsOK(res1)) {
17639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17640 }
17641 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17642 ecode2 = SWIG_AsVal_int(obj1, &val2);
17643 if (!SWIG_IsOK(ecode2)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17645 }
17646 arg2 = static_cast< wxFontEncoding >(val2);
17647 ecode3 = SWIG_AsVal_int(obj2, &val3);
17648 if (!SWIG_IsOK(ecode3)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17650 }
17651 arg3 = static_cast< wxFontEncoding >(val3);
17652 if (obj3) {
17653 ecode4 = SWIG_AsVal_int(obj3, &val4);
17654 if (!SWIG_IsOK(ecode4)) {
17655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17656 }
17657 arg4 = static_cast< int >(val4);
17658 }
17659 {
17660 PyThreadState* __tstate = wxPyBeginAllowThreads();
17661 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17662 wxPyEndAllowThreads(__tstate);
17663 if (PyErr_Occurred()) SWIG_fail;
17664 }
17665 {
17666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17667 }
17668 return resultobj;
17669 fail:
17670 return NULL;
17671 }
17672
17673
17674 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj = 0;
17676 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17677 wxString *arg2 = 0 ;
17678 wxString result;
17679 void *argp1 = 0 ;
17680 int res1 = 0 ;
17681 bool temp2 = false ;
17682 PyObject * obj0 = 0 ;
17683 PyObject * obj1 = 0 ;
17684 char * kwnames[] = {
17685 (char *) "self",(char *) "input", NULL
17686 };
17687
17688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17690 if (!SWIG_IsOK(res1)) {
17691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17692 }
17693 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17694 {
17695 arg2 = wxString_in_helper(obj1);
17696 if (arg2 == NULL) SWIG_fail;
17697 temp2 = true;
17698 }
17699 {
17700 PyThreadState* __tstate = wxPyBeginAllowThreads();
17701 result = (arg1)->Convert((wxString const &)*arg2);
17702 wxPyEndAllowThreads(__tstate);
17703 if (PyErr_Occurred()) SWIG_fail;
17704 }
17705 {
17706 #if wxUSE_UNICODE
17707 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17708 #else
17709 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17710 #endif
17711 }
17712 {
17713 if (temp2)
17714 delete arg2;
17715 }
17716 return resultobj;
17717 fail:
17718 {
17719 if (temp2)
17720 delete arg2;
17721 }
17722 return NULL;
17723 }
17724
17725
17726 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17727 PyObject *resultobj = 0;
17728 wxFontEncoding arg1 ;
17729 int arg2 = (int) wxPLATFORM_CURRENT ;
17730 wxFontEncodingArray result;
17731 int val1 ;
17732 int ecode1 = 0 ;
17733 int val2 ;
17734 int ecode2 = 0 ;
17735 PyObject * obj0 = 0 ;
17736 PyObject * obj1 = 0 ;
17737 char * kwnames[] = {
17738 (char *) "enc",(char *) "platform", NULL
17739 };
17740
17741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17742 ecode1 = SWIG_AsVal_int(obj0, &val1);
17743 if (!SWIG_IsOK(ecode1)) {
17744 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17745 }
17746 arg1 = static_cast< wxFontEncoding >(val1);
17747 if (obj1) {
17748 ecode2 = SWIG_AsVal_int(obj1, &val2);
17749 if (!SWIG_IsOK(ecode2)) {
17750 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17751 }
17752 arg2 = static_cast< int >(val2);
17753 }
17754 {
17755 PyThreadState* __tstate = wxPyBeginAllowThreads();
17756 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17757 wxPyEndAllowThreads(__tstate);
17758 if (PyErr_Occurred()) SWIG_fail;
17759 }
17760 {
17761 resultobj = PyList_New(0);
17762 for (size_t i=0; i < (&result)->GetCount(); i++) {
17763 PyObject* number = PyInt_FromLong((&result)->Item(i));
17764 PyList_Append(resultobj, number);
17765 Py_DECREF(number);
17766 }
17767 }
17768 return resultobj;
17769 fail:
17770 return NULL;
17771 }
17772
17773
17774 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17775 PyObject *resultobj = 0;
17776 wxFontEncoding arg1 ;
17777 wxFontEncodingArray result;
17778 int val1 ;
17779 int ecode1 = 0 ;
17780 PyObject * obj0 = 0 ;
17781 char * kwnames[] = {
17782 (char *) "enc", NULL
17783 };
17784
17785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17786 ecode1 = SWIG_AsVal_int(obj0, &val1);
17787 if (!SWIG_IsOK(ecode1)) {
17788 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17789 }
17790 arg1 = static_cast< wxFontEncoding >(val1);
17791 {
17792 PyThreadState* __tstate = wxPyBeginAllowThreads();
17793 result = wxEncodingConverter::GetAllEquivalents(arg1);
17794 wxPyEndAllowThreads(__tstate);
17795 if (PyErr_Occurred()) SWIG_fail;
17796 }
17797 {
17798 resultobj = PyList_New(0);
17799 for (size_t i=0; i < (&result)->GetCount(); i++) {
17800 PyObject* number = PyInt_FromLong((&result)->Item(i));
17801 PyList_Append(resultobj, number);
17802 Py_DECREF(number);
17803 }
17804 }
17805 return resultobj;
17806 fail:
17807 return NULL;
17808 }
17809
17810
17811 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17812 PyObject *resultobj = 0;
17813 wxFontEncoding arg1 ;
17814 wxFontEncoding arg2 ;
17815 bool result;
17816 int val1 ;
17817 int ecode1 = 0 ;
17818 int val2 ;
17819 int ecode2 = 0 ;
17820 PyObject * obj0 = 0 ;
17821 PyObject * obj1 = 0 ;
17822 char * kwnames[] = {
17823 (char *) "encIn",(char *) "encOut", NULL
17824 };
17825
17826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17827 ecode1 = SWIG_AsVal_int(obj0, &val1);
17828 if (!SWIG_IsOK(ecode1)) {
17829 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17830 }
17831 arg1 = static_cast< wxFontEncoding >(val1);
17832 ecode2 = SWIG_AsVal_int(obj1, &val2);
17833 if (!SWIG_IsOK(ecode2)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17835 }
17836 arg2 = static_cast< wxFontEncoding >(val2);
17837 {
17838 PyThreadState* __tstate = wxPyBeginAllowThreads();
17839 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17840 wxPyEndAllowThreads(__tstate);
17841 if (PyErr_Occurred()) SWIG_fail;
17842 }
17843 {
17844 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17845 }
17846 return resultobj;
17847 fail:
17848 return NULL;
17849 }
17850
17851
17852 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17853 PyObject *obj;
17854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17855 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17856 return SWIG_Py_Void();
17857 }
17858
17859 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17860 return SWIG_Python_InitShadowInstance(args);
17861 }
17862
17863 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17864 PyObject *resultobj = 0;
17865 wxDC *arg1 = (wxDC *) 0 ;
17866 void *argp1 = 0 ;
17867 int res1 = 0 ;
17868 PyObject *swig_obj[1] ;
17869
17870 if (!args) SWIG_fail;
17871 swig_obj[0] = args;
17872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17873 if (!SWIG_IsOK(res1)) {
17874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17875 }
17876 arg1 = reinterpret_cast< wxDC * >(argp1);
17877 {
17878 PyThreadState* __tstate = wxPyBeginAllowThreads();
17879 delete arg1;
17880
17881 wxPyEndAllowThreads(__tstate);
17882 if (PyErr_Occurred()) SWIG_fail;
17883 }
17884 resultobj = SWIG_Py_Void();
17885 return resultobj;
17886 fail:
17887 return NULL;
17888 }
17889
17890
17891 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17892 PyObject *resultobj = 0;
17893 wxDC *arg1 = (wxDC *) 0 ;
17894 int arg2 ;
17895 int arg3 ;
17896 wxColour *arg4 = 0 ;
17897 int arg5 = (int) wxFLOOD_SURFACE ;
17898 bool result;
17899 void *argp1 = 0 ;
17900 int res1 = 0 ;
17901 int val2 ;
17902 int ecode2 = 0 ;
17903 int val3 ;
17904 int ecode3 = 0 ;
17905 wxColour temp4 ;
17906 int val5 ;
17907 int ecode5 = 0 ;
17908 PyObject * obj0 = 0 ;
17909 PyObject * obj1 = 0 ;
17910 PyObject * obj2 = 0 ;
17911 PyObject * obj3 = 0 ;
17912 PyObject * obj4 = 0 ;
17913 char * kwnames[] = {
17914 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17915 };
17916
17917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17919 if (!SWIG_IsOK(res1)) {
17920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17921 }
17922 arg1 = reinterpret_cast< wxDC * >(argp1);
17923 ecode2 = SWIG_AsVal_int(obj1, &val2);
17924 if (!SWIG_IsOK(ecode2)) {
17925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17926 }
17927 arg2 = static_cast< int >(val2);
17928 ecode3 = SWIG_AsVal_int(obj2, &val3);
17929 if (!SWIG_IsOK(ecode3)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17931 }
17932 arg3 = static_cast< int >(val3);
17933 {
17934 arg4 = &temp4;
17935 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17936 }
17937 if (obj4) {
17938 ecode5 = SWIG_AsVal_int(obj4, &val5);
17939 if (!SWIG_IsOK(ecode5)) {
17940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17941 }
17942 arg5 = static_cast< int >(val5);
17943 }
17944 {
17945 PyThreadState* __tstate = wxPyBeginAllowThreads();
17946 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17947 wxPyEndAllowThreads(__tstate);
17948 if (PyErr_Occurred()) SWIG_fail;
17949 }
17950 {
17951 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17952 }
17953 return resultobj;
17954 fail:
17955 return NULL;
17956 }
17957
17958
17959 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17960 PyObject *resultobj = 0;
17961 wxDC *arg1 = (wxDC *) 0 ;
17962 wxPoint *arg2 = 0 ;
17963 wxColour *arg3 = 0 ;
17964 int arg4 = (int) wxFLOOD_SURFACE ;
17965 bool result;
17966 void *argp1 = 0 ;
17967 int res1 = 0 ;
17968 wxPoint temp2 ;
17969 wxColour temp3 ;
17970 int val4 ;
17971 int ecode4 = 0 ;
17972 PyObject * obj0 = 0 ;
17973 PyObject * obj1 = 0 ;
17974 PyObject * obj2 = 0 ;
17975 PyObject * obj3 = 0 ;
17976 char * kwnames[] = {
17977 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17978 };
17979
17980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17982 if (!SWIG_IsOK(res1)) {
17983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17984 }
17985 arg1 = reinterpret_cast< wxDC * >(argp1);
17986 {
17987 arg2 = &temp2;
17988 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17989 }
17990 {
17991 arg3 = &temp3;
17992 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17993 }
17994 if (obj3) {
17995 ecode4 = SWIG_AsVal_int(obj3, &val4);
17996 if (!SWIG_IsOK(ecode4)) {
17997 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
17998 }
17999 arg4 = static_cast< int >(val4);
18000 }
18001 {
18002 PyThreadState* __tstate = wxPyBeginAllowThreads();
18003 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18004 wxPyEndAllowThreads(__tstate);
18005 if (PyErr_Occurred()) SWIG_fail;
18006 }
18007 {
18008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18009 }
18010 return resultobj;
18011 fail:
18012 return NULL;
18013 }
18014
18015
18016 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18017 PyObject *resultobj = 0;
18018 wxDC *arg1 = (wxDC *) 0 ;
18019 wxRect *arg2 = 0 ;
18020 wxColour *arg3 = 0 ;
18021 wxColour *arg4 = 0 ;
18022 wxPoint *arg5 = 0 ;
18023 void *argp1 = 0 ;
18024 int res1 = 0 ;
18025 wxRect temp2 ;
18026 wxColour temp3 ;
18027 wxColour temp4 ;
18028 wxPoint temp5 ;
18029 PyObject * obj0 = 0 ;
18030 PyObject * obj1 = 0 ;
18031 PyObject * obj2 = 0 ;
18032 PyObject * obj3 = 0 ;
18033 PyObject * obj4 = 0 ;
18034 char * kwnames[] = {
18035 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18036 };
18037
18038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18040 if (!SWIG_IsOK(res1)) {
18041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18042 }
18043 arg1 = reinterpret_cast< wxDC * >(argp1);
18044 {
18045 arg2 = &temp2;
18046 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18047 }
18048 {
18049 arg3 = &temp3;
18050 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18051 }
18052 {
18053 arg4 = &temp4;
18054 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18055 }
18056 {
18057 arg5 = &temp5;
18058 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18059 }
18060 {
18061 PyThreadState* __tstate = wxPyBeginAllowThreads();
18062 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18063 wxPyEndAllowThreads(__tstate);
18064 if (PyErr_Occurred()) SWIG_fail;
18065 }
18066 resultobj = SWIG_Py_Void();
18067 return resultobj;
18068 fail:
18069 return NULL;
18070 }
18071
18072
18073 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18074 PyObject *resultobj = 0;
18075 wxDC *arg1 = (wxDC *) 0 ;
18076 wxRect *arg2 = 0 ;
18077 wxColour *arg3 = 0 ;
18078 wxColour *arg4 = 0 ;
18079 wxDirection arg5 = (wxDirection) wxEAST ;
18080 void *argp1 = 0 ;
18081 int res1 = 0 ;
18082 wxRect temp2 ;
18083 wxColour temp3 ;
18084 wxColour temp4 ;
18085 int val5 ;
18086 int ecode5 = 0 ;
18087 PyObject * obj0 = 0 ;
18088 PyObject * obj1 = 0 ;
18089 PyObject * obj2 = 0 ;
18090 PyObject * obj3 = 0 ;
18091 PyObject * obj4 = 0 ;
18092 char * kwnames[] = {
18093 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18094 };
18095
18096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18098 if (!SWIG_IsOK(res1)) {
18099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18100 }
18101 arg1 = reinterpret_cast< wxDC * >(argp1);
18102 {
18103 arg2 = &temp2;
18104 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18105 }
18106 {
18107 arg3 = &temp3;
18108 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18109 }
18110 {
18111 arg4 = &temp4;
18112 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18113 }
18114 if (obj4) {
18115 ecode5 = SWIG_AsVal_int(obj4, &val5);
18116 if (!SWIG_IsOK(ecode5)) {
18117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18118 }
18119 arg5 = static_cast< wxDirection >(val5);
18120 }
18121 {
18122 PyThreadState* __tstate = wxPyBeginAllowThreads();
18123 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18124 wxPyEndAllowThreads(__tstate);
18125 if (PyErr_Occurred()) SWIG_fail;
18126 }
18127 resultobj = SWIG_Py_Void();
18128 return resultobj;
18129 fail:
18130 return NULL;
18131 }
18132
18133
18134 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18135 PyObject *resultobj = 0;
18136 wxDC *arg1 = (wxDC *) 0 ;
18137 int arg2 ;
18138 int arg3 ;
18139 wxColour result;
18140 void *argp1 = 0 ;
18141 int res1 = 0 ;
18142 int val2 ;
18143 int ecode2 = 0 ;
18144 int val3 ;
18145 int ecode3 = 0 ;
18146 PyObject * obj0 = 0 ;
18147 PyObject * obj1 = 0 ;
18148 PyObject * obj2 = 0 ;
18149 char * kwnames[] = {
18150 (char *) "self",(char *) "x",(char *) "y", NULL
18151 };
18152
18153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18155 if (!SWIG_IsOK(res1)) {
18156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18157 }
18158 arg1 = reinterpret_cast< wxDC * >(argp1);
18159 ecode2 = SWIG_AsVal_int(obj1, &val2);
18160 if (!SWIG_IsOK(ecode2)) {
18161 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18162 }
18163 arg2 = static_cast< int >(val2);
18164 ecode3 = SWIG_AsVal_int(obj2, &val3);
18165 if (!SWIG_IsOK(ecode3)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18167 }
18168 arg3 = static_cast< int >(val3);
18169 {
18170 PyThreadState* __tstate = wxPyBeginAllowThreads();
18171 result = wxDC_GetPixel(arg1,arg2,arg3);
18172 wxPyEndAllowThreads(__tstate);
18173 if (PyErr_Occurred()) SWIG_fail;
18174 }
18175 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18176 return resultobj;
18177 fail:
18178 return NULL;
18179 }
18180
18181
18182 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18183 PyObject *resultobj = 0;
18184 wxDC *arg1 = (wxDC *) 0 ;
18185 wxPoint *arg2 = 0 ;
18186 wxColour result;
18187 void *argp1 = 0 ;
18188 int res1 = 0 ;
18189 wxPoint temp2 ;
18190 PyObject * obj0 = 0 ;
18191 PyObject * obj1 = 0 ;
18192 char * kwnames[] = {
18193 (char *) "self",(char *) "pt", NULL
18194 };
18195
18196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18198 if (!SWIG_IsOK(res1)) {
18199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18200 }
18201 arg1 = reinterpret_cast< wxDC * >(argp1);
18202 {
18203 arg2 = &temp2;
18204 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18205 }
18206 {
18207 PyThreadState* __tstate = wxPyBeginAllowThreads();
18208 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18209 wxPyEndAllowThreads(__tstate);
18210 if (PyErr_Occurred()) SWIG_fail;
18211 }
18212 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18213 return resultobj;
18214 fail:
18215 return NULL;
18216 }
18217
18218
18219 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18220 PyObject *resultobj = 0;
18221 wxDC *arg1 = (wxDC *) 0 ;
18222 int arg2 ;
18223 int arg3 ;
18224 int arg4 ;
18225 int arg5 ;
18226 void *argp1 = 0 ;
18227 int res1 = 0 ;
18228 int val2 ;
18229 int ecode2 = 0 ;
18230 int val3 ;
18231 int ecode3 = 0 ;
18232 int val4 ;
18233 int ecode4 = 0 ;
18234 int val5 ;
18235 int ecode5 = 0 ;
18236 PyObject * obj0 = 0 ;
18237 PyObject * obj1 = 0 ;
18238 PyObject * obj2 = 0 ;
18239 PyObject * obj3 = 0 ;
18240 PyObject * obj4 = 0 ;
18241 char * kwnames[] = {
18242 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18243 };
18244
18245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18247 if (!SWIG_IsOK(res1)) {
18248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18249 }
18250 arg1 = reinterpret_cast< wxDC * >(argp1);
18251 ecode2 = SWIG_AsVal_int(obj1, &val2);
18252 if (!SWIG_IsOK(ecode2)) {
18253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18254 }
18255 arg2 = static_cast< int >(val2);
18256 ecode3 = SWIG_AsVal_int(obj2, &val3);
18257 if (!SWIG_IsOK(ecode3)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18259 }
18260 arg3 = static_cast< int >(val3);
18261 ecode4 = SWIG_AsVal_int(obj3, &val4);
18262 if (!SWIG_IsOK(ecode4)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18264 }
18265 arg4 = static_cast< int >(val4);
18266 ecode5 = SWIG_AsVal_int(obj4, &val5);
18267 if (!SWIG_IsOK(ecode5)) {
18268 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18269 }
18270 arg5 = static_cast< int >(val5);
18271 {
18272 PyThreadState* __tstate = wxPyBeginAllowThreads();
18273 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18274 wxPyEndAllowThreads(__tstate);
18275 if (PyErr_Occurred()) SWIG_fail;
18276 }
18277 resultobj = SWIG_Py_Void();
18278 return resultobj;
18279 fail:
18280 return NULL;
18281 }
18282
18283
18284 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18285 PyObject *resultobj = 0;
18286 wxDC *arg1 = (wxDC *) 0 ;
18287 wxPoint *arg2 = 0 ;
18288 wxPoint *arg3 = 0 ;
18289 void *argp1 = 0 ;
18290 int res1 = 0 ;
18291 wxPoint temp2 ;
18292 wxPoint temp3 ;
18293 PyObject * obj0 = 0 ;
18294 PyObject * obj1 = 0 ;
18295 PyObject * obj2 = 0 ;
18296 char * kwnames[] = {
18297 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18298 };
18299
18300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18302 if (!SWIG_IsOK(res1)) {
18303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18304 }
18305 arg1 = reinterpret_cast< wxDC * >(argp1);
18306 {
18307 arg2 = &temp2;
18308 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18309 }
18310 {
18311 arg3 = &temp3;
18312 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18313 }
18314 {
18315 PyThreadState* __tstate = wxPyBeginAllowThreads();
18316 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18317 wxPyEndAllowThreads(__tstate);
18318 if (PyErr_Occurred()) SWIG_fail;
18319 }
18320 resultobj = SWIG_Py_Void();
18321 return resultobj;
18322 fail:
18323 return NULL;
18324 }
18325
18326
18327 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18328 PyObject *resultobj = 0;
18329 wxDC *arg1 = (wxDC *) 0 ;
18330 int arg2 ;
18331 int arg3 ;
18332 void *argp1 = 0 ;
18333 int res1 = 0 ;
18334 int val2 ;
18335 int ecode2 = 0 ;
18336 int val3 ;
18337 int ecode3 = 0 ;
18338 PyObject * obj0 = 0 ;
18339 PyObject * obj1 = 0 ;
18340 PyObject * obj2 = 0 ;
18341 char * kwnames[] = {
18342 (char *) "self",(char *) "x",(char *) "y", NULL
18343 };
18344
18345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18347 if (!SWIG_IsOK(res1)) {
18348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18349 }
18350 arg1 = reinterpret_cast< wxDC * >(argp1);
18351 ecode2 = SWIG_AsVal_int(obj1, &val2);
18352 if (!SWIG_IsOK(ecode2)) {
18353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18354 }
18355 arg2 = static_cast< int >(val2);
18356 ecode3 = SWIG_AsVal_int(obj2, &val3);
18357 if (!SWIG_IsOK(ecode3)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18359 }
18360 arg3 = static_cast< int >(val3);
18361 {
18362 PyThreadState* __tstate = wxPyBeginAllowThreads();
18363 (arg1)->CrossHair(arg2,arg3);
18364 wxPyEndAllowThreads(__tstate);
18365 if (PyErr_Occurred()) SWIG_fail;
18366 }
18367 resultobj = SWIG_Py_Void();
18368 return resultobj;
18369 fail:
18370 return NULL;
18371 }
18372
18373
18374 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18375 PyObject *resultobj = 0;
18376 wxDC *arg1 = (wxDC *) 0 ;
18377 wxPoint *arg2 = 0 ;
18378 void *argp1 = 0 ;
18379 int res1 = 0 ;
18380 wxPoint temp2 ;
18381 PyObject * obj0 = 0 ;
18382 PyObject * obj1 = 0 ;
18383 char * kwnames[] = {
18384 (char *) "self",(char *) "pt", NULL
18385 };
18386
18387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18389 if (!SWIG_IsOK(res1)) {
18390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18391 }
18392 arg1 = reinterpret_cast< wxDC * >(argp1);
18393 {
18394 arg2 = &temp2;
18395 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18396 }
18397 {
18398 PyThreadState* __tstate = wxPyBeginAllowThreads();
18399 (arg1)->CrossHair((wxPoint const &)*arg2);
18400 wxPyEndAllowThreads(__tstate);
18401 if (PyErr_Occurred()) SWIG_fail;
18402 }
18403 resultobj = SWIG_Py_Void();
18404 return resultobj;
18405 fail:
18406 return NULL;
18407 }
18408
18409
18410 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18411 PyObject *resultobj = 0;
18412 wxDC *arg1 = (wxDC *) 0 ;
18413 int arg2 ;
18414 int arg3 ;
18415 int arg4 ;
18416 int arg5 ;
18417 int arg6 ;
18418 int arg7 ;
18419 void *argp1 = 0 ;
18420 int res1 = 0 ;
18421 int val2 ;
18422 int ecode2 = 0 ;
18423 int val3 ;
18424 int ecode3 = 0 ;
18425 int val4 ;
18426 int ecode4 = 0 ;
18427 int val5 ;
18428 int ecode5 = 0 ;
18429 int val6 ;
18430 int ecode6 = 0 ;
18431 int val7 ;
18432 int ecode7 = 0 ;
18433 PyObject * obj0 = 0 ;
18434 PyObject * obj1 = 0 ;
18435 PyObject * obj2 = 0 ;
18436 PyObject * obj3 = 0 ;
18437 PyObject * obj4 = 0 ;
18438 PyObject * obj5 = 0 ;
18439 PyObject * obj6 = 0 ;
18440 char * kwnames[] = {
18441 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18442 };
18443
18444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18446 if (!SWIG_IsOK(res1)) {
18447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18448 }
18449 arg1 = reinterpret_cast< wxDC * >(argp1);
18450 ecode2 = SWIG_AsVal_int(obj1, &val2);
18451 if (!SWIG_IsOK(ecode2)) {
18452 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18453 }
18454 arg2 = static_cast< int >(val2);
18455 ecode3 = SWIG_AsVal_int(obj2, &val3);
18456 if (!SWIG_IsOK(ecode3)) {
18457 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18458 }
18459 arg3 = static_cast< int >(val3);
18460 ecode4 = SWIG_AsVal_int(obj3, &val4);
18461 if (!SWIG_IsOK(ecode4)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18463 }
18464 arg4 = static_cast< int >(val4);
18465 ecode5 = SWIG_AsVal_int(obj4, &val5);
18466 if (!SWIG_IsOK(ecode5)) {
18467 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18468 }
18469 arg5 = static_cast< int >(val5);
18470 ecode6 = SWIG_AsVal_int(obj5, &val6);
18471 if (!SWIG_IsOK(ecode6)) {
18472 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18473 }
18474 arg6 = static_cast< int >(val6);
18475 ecode7 = SWIG_AsVal_int(obj6, &val7);
18476 if (!SWIG_IsOK(ecode7)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18478 }
18479 arg7 = static_cast< int >(val7);
18480 {
18481 PyThreadState* __tstate = wxPyBeginAllowThreads();
18482 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18483 wxPyEndAllowThreads(__tstate);
18484 if (PyErr_Occurred()) SWIG_fail;
18485 }
18486 resultobj = SWIG_Py_Void();
18487 return resultobj;
18488 fail:
18489 return NULL;
18490 }
18491
18492
18493 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18494 PyObject *resultobj = 0;
18495 wxDC *arg1 = (wxDC *) 0 ;
18496 wxPoint *arg2 = 0 ;
18497 wxPoint *arg3 = 0 ;
18498 wxPoint *arg4 = 0 ;
18499 void *argp1 = 0 ;
18500 int res1 = 0 ;
18501 wxPoint temp2 ;
18502 wxPoint temp3 ;
18503 wxPoint temp4 ;
18504 PyObject * obj0 = 0 ;
18505 PyObject * obj1 = 0 ;
18506 PyObject * obj2 = 0 ;
18507 PyObject * obj3 = 0 ;
18508 char * kwnames[] = {
18509 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18510 };
18511
18512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18514 if (!SWIG_IsOK(res1)) {
18515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18516 }
18517 arg1 = reinterpret_cast< wxDC * >(argp1);
18518 {
18519 arg2 = &temp2;
18520 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18521 }
18522 {
18523 arg3 = &temp3;
18524 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18525 }
18526 {
18527 arg4 = &temp4;
18528 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18529 }
18530 {
18531 PyThreadState* __tstate = wxPyBeginAllowThreads();
18532 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18533 wxPyEndAllowThreads(__tstate);
18534 if (PyErr_Occurred()) SWIG_fail;
18535 }
18536 resultobj = SWIG_Py_Void();
18537 return resultobj;
18538 fail:
18539 return NULL;
18540 }
18541
18542
18543 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18544 PyObject *resultobj = 0;
18545 wxDC *arg1 = (wxDC *) 0 ;
18546 int arg2 ;
18547 int arg3 ;
18548 int arg4 ;
18549 int arg5 ;
18550 void *argp1 = 0 ;
18551 int res1 = 0 ;
18552 int val2 ;
18553 int ecode2 = 0 ;
18554 int val3 ;
18555 int ecode3 = 0 ;
18556 int val4 ;
18557 int ecode4 = 0 ;
18558 int val5 ;
18559 int ecode5 = 0 ;
18560 PyObject * obj0 = 0 ;
18561 PyObject * obj1 = 0 ;
18562 PyObject * obj2 = 0 ;
18563 PyObject * obj3 = 0 ;
18564 PyObject * obj4 = 0 ;
18565 char * kwnames[] = {
18566 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18567 };
18568
18569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18571 if (!SWIG_IsOK(res1)) {
18572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18573 }
18574 arg1 = reinterpret_cast< wxDC * >(argp1);
18575 ecode2 = SWIG_AsVal_int(obj1, &val2);
18576 if (!SWIG_IsOK(ecode2)) {
18577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18578 }
18579 arg2 = static_cast< int >(val2);
18580 ecode3 = SWIG_AsVal_int(obj2, &val3);
18581 if (!SWIG_IsOK(ecode3)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18583 }
18584 arg3 = static_cast< int >(val3);
18585 ecode4 = SWIG_AsVal_int(obj3, &val4);
18586 if (!SWIG_IsOK(ecode4)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18588 }
18589 arg4 = static_cast< int >(val4);
18590 ecode5 = SWIG_AsVal_int(obj4, &val5);
18591 if (!SWIG_IsOK(ecode5)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18593 }
18594 arg5 = static_cast< int >(val5);
18595 {
18596 PyThreadState* __tstate = wxPyBeginAllowThreads();
18597 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18598 wxPyEndAllowThreads(__tstate);
18599 if (PyErr_Occurred()) SWIG_fail;
18600 }
18601 resultobj = SWIG_Py_Void();
18602 return resultobj;
18603 fail:
18604 return NULL;
18605 }
18606
18607
18608 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18609 PyObject *resultobj = 0;
18610 wxDC *arg1 = (wxDC *) 0 ;
18611 wxRect *arg2 = 0 ;
18612 void *argp1 = 0 ;
18613 int res1 = 0 ;
18614 wxRect temp2 ;
18615 PyObject * obj0 = 0 ;
18616 PyObject * obj1 = 0 ;
18617 char * kwnames[] = {
18618 (char *) "self",(char *) "rect", NULL
18619 };
18620
18621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18623 if (!SWIG_IsOK(res1)) {
18624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18625 }
18626 arg1 = reinterpret_cast< wxDC * >(argp1);
18627 {
18628 arg2 = &temp2;
18629 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18630 }
18631 {
18632 PyThreadState* __tstate = wxPyBeginAllowThreads();
18633 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18634 wxPyEndAllowThreads(__tstate);
18635 if (PyErr_Occurred()) SWIG_fail;
18636 }
18637 resultobj = SWIG_Py_Void();
18638 return resultobj;
18639 fail:
18640 return NULL;
18641 }
18642
18643
18644 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18645 PyObject *resultobj = 0;
18646 wxDC *arg1 = (wxDC *) 0 ;
18647 int arg2 ;
18648 int arg3 ;
18649 int arg4 ;
18650 int arg5 ;
18651 double arg6 ;
18652 double arg7 ;
18653 void *argp1 = 0 ;
18654 int res1 = 0 ;
18655 int val2 ;
18656 int ecode2 = 0 ;
18657 int val3 ;
18658 int ecode3 = 0 ;
18659 int val4 ;
18660 int ecode4 = 0 ;
18661 int val5 ;
18662 int ecode5 = 0 ;
18663 double val6 ;
18664 int ecode6 = 0 ;
18665 double val7 ;
18666 int ecode7 = 0 ;
18667 PyObject * obj0 = 0 ;
18668 PyObject * obj1 = 0 ;
18669 PyObject * obj2 = 0 ;
18670 PyObject * obj3 = 0 ;
18671 PyObject * obj4 = 0 ;
18672 PyObject * obj5 = 0 ;
18673 PyObject * obj6 = 0 ;
18674 char * kwnames[] = {
18675 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18676 };
18677
18678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18680 if (!SWIG_IsOK(res1)) {
18681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18682 }
18683 arg1 = reinterpret_cast< wxDC * >(argp1);
18684 ecode2 = SWIG_AsVal_int(obj1, &val2);
18685 if (!SWIG_IsOK(ecode2)) {
18686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18687 }
18688 arg2 = static_cast< int >(val2);
18689 ecode3 = SWIG_AsVal_int(obj2, &val3);
18690 if (!SWIG_IsOK(ecode3)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18692 }
18693 arg3 = static_cast< int >(val3);
18694 ecode4 = SWIG_AsVal_int(obj3, &val4);
18695 if (!SWIG_IsOK(ecode4)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18697 }
18698 arg4 = static_cast< int >(val4);
18699 ecode5 = SWIG_AsVal_int(obj4, &val5);
18700 if (!SWIG_IsOK(ecode5)) {
18701 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18702 }
18703 arg5 = static_cast< int >(val5);
18704 ecode6 = SWIG_AsVal_double(obj5, &val6);
18705 if (!SWIG_IsOK(ecode6)) {
18706 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18707 }
18708 arg6 = static_cast< double >(val6);
18709 ecode7 = SWIG_AsVal_double(obj6, &val7);
18710 if (!SWIG_IsOK(ecode7)) {
18711 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18712 }
18713 arg7 = static_cast< double >(val7);
18714 {
18715 PyThreadState* __tstate = wxPyBeginAllowThreads();
18716 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18717 wxPyEndAllowThreads(__tstate);
18718 if (PyErr_Occurred()) SWIG_fail;
18719 }
18720 resultobj = SWIG_Py_Void();
18721 return resultobj;
18722 fail:
18723 return NULL;
18724 }
18725
18726
18727 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18728 PyObject *resultobj = 0;
18729 wxDC *arg1 = (wxDC *) 0 ;
18730 wxPoint *arg2 = 0 ;
18731 wxSize *arg3 = 0 ;
18732 double arg4 ;
18733 double arg5 ;
18734 void *argp1 = 0 ;
18735 int res1 = 0 ;
18736 wxPoint temp2 ;
18737 wxSize temp3 ;
18738 double val4 ;
18739 int ecode4 = 0 ;
18740 double val5 ;
18741 int ecode5 = 0 ;
18742 PyObject * obj0 = 0 ;
18743 PyObject * obj1 = 0 ;
18744 PyObject * obj2 = 0 ;
18745 PyObject * obj3 = 0 ;
18746 PyObject * obj4 = 0 ;
18747 char * kwnames[] = {
18748 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18749 };
18750
18751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18753 if (!SWIG_IsOK(res1)) {
18754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18755 }
18756 arg1 = reinterpret_cast< wxDC * >(argp1);
18757 {
18758 arg2 = &temp2;
18759 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18760 }
18761 {
18762 arg3 = &temp3;
18763 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18764 }
18765 ecode4 = SWIG_AsVal_double(obj3, &val4);
18766 if (!SWIG_IsOK(ecode4)) {
18767 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18768 }
18769 arg4 = static_cast< double >(val4);
18770 ecode5 = SWIG_AsVal_double(obj4, &val5);
18771 if (!SWIG_IsOK(ecode5)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18773 }
18774 arg5 = static_cast< double >(val5);
18775 {
18776 PyThreadState* __tstate = wxPyBeginAllowThreads();
18777 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18778 wxPyEndAllowThreads(__tstate);
18779 if (PyErr_Occurred()) SWIG_fail;
18780 }
18781 resultobj = SWIG_Py_Void();
18782 return resultobj;
18783 fail:
18784 return NULL;
18785 }
18786
18787
18788 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18789 PyObject *resultobj = 0;
18790 wxDC *arg1 = (wxDC *) 0 ;
18791 int arg2 ;
18792 int arg3 ;
18793 void *argp1 = 0 ;
18794 int res1 = 0 ;
18795 int val2 ;
18796 int ecode2 = 0 ;
18797 int val3 ;
18798 int ecode3 = 0 ;
18799 PyObject * obj0 = 0 ;
18800 PyObject * obj1 = 0 ;
18801 PyObject * obj2 = 0 ;
18802 char * kwnames[] = {
18803 (char *) "self",(char *) "x",(char *) "y", NULL
18804 };
18805
18806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18808 if (!SWIG_IsOK(res1)) {
18809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18810 }
18811 arg1 = reinterpret_cast< wxDC * >(argp1);
18812 ecode2 = SWIG_AsVal_int(obj1, &val2);
18813 if (!SWIG_IsOK(ecode2)) {
18814 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18815 }
18816 arg2 = static_cast< int >(val2);
18817 ecode3 = SWIG_AsVal_int(obj2, &val3);
18818 if (!SWIG_IsOK(ecode3)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18820 }
18821 arg3 = static_cast< int >(val3);
18822 {
18823 PyThreadState* __tstate = wxPyBeginAllowThreads();
18824 (arg1)->DrawPoint(arg2,arg3);
18825 wxPyEndAllowThreads(__tstate);
18826 if (PyErr_Occurred()) SWIG_fail;
18827 }
18828 resultobj = SWIG_Py_Void();
18829 return resultobj;
18830 fail:
18831 return NULL;
18832 }
18833
18834
18835 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18836 PyObject *resultobj = 0;
18837 wxDC *arg1 = (wxDC *) 0 ;
18838 wxPoint *arg2 = 0 ;
18839 void *argp1 = 0 ;
18840 int res1 = 0 ;
18841 wxPoint temp2 ;
18842 PyObject * obj0 = 0 ;
18843 PyObject * obj1 = 0 ;
18844 char * kwnames[] = {
18845 (char *) "self",(char *) "pt", NULL
18846 };
18847
18848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18850 if (!SWIG_IsOK(res1)) {
18851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18852 }
18853 arg1 = reinterpret_cast< wxDC * >(argp1);
18854 {
18855 arg2 = &temp2;
18856 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18857 }
18858 {
18859 PyThreadState* __tstate = wxPyBeginAllowThreads();
18860 (arg1)->DrawPoint((wxPoint const &)*arg2);
18861 wxPyEndAllowThreads(__tstate);
18862 if (PyErr_Occurred()) SWIG_fail;
18863 }
18864 resultobj = SWIG_Py_Void();
18865 return resultobj;
18866 fail:
18867 return NULL;
18868 }
18869
18870
18871 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18872 PyObject *resultobj = 0;
18873 wxDC *arg1 = (wxDC *) 0 ;
18874 int arg2 ;
18875 int arg3 ;
18876 int arg4 ;
18877 int arg5 ;
18878 void *argp1 = 0 ;
18879 int res1 = 0 ;
18880 int val2 ;
18881 int ecode2 = 0 ;
18882 int val3 ;
18883 int ecode3 = 0 ;
18884 int val4 ;
18885 int ecode4 = 0 ;
18886 int val5 ;
18887 int ecode5 = 0 ;
18888 PyObject * obj0 = 0 ;
18889 PyObject * obj1 = 0 ;
18890 PyObject * obj2 = 0 ;
18891 PyObject * obj3 = 0 ;
18892 PyObject * obj4 = 0 ;
18893 char * kwnames[] = {
18894 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18895 };
18896
18897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18899 if (!SWIG_IsOK(res1)) {
18900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18901 }
18902 arg1 = reinterpret_cast< wxDC * >(argp1);
18903 ecode2 = SWIG_AsVal_int(obj1, &val2);
18904 if (!SWIG_IsOK(ecode2)) {
18905 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18906 }
18907 arg2 = static_cast< int >(val2);
18908 ecode3 = SWIG_AsVal_int(obj2, &val3);
18909 if (!SWIG_IsOK(ecode3)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18911 }
18912 arg3 = static_cast< int >(val3);
18913 ecode4 = SWIG_AsVal_int(obj3, &val4);
18914 if (!SWIG_IsOK(ecode4)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18916 }
18917 arg4 = static_cast< int >(val4);
18918 ecode5 = SWIG_AsVal_int(obj4, &val5);
18919 if (!SWIG_IsOK(ecode5)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18921 }
18922 arg5 = static_cast< int >(val5);
18923 {
18924 PyThreadState* __tstate = wxPyBeginAllowThreads();
18925 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18926 wxPyEndAllowThreads(__tstate);
18927 if (PyErr_Occurred()) SWIG_fail;
18928 }
18929 resultobj = SWIG_Py_Void();
18930 return resultobj;
18931 fail:
18932 return NULL;
18933 }
18934
18935
18936 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18937 PyObject *resultobj = 0;
18938 wxDC *arg1 = (wxDC *) 0 ;
18939 wxRect *arg2 = 0 ;
18940 void *argp1 = 0 ;
18941 int res1 = 0 ;
18942 wxRect temp2 ;
18943 PyObject * obj0 = 0 ;
18944 PyObject * obj1 = 0 ;
18945 char * kwnames[] = {
18946 (char *) "self",(char *) "rect", NULL
18947 };
18948
18949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18951 if (!SWIG_IsOK(res1)) {
18952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18953 }
18954 arg1 = reinterpret_cast< wxDC * >(argp1);
18955 {
18956 arg2 = &temp2;
18957 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18958 }
18959 {
18960 PyThreadState* __tstate = wxPyBeginAllowThreads();
18961 (arg1)->DrawRectangle((wxRect const &)*arg2);
18962 wxPyEndAllowThreads(__tstate);
18963 if (PyErr_Occurred()) SWIG_fail;
18964 }
18965 resultobj = SWIG_Py_Void();
18966 return resultobj;
18967 fail:
18968 return NULL;
18969 }
18970
18971
18972 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18973 PyObject *resultobj = 0;
18974 wxDC *arg1 = (wxDC *) 0 ;
18975 wxPoint *arg2 = 0 ;
18976 wxSize *arg3 = 0 ;
18977 void *argp1 = 0 ;
18978 int res1 = 0 ;
18979 wxPoint temp2 ;
18980 wxSize temp3 ;
18981 PyObject * obj0 = 0 ;
18982 PyObject * obj1 = 0 ;
18983 PyObject * obj2 = 0 ;
18984 char * kwnames[] = {
18985 (char *) "self",(char *) "pt",(char *) "sz", NULL
18986 };
18987
18988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18990 if (!SWIG_IsOK(res1)) {
18991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18992 }
18993 arg1 = reinterpret_cast< wxDC * >(argp1);
18994 {
18995 arg2 = &temp2;
18996 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18997 }
18998 {
18999 arg3 = &temp3;
19000 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19001 }
19002 {
19003 PyThreadState* __tstate = wxPyBeginAllowThreads();
19004 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19005 wxPyEndAllowThreads(__tstate);
19006 if (PyErr_Occurred()) SWIG_fail;
19007 }
19008 resultobj = SWIG_Py_Void();
19009 return resultobj;
19010 fail:
19011 return NULL;
19012 }
19013
19014
19015 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19016 PyObject *resultobj = 0;
19017 wxDC *arg1 = (wxDC *) 0 ;
19018 int arg2 ;
19019 int arg3 ;
19020 int arg4 ;
19021 int arg5 ;
19022 double arg6 ;
19023 void *argp1 = 0 ;
19024 int res1 = 0 ;
19025 int val2 ;
19026 int ecode2 = 0 ;
19027 int val3 ;
19028 int ecode3 = 0 ;
19029 int val4 ;
19030 int ecode4 = 0 ;
19031 int val5 ;
19032 int ecode5 = 0 ;
19033 double val6 ;
19034 int ecode6 = 0 ;
19035 PyObject * obj0 = 0 ;
19036 PyObject * obj1 = 0 ;
19037 PyObject * obj2 = 0 ;
19038 PyObject * obj3 = 0 ;
19039 PyObject * obj4 = 0 ;
19040 PyObject * obj5 = 0 ;
19041 char * kwnames[] = {
19042 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19043 };
19044
19045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19047 if (!SWIG_IsOK(res1)) {
19048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19049 }
19050 arg1 = reinterpret_cast< wxDC * >(argp1);
19051 ecode2 = SWIG_AsVal_int(obj1, &val2);
19052 if (!SWIG_IsOK(ecode2)) {
19053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19054 }
19055 arg2 = static_cast< int >(val2);
19056 ecode3 = SWIG_AsVal_int(obj2, &val3);
19057 if (!SWIG_IsOK(ecode3)) {
19058 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19059 }
19060 arg3 = static_cast< int >(val3);
19061 ecode4 = SWIG_AsVal_int(obj3, &val4);
19062 if (!SWIG_IsOK(ecode4)) {
19063 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19064 }
19065 arg4 = static_cast< int >(val4);
19066 ecode5 = SWIG_AsVal_int(obj4, &val5);
19067 if (!SWIG_IsOK(ecode5)) {
19068 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19069 }
19070 arg5 = static_cast< int >(val5);
19071 ecode6 = SWIG_AsVal_double(obj5, &val6);
19072 if (!SWIG_IsOK(ecode6)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19074 }
19075 arg6 = static_cast< double >(val6);
19076 {
19077 PyThreadState* __tstate = wxPyBeginAllowThreads();
19078 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19079 wxPyEndAllowThreads(__tstate);
19080 if (PyErr_Occurred()) SWIG_fail;
19081 }
19082 resultobj = SWIG_Py_Void();
19083 return resultobj;
19084 fail:
19085 return NULL;
19086 }
19087
19088
19089 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19090 PyObject *resultobj = 0;
19091 wxDC *arg1 = (wxDC *) 0 ;
19092 wxRect *arg2 = 0 ;
19093 double arg3 ;
19094 void *argp1 = 0 ;
19095 int res1 = 0 ;
19096 wxRect temp2 ;
19097 double val3 ;
19098 int ecode3 = 0 ;
19099 PyObject * obj0 = 0 ;
19100 PyObject * obj1 = 0 ;
19101 PyObject * obj2 = 0 ;
19102 char * kwnames[] = {
19103 (char *) "self",(char *) "r",(char *) "radius", NULL
19104 };
19105
19106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19108 if (!SWIG_IsOK(res1)) {
19109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19110 }
19111 arg1 = reinterpret_cast< wxDC * >(argp1);
19112 {
19113 arg2 = &temp2;
19114 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19115 }
19116 ecode3 = SWIG_AsVal_double(obj2, &val3);
19117 if (!SWIG_IsOK(ecode3)) {
19118 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19119 }
19120 arg3 = static_cast< double >(val3);
19121 {
19122 PyThreadState* __tstate = wxPyBeginAllowThreads();
19123 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19124 wxPyEndAllowThreads(__tstate);
19125 if (PyErr_Occurred()) SWIG_fail;
19126 }
19127 resultobj = SWIG_Py_Void();
19128 return resultobj;
19129 fail:
19130 return NULL;
19131 }
19132
19133
19134 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19135 PyObject *resultobj = 0;
19136 wxDC *arg1 = (wxDC *) 0 ;
19137 wxPoint *arg2 = 0 ;
19138 wxSize *arg3 = 0 ;
19139 double arg4 ;
19140 void *argp1 = 0 ;
19141 int res1 = 0 ;
19142 wxPoint temp2 ;
19143 wxSize temp3 ;
19144 double val4 ;
19145 int ecode4 = 0 ;
19146 PyObject * obj0 = 0 ;
19147 PyObject * obj1 = 0 ;
19148 PyObject * obj2 = 0 ;
19149 PyObject * obj3 = 0 ;
19150 char * kwnames[] = {
19151 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19152 };
19153
19154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19156 if (!SWIG_IsOK(res1)) {
19157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19158 }
19159 arg1 = reinterpret_cast< wxDC * >(argp1);
19160 {
19161 arg2 = &temp2;
19162 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19163 }
19164 {
19165 arg3 = &temp3;
19166 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19167 }
19168 ecode4 = SWIG_AsVal_double(obj3, &val4);
19169 if (!SWIG_IsOK(ecode4)) {
19170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19171 }
19172 arg4 = static_cast< double >(val4);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 resultobj = SWIG_Py_Void();
19180 return resultobj;
19181 fail:
19182 return NULL;
19183 }
19184
19185
19186 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19187 PyObject *resultobj = 0;
19188 wxDC *arg1 = (wxDC *) 0 ;
19189 int arg2 ;
19190 int arg3 ;
19191 int arg4 ;
19192 void *argp1 = 0 ;
19193 int res1 = 0 ;
19194 int val2 ;
19195 int ecode2 = 0 ;
19196 int val3 ;
19197 int ecode3 = 0 ;
19198 int val4 ;
19199 int ecode4 = 0 ;
19200 PyObject * obj0 = 0 ;
19201 PyObject * obj1 = 0 ;
19202 PyObject * obj2 = 0 ;
19203 PyObject * obj3 = 0 ;
19204 char * kwnames[] = {
19205 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19206 };
19207
19208 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19209 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19210 if (!SWIG_IsOK(res1)) {
19211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19212 }
19213 arg1 = reinterpret_cast< wxDC * >(argp1);
19214 ecode2 = SWIG_AsVal_int(obj1, &val2);
19215 if (!SWIG_IsOK(ecode2)) {
19216 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19217 }
19218 arg2 = static_cast< int >(val2);
19219 ecode3 = SWIG_AsVal_int(obj2, &val3);
19220 if (!SWIG_IsOK(ecode3)) {
19221 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19222 }
19223 arg3 = static_cast< int >(val3);
19224 ecode4 = SWIG_AsVal_int(obj3, &val4);
19225 if (!SWIG_IsOK(ecode4)) {
19226 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19227 }
19228 arg4 = static_cast< int >(val4);
19229 {
19230 PyThreadState* __tstate = wxPyBeginAllowThreads();
19231 (arg1)->DrawCircle(arg2,arg3,arg4);
19232 wxPyEndAllowThreads(__tstate);
19233 if (PyErr_Occurred()) SWIG_fail;
19234 }
19235 resultobj = SWIG_Py_Void();
19236 return resultobj;
19237 fail:
19238 return NULL;
19239 }
19240
19241
19242 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19243 PyObject *resultobj = 0;
19244 wxDC *arg1 = (wxDC *) 0 ;
19245 wxPoint *arg2 = 0 ;
19246 int arg3 ;
19247 void *argp1 = 0 ;
19248 int res1 = 0 ;
19249 wxPoint temp2 ;
19250 int val3 ;
19251 int ecode3 = 0 ;
19252 PyObject * obj0 = 0 ;
19253 PyObject * obj1 = 0 ;
19254 PyObject * obj2 = 0 ;
19255 char * kwnames[] = {
19256 (char *) "self",(char *) "pt",(char *) "radius", NULL
19257 };
19258
19259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19261 if (!SWIG_IsOK(res1)) {
19262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19263 }
19264 arg1 = reinterpret_cast< wxDC * >(argp1);
19265 {
19266 arg2 = &temp2;
19267 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19268 }
19269 ecode3 = SWIG_AsVal_int(obj2, &val3);
19270 if (!SWIG_IsOK(ecode3)) {
19271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19272 }
19273 arg3 = static_cast< int >(val3);
19274 {
19275 PyThreadState* __tstate = wxPyBeginAllowThreads();
19276 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19277 wxPyEndAllowThreads(__tstate);
19278 if (PyErr_Occurred()) SWIG_fail;
19279 }
19280 resultobj = SWIG_Py_Void();
19281 return resultobj;
19282 fail:
19283 return NULL;
19284 }
19285
19286
19287 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19288 PyObject *resultobj = 0;
19289 wxDC *arg1 = (wxDC *) 0 ;
19290 int arg2 ;
19291 int arg3 ;
19292 int arg4 ;
19293 int arg5 ;
19294 void *argp1 = 0 ;
19295 int res1 = 0 ;
19296 int val2 ;
19297 int ecode2 = 0 ;
19298 int val3 ;
19299 int ecode3 = 0 ;
19300 int val4 ;
19301 int ecode4 = 0 ;
19302 int val5 ;
19303 int ecode5 = 0 ;
19304 PyObject * obj0 = 0 ;
19305 PyObject * obj1 = 0 ;
19306 PyObject * obj2 = 0 ;
19307 PyObject * obj3 = 0 ;
19308 PyObject * obj4 = 0 ;
19309 char * kwnames[] = {
19310 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19311 };
19312
19313 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19314 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19315 if (!SWIG_IsOK(res1)) {
19316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19317 }
19318 arg1 = reinterpret_cast< wxDC * >(argp1);
19319 ecode2 = SWIG_AsVal_int(obj1, &val2);
19320 if (!SWIG_IsOK(ecode2)) {
19321 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19322 }
19323 arg2 = static_cast< int >(val2);
19324 ecode3 = SWIG_AsVal_int(obj2, &val3);
19325 if (!SWIG_IsOK(ecode3)) {
19326 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19327 }
19328 arg3 = static_cast< int >(val3);
19329 ecode4 = SWIG_AsVal_int(obj3, &val4);
19330 if (!SWIG_IsOK(ecode4)) {
19331 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19332 }
19333 arg4 = static_cast< int >(val4);
19334 ecode5 = SWIG_AsVal_int(obj4, &val5);
19335 if (!SWIG_IsOK(ecode5)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19337 }
19338 arg5 = static_cast< int >(val5);
19339 {
19340 PyThreadState* __tstate = wxPyBeginAllowThreads();
19341 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19342 wxPyEndAllowThreads(__tstate);
19343 if (PyErr_Occurred()) SWIG_fail;
19344 }
19345 resultobj = SWIG_Py_Void();
19346 return resultobj;
19347 fail:
19348 return NULL;
19349 }
19350
19351
19352 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19353 PyObject *resultobj = 0;
19354 wxDC *arg1 = (wxDC *) 0 ;
19355 wxRect *arg2 = 0 ;
19356 void *argp1 = 0 ;
19357 int res1 = 0 ;
19358 wxRect temp2 ;
19359 PyObject * obj0 = 0 ;
19360 PyObject * obj1 = 0 ;
19361 char * kwnames[] = {
19362 (char *) "self",(char *) "rect", NULL
19363 };
19364
19365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19367 if (!SWIG_IsOK(res1)) {
19368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19369 }
19370 arg1 = reinterpret_cast< wxDC * >(argp1);
19371 {
19372 arg2 = &temp2;
19373 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19374 }
19375 {
19376 PyThreadState* __tstate = wxPyBeginAllowThreads();
19377 (arg1)->DrawEllipse((wxRect const &)*arg2);
19378 wxPyEndAllowThreads(__tstate);
19379 if (PyErr_Occurred()) SWIG_fail;
19380 }
19381 resultobj = SWIG_Py_Void();
19382 return resultobj;
19383 fail:
19384 return NULL;
19385 }
19386
19387
19388 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19389 PyObject *resultobj = 0;
19390 wxDC *arg1 = (wxDC *) 0 ;
19391 wxPoint *arg2 = 0 ;
19392 wxSize *arg3 = 0 ;
19393 void *argp1 = 0 ;
19394 int res1 = 0 ;
19395 wxPoint temp2 ;
19396 wxSize temp3 ;
19397 PyObject * obj0 = 0 ;
19398 PyObject * obj1 = 0 ;
19399 PyObject * obj2 = 0 ;
19400 char * kwnames[] = {
19401 (char *) "self",(char *) "pt",(char *) "sz", NULL
19402 };
19403
19404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19406 if (!SWIG_IsOK(res1)) {
19407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19408 }
19409 arg1 = reinterpret_cast< wxDC * >(argp1);
19410 {
19411 arg2 = &temp2;
19412 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19413 }
19414 {
19415 arg3 = &temp3;
19416 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19417 }
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 resultobj = SWIG_Py_Void();
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19432 PyObject *resultobj = 0;
19433 wxDC *arg1 = (wxDC *) 0 ;
19434 wxIcon *arg2 = 0 ;
19435 int arg3 ;
19436 int arg4 ;
19437 void *argp1 = 0 ;
19438 int res1 = 0 ;
19439 void *argp2 = 0 ;
19440 int res2 = 0 ;
19441 int val3 ;
19442 int ecode3 = 0 ;
19443 int val4 ;
19444 int ecode4 = 0 ;
19445 PyObject * obj0 = 0 ;
19446 PyObject * obj1 = 0 ;
19447 PyObject * obj2 = 0 ;
19448 PyObject * obj3 = 0 ;
19449 char * kwnames[] = {
19450 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19451 };
19452
19453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19455 if (!SWIG_IsOK(res1)) {
19456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19457 }
19458 arg1 = reinterpret_cast< wxDC * >(argp1);
19459 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19460 if (!SWIG_IsOK(res2)) {
19461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19462 }
19463 if (!argp2) {
19464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19465 }
19466 arg2 = reinterpret_cast< wxIcon * >(argp2);
19467 ecode3 = SWIG_AsVal_int(obj2, &val3);
19468 if (!SWIG_IsOK(ecode3)) {
19469 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19470 }
19471 arg3 = static_cast< int >(val3);
19472 ecode4 = SWIG_AsVal_int(obj3, &val4);
19473 if (!SWIG_IsOK(ecode4)) {
19474 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19475 }
19476 arg4 = static_cast< int >(val4);
19477 {
19478 PyThreadState* __tstate = wxPyBeginAllowThreads();
19479 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19480 wxPyEndAllowThreads(__tstate);
19481 if (PyErr_Occurred()) SWIG_fail;
19482 }
19483 resultobj = SWIG_Py_Void();
19484 return resultobj;
19485 fail:
19486 return NULL;
19487 }
19488
19489
19490 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19491 PyObject *resultobj = 0;
19492 wxDC *arg1 = (wxDC *) 0 ;
19493 wxIcon *arg2 = 0 ;
19494 wxPoint *arg3 = 0 ;
19495 void *argp1 = 0 ;
19496 int res1 = 0 ;
19497 void *argp2 = 0 ;
19498 int res2 = 0 ;
19499 wxPoint temp3 ;
19500 PyObject * obj0 = 0 ;
19501 PyObject * obj1 = 0 ;
19502 PyObject * obj2 = 0 ;
19503 char * kwnames[] = {
19504 (char *) "self",(char *) "icon",(char *) "pt", NULL
19505 };
19506
19507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19508 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19509 if (!SWIG_IsOK(res1)) {
19510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19511 }
19512 arg1 = reinterpret_cast< wxDC * >(argp1);
19513 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19514 if (!SWIG_IsOK(res2)) {
19515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19516 }
19517 if (!argp2) {
19518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19519 }
19520 arg2 = reinterpret_cast< wxIcon * >(argp2);
19521 {
19522 arg3 = &temp3;
19523 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19524 }
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19528 wxPyEndAllowThreads(__tstate);
19529 if (PyErr_Occurred()) SWIG_fail;
19530 }
19531 resultobj = SWIG_Py_Void();
19532 return resultobj;
19533 fail:
19534 return NULL;
19535 }
19536
19537
19538 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19539 PyObject *resultobj = 0;
19540 wxDC *arg1 = (wxDC *) 0 ;
19541 wxBitmap *arg2 = 0 ;
19542 int arg3 ;
19543 int arg4 ;
19544 bool arg5 = (bool) false ;
19545 void *argp1 = 0 ;
19546 int res1 = 0 ;
19547 void *argp2 = 0 ;
19548 int res2 = 0 ;
19549 int val3 ;
19550 int ecode3 = 0 ;
19551 int val4 ;
19552 int ecode4 = 0 ;
19553 bool val5 ;
19554 int ecode5 = 0 ;
19555 PyObject * obj0 = 0 ;
19556 PyObject * obj1 = 0 ;
19557 PyObject * obj2 = 0 ;
19558 PyObject * obj3 = 0 ;
19559 PyObject * obj4 = 0 ;
19560 char * kwnames[] = {
19561 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19562 };
19563
19564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19566 if (!SWIG_IsOK(res1)) {
19567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19568 }
19569 arg1 = reinterpret_cast< wxDC * >(argp1);
19570 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19571 if (!SWIG_IsOK(res2)) {
19572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19573 }
19574 if (!argp2) {
19575 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19576 }
19577 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19578 ecode3 = SWIG_AsVal_int(obj2, &val3);
19579 if (!SWIG_IsOK(ecode3)) {
19580 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19581 }
19582 arg3 = static_cast< int >(val3);
19583 ecode4 = SWIG_AsVal_int(obj3, &val4);
19584 if (!SWIG_IsOK(ecode4)) {
19585 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19586 }
19587 arg4 = static_cast< int >(val4);
19588 if (obj4) {
19589 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19590 if (!SWIG_IsOK(ecode5)) {
19591 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19592 }
19593 arg5 = static_cast< bool >(val5);
19594 }
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_Py_Void();
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19609 PyObject *resultobj = 0;
19610 wxDC *arg1 = (wxDC *) 0 ;
19611 wxBitmap *arg2 = 0 ;
19612 wxPoint *arg3 = 0 ;
19613 bool arg4 = (bool) false ;
19614 void *argp1 = 0 ;
19615 int res1 = 0 ;
19616 void *argp2 = 0 ;
19617 int res2 = 0 ;
19618 wxPoint temp3 ;
19619 bool val4 ;
19620 int ecode4 = 0 ;
19621 PyObject * obj0 = 0 ;
19622 PyObject * obj1 = 0 ;
19623 PyObject * obj2 = 0 ;
19624 PyObject * obj3 = 0 ;
19625 char * kwnames[] = {
19626 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19627 };
19628
19629 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19630 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19631 if (!SWIG_IsOK(res1)) {
19632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19633 }
19634 arg1 = reinterpret_cast< wxDC * >(argp1);
19635 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19636 if (!SWIG_IsOK(res2)) {
19637 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19638 }
19639 if (!argp2) {
19640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19641 }
19642 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19643 {
19644 arg3 = &temp3;
19645 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19646 }
19647 if (obj3) {
19648 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19649 if (!SWIG_IsOK(ecode4)) {
19650 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19651 }
19652 arg4 = static_cast< bool >(val4);
19653 }
19654 {
19655 PyThreadState* __tstate = wxPyBeginAllowThreads();
19656 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19657 wxPyEndAllowThreads(__tstate);
19658 if (PyErr_Occurred()) SWIG_fail;
19659 }
19660 resultobj = SWIG_Py_Void();
19661 return resultobj;
19662 fail:
19663 return NULL;
19664 }
19665
19666
19667 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19668 PyObject *resultobj = 0;
19669 wxDC *arg1 = (wxDC *) 0 ;
19670 wxString *arg2 = 0 ;
19671 int arg3 ;
19672 int arg4 ;
19673 void *argp1 = 0 ;
19674 int res1 = 0 ;
19675 bool temp2 = false ;
19676 int val3 ;
19677 int ecode3 = 0 ;
19678 int val4 ;
19679 int ecode4 = 0 ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 PyObject * obj2 = 0 ;
19683 PyObject * obj3 = 0 ;
19684 char * kwnames[] = {
19685 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19686 };
19687
19688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19690 if (!SWIG_IsOK(res1)) {
19691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19692 }
19693 arg1 = reinterpret_cast< wxDC * >(argp1);
19694 {
19695 arg2 = wxString_in_helper(obj1);
19696 if (arg2 == NULL) SWIG_fail;
19697 temp2 = true;
19698 }
19699 ecode3 = SWIG_AsVal_int(obj2, &val3);
19700 if (!SWIG_IsOK(ecode3)) {
19701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19702 }
19703 arg3 = static_cast< int >(val3);
19704 ecode4 = SWIG_AsVal_int(obj3, &val4);
19705 if (!SWIG_IsOK(ecode4)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19707 }
19708 arg4 = static_cast< int >(val4);
19709 {
19710 PyThreadState* __tstate = wxPyBeginAllowThreads();
19711 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19712 wxPyEndAllowThreads(__tstate);
19713 if (PyErr_Occurred()) SWIG_fail;
19714 }
19715 resultobj = SWIG_Py_Void();
19716 {
19717 if (temp2)
19718 delete arg2;
19719 }
19720 return resultobj;
19721 fail:
19722 {
19723 if (temp2)
19724 delete arg2;
19725 }
19726 return NULL;
19727 }
19728
19729
19730 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19731 PyObject *resultobj = 0;
19732 wxDC *arg1 = (wxDC *) 0 ;
19733 wxString *arg2 = 0 ;
19734 wxPoint *arg3 = 0 ;
19735 void *argp1 = 0 ;
19736 int res1 = 0 ;
19737 bool temp2 = false ;
19738 wxPoint temp3 ;
19739 PyObject * obj0 = 0 ;
19740 PyObject * obj1 = 0 ;
19741 PyObject * obj2 = 0 ;
19742 char * kwnames[] = {
19743 (char *) "self",(char *) "text",(char *) "pt", NULL
19744 };
19745
19746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19748 if (!SWIG_IsOK(res1)) {
19749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19750 }
19751 arg1 = reinterpret_cast< wxDC * >(argp1);
19752 {
19753 arg2 = wxString_in_helper(obj1);
19754 if (arg2 == NULL) SWIG_fail;
19755 temp2 = true;
19756 }
19757 {
19758 arg3 = &temp3;
19759 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19760 }
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_Py_Void();
19768 {
19769 if (temp2)
19770 delete arg2;
19771 }
19772 return resultobj;
19773 fail:
19774 {
19775 if (temp2)
19776 delete arg2;
19777 }
19778 return NULL;
19779 }
19780
19781
19782 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19783 PyObject *resultobj = 0;
19784 wxDC *arg1 = (wxDC *) 0 ;
19785 wxString *arg2 = 0 ;
19786 int arg3 ;
19787 int arg4 ;
19788 double arg5 ;
19789 void *argp1 = 0 ;
19790 int res1 = 0 ;
19791 bool temp2 = false ;
19792 int val3 ;
19793 int ecode3 = 0 ;
19794 int val4 ;
19795 int ecode4 = 0 ;
19796 double val5 ;
19797 int ecode5 = 0 ;
19798 PyObject * obj0 = 0 ;
19799 PyObject * obj1 = 0 ;
19800 PyObject * obj2 = 0 ;
19801 PyObject * obj3 = 0 ;
19802 PyObject * obj4 = 0 ;
19803 char * kwnames[] = {
19804 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19805 };
19806
19807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19809 if (!SWIG_IsOK(res1)) {
19810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19811 }
19812 arg1 = reinterpret_cast< wxDC * >(argp1);
19813 {
19814 arg2 = wxString_in_helper(obj1);
19815 if (arg2 == NULL) SWIG_fail;
19816 temp2 = true;
19817 }
19818 ecode3 = SWIG_AsVal_int(obj2, &val3);
19819 if (!SWIG_IsOK(ecode3)) {
19820 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19821 }
19822 arg3 = static_cast< int >(val3);
19823 ecode4 = SWIG_AsVal_int(obj3, &val4);
19824 if (!SWIG_IsOK(ecode4)) {
19825 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19826 }
19827 arg4 = static_cast< int >(val4);
19828 ecode5 = SWIG_AsVal_double(obj4, &val5);
19829 if (!SWIG_IsOK(ecode5)) {
19830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19831 }
19832 arg5 = static_cast< double >(val5);
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 resultobj = SWIG_Py_Void();
19840 {
19841 if (temp2)
19842 delete arg2;
19843 }
19844 return resultobj;
19845 fail:
19846 {
19847 if (temp2)
19848 delete arg2;
19849 }
19850 return NULL;
19851 }
19852
19853
19854 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19855 PyObject *resultobj = 0;
19856 wxDC *arg1 = (wxDC *) 0 ;
19857 wxString *arg2 = 0 ;
19858 wxPoint *arg3 = 0 ;
19859 double arg4 ;
19860 void *argp1 = 0 ;
19861 int res1 = 0 ;
19862 bool temp2 = false ;
19863 wxPoint temp3 ;
19864 double val4 ;
19865 int ecode4 = 0 ;
19866 PyObject * obj0 = 0 ;
19867 PyObject * obj1 = 0 ;
19868 PyObject * obj2 = 0 ;
19869 PyObject * obj3 = 0 ;
19870 char * kwnames[] = {
19871 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19872 };
19873
19874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19876 if (!SWIG_IsOK(res1)) {
19877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19878 }
19879 arg1 = reinterpret_cast< wxDC * >(argp1);
19880 {
19881 arg2 = wxString_in_helper(obj1);
19882 if (arg2 == NULL) SWIG_fail;
19883 temp2 = true;
19884 }
19885 {
19886 arg3 = &temp3;
19887 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19888 }
19889 ecode4 = SWIG_AsVal_double(obj3, &val4);
19890 if (!SWIG_IsOK(ecode4)) {
19891 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19892 }
19893 arg4 = static_cast< double >(val4);
19894 {
19895 PyThreadState* __tstate = wxPyBeginAllowThreads();
19896 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19897 wxPyEndAllowThreads(__tstate);
19898 if (PyErr_Occurred()) SWIG_fail;
19899 }
19900 resultobj = SWIG_Py_Void();
19901 {
19902 if (temp2)
19903 delete arg2;
19904 }
19905 return resultobj;
19906 fail:
19907 {
19908 if (temp2)
19909 delete arg2;
19910 }
19911 return NULL;
19912 }
19913
19914
19915 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19916 PyObject *resultobj = 0;
19917 wxDC *arg1 = (wxDC *) 0 ;
19918 int arg2 ;
19919 int arg3 ;
19920 int arg4 ;
19921 int arg5 ;
19922 wxDC *arg6 = (wxDC *) 0 ;
19923 int arg7 ;
19924 int arg8 ;
19925 int arg9 = (int) wxCOPY ;
19926 bool arg10 = (bool) false ;
19927 int arg11 = (int) -1 ;
19928 int arg12 = (int) -1 ;
19929 bool result;
19930 void *argp1 = 0 ;
19931 int res1 = 0 ;
19932 int val2 ;
19933 int ecode2 = 0 ;
19934 int val3 ;
19935 int ecode3 = 0 ;
19936 int val4 ;
19937 int ecode4 = 0 ;
19938 int val5 ;
19939 int ecode5 = 0 ;
19940 void *argp6 = 0 ;
19941 int res6 = 0 ;
19942 int val7 ;
19943 int ecode7 = 0 ;
19944 int val8 ;
19945 int ecode8 = 0 ;
19946 int val9 ;
19947 int ecode9 = 0 ;
19948 bool val10 ;
19949 int ecode10 = 0 ;
19950 int val11 ;
19951 int ecode11 = 0 ;
19952 int val12 ;
19953 int ecode12 = 0 ;
19954 PyObject * obj0 = 0 ;
19955 PyObject * obj1 = 0 ;
19956 PyObject * obj2 = 0 ;
19957 PyObject * obj3 = 0 ;
19958 PyObject * obj4 = 0 ;
19959 PyObject * obj5 = 0 ;
19960 PyObject * obj6 = 0 ;
19961 PyObject * obj7 = 0 ;
19962 PyObject * obj8 = 0 ;
19963 PyObject * obj9 = 0 ;
19964 PyObject * obj10 = 0 ;
19965 PyObject * obj11 = 0 ;
19966 char * kwnames[] = {
19967 (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
19968 };
19969
19970 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;
19971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19972 if (!SWIG_IsOK(res1)) {
19973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19974 }
19975 arg1 = reinterpret_cast< wxDC * >(argp1);
19976 ecode2 = SWIG_AsVal_int(obj1, &val2);
19977 if (!SWIG_IsOK(ecode2)) {
19978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19979 }
19980 arg2 = static_cast< int >(val2);
19981 ecode3 = SWIG_AsVal_int(obj2, &val3);
19982 if (!SWIG_IsOK(ecode3)) {
19983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19984 }
19985 arg3 = static_cast< int >(val3);
19986 ecode4 = SWIG_AsVal_int(obj3, &val4);
19987 if (!SWIG_IsOK(ecode4)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19989 }
19990 arg4 = static_cast< int >(val4);
19991 ecode5 = SWIG_AsVal_int(obj4, &val5);
19992 if (!SWIG_IsOK(ecode5)) {
19993 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19994 }
19995 arg5 = static_cast< int >(val5);
19996 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
19997 if (!SWIG_IsOK(res6)) {
19998 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
19999 }
20000 arg6 = reinterpret_cast< wxDC * >(argp6);
20001 ecode7 = SWIG_AsVal_int(obj6, &val7);
20002 if (!SWIG_IsOK(ecode7)) {
20003 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20004 }
20005 arg7 = static_cast< int >(val7);
20006 ecode8 = SWIG_AsVal_int(obj7, &val8);
20007 if (!SWIG_IsOK(ecode8)) {
20008 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20009 }
20010 arg8 = static_cast< int >(val8);
20011 if (obj8) {
20012 ecode9 = SWIG_AsVal_int(obj8, &val9);
20013 if (!SWIG_IsOK(ecode9)) {
20014 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20015 }
20016 arg9 = static_cast< int >(val9);
20017 }
20018 if (obj9) {
20019 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20020 if (!SWIG_IsOK(ecode10)) {
20021 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20022 }
20023 arg10 = static_cast< bool >(val10);
20024 }
20025 if (obj10) {
20026 ecode11 = SWIG_AsVal_int(obj10, &val11);
20027 if (!SWIG_IsOK(ecode11)) {
20028 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20029 }
20030 arg11 = static_cast< int >(val11);
20031 }
20032 if (obj11) {
20033 ecode12 = SWIG_AsVal_int(obj11, &val12);
20034 if (!SWIG_IsOK(ecode12)) {
20035 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20036 }
20037 arg12 = static_cast< int >(val12);
20038 }
20039 {
20040 PyThreadState* __tstate = wxPyBeginAllowThreads();
20041 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20042 wxPyEndAllowThreads(__tstate);
20043 if (PyErr_Occurred()) SWIG_fail;
20044 }
20045 {
20046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20047 }
20048 return resultobj;
20049 fail:
20050 return NULL;
20051 }
20052
20053
20054 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20055 PyObject *resultobj = 0;
20056 wxDC *arg1 = (wxDC *) 0 ;
20057 wxPoint *arg2 = 0 ;
20058 wxSize *arg3 = 0 ;
20059 wxDC *arg4 = (wxDC *) 0 ;
20060 wxPoint *arg5 = 0 ;
20061 int arg6 = (int) wxCOPY ;
20062 bool arg7 = (bool) false ;
20063 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20064 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20065 bool result;
20066 void *argp1 = 0 ;
20067 int res1 = 0 ;
20068 wxPoint temp2 ;
20069 wxSize temp3 ;
20070 void *argp4 = 0 ;
20071 int res4 = 0 ;
20072 wxPoint temp5 ;
20073 int val6 ;
20074 int ecode6 = 0 ;
20075 bool val7 ;
20076 int ecode7 = 0 ;
20077 wxPoint temp8 ;
20078 PyObject * obj0 = 0 ;
20079 PyObject * obj1 = 0 ;
20080 PyObject * obj2 = 0 ;
20081 PyObject * obj3 = 0 ;
20082 PyObject * obj4 = 0 ;
20083 PyObject * obj5 = 0 ;
20084 PyObject * obj6 = 0 ;
20085 PyObject * obj7 = 0 ;
20086 char * kwnames[] = {
20087 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20088 };
20089
20090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20092 if (!SWIG_IsOK(res1)) {
20093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20094 }
20095 arg1 = reinterpret_cast< wxDC * >(argp1);
20096 {
20097 arg2 = &temp2;
20098 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20099 }
20100 {
20101 arg3 = &temp3;
20102 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20103 }
20104 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20105 if (!SWIG_IsOK(res4)) {
20106 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20107 }
20108 arg4 = reinterpret_cast< wxDC * >(argp4);
20109 {
20110 arg5 = &temp5;
20111 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20112 }
20113 if (obj5) {
20114 ecode6 = SWIG_AsVal_int(obj5, &val6);
20115 if (!SWIG_IsOK(ecode6)) {
20116 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20117 }
20118 arg6 = static_cast< int >(val6);
20119 }
20120 if (obj6) {
20121 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20122 if (!SWIG_IsOK(ecode7)) {
20123 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20124 }
20125 arg7 = static_cast< bool >(val7);
20126 }
20127 if (obj7) {
20128 {
20129 arg8 = &temp8;
20130 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20131 }
20132 }
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 {
20140 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20141 }
20142 return resultobj;
20143 fail:
20144 return NULL;
20145 }
20146
20147
20148 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20149 PyObject *resultobj = 0;
20150 wxDC *arg1 = (wxDC *) 0 ;
20151 int arg2 ;
20152 int arg3 ;
20153 int arg4 ;
20154 int arg5 ;
20155 void *argp1 = 0 ;
20156 int res1 = 0 ;
20157 int val2 ;
20158 int ecode2 = 0 ;
20159 int val3 ;
20160 int ecode3 = 0 ;
20161 int val4 ;
20162 int ecode4 = 0 ;
20163 int val5 ;
20164 int ecode5 = 0 ;
20165 PyObject * obj0 = 0 ;
20166 PyObject * obj1 = 0 ;
20167 PyObject * obj2 = 0 ;
20168 PyObject * obj3 = 0 ;
20169 PyObject * obj4 = 0 ;
20170 char * kwnames[] = {
20171 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20172 };
20173
20174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20176 if (!SWIG_IsOK(res1)) {
20177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20178 }
20179 arg1 = reinterpret_cast< wxDC * >(argp1);
20180 ecode2 = SWIG_AsVal_int(obj1, &val2);
20181 if (!SWIG_IsOK(ecode2)) {
20182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20183 }
20184 arg2 = static_cast< int >(val2);
20185 ecode3 = SWIG_AsVal_int(obj2, &val3);
20186 if (!SWIG_IsOK(ecode3)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20188 }
20189 arg3 = static_cast< int >(val3);
20190 ecode4 = SWIG_AsVal_int(obj3, &val4);
20191 if (!SWIG_IsOK(ecode4)) {
20192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20193 }
20194 arg4 = static_cast< int >(val4);
20195 ecode5 = SWIG_AsVal_int(obj4, &val5);
20196 if (!SWIG_IsOK(ecode5)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20198 }
20199 arg5 = static_cast< int >(val5);
20200 {
20201 PyThreadState* __tstate = wxPyBeginAllowThreads();
20202 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20203 wxPyEndAllowThreads(__tstate);
20204 if (PyErr_Occurred()) SWIG_fail;
20205 }
20206 resultobj = SWIG_Py_Void();
20207 return resultobj;
20208 fail:
20209 return NULL;
20210 }
20211
20212
20213 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20214 PyObject *resultobj = 0;
20215 wxDC *arg1 = (wxDC *) 0 ;
20216 wxPoint *arg2 = 0 ;
20217 wxSize *arg3 = 0 ;
20218 void *argp1 = 0 ;
20219 int res1 = 0 ;
20220 wxPoint temp2 ;
20221 wxSize temp3 ;
20222 PyObject * obj0 = 0 ;
20223 PyObject * obj1 = 0 ;
20224 PyObject * obj2 = 0 ;
20225 char * kwnames[] = {
20226 (char *) "self",(char *) "pt",(char *) "sz", NULL
20227 };
20228
20229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20231 if (!SWIG_IsOK(res1)) {
20232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20233 }
20234 arg1 = reinterpret_cast< wxDC * >(argp1);
20235 {
20236 arg2 = &temp2;
20237 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20238 }
20239 {
20240 arg3 = &temp3;
20241 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20242 }
20243 {
20244 PyThreadState* __tstate = wxPyBeginAllowThreads();
20245 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20246 wxPyEndAllowThreads(__tstate);
20247 if (PyErr_Occurred()) SWIG_fail;
20248 }
20249 resultobj = SWIG_Py_Void();
20250 return resultobj;
20251 fail:
20252 return NULL;
20253 }
20254
20255
20256 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20257 PyObject *resultobj = 0;
20258 wxDC *arg1 = (wxDC *) 0 ;
20259 wxRegion *arg2 = 0 ;
20260 void *argp1 = 0 ;
20261 int res1 = 0 ;
20262 void *argp2 = 0 ;
20263 int res2 = 0 ;
20264 PyObject * obj0 = 0 ;
20265 PyObject * obj1 = 0 ;
20266 char * kwnames[] = {
20267 (char *) "self",(char *) "region", NULL
20268 };
20269
20270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20272 if (!SWIG_IsOK(res1)) {
20273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20274 }
20275 arg1 = reinterpret_cast< wxDC * >(argp1);
20276 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20277 if (!SWIG_IsOK(res2)) {
20278 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20279 }
20280 if (!argp2) {
20281 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20282 }
20283 arg2 = reinterpret_cast< wxRegion * >(argp2);
20284 {
20285 PyThreadState* __tstate = wxPyBeginAllowThreads();
20286 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20287 wxPyEndAllowThreads(__tstate);
20288 if (PyErr_Occurred()) SWIG_fail;
20289 }
20290 resultobj = SWIG_Py_Void();
20291 return resultobj;
20292 fail:
20293 return NULL;
20294 }
20295
20296
20297 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20298 PyObject *resultobj = 0;
20299 wxDC *arg1 = (wxDC *) 0 ;
20300 wxRect *arg2 = 0 ;
20301 void *argp1 = 0 ;
20302 int res1 = 0 ;
20303 wxRect temp2 ;
20304 PyObject * obj0 = 0 ;
20305 PyObject * obj1 = 0 ;
20306 char * kwnames[] = {
20307 (char *) "self",(char *) "rect", NULL
20308 };
20309
20310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20312 if (!SWIG_IsOK(res1)) {
20313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20314 }
20315 arg1 = reinterpret_cast< wxDC * >(argp1);
20316 {
20317 arg2 = &temp2;
20318 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20319 }
20320 {
20321 PyThreadState* __tstate = wxPyBeginAllowThreads();
20322 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20323 wxPyEndAllowThreads(__tstate);
20324 if (PyErr_Occurred()) SWIG_fail;
20325 }
20326 resultobj = SWIG_Py_Void();
20327 return resultobj;
20328 fail:
20329 return NULL;
20330 }
20331
20332
20333 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20334 PyObject *resultobj = 0;
20335 wxDC *arg1 = (wxDC *) 0 ;
20336 int arg2 ;
20337 wxPoint *arg3 = (wxPoint *) 0 ;
20338 int arg4 = (int) 0 ;
20339 int arg5 = (int) 0 ;
20340 void *argp1 = 0 ;
20341 int res1 = 0 ;
20342 int val4 ;
20343 int ecode4 = 0 ;
20344 int val5 ;
20345 int ecode5 = 0 ;
20346 PyObject * obj0 = 0 ;
20347 PyObject * obj1 = 0 ;
20348 PyObject * obj2 = 0 ;
20349 PyObject * obj3 = 0 ;
20350 char * kwnames[] = {
20351 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20352 };
20353
20354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20356 if (!SWIG_IsOK(res1)) {
20357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20358 }
20359 arg1 = reinterpret_cast< wxDC * >(argp1);
20360 {
20361 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20362 if (arg3 == NULL) SWIG_fail;
20363 }
20364 if (obj2) {
20365 ecode4 = SWIG_AsVal_int(obj2, &val4);
20366 if (!SWIG_IsOK(ecode4)) {
20367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20368 }
20369 arg4 = static_cast< int >(val4);
20370 }
20371 if (obj3) {
20372 ecode5 = SWIG_AsVal_int(obj3, &val5);
20373 if (!SWIG_IsOK(ecode5)) {
20374 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20375 }
20376 arg5 = static_cast< int >(val5);
20377 }
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 resultobj = SWIG_Py_Void();
20385 {
20386 if (arg3) delete [] arg3;
20387 }
20388 return resultobj;
20389 fail:
20390 {
20391 if (arg3) delete [] arg3;
20392 }
20393 return NULL;
20394 }
20395
20396
20397 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20398 PyObject *resultobj = 0;
20399 wxDC *arg1 = (wxDC *) 0 ;
20400 int arg2 ;
20401 wxPoint *arg3 = (wxPoint *) 0 ;
20402 int arg4 = (int) 0 ;
20403 int arg5 = (int) 0 ;
20404 int arg6 = (int) wxODDEVEN_RULE ;
20405 void *argp1 = 0 ;
20406 int res1 = 0 ;
20407 int val4 ;
20408 int ecode4 = 0 ;
20409 int val5 ;
20410 int ecode5 = 0 ;
20411 int val6 ;
20412 int ecode6 = 0 ;
20413 PyObject * obj0 = 0 ;
20414 PyObject * obj1 = 0 ;
20415 PyObject * obj2 = 0 ;
20416 PyObject * obj3 = 0 ;
20417 PyObject * obj4 = 0 ;
20418 char * kwnames[] = {
20419 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20420 };
20421
20422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20424 if (!SWIG_IsOK(res1)) {
20425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20426 }
20427 arg1 = reinterpret_cast< wxDC * >(argp1);
20428 {
20429 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20430 if (arg3 == NULL) SWIG_fail;
20431 }
20432 if (obj2) {
20433 ecode4 = SWIG_AsVal_int(obj2, &val4);
20434 if (!SWIG_IsOK(ecode4)) {
20435 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20436 }
20437 arg4 = static_cast< int >(val4);
20438 }
20439 if (obj3) {
20440 ecode5 = SWIG_AsVal_int(obj3, &val5);
20441 if (!SWIG_IsOK(ecode5)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20443 }
20444 arg5 = static_cast< int >(val5);
20445 }
20446 if (obj4) {
20447 ecode6 = SWIG_AsVal_int(obj4, &val6);
20448 if (!SWIG_IsOK(ecode6)) {
20449 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20450 }
20451 arg6 = static_cast< int >(val6);
20452 }
20453 {
20454 PyThreadState* __tstate = wxPyBeginAllowThreads();
20455 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20456 wxPyEndAllowThreads(__tstate);
20457 if (PyErr_Occurred()) SWIG_fail;
20458 }
20459 resultobj = SWIG_Py_Void();
20460 {
20461 if (arg3) delete [] arg3;
20462 }
20463 return resultobj;
20464 fail:
20465 {
20466 if (arg3) delete [] arg3;
20467 }
20468 return NULL;
20469 }
20470
20471
20472 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20473 PyObject *resultobj = 0;
20474 wxDC *arg1 = (wxDC *) 0 ;
20475 wxString *arg2 = 0 ;
20476 wxRect *arg3 = 0 ;
20477 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20478 int arg5 = (int) -1 ;
20479 void *argp1 = 0 ;
20480 int res1 = 0 ;
20481 bool temp2 = false ;
20482 wxRect temp3 ;
20483 int val4 ;
20484 int ecode4 = 0 ;
20485 int val5 ;
20486 int ecode5 = 0 ;
20487 PyObject * obj0 = 0 ;
20488 PyObject * obj1 = 0 ;
20489 PyObject * obj2 = 0 ;
20490 PyObject * obj3 = 0 ;
20491 PyObject * obj4 = 0 ;
20492 char * kwnames[] = {
20493 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20494 };
20495
20496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20498 if (!SWIG_IsOK(res1)) {
20499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20500 }
20501 arg1 = reinterpret_cast< wxDC * >(argp1);
20502 {
20503 arg2 = wxString_in_helper(obj1);
20504 if (arg2 == NULL) SWIG_fail;
20505 temp2 = true;
20506 }
20507 {
20508 arg3 = &temp3;
20509 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20510 }
20511 if (obj3) {
20512 ecode4 = SWIG_AsVal_int(obj3, &val4);
20513 if (!SWIG_IsOK(ecode4)) {
20514 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20515 }
20516 arg4 = static_cast< int >(val4);
20517 }
20518 if (obj4) {
20519 ecode5 = SWIG_AsVal_int(obj4, &val5);
20520 if (!SWIG_IsOK(ecode5)) {
20521 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20522 }
20523 arg5 = static_cast< int >(val5);
20524 }
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20528 wxPyEndAllowThreads(__tstate);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 }
20531 resultobj = SWIG_Py_Void();
20532 {
20533 if (temp2)
20534 delete arg2;
20535 }
20536 return resultobj;
20537 fail:
20538 {
20539 if (temp2)
20540 delete arg2;
20541 }
20542 return NULL;
20543 }
20544
20545
20546 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20547 PyObject *resultobj = 0;
20548 wxDC *arg1 = (wxDC *) 0 ;
20549 wxString *arg2 = 0 ;
20550 wxBitmap *arg3 = 0 ;
20551 wxRect *arg4 = 0 ;
20552 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20553 int arg6 = (int) -1 ;
20554 wxRect result;
20555 void *argp1 = 0 ;
20556 int res1 = 0 ;
20557 bool temp2 = false ;
20558 void *argp3 = 0 ;
20559 int res3 = 0 ;
20560 wxRect temp4 ;
20561 int val5 ;
20562 int ecode5 = 0 ;
20563 int val6 ;
20564 int ecode6 = 0 ;
20565 PyObject * obj0 = 0 ;
20566 PyObject * obj1 = 0 ;
20567 PyObject * obj2 = 0 ;
20568 PyObject * obj3 = 0 ;
20569 PyObject * obj4 = 0 ;
20570 PyObject * obj5 = 0 ;
20571 char * kwnames[] = {
20572 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20573 };
20574
20575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20577 if (!SWIG_IsOK(res1)) {
20578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20579 }
20580 arg1 = reinterpret_cast< wxDC * >(argp1);
20581 {
20582 arg2 = wxString_in_helper(obj1);
20583 if (arg2 == NULL) SWIG_fail;
20584 temp2 = true;
20585 }
20586 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20587 if (!SWIG_IsOK(res3)) {
20588 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20589 }
20590 if (!argp3) {
20591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20592 }
20593 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20594 {
20595 arg4 = &temp4;
20596 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20597 }
20598 if (obj4) {
20599 ecode5 = SWIG_AsVal_int(obj4, &val5);
20600 if (!SWIG_IsOK(ecode5)) {
20601 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20602 }
20603 arg5 = static_cast< int >(val5);
20604 }
20605 if (obj5) {
20606 ecode6 = SWIG_AsVal_int(obj5, &val6);
20607 if (!SWIG_IsOK(ecode6)) {
20608 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20609 }
20610 arg6 = static_cast< int >(val6);
20611 }
20612 {
20613 PyThreadState* __tstate = wxPyBeginAllowThreads();
20614 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20615 wxPyEndAllowThreads(__tstate);
20616 if (PyErr_Occurred()) SWIG_fail;
20617 }
20618 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20619 {
20620 if (temp2)
20621 delete arg2;
20622 }
20623 return resultobj;
20624 fail:
20625 {
20626 if (temp2)
20627 delete arg2;
20628 }
20629 return NULL;
20630 }
20631
20632
20633 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20634 PyObject *resultobj = 0;
20635 wxDC *arg1 = (wxDC *) 0 ;
20636 int arg2 ;
20637 wxPoint *arg3 = (wxPoint *) 0 ;
20638 void *argp1 = 0 ;
20639 int res1 = 0 ;
20640 PyObject * obj0 = 0 ;
20641 PyObject * obj1 = 0 ;
20642 char * kwnames[] = {
20643 (char *) "self",(char *) "points", NULL
20644 };
20645
20646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20648 if (!SWIG_IsOK(res1)) {
20649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20650 }
20651 arg1 = reinterpret_cast< wxDC * >(argp1);
20652 {
20653 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20654 if (arg3 == NULL) SWIG_fail;
20655 }
20656 {
20657 PyThreadState* __tstate = wxPyBeginAllowThreads();
20658 (arg1)->DrawSpline(arg2,arg3);
20659 wxPyEndAllowThreads(__tstate);
20660 if (PyErr_Occurred()) SWIG_fail;
20661 }
20662 resultobj = SWIG_Py_Void();
20663 {
20664 if (arg3) delete [] arg3;
20665 }
20666 return resultobj;
20667 fail:
20668 {
20669 if (arg3) delete [] arg3;
20670 }
20671 return NULL;
20672 }
20673
20674
20675 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20676 PyObject *resultobj = 0;
20677 wxDC *arg1 = (wxDC *) 0 ;
20678 void *argp1 = 0 ;
20679 int res1 = 0 ;
20680 PyObject *swig_obj[1] ;
20681
20682 if (!args) SWIG_fail;
20683 swig_obj[0] = args;
20684 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20685 if (!SWIG_IsOK(res1)) {
20686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20687 }
20688 arg1 = reinterpret_cast< wxDC * >(argp1);
20689 {
20690 PyThreadState* __tstate = wxPyBeginAllowThreads();
20691 (arg1)->Clear();
20692 wxPyEndAllowThreads(__tstate);
20693 if (PyErr_Occurred()) SWIG_fail;
20694 }
20695 resultobj = SWIG_Py_Void();
20696 return resultobj;
20697 fail:
20698 return NULL;
20699 }
20700
20701
20702 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20703 PyObject *resultobj = 0;
20704 wxDC *arg1 = (wxDC *) 0 ;
20705 wxString *arg2 = 0 ;
20706 bool result;
20707 void *argp1 = 0 ;
20708 int res1 = 0 ;
20709 bool temp2 = false ;
20710 PyObject * obj0 = 0 ;
20711 PyObject * obj1 = 0 ;
20712 char * kwnames[] = {
20713 (char *) "self",(char *) "message", NULL
20714 };
20715
20716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20718 if (!SWIG_IsOK(res1)) {
20719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20720 }
20721 arg1 = reinterpret_cast< wxDC * >(argp1);
20722 {
20723 arg2 = wxString_in_helper(obj1);
20724 if (arg2 == NULL) SWIG_fail;
20725 temp2 = true;
20726 }
20727 {
20728 PyThreadState* __tstate = wxPyBeginAllowThreads();
20729 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20730 wxPyEndAllowThreads(__tstate);
20731 if (PyErr_Occurred()) SWIG_fail;
20732 }
20733 {
20734 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20735 }
20736 {
20737 if (temp2)
20738 delete arg2;
20739 }
20740 return resultobj;
20741 fail:
20742 {
20743 if (temp2)
20744 delete arg2;
20745 }
20746 return NULL;
20747 }
20748
20749
20750 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20751 PyObject *resultobj = 0;
20752 wxDC *arg1 = (wxDC *) 0 ;
20753 void *argp1 = 0 ;
20754 int res1 = 0 ;
20755 PyObject *swig_obj[1] ;
20756
20757 if (!args) SWIG_fail;
20758 swig_obj[0] = args;
20759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20760 if (!SWIG_IsOK(res1)) {
20761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20762 }
20763 arg1 = reinterpret_cast< wxDC * >(argp1);
20764 {
20765 PyThreadState* __tstate = wxPyBeginAllowThreads();
20766 (arg1)->EndDoc();
20767 wxPyEndAllowThreads(__tstate);
20768 if (PyErr_Occurred()) SWIG_fail;
20769 }
20770 resultobj = SWIG_Py_Void();
20771 return resultobj;
20772 fail:
20773 return NULL;
20774 }
20775
20776
20777 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20778 PyObject *resultobj = 0;
20779 wxDC *arg1 = (wxDC *) 0 ;
20780 void *argp1 = 0 ;
20781 int res1 = 0 ;
20782 PyObject *swig_obj[1] ;
20783
20784 if (!args) SWIG_fail;
20785 swig_obj[0] = args;
20786 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20787 if (!SWIG_IsOK(res1)) {
20788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20789 }
20790 arg1 = reinterpret_cast< wxDC * >(argp1);
20791 {
20792 PyThreadState* __tstate = wxPyBeginAllowThreads();
20793 (arg1)->StartPage();
20794 wxPyEndAllowThreads(__tstate);
20795 if (PyErr_Occurred()) SWIG_fail;
20796 }
20797 resultobj = SWIG_Py_Void();
20798 return resultobj;
20799 fail:
20800 return NULL;
20801 }
20802
20803
20804 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20805 PyObject *resultobj = 0;
20806 wxDC *arg1 = (wxDC *) 0 ;
20807 void *argp1 = 0 ;
20808 int res1 = 0 ;
20809 PyObject *swig_obj[1] ;
20810
20811 if (!args) SWIG_fail;
20812 swig_obj[0] = args;
20813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20814 if (!SWIG_IsOK(res1)) {
20815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20816 }
20817 arg1 = reinterpret_cast< wxDC * >(argp1);
20818 {
20819 PyThreadState* __tstate = wxPyBeginAllowThreads();
20820 (arg1)->EndPage();
20821 wxPyEndAllowThreads(__tstate);
20822 if (PyErr_Occurred()) SWIG_fail;
20823 }
20824 resultobj = SWIG_Py_Void();
20825 return resultobj;
20826 fail:
20827 return NULL;
20828 }
20829
20830
20831 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20832 PyObject *resultobj = 0;
20833 wxDC *arg1 = (wxDC *) 0 ;
20834 wxFont *arg2 = 0 ;
20835 void *argp1 = 0 ;
20836 int res1 = 0 ;
20837 void *argp2 = 0 ;
20838 int res2 = 0 ;
20839 PyObject * obj0 = 0 ;
20840 PyObject * obj1 = 0 ;
20841 char * kwnames[] = {
20842 (char *) "self",(char *) "font", NULL
20843 };
20844
20845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20847 if (!SWIG_IsOK(res1)) {
20848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20849 }
20850 arg1 = reinterpret_cast< wxDC * >(argp1);
20851 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20852 if (!SWIG_IsOK(res2)) {
20853 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20854 }
20855 if (!argp2) {
20856 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20857 }
20858 arg2 = reinterpret_cast< wxFont * >(argp2);
20859 {
20860 PyThreadState* __tstate = wxPyBeginAllowThreads();
20861 (arg1)->SetFont((wxFont const &)*arg2);
20862 wxPyEndAllowThreads(__tstate);
20863 if (PyErr_Occurred()) SWIG_fail;
20864 }
20865 resultobj = SWIG_Py_Void();
20866 return resultobj;
20867 fail:
20868 return NULL;
20869 }
20870
20871
20872 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20873 PyObject *resultobj = 0;
20874 wxDC *arg1 = (wxDC *) 0 ;
20875 wxPen *arg2 = 0 ;
20876 void *argp1 = 0 ;
20877 int res1 = 0 ;
20878 void *argp2 = 0 ;
20879 int res2 = 0 ;
20880 PyObject * obj0 = 0 ;
20881 PyObject * obj1 = 0 ;
20882 char * kwnames[] = {
20883 (char *) "self",(char *) "pen", NULL
20884 };
20885
20886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20888 if (!SWIG_IsOK(res1)) {
20889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20890 }
20891 arg1 = reinterpret_cast< wxDC * >(argp1);
20892 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20893 if (!SWIG_IsOK(res2)) {
20894 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20895 }
20896 if (!argp2) {
20897 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20898 }
20899 arg2 = reinterpret_cast< wxPen * >(argp2);
20900 {
20901 PyThreadState* __tstate = wxPyBeginAllowThreads();
20902 (arg1)->SetPen((wxPen const &)*arg2);
20903 wxPyEndAllowThreads(__tstate);
20904 if (PyErr_Occurred()) SWIG_fail;
20905 }
20906 resultobj = SWIG_Py_Void();
20907 return resultobj;
20908 fail:
20909 return NULL;
20910 }
20911
20912
20913 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20914 PyObject *resultobj = 0;
20915 wxDC *arg1 = (wxDC *) 0 ;
20916 wxBrush *arg2 = 0 ;
20917 void *argp1 = 0 ;
20918 int res1 = 0 ;
20919 void *argp2 = 0 ;
20920 int res2 = 0 ;
20921 PyObject * obj0 = 0 ;
20922 PyObject * obj1 = 0 ;
20923 char * kwnames[] = {
20924 (char *) "self",(char *) "brush", NULL
20925 };
20926
20927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20929 if (!SWIG_IsOK(res1)) {
20930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20931 }
20932 arg1 = reinterpret_cast< wxDC * >(argp1);
20933 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20934 if (!SWIG_IsOK(res2)) {
20935 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20936 }
20937 if (!argp2) {
20938 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20939 }
20940 arg2 = reinterpret_cast< wxBrush * >(argp2);
20941 {
20942 PyThreadState* __tstate = wxPyBeginAllowThreads();
20943 (arg1)->SetBrush((wxBrush const &)*arg2);
20944 wxPyEndAllowThreads(__tstate);
20945 if (PyErr_Occurred()) SWIG_fail;
20946 }
20947 resultobj = SWIG_Py_Void();
20948 return resultobj;
20949 fail:
20950 return NULL;
20951 }
20952
20953
20954 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20955 PyObject *resultobj = 0;
20956 wxDC *arg1 = (wxDC *) 0 ;
20957 wxBrush *arg2 = 0 ;
20958 void *argp1 = 0 ;
20959 int res1 = 0 ;
20960 void *argp2 = 0 ;
20961 int res2 = 0 ;
20962 PyObject * obj0 = 0 ;
20963 PyObject * obj1 = 0 ;
20964 char * kwnames[] = {
20965 (char *) "self",(char *) "brush", NULL
20966 };
20967
20968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20970 if (!SWIG_IsOK(res1)) {
20971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20972 }
20973 arg1 = reinterpret_cast< wxDC * >(argp1);
20974 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20975 if (!SWIG_IsOK(res2)) {
20976 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20977 }
20978 if (!argp2) {
20979 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20980 }
20981 arg2 = reinterpret_cast< wxBrush * >(argp2);
20982 {
20983 PyThreadState* __tstate = wxPyBeginAllowThreads();
20984 (arg1)->SetBackground((wxBrush const &)*arg2);
20985 wxPyEndAllowThreads(__tstate);
20986 if (PyErr_Occurred()) SWIG_fail;
20987 }
20988 resultobj = SWIG_Py_Void();
20989 return resultobj;
20990 fail:
20991 return NULL;
20992 }
20993
20994
20995 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20996 PyObject *resultobj = 0;
20997 wxDC *arg1 = (wxDC *) 0 ;
20998 int arg2 ;
20999 void *argp1 = 0 ;
21000 int res1 = 0 ;
21001 int val2 ;
21002 int ecode2 = 0 ;
21003 PyObject * obj0 = 0 ;
21004 PyObject * obj1 = 0 ;
21005 char * kwnames[] = {
21006 (char *) "self",(char *) "mode", NULL
21007 };
21008
21009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21011 if (!SWIG_IsOK(res1)) {
21012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21013 }
21014 arg1 = reinterpret_cast< wxDC * >(argp1);
21015 ecode2 = SWIG_AsVal_int(obj1, &val2);
21016 if (!SWIG_IsOK(ecode2)) {
21017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21018 }
21019 arg2 = static_cast< int >(val2);
21020 {
21021 PyThreadState* __tstate = wxPyBeginAllowThreads();
21022 (arg1)->SetBackgroundMode(arg2);
21023 wxPyEndAllowThreads(__tstate);
21024 if (PyErr_Occurred()) SWIG_fail;
21025 }
21026 resultobj = SWIG_Py_Void();
21027 return resultobj;
21028 fail:
21029 return NULL;
21030 }
21031
21032
21033 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21034 PyObject *resultobj = 0;
21035 wxDC *arg1 = (wxDC *) 0 ;
21036 wxPalette *arg2 = 0 ;
21037 void *argp1 = 0 ;
21038 int res1 = 0 ;
21039 void *argp2 = 0 ;
21040 int res2 = 0 ;
21041 PyObject * obj0 = 0 ;
21042 PyObject * obj1 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "self",(char *) "palette", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21051 }
21052 arg1 = reinterpret_cast< wxDC * >(argp1);
21053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21054 if (!SWIG_IsOK(res2)) {
21055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21056 }
21057 if (!argp2) {
21058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21059 }
21060 arg2 = reinterpret_cast< wxPalette * >(argp2);
21061 {
21062 PyThreadState* __tstate = wxPyBeginAllowThreads();
21063 (arg1)->SetPalette((wxPalette const &)*arg2);
21064 wxPyEndAllowThreads(__tstate);
21065 if (PyErr_Occurred()) SWIG_fail;
21066 }
21067 resultobj = SWIG_Py_Void();
21068 return resultobj;
21069 fail:
21070 return NULL;
21071 }
21072
21073
21074 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21075 PyObject *resultobj = 0;
21076 wxDC *arg1 = (wxDC *) 0 ;
21077 void *argp1 = 0 ;
21078 int res1 = 0 ;
21079 PyObject *swig_obj[1] ;
21080
21081 if (!args) SWIG_fail;
21082 swig_obj[0] = args;
21083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21084 if (!SWIG_IsOK(res1)) {
21085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21086 }
21087 arg1 = reinterpret_cast< wxDC * >(argp1);
21088 {
21089 PyThreadState* __tstate = wxPyBeginAllowThreads();
21090 (arg1)->DestroyClippingRegion();
21091 wxPyEndAllowThreads(__tstate);
21092 if (PyErr_Occurred()) SWIG_fail;
21093 }
21094 resultobj = SWIG_Py_Void();
21095 return resultobj;
21096 fail:
21097 return NULL;
21098 }
21099
21100
21101 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21102 PyObject *resultobj = 0;
21103 wxDC *arg1 = (wxDC *) 0 ;
21104 int *arg2 = (int *) 0 ;
21105 int *arg3 = (int *) 0 ;
21106 int *arg4 = (int *) 0 ;
21107 int *arg5 = (int *) 0 ;
21108 void *argp1 = 0 ;
21109 int res1 = 0 ;
21110 int temp2 ;
21111 int res2 = SWIG_TMPOBJ ;
21112 int temp3 ;
21113 int res3 = SWIG_TMPOBJ ;
21114 int temp4 ;
21115 int res4 = SWIG_TMPOBJ ;
21116 int temp5 ;
21117 int res5 = SWIG_TMPOBJ ;
21118 PyObject *swig_obj[1] ;
21119
21120 arg2 = &temp2;
21121 arg3 = &temp3;
21122 arg4 = &temp4;
21123 arg5 = &temp5;
21124 if (!args) SWIG_fail;
21125 swig_obj[0] = args;
21126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21127 if (!SWIG_IsOK(res1)) {
21128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21129 }
21130 arg1 = reinterpret_cast< wxDC * >(argp1);
21131 {
21132 PyThreadState* __tstate = wxPyBeginAllowThreads();
21133 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21134 wxPyEndAllowThreads(__tstate);
21135 if (PyErr_Occurred()) SWIG_fail;
21136 }
21137 resultobj = SWIG_Py_Void();
21138 if (SWIG_IsTmpObj(res2)) {
21139 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21140 } else {
21141 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21142 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21143 }
21144 if (SWIG_IsTmpObj(res3)) {
21145 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21146 } else {
21147 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21148 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21149 }
21150 if (SWIG_IsTmpObj(res4)) {
21151 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21152 } else {
21153 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21154 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21155 }
21156 if (SWIG_IsTmpObj(res5)) {
21157 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21158 } else {
21159 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21160 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21161 }
21162 return resultobj;
21163 fail:
21164 return NULL;
21165 }
21166
21167
21168 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21169 PyObject *resultobj = 0;
21170 wxDC *arg1 = (wxDC *) 0 ;
21171 wxRect result;
21172 void *argp1 = 0 ;
21173 int res1 = 0 ;
21174 PyObject *swig_obj[1] ;
21175
21176 if (!args) SWIG_fail;
21177 swig_obj[0] = args;
21178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21179 if (!SWIG_IsOK(res1)) {
21180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21181 }
21182 arg1 = reinterpret_cast< wxDC * >(argp1);
21183 {
21184 PyThreadState* __tstate = wxPyBeginAllowThreads();
21185 result = wxDC_GetClippingRect(arg1);
21186 wxPyEndAllowThreads(__tstate);
21187 if (PyErr_Occurred()) SWIG_fail;
21188 }
21189 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21190 return resultobj;
21191 fail:
21192 return NULL;
21193 }
21194
21195
21196 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21197 PyObject *resultobj = 0;
21198 wxDC *arg1 = (wxDC *) 0 ;
21199 int result;
21200 void *argp1 = 0 ;
21201 int res1 = 0 ;
21202 PyObject *swig_obj[1] ;
21203
21204 if (!args) SWIG_fail;
21205 swig_obj[0] = args;
21206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21207 if (!SWIG_IsOK(res1)) {
21208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21209 }
21210 arg1 = reinterpret_cast< wxDC * >(argp1);
21211 {
21212 PyThreadState* __tstate = wxPyBeginAllowThreads();
21213 result = (int)((wxDC const *)arg1)->GetCharHeight();
21214 wxPyEndAllowThreads(__tstate);
21215 if (PyErr_Occurred()) SWIG_fail;
21216 }
21217 resultobj = SWIG_From_int(static_cast< int >(result));
21218 return resultobj;
21219 fail:
21220 return NULL;
21221 }
21222
21223
21224 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21225 PyObject *resultobj = 0;
21226 wxDC *arg1 = (wxDC *) 0 ;
21227 int result;
21228 void *argp1 = 0 ;
21229 int res1 = 0 ;
21230 PyObject *swig_obj[1] ;
21231
21232 if (!args) SWIG_fail;
21233 swig_obj[0] = args;
21234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21235 if (!SWIG_IsOK(res1)) {
21236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21237 }
21238 arg1 = reinterpret_cast< wxDC * >(argp1);
21239 {
21240 PyThreadState* __tstate = wxPyBeginAllowThreads();
21241 result = (int)((wxDC const *)arg1)->GetCharWidth();
21242 wxPyEndAllowThreads(__tstate);
21243 if (PyErr_Occurred()) SWIG_fail;
21244 }
21245 resultobj = SWIG_From_int(static_cast< int >(result));
21246 return resultobj;
21247 fail:
21248 return NULL;
21249 }
21250
21251
21252 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21253 PyObject *resultobj = 0;
21254 wxDC *arg1 = (wxDC *) 0 ;
21255 wxString *arg2 = 0 ;
21256 int *arg3 = (int *) 0 ;
21257 int *arg4 = (int *) 0 ;
21258 void *argp1 = 0 ;
21259 int res1 = 0 ;
21260 bool temp2 = false ;
21261 int temp3 ;
21262 int res3 = SWIG_TMPOBJ ;
21263 int temp4 ;
21264 int res4 = SWIG_TMPOBJ ;
21265 PyObject * obj0 = 0 ;
21266 PyObject * obj1 = 0 ;
21267 char * kwnames[] = {
21268 (char *) "self",(char *) "string", NULL
21269 };
21270
21271 arg3 = &temp3;
21272 arg4 = &temp4;
21273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21275 if (!SWIG_IsOK(res1)) {
21276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21277 }
21278 arg1 = reinterpret_cast< wxDC * >(argp1);
21279 {
21280 arg2 = wxString_in_helper(obj1);
21281 if (arg2 == NULL) SWIG_fail;
21282 temp2 = true;
21283 }
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21287 wxPyEndAllowThreads(__tstate);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 }
21290 resultobj = SWIG_Py_Void();
21291 if (SWIG_IsTmpObj(res3)) {
21292 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21293 } else {
21294 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21295 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21296 }
21297 if (SWIG_IsTmpObj(res4)) {
21298 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21299 } else {
21300 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21301 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21302 }
21303 {
21304 if (temp2)
21305 delete arg2;
21306 }
21307 return resultobj;
21308 fail:
21309 {
21310 if (temp2)
21311 delete arg2;
21312 }
21313 return NULL;
21314 }
21315
21316
21317 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21318 PyObject *resultobj = 0;
21319 wxDC *arg1 = (wxDC *) 0 ;
21320 wxString *arg2 = 0 ;
21321 int *arg3 = (int *) 0 ;
21322 int *arg4 = (int *) 0 ;
21323 int *arg5 = (int *) 0 ;
21324 int *arg6 = (int *) 0 ;
21325 wxFont *arg7 = (wxFont *) NULL ;
21326 void *argp1 = 0 ;
21327 int res1 = 0 ;
21328 bool temp2 = false ;
21329 int temp3 ;
21330 int res3 = SWIG_TMPOBJ ;
21331 int temp4 ;
21332 int res4 = SWIG_TMPOBJ ;
21333 int temp5 ;
21334 int res5 = SWIG_TMPOBJ ;
21335 int temp6 ;
21336 int res6 = SWIG_TMPOBJ ;
21337 void *argp7 = 0 ;
21338 int res7 = 0 ;
21339 PyObject * obj0 = 0 ;
21340 PyObject * obj1 = 0 ;
21341 PyObject * obj2 = 0 ;
21342 char * kwnames[] = {
21343 (char *) "self",(char *) "string",(char *) "font", NULL
21344 };
21345
21346 arg3 = &temp3;
21347 arg4 = &temp4;
21348 arg5 = &temp5;
21349 arg6 = &temp6;
21350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21352 if (!SWIG_IsOK(res1)) {
21353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21354 }
21355 arg1 = reinterpret_cast< wxDC * >(argp1);
21356 {
21357 arg2 = wxString_in_helper(obj1);
21358 if (arg2 == NULL) SWIG_fail;
21359 temp2 = true;
21360 }
21361 if (obj2) {
21362 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21363 if (!SWIG_IsOK(res7)) {
21364 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21365 }
21366 arg7 = reinterpret_cast< wxFont * >(argp7);
21367 }
21368 {
21369 PyThreadState* __tstate = wxPyBeginAllowThreads();
21370 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21371 wxPyEndAllowThreads(__tstate);
21372 if (PyErr_Occurred()) SWIG_fail;
21373 }
21374 resultobj = SWIG_Py_Void();
21375 if (SWIG_IsTmpObj(res3)) {
21376 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21377 } else {
21378 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21379 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21380 }
21381 if (SWIG_IsTmpObj(res4)) {
21382 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21383 } else {
21384 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21385 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21386 }
21387 if (SWIG_IsTmpObj(res5)) {
21388 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21389 } else {
21390 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21391 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21392 }
21393 if (SWIG_IsTmpObj(res6)) {
21394 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21395 } else {
21396 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21397 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21398 }
21399 {
21400 if (temp2)
21401 delete arg2;
21402 }
21403 return resultobj;
21404 fail:
21405 {
21406 if (temp2)
21407 delete arg2;
21408 }
21409 return NULL;
21410 }
21411
21412
21413 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21414 PyObject *resultobj = 0;
21415 wxDC *arg1 = (wxDC *) 0 ;
21416 wxString *arg2 = 0 ;
21417 int *arg3 = (int *) 0 ;
21418 int *arg4 = (int *) 0 ;
21419 int *arg5 = (int *) 0 ;
21420 wxFont *arg6 = (wxFont *) NULL ;
21421 void *argp1 = 0 ;
21422 int res1 = 0 ;
21423 bool temp2 = false ;
21424 int temp3 ;
21425 int res3 = SWIG_TMPOBJ ;
21426 int temp4 ;
21427 int res4 = SWIG_TMPOBJ ;
21428 int temp5 ;
21429 int res5 = SWIG_TMPOBJ ;
21430 void *argp6 = 0 ;
21431 int res6 = 0 ;
21432 PyObject * obj0 = 0 ;
21433 PyObject * obj1 = 0 ;
21434 PyObject * obj2 = 0 ;
21435 char * kwnames[] = {
21436 (char *) "self",(char *) "text",(char *) "font", NULL
21437 };
21438
21439 arg3 = &temp3;
21440 arg4 = &temp4;
21441 arg5 = &temp5;
21442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21444 if (!SWIG_IsOK(res1)) {
21445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21446 }
21447 arg1 = reinterpret_cast< wxDC * >(argp1);
21448 {
21449 arg2 = wxString_in_helper(obj1);
21450 if (arg2 == NULL) SWIG_fail;
21451 temp2 = true;
21452 }
21453 if (obj2) {
21454 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21455 if (!SWIG_IsOK(res6)) {
21456 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21457 }
21458 arg6 = reinterpret_cast< wxFont * >(argp6);
21459 }
21460 {
21461 PyThreadState* __tstate = wxPyBeginAllowThreads();
21462 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21463 wxPyEndAllowThreads(__tstate);
21464 if (PyErr_Occurred()) SWIG_fail;
21465 }
21466 resultobj = SWIG_Py_Void();
21467 if (SWIG_IsTmpObj(res3)) {
21468 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21469 } else {
21470 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21471 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21472 }
21473 if (SWIG_IsTmpObj(res4)) {
21474 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21475 } else {
21476 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21477 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21478 }
21479 if (SWIG_IsTmpObj(res5)) {
21480 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21481 } else {
21482 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21483 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21484 }
21485 {
21486 if (temp2)
21487 delete arg2;
21488 }
21489 return resultobj;
21490 fail:
21491 {
21492 if (temp2)
21493 delete arg2;
21494 }
21495 return NULL;
21496 }
21497
21498
21499 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21500 PyObject *resultobj = 0;
21501 wxDC *arg1 = (wxDC *) 0 ;
21502 wxString *arg2 = 0 ;
21503 wxArrayInt result;
21504 void *argp1 = 0 ;
21505 int res1 = 0 ;
21506 bool temp2 = false ;
21507 PyObject * obj0 = 0 ;
21508 PyObject * obj1 = 0 ;
21509 char * kwnames[] = {
21510 (char *) "self",(char *) "text", NULL
21511 };
21512
21513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21515 if (!SWIG_IsOK(res1)) {
21516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21517 }
21518 arg1 = reinterpret_cast< wxDC * >(argp1);
21519 {
21520 arg2 = wxString_in_helper(obj1);
21521 if (arg2 == NULL) SWIG_fail;
21522 temp2 = true;
21523 }
21524 {
21525 PyThreadState* __tstate = wxPyBeginAllowThreads();
21526 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21527 wxPyEndAllowThreads(__tstate);
21528 if (PyErr_Occurred()) SWIG_fail;
21529 }
21530 {
21531 resultobj = wxArrayInt2PyList_helper(result);
21532 }
21533 {
21534 if (temp2)
21535 delete arg2;
21536 }
21537 return resultobj;
21538 fail:
21539 {
21540 if (temp2)
21541 delete arg2;
21542 }
21543 return NULL;
21544 }
21545
21546
21547 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21548 PyObject *resultobj = 0;
21549 wxDC *arg1 = (wxDC *) 0 ;
21550 wxSize result;
21551 void *argp1 = 0 ;
21552 int res1 = 0 ;
21553 PyObject *swig_obj[1] ;
21554
21555 if (!args) SWIG_fail;
21556 swig_obj[0] = args;
21557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21558 if (!SWIG_IsOK(res1)) {
21559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21560 }
21561 arg1 = reinterpret_cast< wxDC * >(argp1);
21562 {
21563 PyThreadState* __tstate = wxPyBeginAllowThreads();
21564 result = (arg1)->GetSize();
21565 wxPyEndAllowThreads(__tstate);
21566 if (PyErr_Occurred()) SWIG_fail;
21567 }
21568 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21569 return resultobj;
21570 fail:
21571 return NULL;
21572 }
21573
21574
21575 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21576 PyObject *resultobj = 0;
21577 wxDC *arg1 = (wxDC *) 0 ;
21578 int *arg2 = (int *) 0 ;
21579 int *arg3 = (int *) 0 ;
21580 void *argp1 = 0 ;
21581 int res1 = 0 ;
21582 int temp2 ;
21583 int res2 = SWIG_TMPOBJ ;
21584 int temp3 ;
21585 int res3 = SWIG_TMPOBJ ;
21586 PyObject *swig_obj[1] ;
21587
21588 arg2 = &temp2;
21589 arg3 = &temp3;
21590 if (!args) SWIG_fail;
21591 swig_obj[0] = args;
21592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21593 if (!SWIG_IsOK(res1)) {
21594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21595 }
21596 arg1 = reinterpret_cast< wxDC * >(argp1);
21597 {
21598 PyThreadState* __tstate = wxPyBeginAllowThreads();
21599 (arg1)->GetSize(arg2,arg3);
21600 wxPyEndAllowThreads(__tstate);
21601 if (PyErr_Occurred()) SWIG_fail;
21602 }
21603 resultobj = SWIG_Py_Void();
21604 if (SWIG_IsTmpObj(res2)) {
21605 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21606 } else {
21607 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21608 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21609 }
21610 if (SWIG_IsTmpObj(res3)) {
21611 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21612 } else {
21613 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21614 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21615 }
21616 return resultobj;
21617 fail:
21618 return NULL;
21619 }
21620
21621
21622 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21623 PyObject *resultobj = 0;
21624 wxDC *arg1 = (wxDC *) 0 ;
21625 wxSize result;
21626 void *argp1 = 0 ;
21627 int res1 = 0 ;
21628 PyObject *swig_obj[1] ;
21629
21630 if (!args) SWIG_fail;
21631 swig_obj[0] = args;
21632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21633 if (!SWIG_IsOK(res1)) {
21634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21635 }
21636 arg1 = reinterpret_cast< wxDC * >(argp1);
21637 {
21638 PyThreadState* __tstate = wxPyBeginAllowThreads();
21639 result = ((wxDC const *)arg1)->GetSizeMM();
21640 wxPyEndAllowThreads(__tstate);
21641 if (PyErr_Occurred()) SWIG_fail;
21642 }
21643 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21644 return resultobj;
21645 fail:
21646 return NULL;
21647 }
21648
21649
21650 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21651 PyObject *resultobj = 0;
21652 wxDC *arg1 = (wxDC *) 0 ;
21653 int *arg2 = (int *) 0 ;
21654 int *arg3 = (int *) 0 ;
21655 void *argp1 = 0 ;
21656 int res1 = 0 ;
21657 int temp2 ;
21658 int res2 = SWIG_TMPOBJ ;
21659 int temp3 ;
21660 int res3 = SWIG_TMPOBJ ;
21661 PyObject *swig_obj[1] ;
21662
21663 arg2 = &temp2;
21664 arg3 = &temp3;
21665 if (!args) SWIG_fail;
21666 swig_obj[0] = args;
21667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21668 if (!SWIG_IsOK(res1)) {
21669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21670 }
21671 arg1 = reinterpret_cast< wxDC * >(argp1);
21672 {
21673 PyThreadState* __tstate = wxPyBeginAllowThreads();
21674 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21675 wxPyEndAllowThreads(__tstate);
21676 if (PyErr_Occurred()) SWIG_fail;
21677 }
21678 resultobj = SWIG_Py_Void();
21679 if (SWIG_IsTmpObj(res2)) {
21680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21681 } else {
21682 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21684 }
21685 if (SWIG_IsTmpObj(res3)) {
21686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21687 } else {
21688 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21690 }
21691 return resultobj;
21692 fail:
21693 return NULL;
21694 }
21695
21696
21697 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21698 PyObject *resultobj = 0;
21699 wxDC *arg1 = (wxDC *) 0 ;
21700 int arg2 ;
21701 int result;
21702 void *argp1 = 0 ;
21703 int res1 = 0 ;
21704 int val2 ;
21705 int ecode2 = 0 ;
21706 PyObject * obj0 = 0 ;
21707 PyObject * obj1 = 0 ;
21708 char * kwnames[] = {
21709 (char *) "self",(char *) "x", NULL
21710 };
21711
21712 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21713 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21714 if (!SWIG_IsOK(res1)) {
21715 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21716 }
21717 arg1 = reinterpret_cast< wxDC * >(argp1);
21718 ecode2 = SWIG_AsVal_int(obj1, &val2);
21719 if (!SWIG_IsOK(ecode2)) {
21720 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21721 }
21722 arg2 = static_cast< int >(val2);
21723 {
21724 PyThreadState* __tstate = wxPyBeginAllowThreads();
21725 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21726 wxPyEndAllowThreads(__tstate);
21727 if (PyErr_Occurred()) SWIG_fail;
21728 }
21729 resultobj = SWIG_From_int(static_cast< int >(result));
21730 return resultobj;
21731 fail:
21732 return NULL;
21733 }
21734
21735
21736 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21737 PyObject *resultobj = 0;
21738 wxDC *arg1 = (wxDC *) 0 ;
21739 int arg2 ;
21740 int result;
21741 void *argp1 = 0 ;
21742 int res1 = 0 ;
21743 int val2 ;
21744 int ecode2 = 0 ;
21745 PyObject * obj0 = 0 ;
21746 PyObject * obj1 = 0 ;
21747 char * kwnames[] = {
21748 (char *) "self",(char *) "y", NULL
21749 };
21750
21751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21753 if (!SWIG_IsOK(res1)) {
21754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21755 }
21756 arg1 = reinterpret_cast< wxDC * >(argp1);
21757 ecode2 = SWIG_AsVal_int(obj1, &val2);
21758 if (!SWIG_IsOK(ecode2)) {
21759 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21760 }
21761 arg2 = static_cast< int >(val2);
21762 {
21763 PyThreadState* __tstate = wxPyBeginAllowThreads();
21764 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21765 wxPyEndAllowThreads(__tstate);
21766 if (PyErr_Occurred()) SWIG_fail;
21767 }
21768 resultobj = SWIG_From_int(static_cast< int >(result));
21769 return resultobj;
21770 fail:
21771 return NULL;
21772 }
21773
21774
21775 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21776 PyObject *resultobj = 0;
21777 wxDC *arg1 = (wxDC *) 0 ;
21778 int arg2 ;
21779 int result;
21780 void *argp1 = 0 ;
21781 int res1 = 0 ;
21782 int val2 ;
21783 int ecode2 = 0 ;
21784 PyObject * obj0 = 0 ;
21785 PyObject * obj1 = 0 ;
21786 char * kwnames[] = {
21787 (char *) "self",(char *) "x", NULL
21788 };
21789
21790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21792 if (!SWIG_IsOK(res1)) {
21793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21794 }
21795 arg1 = reinterpret_cast< wxDC * >(argp1);
21796 ecode2 = SWIG_AsVal_int(obj1, &val2);
21797 if (!SWIG_IsOK(ecode2)) {
21798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21799 }
21800 arg2 = static_cast< int >(val2);
21801 {
21802 PyThreadState* __tstate = wxPyBeginAllowThreads();
21803 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21804 wxPyEndAllowThreads(__tstate);
21805 if (PyErr_Occurred()) SWIG_fail;
21806 }
21807 resultobj = SWIG_From_int(static_cast< int >(result));
21808 return resultobj;
21809 fail:
21810 return NULL;
21811 }
21812
21813
21814 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21815 PyObject *resultobj = 0;
21816 wxDC *arg1 = (wxDC *) 0 ;
21817 int arg2 ;
21818 int result;
21819 void *argp1 = 0 ;
21820 int res1 = 0 ;
21821 int val2 ;
21822 int ecode2 = 0 ;
21823 PyObject * obj0 = 0 ;
21824 PyObject * obj1 = 0 ;
21825 char * kwnames[] = {
21826 (char *) "self",(char *) "y", NULL
21827 };
21828
21829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21831 if (!SWIG_IsOK(res1)) {
21832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21833 }
21834 arg1 = reinterpret_cast< wxDC * >(argp1);
21835 ecode2 = SWIG_AsVal_int(obj1, &val2);
21836 if (!SWIG_IsOK(ecode2)) {
21837 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21838 }
21839 arg2 = static_cast< int >(val2);
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_From_int(static_cast< int >(result));
21847 return resultobj;
21848 fail:
21849 return NULL;
21850 }
21851
21852
21853 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21854 PyObject *resultobj = 0;
21855 wxDC *arg1 = (wxDC *) 0 ;
21856 int arg2 ;
21857 int result;
21858 void *argp1 = 0 ;
21859 int res1 = 0 ;
21860 int val2 ;
21861 int ecode2 = 0 ;
21862 PyObject * obj0 = 0 ;
21863 PyObject * obj1 = 0 ;
21864 char * kwnames[] = {
21865 (char *) "self",(char *) "x", NULL
21866 };
21867
21868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21870 if (!SWIG_IsOK(res1)) {
21871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21872 }
21873 arg1 = reinterpret_cast< wxDC * >(argp1);
21874 ecode2 = SWIG_AsVal_int(obj1, &val2);
21875 if (!SWIG_IsOK(ecode2)) {
21876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21877 }
21878 arg2 = static_cast< int >(val2);
21879 {
21880 PyThreadState* __tstate = wxPyBeginAllowThreads();
21881 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21882 wxPyEndAllowThreads(__tstate);
21883 if (PyErr_Occurred()) SWIG_fail;
21884 }
21885 resultobj = SWIG_From_int(static_cast< int >(result));
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21893 PyObject *resultobj = 0;
21894 wxDC *arg1 = (wxDC *) 0 ;
21895 int arg2 ;
21896 int result;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 int val2 ;
21900 int ecode2 = 0 ;
21901 PyObject * obj0 = 0 ;
21902 PyObject * obj1 = 0 ;
21903 char * kwnames[] = {
21904 (char *) "self",(char *) "y", NULL
21905 };
21906
21907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21909 if (!SWIG_IsOK(res1)) {
21910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21911 }
21912 arg1 = reinterpret_cast< wxDC * >(argp1);
21913 ecode2 = SWIG_AsVal_int(obj1, &val2);
21914 if (!SWIG_IsOK(ecode2)) {
21915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21916 }
21917 arg2 = static_cast< int >(val2);
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21921 wxPyEndAllowThreads(__tstate);
21922 if (PyErr_Occurred()) SWIG_fail;
21923 }
21924 resultobj = SWIG_From_int(static_cast< int >(result));
21925 return resultobj;
21926 fail:
21927 return NULL;
21928 }
21929
21930
21931 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21932 PyObject *resultobj = 0;
21933 wxDC *arg1 = (wxDC *) 0 ;
21934 int arg2 ;
21935 int result;
21936 void *argp1 = 0 ;
21937 int res1 = 0 ;
21938 int val2 ;
21939 int ecode2 = 0 ;
21940 PyObject * obj0 = 0 ;
21941 PyObject * obj1 = 0 ;
21942 char * kwnames[] = {
21943 (char *) "self",(char *) "x", NULL
21944 };
21945
21946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21948 if (!SWIG_IsOK(res1)) {
21949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21950 }
21951 arg1 = reinterpret_cast< wxDC * >(argp1);
21952 ecode2 = SWIG_AsVal_int(obj1, &val2);
21953 if (!SWIG_IsOK(ecode2)) {
21954 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21955 }
21956 arg2 = static_cast< int >(val2);
21957 {
21958 PyThreadState* __tstate = wxPyBeginAllowThreads();
21959 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21960 wxPyEndAllowThreads(__tstate);
21961 if (PyErr_Occurred()) SWIG_fail;
21962 }
21963 resultobj = SWIG_From_int(static_cast< int >(result));
21964 return resultobj;
21965 fail:
21966 return NULL;
21967 }
21968
21969
21970 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21971 PyObject *resultobj = 0;
21972 wxDC *arg1 = (wxDC *) 0 ;
21973 int arg2 ;
21974 int result;
21975 void *argp1 = 0 ;
21976 int res1 = 0 ;
21977 int val2 ;
21978 int ecode2 = 0 ;
21979 PyObject * obj0 = 0 ;
21980 PyObject * obj1 = 0 ;
21981 char * kwnames[] = {
21982 (char *) "self",(char *) "y", NULL
21983 };
21984
21985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21987 if (!SWIG_IsOK(res1)) {
21988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21989 }
21990 arg1 = reinterpret_cast< wxDC * >(argp1);
21991 ecode2 = SWIG_AsVal_int(obj1, &val2);
21992 if (!SWIG_IsOK(ecode2)) {
21993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21994 }
21995 arg2 = static_cast< int >(val2);
21996 {
21997 PyThreadState* __tstate = wxPyBeginAllowThreads();
21998 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
21999 wxPyEndAllowThreads(__tstate);
22000 if (PyErr_Occurred()) SWIG_fail;
22001 }
22002 resultobj = SWIG_From_int(static_cast< int >(result));
22003 return resultobj;
22004 fail:
22005 return NULL;
22006 }
22007
22008
22009 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22010 PyObject *resultobj = 0;
22011 wxDC *arg1 = (wxDC *) 0 ;
22012 bool result;
22013 void *argp1 = 0 ;
22014 int res1 = 0 ;
22015 PyObject *swig_obj[1] ;
22016
22017 if (!args) SWIG_fail;
22018 swig_obj[0] = args;
22019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22020 if (!SWIG_IsOK(res1)) {
22021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22022 }
22023 arg1 = reinterpret_cast< wxDC * >(argp1);
22024 {
22025 PyThreadState* __tstate = wxPyBeginAllowThreads();
22026 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22027 wxPyEndAllowThreads(__tstate);
22028 if (PyErr_Occurred()) SWIG_fail;
22029 }
22030 {
22031 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22032 }
22033 return resultobj;
22034 fail:
22035 return NULL;
22036 }
22037
22038
22039 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22040 PyObject *resultobj = 0;
22041 wxDC *arg1 = (wxDC *) 0 ;
22042 bool result;
22043 void *argp1 = 0 ;
22044 int res1 = 0 ;
22045 PyObject *swig_obj[1] ;
22046
22047 if (!args) SWIG_fail;
22048 swig_obj[0] = args;
22049 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22050 if (!SWIG_IsOK(res1)) {
22051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22052 }
22053 arg1 = reinterpret_cast< wxDC * >(argp1);
22054 {
22055 PyThreadState* __tstate = wxPyBeginAllowThreads();
22056 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22057 wxPyEndAllowThreads(__tstate);
22058 if (PyErr_Occurred()) SWIG_fail;
22059 }
22060 {
22061 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22062 }
22063 return resultobj;
22064 fail:
22065 return NULL;
22066 }
22067
22068
22069 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22070 PyObject *resultobj = 0;
22071 wxDC *arg1 = (wxDC *) 0 ;
22072 int result;
22073 void *argp1 = 0 ;
22074 int res1 = 0 ;
22075 PyObject *swig_obj[1] ;
22076
22077 if (!args) SWIG_fail;
22078 swig_obj[0] = args;
22079 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22080 if (!SWIG_IsOK(res1)) {
22081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22082 }
22083 arg1 = reinterpret_cast< wxDC * >(argp1);
22084 {
22085 PyThreadState* __tstate = wxPyBeginAllowThreads();
22086 result = (int)((wxDC const *)arg1)->GetDepth();
22087 wxPyEndAllowThreads(__tstate);
22088 if (PyErr_Occurred()) SWIG_fail;
22089 }
22090 resultobj = SWIG_From_int(static_cast< int >(result));
22091 return resultobj;
22092 fail:
22093 return NULL;
22094 }
22095
22096
22097 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22098 PyObject *resultobj = 0;
22099 wxDC *arg1 = (wxDC *) 0 ;
22100 wxSize result;
22101 void *argp1 = 0 ;
22102 int res1 = 0 ;
22103 PyObject *swig_obj[1] ;
22104
22105 if (!args) SWIG_fail;
22106 swig_obj[0] = args;
22107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22108 if (!SWIG_IsOK(res1)) {
22109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22110 }
22111 arg1 = reinterpret_cast< wxDC * >(argp1);
22112 {
22113 PyThreadState* __tstate = wxPyBeginAllowThreads();
22114 result = ((wxDC const *)arg1)->GetPPI();
22115 wxPyEndAllowThreads(__tstate);
22116 if (PyErr_Occurred()) SWIG_fail;
22117 }
22118 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22119 return resultobj;
22120 fail:
22121 return NULL;
22122 }
22123
22124
22125 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22126 PyObject *resultobj = 0;
22127 wxDC *arg1 = (wxDC *) 0 ;
22128 bool result;
22129 void *argp1 = 0 ;
22130 int res1 = 0 ;
22131 PyObject *swig_obj[1] ;
22132
22133 if (!args) SWIG_fail;
22134 swig_obj[0] = args;
22135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22136 if (!SWIG_IsOK(res1)) {
22137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22138 }
22139 arg1 = reinterpret_cast< wxDC * >(argp1);
22140 {
22141 PyThreadState* __tstate = wxPyBeginAllowThreads();
22142 result = (bool)((wxDC const *)arg1)->IsOk();
22143 wxPyEndAllowThreads(__tstate);
22144 if (PyErr_Occurred()) SWIG_fail;
22145 }
22146 {
22147 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22148 }
22149 return resultobj;
22150 fail:
22151 return NULL;
22152 }
22153
22154
22155 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22156 PyObject *resultobj = 0;
22157 wxDC *arg1 = (wxDC *) 0 ;
22158 int result;
22159 void *argp1 = 0 ;
22160 int res1 = 0 ;
22161 PyObject *swig_obj[1] ;
22162
22163 if (!args) SWIG_fail;
22164 swig_obj[0] = args;
22165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22166 if (!SWIG_IsOK(res1)) {
22167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22168 }
22169 arg1 = reinterpret_cast< wxDC * >(argp1);
22170 {
22171 PyThreadState* __tstate = wxPyBeginAllowThreads();
22172 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22173 wxPyEndAllowThreads(__tstate);
22174 if (PyErr_Occurred()) SWIG_fail;
22175 }
22176 resultobj = SWIG_From_int(static_cast< int >(result));
22177 return resultobj;
22178 fail:
22179 return NULL;
22180 }
22181
22182
22183 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22184 PyObject *resultobj = 0;
22185 wxDC *arg1 = (wxDC *) 0 ;
22186 wxBrush *result = 0 ;
22187 void *argp1 = 0 ;
22188 int res1 = 0 ;
22189 PyObject *swig_obj[1] ;
22190
22191 if (!args) SWIG_fail;
22192 swig_obj[0] = args;
22193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22194 if (!SWIG_IsOK(res1)) {
22195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22196 }
22197 arg1 = reinterpret_cast< wxDC * >(argp1);
22198 {
22199 PyThreadState* __tstate = wxPyBeginAllowThreads();
22200 {
22201 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22202 result = (wxBrush *) &_result_ref;
22203 }
22204 wxPyEndAllowThreads(__tstate);
22205 if (PyErr_Occurred()) SWIG_fail;
22206 }
22207 {
22208 wxBrush* resultptr = new wxBrush(*result);
22209 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22210 }
22211 return resultobj;
22212 fail:
22213 return NULL;
22214 }
22215
22216
22217 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22218 PyObject *resultobj = 0;
22219 wxDC *arg1 = (wxDC *) 0 ;
22220 wxBrush *result = 0 ;
22221 void *argp1 = 0 ;
22222 int res1 = 0 ;
22223 PyObject *swig_obj[1] ;
22224
22225 if (!args) SWIG_fail;
22226 swig_obj[0] = args;
22227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22228 if (!SWIG_IsOK(res1)) {
22229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22230 }
22231 arg1 = reinterpret_cast< wxDC * >(argp1);
22232 {
22233 PyThreadState* __tstate = wxPyBeginAllowThreads();
22234 {
22235 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22236 result = (wxBrush *) &_result_ref;
22237 }
22238 wxPyEndAllowThreads(__tstate);
22239 if (PyErr_Occurred()) SWIG_fail;
22240 }
22241 {
22242 wxBrush* resultptr = new wxBrush(*result);
22243 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22244 }
22245 return resultobj;
22246 fail:
22247 return NULL;
22248 }
22249
22250
22251 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22252 PyObject *resultobj = 0;
22253 wxDC *arg1 = (wxDC *) 0 ;
22254 wxFont *result = 0 ;
22255 void *argp1 = 0 ;
22256 int res1 = 0 ;
22257 PyObject *swig_obj[1] ;
22258
22259 if (!args) SWIG_fail;
22260 swig_obj[0] = args;
22261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22262 if (!SWIG_IsOK(res1)) {
22263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22264 }
22265 arg1 = reinterpret_cast< wxDC * >(argp1);
22266 {
22267 PyThreadState* __tstate = wxPyBeginAllowThreads();
22268 {
22269 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22270 result = (wxFont *) &_result_ref;
22271 }
22272 wxPyEndAllowThreads(__tstate);
22273 if (PyErr_Occurred()) SWIG_fail;
22274 }
22275 {
22276 wxFont* resultptr = new wxFont(*result);
22277 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22278 }
22279 return resultobj;
22280 fail:
22281 return NULL;
22282 }
22283
22284
22285 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22286 PyObject *resultobj = 0;
22287 wxDC *arg1 = (wxDC *) 0 ;
22288 wxPen *result = 0 ;
22289 void *argp1 = 0 ;
22290 int res1 = 0 ;
22291 PyObject *swig_obj[1] ;
22292
22293 if (!args) SWIG_fail;
22294 swig_obj[0] = args;
22295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22296 if (!SWIG_IsOK(res1)) {
22297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22298 }
22299 arg1 = reinterpret_cast< wxDC * >(argp1);
22300 {
22301 PyThreadState* __tstate = wxPyBeginAllowThreads();
22302 {
22303 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22304 result = (wxPen *) &_result_ref;
22305 }
22306 wxPyEndAllowThreads(__tstate);
22307 if (PyErr_Occurred()) SWIG_fail;
22308 }
22309 {
22310 wxPen* resultptr = new wxPen(*result);
22311 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22312 }
22313 return resultobj;
22314 fail:
22315 return NULL;
22316 }
22317
22318
22319 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22320 PyObject *resultobj = 0;
22321 wxDC *arg1 = (wxDC *) 0 ;
22322 wxColour *result = 0 ;
22323 void *argp1 = 0 ;
22324 int res1 = 0 ;
22325 PyObject *swig_obj[1] ;
22326
22327 if (!args) SWIG_fail;
22328 swig_obj[0] = args;
22329 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22330 if (!SWIG_IsOK(res1)) {
22331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22332 }
22333 arg1 = reinterpret_cast< wxDC * >(argp1);
22334 {
22335 PyThreadState* __tstate = wxPyBeginAllowThreads();
22336 {
22337 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22338 result = (wxColour *) &_result_ref;
22339 }
22340 wxPyEndAllowThreads(__tstate);
22341 if (PyErr_Occurred()) SWIG_fail;
22342 }
22343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22344 return resultobj;
22345 fail:
22346 return NULL;
22347 }
22348
22349
22350 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22351 PyObject *resultobj = 0;
22352 wxDC *arg1 = (wxDC *) 0 ;
22353 wxColour *result = 0 ;
22354 void *argp1 = 0 ;
22355 int res1 = 0 ;
22356 PyObject *swig_obj[1] ;
22357
22358 if (!args) SWIG_fail;
22359 swig_obj[0] = args;
22360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22361 if (!SWIG_IsOK(res1)) {
22362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22363 }
22364 arg1 = reinterpret_cast< wxDC * >(argp1);
22365 {
22366 PyThreadState* __tstate = wxPyBeginAllowThreads();
22367 {
22368 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22369 result = (wxColour *) &_result_ref;
22370 }
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22375 return resultobj;
22376 fail:
22377 return NULL;
22378 }
22379
22380
22381 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22382 PyObject *resultobj = 0;
22383 wxDC *arg1 = (wxDC *) 0 ;
22384 wxColour *arg2 = 0 ;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 wxColour temp2 ;
22388 PyObject * obj0 = 0 ;
22389 PyObject * obj1 = 0 ;
22390 char * kwnames[] = {
22391 (char *) "self",(char *) "colour", NULL
22392 };
22393
22394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22396 if (!SWIG_IsOK(res1)) {
22397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22398 }
22399 arg1 = reinterpret_cast< wxDC * >(argp1);
22400 {
22401 arg2 = &temp2;
22402 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22403 }
22404 {
22405 PyThreadState* __tstate = wxPyBeginAllowThreads();
22406 (arg1)->SetTextForeground((wxColour const &)*arg2);
22407 wxPyEndAllowThreads(__tstate);
22408 if (PyErr_Occurred()) SWIG_fail;
22409 }
22410 resultobj = SWIG_Py_Void();
22411 return resultobj;
22412 fail:
22413 return NULL;
22414 }
22415
22416
22417 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22418 PyObject *resultobj = 0;
22419 wxDC *arg1 = (wxDC *) 0 ;
22420 wxColour *arg2 = 0 ;
22421 void *argp1 = 0 ;
22422 int res1 = 0 ;
22423 wxColour temp2 ;
22424 PyObject * obj0 = 0 ;
22425 PyObject * obj1 = 0 ;
22426 char * kwnames[] = {
22427 (char *) "self",(char *) "colour", NULL
22428 };
22429
22430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22432 if (!SWIG_IsOK(res1)) {
22433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22434 }
22435 arg1 = reinterpret_cast< wxDC * >(argp1);
22436 {
22437 arg2 = &temp2;
22438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22439 }
22440 {
22441 PyThreadState* __tstate = wxPyBeginAllowThreads();
22442 (arg1)->SetTextBackground((wxColour const &)*arg2);
22443 wxPyEndAllowThreads(__tstate);
22444 if (PyErr_Occurred()) SWIG_fail;
22445 }
22446 resultobj = SWIG_Py_Void();
22447 return resultobj;
22448 fail:
22449 return NULL;
22450 }
22451
22452
22453 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22454 PyObject *resultobj = 0;
22455 wxDC *arg1 = (wxDC *) 0 ;
22456 int result;
22457 void *argp1 = 0 ;
22458 int res1 = 0 ;
22459 PyObject *swig_obj[1] ;
22460
22461 if (!args) SWIG_fail;
22462 swig_obj[0] = args;
22463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22464 if (!SWIG_IsOK(res1)) {
22465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22466 }
22467 arg1 = reinterpret_cast< wxDC * >(argp1);
22468 {
22469 PyThreadState* __tstate = wxPyBeginAllowThreads();
22470 result = (int)((wxDC const *)arg1)->GetMapMode();
22471 wxPyEndAllowThreads(__tstate);
22472 if (PyErr_Occurred()) SWIG_fail;
22473 }
22474 resultobj = SWIG_From_int(static_cast< int >(result));
22475 return resultobj;
22476 fail:
22477 return NULL;
22478 }
22479
22480
22481 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22482 PyObject *resultobj = 0;
22483 wxDC *arg1 = (wxDC *) 0 ;
22484 int arg2 ;
22485 void *argp1 = 0 ;
22486 int res1 = 0 ;
22487 int val2 ;
22488 int ecode2 = 0 ;
22489 PyObject * obj0 = 0 ;
22490 PyObject * obj1 = 0 ;
22491 char * kwnames[] = {
22492 (char *) "self",(char *) "mode", NULL
22493 };
22494
22495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22497 if (!SWIG_IsOK(res1)) {
22498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22499 }
22500 arg1 = reinterpret_cast< wxDC * >(argp1);
22501 ecode2 = SWIG_AsVal_int(obj1, &val2);
22502 if (!SWIG_IsOK(ecode2)) {
22503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22504 }
22505 arg2 = static_cast< int >(val2);
22506 {
22507 PyThreadState* __tstate = wxPyBeginAllowThreads();
22508 (arg1)->SetMapMode(arg2);
22509 wxPyEndAllowThreads(__tstate);
22510 if (PyErr_Occurred()) SWIG_fail;
22511 }
22512 resultobj = SWIG_Py_Void();
22513 return resultobj;
22514 fail:
22515 return NULL;
22516 }
22517
22518
22519 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22520 PyObject *resultobj = 0;
22521 wxDC *arg1 = (wxDC *) 0 ;
22522 double *arg2 = (double *) 0 ;
22523 double *arg3 = (double *) 0 ;
22524 void *argp1 = 0 ;
22525 int res1 = 0 ;
22526 double temp2 ;
22527 int res2 = SWIG_TMPOBJ ;
22528 double temp3 ;
22529 int res3 = SWIG_TMPOBJ ;
22530 PyObject *swig_obj[1] ;
22531
22532 arg2 = &temp2;
22533 arg3 = &temp3;
22534 if (!args) SWIG_fail;
22535 swig_obj[0] = args;
22536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22537 if (!SWIG_IsOK(res1)) {
22538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22539 }
22540 arg1 = reinterpret_cast< wxDC * >(argp1);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_Py_Void();
22548 if (SWIG_IsTmpObj(res2)) {
22549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22550 } else {
22551 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22553 }
22554 if (SWIG_IsTmpObj(res3)) {
22555 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22556 } else {
22557 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22558 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22559 }
22560 return resultobj;
22561 fail:
22562 return NULL;
22563 }
22564
22565
22566 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22567 PyObject *resultobj = 0;
22568 wxDC *arg1 = (wxDC *) 0 ;
22569 double arg2 ;
22570 double arg3 ;
22571 void *argp1 = 0 ;
22572 int res1 = 0 ;
22573 double val2 ;
22574 int ecode2 = 0 ;
22575 double val3 ;
22576 int ecode3 = 0 ;
22577 PyObject * obj0 = 0 ;
22578 PyObject * obj1 = 0 ;
22579 PyObject * obj2 = 0 ;
22580 char * kwnames[] = {
22581 (char *) "self",(char *) "x",(char *) "y", NULL
22582 };
22583
22584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22586 if (!SWIG_IsOK(res1)) {
22587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22588 }
22589 arg1 = reinterpret_cast< wxDC * >(argp1);
22590 ecode2 = SWIG_AsVal_double(obj1, &val2);
22591 if (!SWIG_IsOK(ecode2)) {
22592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22593 }
22594 arg2 = static_cast< double >(val2);
22595 ecode3 = SWIG_AsVal_double(obj2, &val3);
22596 if (!SWIG_IsOK(ecode3)) {
22597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22598 }
22599 arg3 = static_cast< double >(val3);
22600 {
22601 PyThreadState* __tstate = wxPyBeginAllowThreads();
22602 (arg1)->SetUserScale(arg2,arg3);
22603 wxPyEndAllowThreads(__tstate);
22604 if (PyErr_Occurred()) SWIG_fail;
22605 }
22606 resultobj = SWIG_Py_Void();
22607 return resultobj;
22608 fail:
22609 return NULL;
22610 }
22611
22612
22613 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22614 PyObject *resultobj = 0;
22615 wxDC *arg1 = (wxDC *) 0 ;
22616 double *arg2 = (double *) 0 ;
22617 double *arg3 = (double *) 0 ;
22618 void *argp1 = 0 ;
22619 int res1 = 0 ;
22620 double temp2 ;
22621 int res2 = SWIG_TMPOBJ ;
22622 double temp3 ;
22623 int res3 = SWIG_TMPOBJ ;
22624 PyObject *swig_obj[1] ;
22625
22626 arg2 = &temp2;
22627 arg3 = &temp3;
22628 if (!args) SWIG_fail;
22629 swig_obj[0] = args;
22630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22631 if (!SWIG_IsOK(res1)) {
22632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22633 }
22634 arg1 = reinterpret_cast< wxDC * >(argp1);
22635 {
22636 PyThreadState* __tstate = wxPyBeginAllowThreads();
22637 (arg1)->GetLogicalScale(arg2,arg3);
22638 wxPyEndAllowThreads(__tstate);
22639 if (PyErr_Occurred()) SWIG_fail;
22640 }
22641 resultobj = SWIG_Py_Void();
22642 if (SWIG_IsTmpObj(res2)) {
22643 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22644 } else {
22645 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22646 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22647 }
22648 if (SWIG_IsTmpObj(res3)) {
22649 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22650 } else {
22651 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22652 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22653 }
22654 return resultobj;
22655 fail:
22656 return NULL;
22657 }
22658
22659
22660 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22661 PyObject *resultobj = 0;
22662 wxDC *arg1 = (wxDC *) 0 ;
22663 double arg2 ;
22664 double arg3 ;
22665 void *argp1 = 0 ;
22666 int res1 = 0 ;
22667 double val2 ;
22668 int ecode2 = 0 ;
22669 double val3 ;
22670 int ecode3 = 0 ;
22671 PyObject * obj0 = 0 ;
22672 PyObject * obj1 = 0 ;
22673 PyObject * obj2 = 0 ;
22674 char * kwnames[] = {
22675 (char *) "self",(char *) "x",(char *) "y", NULL
22676 };
22677
22678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22680 if (!SWIG_IsOK(res1)) {
22681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22682 }
22683 arg1 = reinterpret_cast< wxDC * >(argp1);
22684 ecode2 = SWIG_AsVal_double(obj1, &val2);
22685 if (!SWIG_IsOK(ecode2)) {
22686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22687 }
22688 arg2 = static_cast< double >(val2);
22689 ecode3 = SWIG_AsVal_double(obj2, &val3);
22690 if (!SWIG_IsOK(ecode3)) {
22691 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22692 }
22693 arg3 = static_cast< double >(val3);
22694 {
22695 PyThreadState* __tstate = wxPyBeginAllowThreads();
22696 (arg1)->SetLogicalScale(arg2,arg3);
22697 wxPyEndAllowThreads(__tstate);
22698 if (PyErr_Occurred()) SWIG_fail;
22699 }
22700 resultobj = SWIG_Py_Void();
22701 return resultobj;
22702 fail:
22703 return NULL;
22704 }
22705
22706
22707 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22708 PyObject *resultobj = 0;
22709 wxDC *arg1 = (wxDC *) 0 ;
22710 wxPoint result;
22711 void *argp1 = 0 ;
22712 int res1 = 0 ;
22713 PyObject *swig_obj[1] ;
22714
22715 if (!args) SWIG_fail;
22716 swig_obj[0] = args;
22717 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22720 }
22721 arg1 = reinterpret_cast< wxDC * >(argp1);
22722 {
22723 PyThreadState* __tstate = wxPyBeginAllowThreads();
22724 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22725 wxPyEndAllowThreads(__tstate);
22726 if (PyErr_Occurred()) SWIG_fail;
22727 }
22728 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22729 return resultobj;
22730 fail:
22731 return NULL;
22732 }
22733
22734
22735 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22736 PyObject *resultobj = 0;
22737 wxDC *arg1 = (wxDC *) 0 ;
22738 int *arg2 = (int *) 0 ;
22739 int *arg3 = (int *) 0 ;
22740 void *argp1 = 0 ;
22741 int res1 = 0 ;
22742 int temp2 ;
22743 int res2 = SWIG_TMPOBJ ;
22744 int temp3 ;
22745 int res3 = SWIG_TMPOBJ ;
22746 PyObject *swig_obj[1] ;
22747
22748 arg2 = &temp2;
22749 arg3 = &temp3;
22750 if (!args) SWIG_fail;
22751 swig_obj[0] = args;
22752 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22753 if (!SWIG_IsOK(res1)) {
22754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22755 }
22756 arg1 = reinterpret_cast< wxDC * >(argp1);
22757 {
22758 PyThreadState* __tstate = wxPyBeginAllowThreads();
22759 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22760 wxPyEndAllowThreads(__tstate);
22761 if (PyErr_Occurred()) SWIG_fail;
22762 }
22763 resultobj = SWIG_Py_Void();
22764 if (SWIG_IsTmpObj(res2)) {
22765 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22766 } else {
22767 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22768 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22769 }
22770 if (SWIG_IsTmpObj(res3)) {
22771 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22772 } else {
22773 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22774 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22775 }
22776 return resultobj;
22777 fail:
22778 return NULL;
22779 }
22780
22781
22782 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22783 PyObject *resultobj = 0;
22784 wxDC *arg1 = (wxDC *) 0 ;
22785 int arg2 ;
22786 int arg3 ;
22787 void *argp1 = 0 ;
22788 int res1 = 0 ;
22789 int val2 ;
22790 int ecode2 = 0 ;
22791 int val3 ;
22792 int ecode3 = 0 ;
22793 PyObject * obj0 = 0 ;
22794 PyObject * obj1 = 0 ;
22795 PyObject * obj2 = 0 ;
22796 char * kwnames[] = {
22797 (char *) "self",(char *) "x",(char *) "y", NULL
22798 };
22799
22800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22802 if (!SWIG_IsOK(res1)) {
22803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22804 }
22805 arg1 = reinterpret_cast< wxDC * >(argp1);
22806 ecode2 = SWIG_AsVal_int(obj1, &val2);
22807 if (!SWIG_IsOK(ecode2)) {
22808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22809 }
22810 arg2 = static_cast< int >(val2);
22811 ecode3 = SWIG_AsVal_int(obj2, &val3);
22812 if (!SWIG_IsOK(ecode3)) {
22813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22814 }
22815 arg3 = static_cast< int >(val3);
22816 {
22817 PyThreadState* __tstate = wxPyBeginAllowThreads();
22818 (arg1)->SetLogicalOrigin(arg2,arg3);
22819 wxPyEndAllowThreads(__tstate);
22820 if (PyErr_Occurred()) SWIG_fail;
22821 }
22822 resultobj = SWIG_Py_Void();
22823 return resultobj;
22824 fail:
22825 return NULL;
22826 }
22827
22828
22829 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22830 PyObject *resultobj = 0;
22831 wxDC *arg1 = (wxDC *) 0 ;
22832 wxPoint *arg2 = 0 ;
22833 void *argp1 = 0 ;
22834 int res1 = 0 ;
22835 wxPoint temp2 ;
22836 PyObject * obj0 = 0 ;
22837 PyObject * obj1 = 0 ;
22838 char * kwnames[] = {
22839 (char *) "self",(char *) "point", NULL
22840 };
22841
22842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22844 if (!SWIG_IsOK(res1)) {
22845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22846 }
22847 arg1 = reinterpret_cast< wxDC * >(argp1);
22848 {
22849 arg2 = &temp2;
22850 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22851 }
22852 {
22853 PyThreadState* __tstate = wxPyBeginAllowThreads();
22854 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22855 wxPyEndAllowThreads(__tstate);
22856 if (PyErr_Occurred()) SWIG_fail;
22857 }
22858 resultobj = SWIG_Py_Void();
22859 return resultobj;
22860 fail:
22861 return NULL;
22862 }
22863
22864
22865 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22866 PyObject *resultobj = 0;
22867 wxDC *arg1 = (wxDC *) 0 ;
22868 wxPoint result;
22869 void *argp1 = 0 ;
22870 int res1 = 0 ;
22871 PyObject *swig_obj[1] ;
22872
22873 if (!args) SWIG_fail;
22874 swig_obj[0] = args;
22875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22876 if (!SWIG_IsOK(res1)) {
22877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22878 }
22879 arg1 = reinterpret_cast< wxDC * >(argp1);
22880 {
22881 PyThreadState* __tstate = wxPyBeginAllowThreads();
22882 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22883 wxPyEndAllowThreads(__tstate);
22884 if (PyErr_Occurred()) SWIG_fail;
22885 }
22886 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22894 PyObject *resultobj = 0;
22895 wxDC *arg1 = (wxDC *) 0 ;
22896 int *arg2 = (int *) 0 ;
22897 int *arg3 = (int *) 0 ;
22898 void *argp1 = 0 ;
22899 int res1 = 0 ;
22900 int temp2 ;
22901 int res2 = SWIG_TMPOBJ ;
22902 int temp3 ;
22903 int res3 = SWIG_TMPOBJ ;
22904 PyObject *swig_obj[1] ;
22905
22906 arg2 = &temp2;
22907 arg3 = &temp3;
22908 if (!args) SWIG_fail;
22909 swig_obj[0] = args;
22910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22911 if (!SWIG_IsOK(res1)) {
22912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22913 }
22914 arg1 = reinterpret_cast< wxDC * >(argp1);
22915 {
22916 PyThreadState* __tstate = wxPyBeginAllowThreads();
22917 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22918 wxPyEndAllowThreads(__tstate);
22919 if (PyErr_Occurred()) SWIG_fail;
22920 }
22921 resultobj = SWIG_Py_Void();
22922 if (SWIG_IsTmpObj(res2)) {
22923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22924 } else {
22925 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22927 }
22928 if (SWIG_IsTmpObj(res3)) {
22929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22930 } else {
22931 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22933 }
22934 return resultobj;
22935 fail:
22936 return NULL;
22937 }
22938
22939
22940 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22941 PyObject *resultobj = 0;
22942 wxDC *arg1 = (wxDC *) 0 ;
22943 int arg2 ;
22944 int arg3 ;
22945 void *argp1 = 0 ;
22946 int res1 = 0 ;
22947 int val2 ;
22948 int ecode2 = 0 ;
22949 int val3 ;
22950 int ecode3 = 0 ;
22951 PyObject * obj0 = 0 ;
22952 PyObject * obj1 = 0 ;
22953 PyObject * obj2 = 0 ;
22954 char * kwnames[] = {
22955 (char *) "self",(char *) "x",(char *) "y", NULL
22956 };
22957
22958 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22959 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22960 if (!SWIG_IsOK(res1)) {
22961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22962 }
22963 arg1 = reinterpret_cast< wxDC * >(argp1);
22964 ecode2 = SWIG_AsVal_int(obj1, &val2);
22965 if (!SWIG_IsOK(ecode2)) {
22966 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22967 }
22968 arg2 = static_cast< int >(val2);
22969 ecode3 = SWIG_AsVal_int(obj2, &val3);
22970 if (!SWIG_IsOK(ecode3)) {
22971 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22972 }
22973 arg3 = static_cast< int >(val3);
22974 {
22975 PyThreadState* __tstate = wxPyBeginAllowThreads();
22976 (arg1)->SetDeviceOrigin(arg2,arg3);
22977 wxPyEndAllowThreads(__tstate);
22978 if (PyErr_Occurred()) SWIG_fail;
22979 }
22980 resultobj = SWIG_Py_Void();
22981 return resultobj;
22982 fail:
22983 return NULL;
22984 }
22985
22986
22987 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22988 PyObject *resultobj = 0;
22989 wxDC *arg1 = (wxDC *) 0 ;
22990 wxPoint *arg2 = 0 ;
22991 void *argp1 = 0 ;
22992 int res1 = 0 ;
22993 wxPoint temp2 ;
22994 PyObject * obj0 = 0 ;
22995 PyObject * obj1 = 0 ;
22996 char * kwnames[] = {
22997 (char *) "self",(char *) "point", NULL
22998 };
22999
23000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23002 if (!SWIG_IsOK(res1)) {
23003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23004 }
23005 arg1 = reinterpret_cast< wxDC * >(argp1);
23006 {
23007 arg2 = &temp2;
23008 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23009 }
23010 {
23011 PyThreadState* __tstate = wxPyBeginAllowThreads();
23012 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23013 wxPyEndAllowThreads(__tstate);
23014 if (PyErr_Occurred()) SWIG_fail;
23015 }
23016 resultobj = SWIG_Py_Void();
23017 return resultobj;
23018 fail:
23019 return NULL;
23020 }
23021
23022
23023 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23024 PyObject *resultobj = 0;
23025 wxDC *arg1 = (wxDC *) 0 ;
23026 bool arg2 ;
23027 bool arg3 ;
23028 void *argp1 = 0 ;
23029 int res1 = 0 ;
23030 bool val2 ;
23031 int ecode2 = 0 ;
23032 bool val3 ;
23033 int ecode3 = 0 ;
23034 PyObject * obj0 = 0 ;
23035 PyObject * obj1 = 0 ;
23036 PyObject * obj2 = 0 ;
23037 char * kwnames[] = {
23038 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23039 };
23040
23041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23043 if (!SWIG_IsOK(res1)) {
23044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23045 }
23046 arg1 = reinterpret_cast< wxDC * >(argp1);
23047 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23048 if (!SWIG_IsOK(ecode2)) {
23049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23050 }
23051 arg2 = static_cast< bool >(val2);
23052 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23053 if (!SWIG_IsOK(ecode3)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23055 }
23056 arg3 = static_cast< bool >(val3);
23057 {
23058 PyThreadState* __tstate = wxPyBeginAllowThreads();
23059 (arg1)->SetAxisOrientation(arg2,arg3);
23060 wxPyEndAllowThreads(__tstate);
23061 if (PyErr_Occurred()) SWIG_fail;
23062 }
23063 resultobj = SWIG_Py_Void();
23064 return resultobj;
23065 fail:
23066 return NULL;
23067 }
23068
23069
23070 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23071 PyObject *resultobj = 0;
23072 wxDC *arg1 = (wxDC *) 0 ;
23073 int result;
23074 void *argp1 = 0 ;
23075 int res1 = 0 ;
23076 PyObject *swig_obj[1] ;
23077
23078 if (!args) SWIG_fail;
23079 swig_obj[0] = args;
23080 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23081 if (!SWIG_IsOK(res1)) {
23082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23083 }
23084 arg1 = reinterpret_cast< wxDC * >(argp1);
23085 {
23086 PyThreadState* __tstate = wxPyBeginAllowThreads();
23087 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23088 wxPyEndAllowThreads(__tstate);
23089 if (PyErr_Occurred()) SWIG_fail;
23090 }
23091 resultobj = SWIG_From_int(static_cast< int >(result));
23092 return resultobj;
23093 fail:
23094 return NULL;
23095 }
23096
23097
23098 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23099 PyObject *resultobj = 0;
23100 wxDC *arg1 = (wxDC *) 0 ;
23101 int arg2 ;
23102 void *argp1 = 0 ;
23103 int res1 = 0 ;
23104 int val2 ;
23105 int ecode2 = 0 ;
23106 PyObject * obj0 = 0 ;
23107 PyObject * obj1 = 0 ;
23108 char * kwnames[] = {
23109 (char *) "self",(char *) "function", NULL
23110 };
23111
23112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23114 if (!SWIG_IsOK(res1)) {
23115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23116 }
23117 arg1 = reinterpret_cast< wxDC * >(argp1);
23118 ecode2 = SWIG_AsVal_int(obj1, &val2);
23119 if (!SWIG_IsOK(ecode2)) {
23120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23121 }
23122 arg2 = static_cast< int >(val2);
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 (arg1)->SetLogicalFunction(arg2);
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_Py_Void();
23130 return resultobj;
23131 fail:
23132 return NULL;
23133 }
23134
23135
23136 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23137 PyObject *resultobj = 0;
23138 wxDC *arg1 = (wxDC *) 0 ;
23139 void *argp1 = 0 ;
23140 int res1 = 0 ;
23141 PyObject *swig_obj[1] ;
23142
23143 if (!args) SWIG_fail;
23144 swig_obj[0] = args;
23145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23146 if (!SWIG_IsOK(res1)) {
23147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23148 }
23149 arg1 = reinterpret_cast< wxDC * >(argp1);
23150 {
23151 PyThreadState* __tstate = wxPyBeginAllowThreads();
23152 (arg1)->ComputeScaleAndOrigin();
23153 wxPyEndAllowThreads(__tstate);
23154 if (PyErr_Occurred()) SWIG_fail;
23155 }
23156 resultobj = SWIG_Py_Void();
23157 return resultobj;
23158 fail:
23159 return NULL;
23160 }
23161
23162
23163 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23164 PyObject *resultobj = 0;
23165 wxDC *arg1 = (wxDC *) 0 ;
23166 int arg2 ;
23167 int arg3 ;
23168 void *argp1 = 0 ;
23169 int res1 = 0 ;
23170 int val2 ;
23171 int ecode2 = 0 ;
23172 int val3 ;
23173 int ecode3 = 0 ;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 PyObject * obj2 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "x",(char *) "y", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23185 }
23186 arg1 = reinterpret_cast< wxDC * >(argp1);
23187 ecode2 = SWIG_AsVal_int(obj1, &val2);
23188 if (!SWIG_IsOK(ecode2)) {
23189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23190 }
23191 arg2 = static_cast< int >(val2);
23192 ecode3 = SWIG_AsVal_int(obj2, &val3);
23193 if (!SWIG_IsOK(ecode3)) {
23194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23195 }
23196 arg3 = static_cast< int >(val3);
23197 {
23198 PyThreadState* __tstate = wxPyBeginAllowThreads();
23199 (arg1)->CalcBoundingBox(arg2,arg3);
23200 wxPyEndAllowThreads(__tstate);
23201 if (PyErr_Occurred()) SWIG_fail;
23202 }
23203 resultobj = SWIG_Py_Void();
23204 return resultobj;
23205 fail:
23206 return NULL;
23207 }
23208
23209
23210 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23211 PyObject *resultobj = 0;
23212 wxDC *arg1 = (wxDC *) 0 ;
23213 wxPoint *arg2 = 0 ;
23214 void *argp1 = 0 ;
23215 int res1 = 0 ;
23216 wxPoint temp2 ;
23217 PyObject * obj0 = 0 ;
23218 PyObject * obj1 = 0 ;
23219 char * kwnames[] = {
23220 (char *) "self",(char *) "point", NULL
23221 };
23222
23223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23225 if (!SWIG_IsOK(res1)) {
23226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23227 }
23228 arg1 = reinterpret_cast< wxDC * >(argp1);
23229 {
23230 arg2 = &temp2;
23231 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23232 }
23233 {
23234 PyThreadState* __tstate = wxPyBeginAllowThreads();
23235 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23236 wxPyEndAllowThreads(__tstate);
23237 if (PyErr_Occurred()) SWIG_fail;
23238 }
23239 resultobj = SWIG_Py_Void();
23240 return resultobj;
23241 fail:
23242 return NULL;
23243 }
23244
23245
23246 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23247 PyObject *resultobj = 0;
23248 wxDC *arg1 = (wxDC *) 0 ;
23249 void *argp1 = 0 ;
23250 int res1 = 0 ;
23251 PyObject *swig_obj[1] ;
23252
23253 if (!args) SWIG_fail;
23254 swig_obj[0] = args;
23255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23256 if (!SWIG_IsOK(res1)) {
23257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23258 }
23259 arg1 = reinterpret_cast< wxDC * >(argp1);
23260 {
23261 PyThreadState* __tstate = wxPyBeginAllowThreads();
23262 (arg1)->ResetBoundingBox();
23263 wxPyEndAllowThreads(__tstate);
23264 if (PyErr_Occurred()) SWIG_fail;
23265 }
23266 resultobj = SWIG_Py_Void();
23267 return resultobj;
23268 fail:
23269 return NULL;
23270 }
23271
23272
23273 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23274 PyObject *resultobj = 0;
23275 wxDC *arg1 = (wxDC *) 0 ;
23276 int result;
23277 void *argp1 = 0 ;
23278 int res1 = 0 ;
23279 PyObject *swig_obj[1] ;
23280
23281 if (!args) SWIG_fail;
23282 swig_obj[0] = args;
23283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23284 if (!SWIG_IsOK(res1)) {
23285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23286 }
23287 arg1 = reinterpret_cast< wxDC * >(argp1);
23288 {
23289 PyThreadState* __tstate = wxPyBeginAllowThreads();
23290 result = (int)((wxDC const *)arg1)->MinX();
23291 wxPyEndAllowThreads(__tstate);
23292 if (PyErr_Occurred()) SWIG_fail;
23293 }
23294 resultobj = SWIG_From_int(static_cast< int >(result));
23295 return resultobj;
23296 fail:
23297 return NULL;
23298 }
23299
23300
23301 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23302 PyObject *resultobj = 0;
23303 wxDC *arg1 = (wxDC *) 0 ;
23304 int result;
23305 void *argp1 = 0 ;
23306 int res1 = 0 ;
23307 PyObject *swig_obj[1] ;
23308
23309 if (!args) SWIG_fail;
23310 swig_obj[0] = args;
23311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23312 if (!SWIG_IsOK(res1)) {
23313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23314 }
23315 arg1 = reinterpret_cast< wxDC * >(argp1);
23316 {
23317 PyThreadState* __tstate = wxPyBeginAllowThreads();
23318 result = (int)((wxDC const *)arg1)->MaxX();
23319 wxPyEndAllowThreads(__tstate);
23320 if (PyErr_Occurred()) SWIG_fail;
23321 }
23322 resultobj = SWIG_From_int(static_cast< int >(result));
23323 return resultobj;
23324 fail:
23325 return NULL;
23326 }
23327
23328
23329 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23330 PyObject *resultobj = 0;
23331 wxDC *arg1 = (wxDC *) 0 ;
23332 int result;
23333 void *argp1 = 0 ;
23334 int res1 = 0 ;
23335 PyObject *swig_obj[1] ;
23336
23337 if (!args) SWIG_fail;
23338 swig_obj[0] = args;
23339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23340 if (!SWIG_IsOK(res1)) {
23341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23342 }
23343 arg1 = reinterpret_cast< wxDC * >(argp1);
23344 {
23345 PyThreadState* __tstate = wxPyBeginAllowThreads();
23346 result = (int)((wxDC const *)arg1)->MinY();
23347 wxPyEndAllowThreads(__tstate);
23348 if (PyErr_Occurred()) SWIG_fail;
23349 }
23350 resultobj = SWIG_From_int(static_cast< int >(result));
23351 return resultobj;
23352 fail:
23353 return NULL;
23354 }
23355
23356
23357 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23358 PyObject *resultobj = 0;
23359 wxDC *arg1 = (wxDC *) 0 ;
23360 int result;
23361 void *argp1 = 0 ;
23362 int res1 = 0 ;
23363 PyObject *swig_obj[1] ;
23364
23365 if (!args) SWIG_fail;
23366 swig_obj[0] = args;
23367 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23368 if (!SWIG_IsOK(res1)) {
23369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23370 }
23371 arg1 = reinterpret_cast< wxDC * >(argp1);
23372 {
23373 PyThreadState* __tstate = wxPyBeginAllowThreads();
23374 result = (int)((wxDC const *)arg1)->MaxY();
23375 wxPyEndAllowThreads(__tstate);
23376 if (PyErr_Occurred()) SWIG_fail;
23377 }
23378 resultobj = SWIG_From_int(static_cast< int >(result));
23379 return resultobj;
23380 fail:
23381 return NULL;
23382 }
23383
23384
23385 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23386 PyObject *resultobj = 0;
23387 wxDC *arg1 = (wxDC *) 0 ;
23388 int *arg2 = (int *) 0 ;
23389 int *arg3 = (int *) 0 ;
23390 int *arg4 = (int *) 0 ;
23391 int *arg5 = (int *) 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 int temp2 ;
23395 int res2 = SWIG_TMPOBJ ;
23396 int temp3 ;
23397 int res3 = SWIG_TMPOBJ ;
23398 int temp4 ;
23399 int res4 = SWIG_TMPOBJ ;
23400 int temp5 ;
23401 int res5 = SWIG_TMPOBJ ;
23402 PyObject *swig_obj[1] ;
23403
23404 arg2 = &temp2;
23405 arg3 = &temp3;
23406 arg4 = &temp4;
23407 arg5 = &temp5;
23408 if (!args) SWIG_fail;
23409 swig_obj[0] = args;
23410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23411 if (!SWIG_IsOK(res1)) {
23412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23413 }
23414 arg1 = reinterpret_cast< wxDC * >(argp1);
23415 {
23416 PyThreadState* __tstate = wxPyBeginAllowThreads();
23417 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23418 wxPyEndAllowThreads(__tstate);
23419 if (PyErr_Occurred()) SWIG_fail;
23420 }
23421 resultobj = SWIG_Py_Void();
23422 if (SWIG_IsTmpObj(res2)) {
23423 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23424 } else {
23425 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23427 }
23428 if (SWIG_IsTmpObj(res3)) {
23429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23430 } else {
23431 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23433 }
23434 if (SWIG_IsTmpObj(res4)) {
23435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23436 } else {
23437 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23439 }
23440 if (SWIG_IsTmpObj(res5)) {
23441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23442 } else {
23443 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23445 }
23446 return resultobj;
23447 fail:
23448 return NULL;
23449 }
23450
23451
23452 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23453 PyObject *resultobj = 0;
23454 wxDC *arg1 = (wxDC *) 0 ;
23455 wxLayoutDirection result;
23456 void *argp1 = 0 ;
23457 int res1 = 0 ;
23458 PyObject *swig_obj[1] ;
23459
23460 if (!args) SWIG_fail;
23461 swig_obj[0] = args;
23462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23463 if (!SWIG_IsOK(res1)) {
23464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23465 }
23466 arg1 = reinterpret_cast< wxDC * >(argp1);
23467 {
23468 PyThreadState* __tstate = wxPyBeginAllowThreads();
23469 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23470 wxPyEndAllowThreads(__tstate);
23471 if (PyErr_Occurred()) SWIG_fail;
23472 }
23473 resultobj = SWIG_From_int(static_cast< int >(result));
23474 return resultobj;
23475 fail:
23476 return NULL;
23477 }
23478
23479
23480 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23481 PyObject *resultobj = 0;
23482 wxDC *arg1 = (wxDC *) 0 ;
23483 wxLayoutDirection arg2 ;
23484 void *argp1 = 0 ;
23485 int res1 = 0 ;
23486 int val2 ;
23487 int ecode2 = 0 ;
23488 PyObject * obj0 = 0 ;
23489 PyObject * obj1 = 0 ;
23490 char * kwnames[] = {
23491 (char *) "self",(char *) "dir", NULL
23492 };
23493
23494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23496 if (!SWIG_IsOK(res1)) {
23497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23498 }
23499 arg1 = reinterpret_cast< wxDC * >(argp1);
23500 ecode2 = SWIG_AsVal_int(obj1, &val2);
23501 if (!SWIG_IsOK(ecode2)) {
23502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23503 }
23504 arg2 = static_cast< wxLayoutDirection >(val2);
23505 {
23506 PyThreadState* __tstate = wxPyBeginAllowThreads();
23507 (arg1)->SetLayoutDirection(arg2);
23508 wxPyEndAllowThreads(__tstate);
23509 if (PyErr_Occurred()) SWIG_fail;
23510 }
23511 resultobj = SWIG_Py_Void();
23512 return resultobj;
23513 fail:
23514 return NULL;
23515 }
23516
23517
23518 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23519 PyObject *resultobj = 0;
23520 wxDC *arg1 = (wxDC *) 0 ;
23521 long result;
23522 void *argp1 = 0 ;
23523 int res1 = 0 ;
23524 PyObject *swig_obj[1] ;
23525
23526 if (!args) SWIG_fail;
23527 swig_obj[0] = args;
23528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23529 if (!SWIG_IsOK(res1)) {
23530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23531 }
23532 arg1 = reinterpret_cast< wxDC * >(argp1);
23533 {
23534 PyThreadState* __tstate = wxPyBeginAllowThreads();
23535 result = (long)(arg1)->GetHDC();
23536 wxPyEndAllowThreads(__tstate);
23537 if (PyErr_Occurred()) SWIG_fail;
23538 }
23539 resultobj = SWIG_From_long(static_cast< long >(result));
23540 return resultobj;
23541 fail:
23542 return NULL;
23543 }
23544
23545
23546 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23547 PyObject *resultobj = 0;
23548 wxDC *arg1 = (wxDC *) 0 ;
23549 PyObject *arg2 = (PyObject *) 0 ;
23550 PyObject *arg3 = (PyObject *) 0 ;
23551 PyObject *arg4 = (PyObject *) 0 ;
23552 PyObject *result = 0 ;
23553 void *argp1 = 0 ;
23554 int res1 = 0 ;
23555 PyObject * obj0 = 0 ;
23556 PyObject * obj1 = 0 ;
23557 PyObject * obj2 = 0 ;
23558 PyObject * obj3 = 0 ;
23559 char * kwnames[] = {
23560 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23561 };
23562
23563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23565 if (!SWIG_IsOK(res1)) {
23566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23567 }
23568 arg1 = reinterpret_cast< wxDC * >(argp1);
23569 arg2 = obj1;
23570 arg3 = obj2;
23571 arg4 = obj3;
23572 {
23573 PyThreadState* __tstate = wxPyBeginAllowThreads();
23574 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23575 wxPyEndAllowThreads(__tstate);
23576 if (PyErr_Occurred()) SWIG_fail;
23577 }
23578 resultobj = result;
23579 return resultobj;
23580 fail:
23581 return NULL;
23582 }
23583
23584
23585 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23586 PyObject *resultobj = 0;
23587 wxDC *arg1 = (wxDC *) 0 ;
23588 PyObject *arg2 = (PyObject *) 0 ;
23589 PyObject *arg3 = (PyObject *) 0 ;
23590 PyObject *arg4 = (PyObject *) 0 ;
23591 PyObject *result = 0 ;
23592 void *argp1 = 0 ;
23593 int res1 = 0 ;
23594 PyObject * obj0 = 0 ;
23595 PyObject * obj1 = 0 ;
23596 PyObject * obj2 = 0 ;
23597 PyObject * obj3 = 0 ;
23598 char * kwnames[] = {
23599 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23600 };
23601
23602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23604 if (!SWIG_IsOK(res1)) {
23605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23606 }
23607 arg1 = reinterpret_cast< wxDC * >(argp1);
23608 arg2 = obj1;
23609 arg3 = obj2;
23610 arg4 = obj3;
23611 {
23612 PyThreadState* __tstate = wxPyBeginAllowThreads();
23613 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23614 wxPyEndAllowThreads(__tstate);
23615 if (PyErr_Occurred()) SWIG_fail;
23616 }
23617 resultobj = result;
23618 return resultobj;
23619 fail:
23620 return NULL;
23621 }
23622
23623
23624 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23625 PyObject *resultobj = 0;
23626 wxDC *arg1 = (wxDC *) 0 ;
23627 PyObject *arg2 = (PyObject *) 0 ;
23628 PyObject *arg3 = (PyObject *) 0 ;
23629 PyObject *arg4 = (PyObject *) 0 ;
23630 PyObject *result = 0 ;
23631 void *argp1 = 0 ;
23632 int res1 = 0 ;
23633 PyObject * obj0 = 0 ;
23634 PyObject * obj1 = 0 ;
23635 PyObject * obj2 = 0 ;
23636 PyObject * obj3 = 0 ;
23637 char * kwnames[] = {
23638 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23639 };
23640
23641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23643 if (!SWIG_IsOK(res1)) {
23644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23645 }
23646 arg1 = reinterpret_cast< wxDC * >(argp1);
23647 arg2 = obj1;
23648 arg3 = obj2;
23649 arg4 = obj3;
23650 {
23651 PyThreadState* __tstate = wxPyBeginAllowThreads();
23652 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23653 wxPyEndAllowThreads(__tstate);
23654 if (PyErr_Occurred()) SWIG_fail;
23655 }
23656 resultobj = result;
23657 return resultobj;
23658 fail:
23659 return NULL;
23660 }
23661
23662
23663 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj = 0;
23665 wxDC *arg1 = (wxDC *) 0 ;
23666 PyObject *arg2 = (PyObject *) 0 ;
23667 PyObject *arg3 = (PyObject *) 0 ;
23668 PyObject *arg4 = (PyObject *) 0 ;
23669 PyObject *result = 0 ;
23670 void *argp1 = 0 ;
23671 int res1 = 0 ;
23672 PyObject * obj0 = 0 ;
23673 PyObject * obj1 = 0 ;
23674 PyObject * obj2 = 0 ;
23675 PyObject * obj3 = 0 ;
23676 char * kwnames[] = {
23677 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23678 };
23679
23680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23682 if (!SWIG_IsOK(res1)) {
23683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23684 }
23685 arg1 = reinterpret_cast< wxDC * >(argp1);
23686 arg2 = obj1;
23687 arg3 = obj2;
23688 arg4 = obj3;
23689 {
23690 PyThreadState* __tstate = wxPyBeginAllowThreads();
23691 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23692 wxPyEndAllowThreads(__tstate);
23693 if (PyErr_Occurred()) SWIG_fail;
23694 }
23695 resultobj = result;
23696 return resultobj;
23697 fail:
23698 return NULL;
23699 }
23700
23701
23702 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23703 PyObject *resultobj = 0;
23704 wxDC *arg1 = (wxDC *) 0 ;
23705 PyObject *arg2 = (PyObject *) 0 ;
23706 PyObject *arg3 = (PyObject *) 0 ;
23707 PyObject *arg4 = (PyObject *) 0 ;
23708 PyObject *result = 0 ;
23709 void *argp1 = 0 ;
23710 int res1 = 0 ;
23711 PyObject * obj0 = 0 ;
23712 PyObject * obj1 = 0 ;
23713 PyObject * obj2 = 0 ;
23714 PyObject * obj3 = 0 ;
23715 char * kwnames[] = {
23716 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23717 };
23718
23719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23723 }
23724 arg1 = reinterpret_cast< wxDC * >(argp1);
23725 arg2 = obj1;
23726 arg3 = obj2;
23727 arg4 = obj3;
23728 {
23729 PyThreadState* __tstate = wxPyBeginAllowThreads();
23730 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23731 wxPyEndAllowThreads(__tstate);
23732 if (PyErr_Occurred()) SWIG_fail;
23733 }
23734 resultobj = result;
23735 return resultobj;
23736 fail:
23737 return NULL;
23738 }
23739
23740
23741 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23742 PyObject *resultobj = 0;
23743 wxDC *arg1 = (wxDC *) 0 ;
23744 PyObject *arg2 = (PyObject *) 0 ;
23745 PyObject *arg3 = (PyObject *) 0 ;
23746 PyObject *arg4 = (PyObject *) 0 ;
23747 PyObject *arg5 = (PyObject *) 0 ;
23748 PyObject *result = 0 ;
23749 void *argp1 = 0 ;
23750 int res1 = 0 ;
23751 PyObject * obj0 = 0 ;
23752 PyObject * obj1 = 0 ;
23753 PyObject * obj2 = 0 ;
23754 PyObject * obj3 = 0 ;
23755 PyObject * obj4 = 0 ;
23756 char * kwnames[] = {
23757 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23758 };
23759
23760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23762 if (!SWIG_IsOK(res1)) {
23763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23764 }
23765 arg1 = reinterpret_cast< wxDC * >(argp1);
23766 arg2 = obj1;
23767 arg3 = obj2;
23768 arg4 = obj3;
23769 arg5 = obj4;
23770 {
23771 PyThreadState* __tstate = wxPyBeginAllowThreads();
23772 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23773 wxPyEndAllowThreads(__tstate);
23774 if (PyErr_Occurred()) SWIG_fail;
23775 }
23776 resultobj = result;
23777 return resultobj;
23778 fail:
23779 return NULL;
23780 }
23781
23782
23783 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23784 PyObject *obj;
23785 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23786 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23787 return SWIG_Py_Void();
23788 }
23789
23790 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23791 PyObject *resultobj = 0;
23792 wxMemoryDC *result = 0 ;
23793
23794 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
23795 {
23796 if (!wxPyCheckForApp()) SWIG_fail;
23797 PyThreadState* __tstate = wxPyBeginAllowThreads();
23798 result = (wxMemoryDC *)new wxMemoryDC();
23799 wxPyEndAllowThreads(__tstate);
23800 if (PyErr_Occurred()) SWIG_fail;
23801 }
23802 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23803 return resultobj;
23804 fail:
23805 return NULL;
23806 }
23807
23808
23809 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23810 PyObject *resultobj = 0;
23811 wxDC *arg1 = (wxDC *) 0 ;
23812 wxMemoryDC *result = 0 ;
23813 void *argp1 = 0 ;
23814 int res1 = 0 ;
23815 PyObject * obj0 = 0 ;
23816 char * kwnames[] = {
23817 (char *) "oldDC", NULL
23818 };
23819
23820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23822 if (!SWIG_IsOK(res1)) {
23823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23824 }
23825 arg1 = reinterpret_cast< wxDC * >(argp1);
23826 {
23827 if (!wxPyCheckForApp()) SWIG_fail;
23828 PyThreadState* __tstate = wxPyBeginAllowThreads();
23829 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23830 wxPyEndAllowThreads(__tstate);
23831 if (PyErr_Occurred()) SWIG_fail;
23832 }
23833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23834 return resultobj;
23835 fail:
23836 return NULL;
23837 }
23838
23839
23840 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23841 PyObject *resultobj = 0;
23842 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23843 wxBitmap *arg2 = 0 ;
23844 void *argp1 = 0 ;
23845 int res1 = 0 ;
23846 void *argp2 = 0 ;
23847 int res2 = 0 ;
23848 PyObject * obj0 = 0 ;
23849 PyObject * obj1 = 0 ;
23850 char * kwnames[] = {
23851 (char *) "self",(char *) "bitmap", NULL
23852 };
23853
23854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23856 if (!SWIG_IsOK(res1)) {
23857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23858 }
23859 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23861 if (!SWIG_IsOK(res2)) {
23862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23863 }
23864 if (!argp2) {
23865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23866 }
23867 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23868 {
23869 PyThreadState* __tstate = wxPyBeginAllowThreads();
23870 (arg1)->SelectObject((wxBitmap const &)*arg2);
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 resultobj = SWIG_Py_Void();
23875 return resultobj;
23876 fail:
23877 return NULL;
23878 }
23879
23880
23881 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23882 PyObject *obj;
23883 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23884 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23885 return SWIG_Py_Void();
23886 }
23887
23888 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23889 return SWIG_Python_InitShadowInstance(args);
23890 }
23891
23892 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23893 PyObject *resultobj = 0;
23894 wxDC *arg1 = (wxDC *) 0 ;
23895 wxBitmap const &arg2_defvalue = wxNullBitmap ;
23896 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
23897 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23898 wxBufferedDC *result = 0 ;
23899 void *argp1 = 0 ;
23900 int res1 = 0 ;
23901 void *argp2 = 0 ;
23902 int res2 = 0 ;
23903 int val3 ;
23904 int ecode3 = 0 ;
23905
23906 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
23907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23908 if (!SWIG_IsOK(res1)) {
23909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23910 }
23911 arg1 = reinterpret_cast< wxDC * >(argp1);
23912 if (swig_obj[1]) {
23913 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23914 if (!SWIG_IsOK(res2)) {
23915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23916 }
23917 if (!argp2) {
23918 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23919 }
23920 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23921 }
23922 if (swig_obj[2]) {
23923 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23924 if (!SWIG_IsOK(ecode3)) {
23925 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23926 }
23927 arg3 = static_cast< int >(val3);
23928 }
23929 {
23930 if (!wxPyCheckForApp()) SWIG_fail;
23931 PyThreadState* __tstate = wxPyBeginAllowThreads();
23932 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
23933 wxPyEndAllowThreads(__tstate);
23934 if (PyErr_Occurred()) SWIG_fail;
23935 }
23936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23937 return resultobj;
23938 fail:
23939 return NULL;
23940 }
23941
23942
23943 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23944 PyObject *resultobj = 0;
23945 wxDC *arg1 = (wxDC *) 0 ;
23946 wxSize *arg2 = 0 ;
23947 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
23948 wxBufferedDC *result = 0 ;
23949 void *argp1 = 0 ;
23950 int res1 = 0 ;
23951 wxSize temp2 ;
23952 int val3 ;
23953 int ecode3 = 0 ;
23954
23955 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
23956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23957 if (!SWIG_IsOK(res1)) {
23958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
23959 }
23960 arg1 = reinterpret_cast< wxDC * >(argp1);
23961 {
23962 arg2 = &temp2;
23963 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
23964 }
23965 if (swig_obj[2]) {
23966 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
23967 if (!SWIG_IsOK(ecode3)) {
23968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
23969 }
23970 arg3 = static_cast< int >(val3);
23971 }
23972 {
23973 if (!wxPyCheckForApp()) SWIG_fail;
23974 PyThreadState* __tstate = wxPyBeginAllowThreads();
23975 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
23976 wxPyEndAllowThreads(__tstate);
23977 if (PyErr_Occurred()) SWIG_fail;
23978 }
23979 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
23980 return resultobj;
23981 fail:
23982 return NULL;
23983 }
23984
23985
23986 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
23987 PyObject *resultobj = 0;
23988 wxWindow *arg1 = (wxWindow *) 0 ;
23989 wxDC *arg2 = (wxDC *) 0 ;
23990 wxSize *arg3 = 0 ;
23991 int arg4 = (int) wxBUFFER_CLIENT_AREA ;
23992 wxBufferedDC *result = 0 ;
23993 void *argp1 = 0 ;
23994 int res1 = 0 ;
23995 void *argp2 = 0 ;
23996 int res2 = 0 ;
23997 wxSize temp3 ;
23998 int val4 ;
23999 int ecode4 = 0 ;
24000
24001 if ((nobjs < 3) || (nobjs > 4)) SWIG_fail;
24002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24003 if (!SWIG_IsOK(res1)) {
24004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24005 }
24006 arg1 = reinterpret_cast< wxWindow * >(argp1);
24007 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
24008 if (!SWIG_IsOK(res2)) {
24009 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxDC *""'");
24010 }
24011 arg2 = reinterpret_cast< wxDC * >(argp2);
24012 {
24013 arg3 = &temp3;
24014 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
24015 }
24016 if (swig_obj[3]) {
24017 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
24018 if (!SWIG_IsOK(ecode4)) {
24019 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BufferedDC" "', expected argument " "4"" of type '" "int""'");
24020 }
24021 arg4 = static_cast< int >(val4);
24022 }
24023 {
24024 if (!wxPyCheckForApp()) SWIG_fail;
24025 PyThreadState* __tstate = wxPyBeginAllowThreads();
24026 result = (wxBufferedDC *)new wxBufferedDC(arg1,arg2,(wxSize const &)*arg3,arg4);
24027 wxPyEndAllowThreads(__tstate);
24028 if (PyErr_Occurred()) SWIG_fail;
24029 }
24030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24031 return resultobj;
24032 fail:
24033 return NULL;
24034 }
24035
24036
24037 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24038 int argc;
24039 PyObject *argv[5];
24040
24041 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,4,argv))) SWIG_fail;
24042 --argc;
24043 if ((argc >= 1) && (argc <= 3)) {
24044 int _v = 0;
24045 {
24046 void *vptr = 0;
24047 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0);
24048 _v = SWIG_CheckState(res);
24049 }
24050 if (!_v) goto check_1;
24051 if (argc > 1) {
24052 {
24053 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24054 _v = SWIG_CheckState(res);
24055 }
24056 if (!_v) goto check_1;
24057 if (argc > 2) {
24058 {
24059 {
24060 int res = SWIG_AsVal_int(argv[2], NULL);
24061 _v = SWIG_CheckState(res);
24062 }
24063 }
24064 if (!_v) goto check_1;
24065 }
24066 }
24067 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24068 }
24069 check_1:
24070
24071 if ((argc >= 2) && (argc <= 3)) {
24072 int _v = 0;
24073 {
24074 void *vptr = 0;
24075 int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_wxDC, 0);
24076 _v = SWIG_CheckState(res);
24077 }
24078 if (!_v) goto check_2;
24079 {
24080 {
24081 _v = wxPySimple_typecheck(argv[1], wxT("wxSize"), 2);
24082 }
24083 }
24084 if (!_v) goto check_2;
24085 if (argc > 2) {
24086 {
24087 {
24088 int res = SWIG_AsVal_int(argv[2], NULL);
24089 _v = SWIG_CheckState(res);
24090 }
24091 }
24092 if (!_v) goto check_2;
24093 }
24094 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24095 }
24096 check_2:
24097
24098 if ((argc >= 3) && (argc <= 4)) {
24099 return _wrap_new_BufferedDC__SWIG_2(self, argc, argv);
24100 }
24101
24102 fail:
24103 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24104 return NULL;
24105 }
24106
24107
24108 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24109 PyObject *resultobj = 0;
24110 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24111 void *argp1 = 0 ;
24112 int res1 = 0 ;
24113 PyObject *swig_obj[1] ;
24114
24115 if (!args) SWIG_fail;
24116 swig_obj[0] = args;
24117 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24118 if (!SWIG_IsOK(res1)) {
24119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24120 }
24121 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24122 {
24123 PyThreadState* __tstate = wxPyBeginAllowThreads();
24124 delete arg1;
24125
24126 wxPyEndAllowThreads(__tstate);
24127 if (PyErr_Occurred()) SWIG_fail;
24128 }
24129 resultobj = SWIG_Py_Void();
24130 return resultobj;
24131 fail:
24132 return NULL;
24133 }
24134
24135
24136 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24137 PyObject *resultobj = 0;
24138 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24139 void *argp1 = 0 ;
24140 int res1 = 0 ;
24141 PyObject *swig_obj[1] ;
24142
24143 if (!args) SWIG_fail;
24144 swig_obj[0] = args;
24145 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24146 if (!SWIG_IsOK(res1)) {
24147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24148 }
24149 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24150 {
24151 PyThreadState* __tstate = wxPyBeginAllowThreads();
24152 (arg1)->UnMask();
24153 wxPyEndAllowThreads(__tstate);
24154 if (PyErr_Occurred()) SWIG_fail;
24155 }
24156 resultobj = SWIG_Py_Void();
24157 return resultobj;
24158 fail:
24159 return NULL;
24160 }
24161
24162
24163 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24164 PyObject *obj;
24165 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24166 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24167 return SWIG_Py_Void();
24168 }
24169
24170 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24171 return SWIG_Python_InitShadowInstance(args);
24172 }
24173
24174 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24175 PyObject *resultobj = 0;
24176 wxWindow *arg1 = (wxWindow *) 0 ;
24177 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24178 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24179 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24180 wxBufferedPaintDC *result = 0 ;
24181 void *argp1 = 0 ;
24182 int res1 = 0 ;
24183 void *argp2 = 0 ;
24184 int res2 = 0 ;
24185 int val3 ;
24186 int ecode3 = 0 ;
24187 PyObject * obj0 = 0 ;
24188 PyObject * obj1 = 0 ;
24189 PyObject * obj2 = 0 ;
24190 char * kwnames[] = {
24191 (char *) "window",(char *) "buffer",(char *) "style", NULL
24192 };
24193
24194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24196 if (!SWIG_IsOK(res1)) {
24197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24198 }
24199 arg1 = reinterpret_cast< wxWindow * >(argp1);
24200 if (obj1) {
24201 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24202 if (!SWIG_IsOK(res2)) {
24203 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24204 }
24205 if (!argp2) {
24206 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24207 }
24208 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24209 }
24210 if (obj2) {
24211 ecode3 = SWIG_AsVal_int(obj2, &val3);
24212 if (!SWIG_IsOK(ecode3)) {
24213 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24214 }
24215 arg3 = static_cast< int >(val3);
24216 }
24217 {
24218 if (!wxPyCheckForApp()) SWIG_fail;
24219 PyThreadState* __tstate = wxPyBeginAllowThreads();
24220 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24221 wxPyEndAllowThreads(__tstate);
24222 if (PyErr_Occurred()) SWIG_fail;
24223 }
24224 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24225 return resultobj;
24226 fail:
24227 return NULL;
24228 }
24229
24230
24231 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24232 PyObject *obj;
24233 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24234 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24235 return SWIG_Py_Void();
24236 }
24237
24238 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24239 return SWIG_Python_InitShadowInstance(args);
24240 }
24241
24242 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24243 PyObject *resultobj = 0;
24244 wxScreenDC *result = 0 ;
24245
24246 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
24247 {
24248 if (!wxPyCheckForApp()) SWIG_fail;
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = (wxScreenDC *)new wxScreenDC();
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24262 PyObject *resultobj = 0;
24263 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24264 wxWindow *arg2 = (wxWindow *) 0 ;
24265 bool result;
24266 void *argp1 = 0 ;
24267 int res1 = 0 ;
24268 void *argp2 = 0 ;
24269 int res2 = 0 ;
24270 PyObject * obj0 = 0 ;
24271 PyObject * obj1 = 0 ;
24272 char * kwnames[] = {
24273 (char *) "self",(char *) "window", NULL
24274 };
24275
24276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
24277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24278 if (!SWIG_IsOK(res1)) {
24279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24280 }
24281 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24283 if (!SWIG_IsOK(res2)) {
24284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
24285 }
24286 arg2 = reinterpret_cast< wxWindow * >(argp2);
24287 {
24288 PyThreadState* __tstate = wxPyBeginAllowThreads();
24289 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24290 wxPyEndAllowThreads(__tstate);
24291 if (PyErr_Occurred()) SWIG_fail;
24292 }
24293 {
24294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24295 }
24296 return resultobj;
24297 fail:
24298 return NULL;
24299 }
24300
24301
24302 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24303 PyObject *resultobj = 0;
24304 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24305 wxRect *arg2 = (wxRect *) NULL ;
24306 bool result;
24307 void *argp1 = 0 ;
24308 int res1 = 0 ;
24309 void *argp2 = 0 ;
24310 int res2 = 0 ;
24311 PyObject * obj0 = 0 ;
24312 PyObject * obj1 = 0 ;
24313 char * kwnames[] = {
24314 (char *) "self",(char *) "rect", NULL
24315 };
24316
24317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24318 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24319 if (!SWIG_IsOK(res1)) {
24320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24321 }
24322 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24323 if (obj1) {
24324 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24325 if (!SWIG_IsOK(res2)) {
24326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24327 }
24328 arg2 = reinterpret_cast< wxRect * >(argp2);
24329 }
24330 {
24331 PyThreadState* __tstate = wxPyBeginAllowThreads();
24332 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24333 wxPyEndAllowThreads(__tstate);
24334 if (PyErr_Occurred()) SWIG_fail;
24335 }
24336 {
24337 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24338 }
24339 return resultobj;
24340 fail:
24341 return NULL;
24342 }
24343
24344
24345 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24346 PyObject *resultobj = 0;
24347 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24348 bool result;
24349 void *argp1 = 0 ;
24350 int res1 = 0 ;
24351 PyObject *swig_obj[1] ;
24352
24353 if (!args) SWIG_fail;
24354 swig_obj[0] = args;
24355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24356 if (!SWIG_IsOK(res1)) {
24357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24358 }
24359 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24360 {
24361 PyThreadState* __tstate = wxPyBeginAllowThreads();
24362 result = (bool)(arg1)->EndDrawingOnTop();
24363 wxPyEndAllowThreads(__tstate);
24364 if (PyErr_Occurred()) SWIG_fail;
24365 }
24366 {
24367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24368 }
24369 return resultobj;
24370 fail:
24371 return NULL;
24372 }
24373
24374
24375 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24376 PyObject *obj;
24377 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24378 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24379 return SWIG_Py_Void();
24380 }
24381
24382 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24383 return SWIG_Python_InitShadowInstance(args);
24384 }
24385
24386 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24387 PyObject *resultobj = 0;
24388 wxWindow *arg1 = (wxWindow *) 0 ;
24389 wxWindowDC *result = 0 ;
24390 void *argp1 = 0 ;
24391 int res1 = 0 ;
24392 PyObject * obj0 = 0 ;
24393 char * kwnames[] = {
24394 (char *) "win", NULL
24395 };
24396
24397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24399 if (!SWIG_IsOK(res1)) {
24400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24401 }
24402 arg1 = reinterpret_cast< wxWindow * >(argp1);
24403 {
24404 if (!wxPyCheckForApp()) SWIG_fail;
24405 PyThreadState* __tstate = wxPyBeginAllowThreads();
24406 result = (wxWindowDC *)new wxWindowDC(arg1);
24407 wxPyEndAllowThreads(__tstate);
24408 if (PyErr_Occurred()) SWIG_fail;
24409 }
24410 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24411 return resultobj;
24412 fail:
24413 return NULL;
24414 }
24415
24416
24417 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24418 PyObject *obj;
24419 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24420 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24421 return SWIG_Py_Void();
24422 }
24423
24424 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24425 return SWIG_Python_InitShadowInstance(args);
24426 }
24427
24428 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24429 PyObject *resultobj = 0;
24430 wxWindow *arg1 = (wxWindow *) 0 ;
24431 wxClientDC *result = 0 ;
24432 void *argp1 = 0 ;
24433 int res1 = 0 ;
24434 PyObject * obj0 = 0 ;
24435 char * kwnames[] = {
24436 (char *) "win", NULL
24437 };
24438
24439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24441 if (!SWIG_IsOK(res1)) {
24442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24443 }
24444 arg1 = reinterpret_cast< wxWindow * >(argp1);
24445 {
24446 if (!wxPyCheckForApp()) SWIG_fail;
24447 PyThreadState* __tstate = wxPyBeginAllowThreads();
24448 result = (wxClientDC *)new wxClientDC(arg1);
24449 wxPyEndAllowThreads(__tstate);
24450 if (PyErr_Occurred()) SWIG_fail;
24451 }
24452 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24453 return resultobj;
24454 fail:
24455 return NULL;
24456 }
24457
24458
24459 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24460 PyObject *obj;
24461 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24462 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24463 return SWIG_Py_Void();
24464 }
24465
24466 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24467 return SWIG_Python_InitShadowInstance(args);
24468 }
24469
24470 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24471 PyObject *resultobj = 0;
24472 wxWindow *arg1 = (wxWindow *) 0 ;
24473 wxPaintDC *result = 0 ;
24474 void *argp1 = 0 ;
24475 int res1 = 0 ;
24476 PyObject * obj0 = 0 ;
24477 char * kwnames[] = {
24478 (char *) "win", NULL
24479 };
24480
24481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24483 if (!SWIG_IsOK(res1)) {
24484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24485 }
24486 arg1 = reinterpret_cast< wxWindow * >(argp1);
24487 {
24488 if (!wxPyCheckForApp()) SWIG_fail;
24489 PyThreadState* __tstate = wxPyBeginAllowThreads();
24490 result = (wxPaintDC *)new wxPaintDC(arg1);
24491 wxPyEndAllowThreads(__tstate);
24492 if (PyErr_Occurred()) SWIG_fail;
24493 }
24494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24495 return resultobj;
24496 fail:
24497 return NULL;
24498 }
24499
24500
24501 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24502 PyObject *obj;
24503 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24504 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24505 return SWIG_Py_Void();
24506 }
24507
24508 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24509 return SWIG_Python_InitShadowInstance(args);
24510 }
24511
24512 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24513 PyObject *resultobj = 0;
24514 wxDC *arg1 = 0 ;
24515 bool arg2 ;
24516 wxMirrorDC *result = 0 ;
24517 void *argp1 = 0 ;
24518 int res1 = 0 ;
24519 bool val2 ;
24520 int ecode2 = 0 ;
24521 PyObject * obj0 = 0 ;
24522 PyObject * obj1 = 0 ;
24523 char * kwnames[] = {
24524 (char *) "dc",(char *) "mirror", NULL
24525 };
24526
24527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24528 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24529 if (!SWIG_IsOK(res1)) {
24530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24531 }
24532 if (!argp1) {
24533 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24534 }
24535 arg1 = reinterpret_cast< wxDC * >(argp1);
24536 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24537 if (!SWIG_IsOK(ecode2)) {
24538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24539 }
24540 arg2 = static_cast< bool >(val2);
24541 {
24542 if (!wxPyCheckForApp()) SWIG_fail;
24543 PyThreadState* __tstate = wxPyBeginAllowThreads();
24544 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24545 wxPyEndAllowThreads(__tstate);
24546 if (PyErr_Occurred()) SWIG_fail;
24547 }
24548 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24549 return resultobj;
24550 fail:
24551 return NULL;
24552 }
24553
24554
24555 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24556 PyObject *obj;
24557 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24558 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24559 return SWIG_Py_Void();
24560 }
24561
24562 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24563 return SWIG_Python_InitShadowInstance(args);
24564 }
24565
24566 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24567 PyObject *resultobj = 0;
24568 wxPrintData *arg1 = 0 ;
24569 wxPostScriptDC *result = 0 ;
24570 void *argp1 = 0 ;
24571 int res1 = 0 ;
24572 PyObject * obj0 = 0 ;
24573 char * kwnames[] = {
24574 (char *) "printData", NULL
24575 };
24576
24577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24578 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24579 if (!SWIG_IsOK(res1)) {
24580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24581 }
24582 if (!argp1) {
24583 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24584 }
24585 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24586 {
24587 if (!wxPyCheckForApp()) SWIG_fail;
24588 PyThreadState* __tstate = wxPyBeginAllowThreads();
24589 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24590 wxPyEndAllowThreads(__tstate);
24591 if (PyErr_Occurred()) SWIG_fail;
24592 }
24593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24594 return resultobj;
24595 fail:
24596 return NULL;
24597 }
24598
24599
24600 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24601 PyObject *resultobj = 0;
24602 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24603 wxPrintData *result = 0 ;
24604 void *argp1 = 0 ;
24605 int res1 = 0 ;
24606 PyObject *swig_obj[1] ;
24607
24608 if (!args) SWIG_fail;
24609 swig_obj[0] = args;
24610 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24611 if (!SWIG_IsOK(res1)) {
24612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24613 }
24614 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24615 {
24616 PyThreadState* __tstate = wxPyBeginAllowThreads();
24617 {
24618 wxPrintData &_result_ref = (arg1)->GetPrintData();
24619 result = (wxPrintData *) &_result_ref;
24620 }
24621 wxPyEndAllowThreads(__tstate);
24622 if (PyErr_Occurred()) SWIG_fail;
24623 }
24624 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24625 return resultobj;
24626 fail:
24627 return NULL;
24628 }
24629
24630
24631 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24632 PyObject *resultobj = 0;
24633 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24634 wxPrintData *arg2 = 0 ;
24635 void *argp1 = 0 ;
24636 int res1 = 0 ;
24637 void *argp2 = 0 ;
24638 int res2 = 0 ;
24639 PyObject * obj0 = 0 ;
24640 PyObject * obj1 = 0 ;
24641 char * kwnames[] = {
24642 (char *) "self",(char *) "data", NULL
24643 };
24644
24645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24647 if (!SWIG_IsOK(res1)) {
24648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24649 }
24650 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24651 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24652 if (!SWIG_IsOK(res2)) {
24653 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24654 }
24655 if (!argp2) {
24656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24657 }
24658 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24659 {
24660 PyThreadState* __tstate = wxPyBeginAllowThreads();
24661 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24662 wxPyEndAllowThreads(__tstate);
24663 if (PyErr_Occurred()) SWIG_fail;
24664 }
24665 resultobj = SWIG_Py_Void();
24666 return resultobj;
24667 fail:
24668 return NULL;
24669 }
24670
24671
24672 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24673 PyObject *resultobj = 0;
24674 int arg1 ;
24675 int val1 ;
24676 int ecode1 = 0 ;
24677 PyObject * obj0 = 0 ;
24678 char * kwnames[] = {
24679 (char *) "ppi", NULL
24680 };
24681
24682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24683 ecode1 = SWIG_AsVal_int(obj0, &val1);
24684 if (!SWIG_IsOK(ecode1)) {
24685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24686 }
24687 arg1 = static_cast< int >(val1);
24688 {
24689 PyThreadState* __tstate = wxPyBeginAllowThreads();
24690 wxPostScriptDC::SetResolution(arg1);
24691 wxPyEndAllowThreads(__tstate);
24692 if (PyErr_Occurred()) SWIG_fail;
24693 }
24694 resultobj = SWIG_Py_Void();
24695 return resultobj;
24696 fail:
24697 return NULL;
24698 }
24699
24700
24701 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24702 PyObject *resultobj = 0;
24703 int result;
24704
24705 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24706 {
24707 PyThreadState* __tstate = wxPyBeginAllowThreads();
24708 result = (int)wxPostScriptDC::GetResolution();
24709 wxPyEndAllowThreads(__tstate);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 resultobj = SWIG_From_int(static_cast< int >(result));
24713 return resultobj;
24714 fail:
24715 return NULL;
24716 }
24717
24718
24719 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24720 PyObject *obj;
24721 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24722 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24723 return SWIG_Py_Void();
24724 }
24725
24726 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24727 return SWIG_Python_InitShadowInstance(args);
24728 }
24729
24730 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24731 PyObject *resultobj = 0;
24732 wxString const &arg1_defvalue = wxPyEmptyString ;
24733 wxString *arg1 = (wxString *) &arg1_defvalue ;
24734 wxMetaFile *result = 0 ;
24735 bool temp1 = false ;
24736 PyObject * obj0 = 0 ;
24737 char * kwnames[] = {
24738 (char *) "filename", NULL
24739 };
24740
24741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24742 if (obj0) {
24743 {
24744 arg1 = wxString_in_helper(obj0);
24745 if (arg1 == NULL) SWIG_fail;
24746 temp1 = true;
24747 }
24748 }
24749 {
24750 if (!wxPyCheckForApp()) SWIG_fail;
24751 PyThreadState* __tstate = wxPyBeginAllowThreads();
24752 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24753 wxPyEndAllowThreads(__tstate);
24754 if (PyErr_Occurred()) SWIG_fail;
24755 }
24756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24757 {
24758 if (temp1)
24759 delete arg1;
24760 }
24761 return resultobj;
24762 fail:
24763 {
24764 if (temp1)
24765 delete arg1;
24766 }
24767 return NULL;
24768 }
24769
24770
24771 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24772 PyObject *resultobj = 0;
24773 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24774 void *argp1 = 0 ;
24775 int res1 = 0 ;
24776 PyObject *swig_obj[1] ;
24777
24778 if (!args) SWIG_fail;
24779 swig_obj[0] = args;
24780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24781 if (!SWIG_IsOK(res1)) {
24782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24783 }
24784 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24785 {
24786 PyThreadState* __tstate = wxPyBeginAllowThreads();
24787 delete arg1;
24788
24789 wxPyEndAllowThreads(__tstate);
24790 if (PyErr_Occurred()) SWIG_fail;
24791 }
24792 resultobj = SWIG_Py_Void();
24793 return resultobj;
24794 fail:
24795 return NULL;
24796 }
24797
24798
24799 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24800 PyObject *resultobj = 0;
24801 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24802 bool result;
24803 void *argp1 = 0 ;
24804 int res1 = 0 ;
24805 PyObject *swig_obj[1] ;
24806
24807 if (!args) SWIG_fail;
24808 swig_obj[0] = args;
24809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24810 if (!SWIG_IsOK(res1)) {
24811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24812 }
24813 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24814 {
24815 PyThreadState* __tstate = wxPyBeginAllowThreads();
24816 result = (bool)(arg1)->IsOk();
24817 wxPyEndAllowThreads(__tstate);
24818 if (PyErr_Occurred()) SWIG_fail;
24819 }
24820 {
24821 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24822 }
24823 return resultobj;
24824 fail:
24825 return NULL;
24826 }
24827
24828
24829 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24830 PyObject *resultobj = 0;
24831 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24832 int arg2 = (int) 0 ;
24833 int arg3 = (int) 0 ;
24834 bool result;
24835 void *argp1 = 0 ;
24836 int res1 = 0 ;
24837 int val2 ;
24838 int ecode2 = 0 ;
24839 int val3 ;
24840 int ecode3 = 0 ;
24841 PyObject * obj0 = 0 ;
24842 PyObject * obj1 = 0 ;
24843 PyObject * obj2 = 0 ;
24844 char * kwnames[] = {
24845 (char *) "self",(char *) "width",(char *) "height", NULL
24846 };
24847
24848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24850 if (!SWIG_IsOK(res1)) {
24851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24852 }
24853 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24854 if (obj1) {
24855 ecode2 = SWIG_AsVal_int(obj1, &val2);
24856 if (!SWIG_IsOK(ecode2)) {
24857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24858 }
24859 arg2 = static_cast< int >(val2);
24860 }
24861 if (obj2) {
24862 ecode3 = SWIG_AsVal_int(obj2, &val3);
24863 if (!SWIG_IsOK(ecode3)) {
24864 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24865 }
24866 arg3 = static_cast< int >(val3);
24867 }
24868 {
24869 PyThreadState* __tstate = wxPyBeginAllowThreads();
24870 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24871 wxPyEndAllowThreads(__tstate);
24872 if (PyErr_Occurred()) SWIG_fail;
24873 }
24874 {
24875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24876 }
24877 return resultobj;
24878 fail:
24879 return NULL;
24880 }
24881
24882
24883 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24884 PyObject *resultobj = 0;
24885 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24886 wxSize result;
24887 void *argp1 = 0 ;
24888 int res1 = 0 ;
24889 PyObject *swig_obj[1] ;
24890
24891 if (!args) SWIG_fail;
24892 swig_obj[0] = args;
24893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24894 if (!SWIG_IsOK(res1)) {
24895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24896 }
24897 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24898 {
24899 PyThreadState* __tstate = wxPyBeginAllowThreads();
24900 result = (arg1)->GetSize();
24901 wxPyEndAllowThreads(__tstate);
24902 if (PyErr_Occurred()) SWIG_fail;
24903 }
24904 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24905 return resultobj;
24906 fail:
24907 return NULL;
24908 }
24909
24910
24911 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24912 PyObject *resultobj = 0;
24913 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24914 int result;
24915 void *argp1 = 0 ;
24916 int res1 = 0 ;
24917 PyObject *swig_obj[1] ;
24918
24919 if (!args) SWIG_fail;
24920 swig_obj[0] = args;
24921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24922 if (!SWIG_IsOK(res1)) {
24923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24924 }
24925 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24926 {
24927 PyThreadState* __tstate = wxPyBeginAllowThreads();
24928 result = (int)(arg1)->GetWidth();
24929 wxPyEndAllowThreads(__tstate);
24930 if (PyErr_Occurred()) SWIG_fail;
24931 }
24932 resultobj = SWIG_From_int(static_cast< int >(result));
24933 return resultobj;
24934 fail:
24935 return NULL;
24936 }
24937
24938
24939 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24940 PyObject *resultobj = 0;
24941 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24942 int result;
24943 void *argp1 = 0 ;
24944 int res1 = 0 ;
24945 PyObject *swig_obj[1] ;
24946
24947 if (!args) SWIG_fail;
24948 swig_obj[0] = args;
24949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24950 if (!SWIG_IsOK(res1)) {
24951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24952 }
24953 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24954 {
24955 PyThreadState* __tstate = wxPyBeginAllowThreads();
24956 result = (int)(arg1)->GetHeight();
24957 wxPyEndAllowThreads(__tstate);
24958 if (PyErr_Occurred()) SWIG_fail;
24959 }
24960 resultobj = SWIG_From_int(static_cast< int >(result));
24961 return resultobj;
24962 fail:
24963 return NULL;
24964 }
24965
24966
24967 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24968 PyObject *resultobj = 0;
24969 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24970 wxString *result = 0 ;
24971 void *argp1 = 0 ;
24972 int res1 = 0 ;
24973 PyObject *swig_obj[1] ;
24974
24975 if (!args) SWIG_fail;
24976 swig_obj[0] = args;
24977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24978 if (!SWIG_IsOK(res1)) {
24979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24980 }
24981 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24982 {
24983 PyThreadState* __tstate = wxPyBeginAllowThreads();
24984 {
24985 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24986 result = (wxString *) &_result_ref;
24987 }
24988 wxPyEndAllowThreads(__tstate);
24989 if (PyErr_Occurred()) SWIG_fail;
24990 }
24991 {
24992 #if wxUSE_UNICODE
24993 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24994 #else
24995 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24996 #endif
24997 }
24998 return resultobj;
24999 fail:
25000 return NULL;
25001 }
25002
25003
25004 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25005 PyObject *obj;
25006 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25007 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25008 return SWIG_Py_Void();
25009 }
25010
25011 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25012 return SWIG_Python_InitShadowInstance(args);
25013 }
25014
25015 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25016 PyObject *resultobj = 0;
25017 wxString const &arg1_defvalue = wxPyEmptyString ;
25018 wxString *arg1 = (wxString *) &arg1_defvalue ;
25019 int arg2 = (int) 0 ;
25020 int arg3 = (int) 0 ;
25021 wxString const &arg4_defvalue = wxPyEmptyString ;
25022 wxString *arg4 = (wxString *) &arg4_defvalue ;
25023 wxMetaFileDC *result = 0 ;
25024 bool temp1 = false ;
25025 int val2 ;
25026 int ecode2 = 0 ;
25027 int val3 ;
25028 int ecode3 = 0 ;
25029 bool temp4 = false ;
25030 PyObject * obj0 = 0 ;
25031 PyObject * obj1 = 0 ;
25032 PyObject * obj2 = 0 ;
25033 PyObject * obj3 = 0 ;
25034 char * kwnames[] = {
25035 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25036 };
25037
25038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25039 if (obj0) {
25040 {
25041 arg1 = wxString_in_helper(obj0);
25042 if (arg1 == NULL) SWIG_fail;
25043 temp1 = true;
25044 }
25045 }
25046 if (obj1) {
25047 ecode2 = SWIG_AsVal_int(obj1, &val2);
25048 if (!SWIG_IsOK(ecode2)) {
25049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25050 }
25051 arg2 = static_cast< int >(val2);
25052 }
25053 if (obj2) {
25054 ecode3 = SWIG_AsVal_int(obj2, &val3);
25055 if (!SWIG_IsOK(ecode3)) {
25056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25057 }
25058 arg3 = static_cast< int >(val3);
25059 }
25060 if (obj3) {
25061 {
25062 arg4 = wxString_in_helper(obj3);
25063 if (arg4 == NULL) SWIG_fail;
25064 temp4 = true;
25065 }
25066 }
25067 {
25068 if (!wxPyCheckForApp()) SWIG_fail;
25069 PyThreadState* __tstate = wxPyBeginAllowThreads();
25070 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25071 wxPyEndAllowThreads(__tstate);
25072 if (PyErr_Occurred()) SWIG_fail;
25073 }
25074 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25075 {
25076 if (temp1)
25077 delete arg1;
25078 }
25079 {
25080 if (temp4)
25081 delete arg4;
25082 }
25083 return resultobj;
25084 fail:
25085 {
25086 if (temp1)
25087 delete arg1;
25088 }
25089 {
25090 if (temp4)
25091 delete arg4;
25092 }
25093 return NULL;
25094 }
25095
25096
25097 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25098 PyObject *resultobj = 0;
25099 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25100 wxMetaFile *result = 0 ;
25101 void *argp1 = 0 ;
25102 int res1 = 0 ;
25103 PyObject *swig_obj[1] ;
25104
25105 if (!args) SWIG_fail;
25106 swig_obj[0] = args;
25107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25108 if (!SWIG_IsOK(res1)) {
25109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25110 }
25111 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25112 {
25113 PyThreadState* __tstate = wxPyBeginAllowThreads();
25114 result = (wxMetaFile *)(arg1)->Close();
25115 wxPyEndAllowThreads(__tstate);
25116 if (PyErr_Occurred()) SWIG_fail;
25117 }
25118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25119 return resultobj;
25120 fail:
25121 return NULL;
25122 }
25123
25124
25125 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25126 PyObject *obj;
25127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25128 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25129 return SWIG_Py_Void();
25130 }
25131
25132 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25133 return SWIG_Python_InitShadowInstance(args);
25134 }
25135
25136 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25137 PyObject *resultobj = 0;
25138 wxPrintData *arg1 = 0 ;
25139 wxPrinterDC *result = 0 ;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 PyObject * obj0 = 0 ;
25143 char * kwnames[] = {
25144 (char *) "printData", NULL
25145 };
25146
25147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25148 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25149 if (!SWIG_IsOK(res1)) {
25150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25151 }
25152 if (!argp1) {
25153 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25154 }
25155 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25156 {
25157 if (!wxPyCheckForApp()) SWIG_fail;
25158 PyThreadState* __tstate = wxPyBeginAllowThreads();
25159 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25160 wxPyEndAllowThreads(__tstate);
25161 if (PyErr_Occurred()) SWIG_fail;
25162 }
25163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25164 return resultobj;
25165 fail:
25166 return NULL;
25167 }
25168
25169
25170 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25171 PyObject *obj;
25172 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25173 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25174 return SWIG_Py_Void();
25175 }
25176
25177 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25178 return SWIG_Python_InitShadowInstance(args);
25179 }
25180
25181 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25182 PyObject *resultobj = 0;
25183 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25184 void *argp1 = 0 ;
25185 int res1 = 0 ;
25186 PyObject *swig_obj[1] ;
25187
25188 if (!args) SWIG_fail;
25189 swig_obj[0] = args;
25190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25191 if (!SWIG_IsOK(res1)) {
25192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25193 }
25194 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25195 {
25196 delete arg1;
25197
25198 if (PyErr_Occurred()) SWIG_fail;
25199 }
25200 resultobj = SWIG_Py_Void();
25201 return resultobj;
25202 fail:
25203 return NULL;
25204 }
25205
25206
25207 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25208 PyObject *resultobj = 0;
25209 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25210 wxDouble arg2 ;
25211 wxDouble arg3 ;
25212 void *argp1 = 0 ;
25213 int res1 = 0 ;
25214 double val2 ;
25215 int ecode2 = 0 ;
25216 double val3 ;
25217 int ecode3 = 0 ;
25218 PyObject * obj0 = 0 ;
25219 PyObject * obj1 = 0 ;
25220 PyObject * obj2 = 0 ;
25221 char * kwnames[] = {
25222 (char *) "self",(char *) "x",(char *) "y", NULL
25223 };
25224
25225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25227 if (!SWIG_IsOK(res1)) {
25228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25229 }
25230 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25231 ecode2 = SWIG_AsVal_double(obj1, &val2);
25232 if (!SWIG_IsOK(ecode2)) {
25233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25234 }
25235 arg2 = static_cast< wxDouble >(val2);
25236 ecode3 = SWIG_AsVal_double(obj2, &val3);
25237 if (!SWIG_IsOK(ecode3)) {
25238 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25239 }
25240 arg3 = static_cast< wxDouble >(val3);
25241 {
25242 (arg1)->MoveToPoint(arg2,arg3);
25243 if (PyErr_Occurred()) SWIG_fail;
25244 }
25245 resultobj = SWIG_Py_Void();
25246 return resultobj;
25247 fail:
25248 return NULL;
25249 }
25250
25251
25252 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25253 PyObject *resultobj = 0;
25254 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25255 wxDouble arg2 ;
25256 wxDouble arg3 ;
25257 void *argp1 = 0 ;
25258 int res1 = 0 ;
25259 double val2 ;
25260 int ecode2 = 0 ;
25261 double val3 ;
25262 int ecode3 = 0 ;
25263 PyObject * obj0 = 0 ;
25264 PyObject * obj1 = 0 ;
25265 PyObject * obj2 = 0 ;
25266 char * kwnames[] = {
25267 (char *) "self",(char *) "x",(char *) "y", NULL
25268 };
25269
25270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25272 if (!SWIG_IsOK(res1)) {
25273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25274 }
25275 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25276 ecode2 = SWIG_AsVal_double(obj1, &val2);
25277 if (!SWIG_IsOK(ecode2)) {
25278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25279 }
25280 arg2 = static_cast< wxDouble >(val2);
25281 ecode3 = SWIG_AsVal_double(obj2, &val3);
25282 if (!SWIG_IsOK(ecode3)) {
25283 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25284 }
25285 arg3 = static_cast< wxDouble >(val3);
25286 {
25287 (arg1)->AddLineToPoint(arg2,arg3);
25288 if (PyErr_Occurred()) SWIG_fail;
25289 }
25290 resultobj = SWIG_Py_Void();
25291 return resultobj;
25292 fail:
25293 return NULL;
25294 }
25295
25296
25297 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25298 PyObject *resultobj = 0;
25299 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25300 wxDouble arg2 ;
25301 wxDouble arg3 ;
25302 wxDouble arg4 ;
25303 wxDouble arg5 ;
25304 wxDouble arg6 ;
25305 wxDouble arg7 ;
25306 void *argp1 = 0 ;
25307 int res1 = 0 ;
25308 double val2 ;
25309 int ecode2 = 0 ;
25310 double val3 ;
25311 int ecode3 = 0 ;
25312 double val4 ;
25313 int ecode4 = 0 ;
25314 double val5 ;
25315 int ecode5 = 0 ;
25316 double val6 ;
25317 int ecode6 = 0 ;
25318 double val7 ;
25319 int ecode7 = 0 ;
25320 PyObject * obj0 = 0 ;
25321 PyObject * obj1 = 0 ;
25322 PyObject * obj2 = 0 ;
25323 PyObject * obj3 = 0 ;
25324 PyObject * obj4 = 0 ;
25325 PyObject * obj5 = 0 ;
25326 PyObject * obj6 = 0 ;
25327 char * kwnames[] = {
25328 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25329 };
25330
25331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25333 if (!SWIG_IsOK(res1)) {
25334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25335 }
25336 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25337 ecode2 = SWIG_AsVal_double(obj1, &val2);
25338 if (!SWIG_IsOK(ecode2)) {
25339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25340 }
25341 arg2 = static_cast< wxDouble >(val2);
25342 ecode3 = SWIG_AsVal_double(obj2, &val3);
25343 if (!SWIG_IsOK(ecode3)) {
25344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25345 }
25346 arg3 = static_cast< wxDouble >(val3);
25347 ecode4 = SWIG_AsVal_double(obj3, &val4);
25348 if (!SWIG_IsOK(ecode4)) {
25349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25350 }
25351 arg4 = static_cast< wxDouble >(val4);
25352 ecode5 = SWIG_AsVal_double(obj4, &val5);
25353 if (!SWIG_IsOK(ecode5)) {
25354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25355 }
25356 arg5 = static_cast< wxDouble >(val5);
25357 ecode6 = SWIG_AsVal_double(obj5, &val6);
25358 if (!SWIG_IsOK(ecode6)) {
25359 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25360 }
25361 arg6 = static_cast< wxDouble >(val6);
25362 ecode7 = SWIG_AsVal_double(obj6, &val7);
25363 if (!SWIG_IsOK(ecode7)) {
25364 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25365 }
25366 arg7 = static_cast< wxDouble >(val7);
25367 {
25368 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25369 if (PyErr_Occurred()) SWIG_fail;
25370 }
25371 resultobj = SWIG_Py_Void();
25372 return resultobj;
25373 fail:
25374 return NULL;
25375 }
25376
25377
25378 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25379 PyObject *resultobj = 0;
25380 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25381 void *argp1 = 0 ;
25382 int res1 = 0 ;
25383 PyObject *swig_obj[1] ;
25384
25385 if (!args) SWIG_fail;
25386 swig_obj[0] = args;
25387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25388 if (!SWIG_IsOK(res1)) {
25389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25390 }
25391 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25392 {
25393 (arg1)->CloseSubpath();
25394 if (PyErr_Occurred()) SWIG_fail;
25395 }
25396 resultobj = SWIG_Py_Void();
25397 return resultobj;
25398 fail:
25399 return NULL;
25400 }
25401
25402
25403 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25404 PyObject *resultobj = 0;
25405 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25406 wxPoint2D result;
25407 void *argp1 = 0 ;
25408 int res1 = 0 ;
25409 PyObject *swig_obj[1] ;
25410
25411 if (!args) SWIG_fail;
25412 swig_obj[0] = args;
25413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25414 if (!SWIG_IsOK(res1)) {
25415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25416 }
25417 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25418 {
25419 result = (arg1)->GetCurrentPoint();
25420 if (PyErr_Occurred()) SWIG_fail;
25421 }
25422 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25423 return resultobj;
25424 fail:
25425 return NULL;
25426 }
25427
25428
25429 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25430 PyObject *resultobj = 0;
25431 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25432 wxDouble arg2 ;
25433 wxDouble arg3 ;
25434 wxDouble arg4 ;
25435 wxDouble arg5 ;
25436 wxDouble arg6 ;
25437 bool arg7 ;
25438 void *argp1 = 0 ;
25439 int res1 = 0 ;
25440 double val2 ;
25441 int ecode2 = 0 ;
25442 double val3 ;
25443 int ecode3 = 0 ;
25444 double val4 ;
25445 int ecode4 = 0 ;
25446 double val5 ;
25447 int ecode5 = 0 ;
25448 double val6 ;
25449 int ecode6 = 0 ;
25450 bool val7 ;
25451 int ecode7 = 0 ;
25452 PyObject * obj0 = 0 ;
25453 PyObject * obj1 = 0 ;
25454 PyObject * obj2 = 0 ;
25455 PyObject * obj3 = 0 ;
25456 PyObject * obj4 = 0 ;
25457 PyObject * obj5 = 0 ;
25458 PyObject * obj6 = 0 ;
25459 char * kwnames[] = {
25460 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25461 };
25462
25463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25465 if (!SWIG_IsOK(res1)) {
25466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25467 }
25468 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25469 ecode2 = SWIG_AsVal_double(obj1, &val2);
25470 if (!SWIG_IsOK(ecode2)) {
25471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25472 }
25473 arg2 = static_cast< wxDouble >(val2);
25474 ecode3 = SWIG_AsVal_double(obj2, &val3);
25475 if (!SWIG_IsOK(ecode3)) {
25476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25477 }
25478 arg3 = static_cast< wxDouble >(val3);
25479 ecode4 = SWIG_AsVal_double(obj3, &val4);
25480 if (!SWIG_IsOK(ecode4)) {
25481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25482 }
25483 arg4 = static_cast< wxDouble >(val4);
25484 ecode5 = SWIG_AsVal_double(obj4, &val5);
25485 if (!SWIG_IsOK(ecode5)) {
25486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25487 }
25488 arg5 = static_cast< wxDouble >(val5);
25489 ecode6 = SWIG_AsVal_double(obj5, &val6);
25490 if (!SWIG_IsOK(ecode6)) {
25491 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25492 }
25493 arg6 = static_cast< wxDouble >(val6);
25494 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25495 if (!SWIG_IsOK(ecode7)) {
25496 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25497 }
25498 arg7 = static_cast< bool >(val7);
25499 {
25500 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25501 if (PyErr_Occurred()) SWIG_fail;
25502 }
25503 resultobj = SWIG_Py_Void();
25504 return resultobj;
25505 fail:
25506 return NULL;
25507 }
25508
25509
25510 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25511 PyObject *resultobj = 0;
25512 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25513 wxDouble arg2 ;
25514 wxDouble arg3 ;
25515 wxDouble arg4 ;
25516 wxDouble arg5 ;
25517 void *argp1 = 0 ;
25518 int res1 = 0 ;
25519 double val2 ;
25520 int ecode2 = 0 ;
25521 double val3 ;
25522 int ecode3 = 0 ;
25523 double val4 ;
25524 int ecode4 = 0 ;
25525 double val5 ;
25526 int ecode5 = 0 ;
25527 PyObject * obj0 = 0 ;
25528 PyObject * obj1 = 0 ;
25529 PyObject * obj2 = 0 ;
25530 PyObject * obj3 = 0 ;
25531 PyObject * obj4 = 0 ;
25532 char * kwnames[] = {
25533 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25534 };
25535
25536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25538 if (!SWIG_IsOK(res1)) {
25539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25540 }
25541 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25542 ecode2 = SWIG_AsVal_double(obj1, &val2);
25543 if (!SWIG_IsOK(ecode2)) {
25544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25545 }
25546 arg2 = static_cast< wxDouble >(val2);
25547 ecode3 = SWIG_AsVal_double(obj2, &val3);
25548 if (!SWIG_IsOK(ecode3)) {
25549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25550 }
25551 arg3 = static_cast< wxDouble >(val3);
25552 ecode4 = SWIG_AsVal_double(obj3, &val4);
25553 if (!SWIG_IsOK(ecode4)) {
25554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25555 }
25556 arg4 = static_cast< wxDouble >(val4);
25557 ecode5 = SWIG_AsVal_double(obj4, &val5);
25558 if (!SWIG_IsOK(ecode5)) {
25559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25560 }
25561 arg5 = static_cast< wxDouble >(val5);
25562 {
25563 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25564 if (PyErr_Occurred()) SWIG_fail;
25565 }
25566 resultobj = SWIG_Py_Void();
25567 return resultobj;
25568 fail:
25569 return NULL;
25570 }
25571
25572
25573 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25574 PyObject *resultobj = 0;
25575 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25576 wxDouble arg2 ;
25577 wxDouble arg3 ;
25578 wxDouble arg4 ;
25579 wxDouble arg5 ;
25580 void *argp1 = 0 ;
25581 int res1 = 0 ;
25582 double val2 ;
25583 int ecode2 = 0 ;
25584 double val3 ;
25585 int ecode3 = 0 ;
25586 double val4 ;
25587 int ecode4 = 0 ;
25588 double val5 ;
25589 int ecode5 = 0 ;
25590 PyObject * obj0 = 0 ;
25591 PyObject * obj1 = 0 ;
25592 PyObject * obj2 = 0 ;
25593 PyObject * obj3 = 0 ;
25594 PyObject * obj4 = 0 ;
25595 char * kwnames[] = {
25596 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25597 };
25598
25599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25601 if (!SWIG_IsOK(res1)) {
25602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25603 }
25604 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25605 ecode2 = SWIG_AsVal_double(obj1, &val2);
25606 if (!SWIG_IsOK(ecode2)) {
25607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25608 }
25609 arg2 = static_cast< wxDouble >(val2);
25610 ecode3 = SWIG_AsVal_double(obj2, &val3);
25611 if (!SWIG_IsOK(ecode3)) {
25612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25613 }
25614 arg3 = static_cast< wxDouble >(val3);
25615 ecode4 = SWIG_AsVal_double(obj3, &val4);
25616 if (!SWIG_IsOK(ecode4)) {
25617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25618 }
25619 arg4 = static_cast< wxDouble >(val4);
25620 ecode5 = SWIG_AsVal_double(obj4, &val5);
25621 if (!SWIG_IsOK(ecode5)) {
25622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25623 }
25624 arg5 = static_cast< wxDouble >(val5);
25625 {
25626 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25627 if (PyErr_Occurred()) SWIG_fail;
25628 }
25629 resultobj = SWIG_Py_Void();
25630 return resultobj;
25631 fail:
25632 return NULL;
25633 }
25634
25635
25636 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25637 PyObject *resultobj = 0;
25638 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25639 wxDouble arg2 ;
25640 wxDouble arg3 ;
25641 wxDouble arg4 ;
25642 void *argp1 = 0 ;
25643 int res1 = 0 ;
25644 double val2 ;
25645 int ecode2 = 0 ;
25646 double val3 ;
25647 int ecode3 = 0 ;
25648 double val4 ;
25649 int ecode4 = 0 ;
25650 PyObject * obj0 = 0 ;
25651 PyObject * obj1 = 0 ;
25652 PyObject * obj2 = 0 ;
25653 PyObject * obj3 = 0 ;
25654 char * kwnames[] = {
25655 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25656 };
25657
25658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25660 if (!SWIG_IsOK(res1)) {
25661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25662 }
25663 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25664 ecode2 = SWIG_AsVal_double(obj1, &val2);
25665 if (!SWIG_IsOK(ecode2)) {
25666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25667 }
25668 arg2 = static_cast< wxDouble >(val2);
25669 ecode3 = SWIG_AsVal_double(obj2, &val3);
25670 if (!SWIG_IsOK(ecode3)) {
25671 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25672 }
25673 arg3 = static_cast< wxDouble >(val3);
25674 ecode4 = SWIG_AsVal_double(obj3, &val4);
25675 if (!SWIG_IsOK(ecode4)) {
25676 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25677 }
25678 arg4 = static_cast< wxDouble >(val4);
25679 {
25680 (arg1)->AddCircle(arg2,arg3,arg4);
25681 if (PyErr_Occurred()) SWIG_fail;
25682 }
25683 resultobj = SWIG_Py_Void();
25684 return resultobj;
25685 fail:
25686 return NULL;
25687 }
25688
25689
25690 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25691 PyObject *resultobj = 0;
25692 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25693 wxDouble arg2 ;
25694 wxDouble arg3 ;
25695 wxDouble arg4 ;
25696 wxDouble arg5 ;
25697 wxDouble arg6 ;
25698 void *argp1 = 0 ;
25699 int res1 = 0 ;
25700 double val2 ;
25701 int ecode2 = 0 ;
25702 double val3 ;
25703 int ecode3 = 0 ;
25704 double val4 ;
25705 int ecode4 = 0 ;
25706 double val5 ;
25707 int ecode5 = 0 ;
25708 double val6 ;
25709 int ecode6 = 0 ;
25710 PyObject * obj0 = 0 ;
25711 PyObject * obj1 = 0 ;
25712 PyObject * obj2 = 0 ;
25713 PyObject * obj3 = 0 ;
25714 PyObject * obj4 = 0 ;
25715 PyObject * obj5 = 0 ;
25716 char * kwnames[] = {
25717 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25718 };
25719
25720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25721 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25722 if (!SWIG_IsOK(res1)) {
25723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25724 }
25725 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25726 ecode2 = SWIG_AsVal_double(obj1, &val2);
25727 if (!SWIG_IsOK(ecode2)) {
25728 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25729 }
25730 arg2 = static_cast< wxDouble >(val2);
25731 ecode3 = SWIG_AsVal_double(obj2, &val3);
25732 if (!SWIG_IsOK(ecode3)) {
25733 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25734 }
25735 arg3 = static_cast< wxDouble >(val3);
25736 ecode4 = SWIG_AsVal_double(obj3, &val4);
25737 if (!SWIG_IsOK(ecode4)) {
25738 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25739 }
25740 arg4 = static_cast< wxDouble >(val4);
25741 ecode5 = SWIG_AsVal_double(obj4, &val5);
25742 if (!SWIG_IsOK(ecode5)) {
25743 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25744 }
25745 arg5 = static_cast< wxDouble >(val5);
25746 ecode6 = SWIG_AsVal_double(obj5, &val6);
25747 if (!SWIG_IsOK(ecode6)) {
25748 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25749 }
25750 arg6 = static_cast< wxDouble >(val6);
25751 {
25752 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_Py_Void();
25756 return resultobj;
25757 fail:
25758 return NULL;
25759 }
25760
25761
25762 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25763 PyObject *obj;
25764 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25765 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25766 return SWIG_Py_Void();
25767 }
25768
25769 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25770 PyObject *resultobj = 0;
25771 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25772 void *argp1 = 0 ;
25773 int res1 = 0 ;
25774 PyObject *swig_obj[1] ;
25775
25776 if (!args) SWIG_fail;
25777 swig_obj[0] = args;
25778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25779 if (!SWIG_IsOK(res1)) {
25780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25781 }
25782 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25783 {
25784 delete arg1;
25785
25786 if (PyErr_Occurred()) SWIG_fail;
25787 }
25788 resultobj = SWIG_Py_Void();
25789 return resultobj;
25790 fail:
25791 return NULL;
25792 }
25793
25794
25795 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25796 PyObject *resultobj = 0;
25797 wxWindowDC *arg1 = 0 ;
25798 wxGraphicsContext *result = 0 ;
25799 void *argp1 = 0 ;
25800 int res1 = 0 ;
25801 PyObject * obj0 = 0 ;
25802 char * kwnames[] = {
25803 (char *) "dc", NULL
25804 };
25805
25806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_Create",kwnames,&obj0)) SWIG_fail;
25807 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25808 if (!SWIG_IsOK(res1)) {
25809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25810 }
25811 if (!argp1) {
25812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25813 }
25814 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25815 {
25816 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25817 if (PyErr_Occurred()) SWIG_fail;
25818 }
25819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25820 return resultobj;
25821 fail:
25822 return NULL;
25823 }
25824
25825
25826 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25827 PyObject *resultobj = 0;
25828 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25829 wxGraphicsPath *result = 0 ;
25830 void *argp1 = 0 ;
25831 int res1 = 0 ;
25832 PyObject *swig_obj[1] ;
25833
25834 if (!args) SWIG_fail;
25835 swig_obj[0] = args;
25836 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25837 if (!SWIG_IsOK(res1)) {
25838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25839 }
25840 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25841 {
25842 result = (wxGraphicsPath *)(arg1)->CreatePath();
25843 if (PyErr_Occurred()) SWIG_fail;
25844 }
25845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25846 return resultobj;
25847 fail:
25848 return NULL;
25849 }
25850
25851
25852 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25853 PyObject *resultobj = 0;
25854 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25855 void *argp1 = 0 ;
25856 int res1 = 0 ;
25857 PyObject *swig_obj[1] ;
25858
25859 if (!args) SWIG_fail;
25860 swig_obj[0] = args;
25861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25862 if (!SWIG_IsOK(res1)) {
25863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25864 }
25865 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25866 {
25867 (arg1)->PushState();
25868 if (PyErr_Occurred()) SWIG_fail;
25869 }
25870 resultobj = SWIG_Py_Void();
25871 return resultobj;
25872 fail:
25873 return NULL;
25874 }
25875
25876
25877 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25878 PyObject *resultobj = 0;
25879 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25880 void *argp1 = 0 ;
25881 int res1 = 0 ;
25882 PyObject *swig_obj[1] ;
25883
25884 if (!args) SWIG_fail;
25885 swig_obj[0] = args;
25886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25887 if (!SWIG_IsOK(res1)) {
25888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25889 }
25890 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25891 {
25892 (arg1)->PopState();
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 resultobj = SWIG_Py_Void();
25896 return resultobj;
25897 fail:
25898 return NULL;
25899 }
25900
25901
25902 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25903 PyObject *resultobj = 0;
25904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25905 wxRegion *arg2 = 0 ;
25906 void *argp1 = 0 ;
25907 int res1 = 0 ;
25908 void *argp2 = 0 ;
25909 int res2 = 0 ;
25910 PyObject * obj0 = 0 ;
25911 PyObject * obj1 = 0 ;
25912 char * kwnames[] = {
25913 (char *) "self",(char *) "region", NULL
25914 };
25915
25916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Clip",kwnames,&obj0,&obj1)) SWIG_fail;
25917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25918 if (!SWIG_IsOK(res1)) {
25919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25920 }
25921 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25923 if (!SWIG_IsOK(res2)) {
25924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25925 }
25926 if (!argp2) {
25927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxRegion const &""'");
25928 }
25929 arg2 = reinterpret_cast< wxRegion * >(argp2);
25930 {
25931 (arg1)->Clip((wxRegion const &)*arg2);
25932 if (PyErr_Occurred()) SWIG_fail;
25933 }
25934 resultobj = SWIG_Py_Void();
25935 return resultobj;
25936 fail:
25937 return NULL;
25938 }
25939
25940
25941 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25942 PyObject *resultobj = 0;
25943 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25944 wxDouble arg2 ;
25945 wxDouble arg3 ;
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
25948 double val2 ;
25949 int ecode2 = 0 ;
25950 double val3 ;
25951 int ecode3 = 0 ;
25952 PyObject * obj0 = 0 ;
25953 PyObject * obj1 = 0 ;
25954 PyObject * obj2 = 0 ;
25955 char * kwnames[] = {
25956 (char *) "self",(char *) "dx",(char *) "dy", NULL
25957 };
25958
25959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25961 if (!SWIG_IsOK(res1)) {
25962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25963 }
25964 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25965 ecode2 = SWIG_AsVal_double(obj1, &val2);
25966 if (!SWIG_IsOK(ecode2)) {
25967 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
25968 }
25969 arg2 = static_cast< wxDouble >(val2);
25970 ecode3 = SWIG_AsVal_double(obj2, &val3);
25971 if (!SWIG_IsOK(ecode3)) {
25972 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
25973 }
25974 arg3 = static_cast< wxDouble >(val3);
25975 {
25976 (arg1)->Translate(arg2,arg3);
25977 if (PyErr_Occurred()) SWIG_fail;
25978 }
25979 resultobj = SWIG_Py_Void();
25980 return resultobj;
25981 fail:
25982 return NULL;
25983 }
25984
25985
25986 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25987 PyObject *resultobj = 0;
25988 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25989 wxDouble arg2 ;
25990 wxDouble arg3 ;
25991 void *argp1 = 0 ;
25992 int res1 = 0 ;
25993 double val2 ;
25994 int ecode2 = 0 ;
25995 double val3 ;
25996 int ecode3 = 0 ;
25997 PyObject * obj0 = 0 ;
25998 PyObject * obj1 = 0 ;
25999 PyObject * obj2 = 0 ;
26000 char * kwnames[] = {
26001 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26002 };
26003
26004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26006 if (!SWIG_IsOK(res1)) {
26007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26008 }
26009 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26010 ecode2 = SWIG_AsVal_double(obj1, &val2);
26011 if (!SWIG_IsOK(ecode2)) {
26012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26013 }
26014 arg2 = static_cast< wxDouble >(val2);
26015 ecode3 = SWIG_AsVal_double(obj2, &val3);
26016 if (!SWIG_IsOK(ecode3)) {
26017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26018 }
26019 arg3 = static_cast< wxDouble >(val3);
26020 {
26021 (arg1)->Scale(arg2,arg3);
26022 if (PyErr_Occurred()) SWIG_fail;
26023 }
26024 resultobj = SWIG_Py_Void();
26025 return resultobj;
26026 fail:
26027 return NULL;
26028 }
26029
26030
26031 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26032 PyObject *resultobj = 0;
26033 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26034 wxDouble arg2 ;
26035 void *argp1 = 0 ;
26036 int res1 = 0 ;
26037 double val2 ;
26038 int ecode2 = 0 ;
26039 PyObject * obj0 = 0 ;
26040 PyObject * obj1 = 0 ;
26041 char * kwnames[] = {
26042 (char *) "self",(char *) "angle", NULL
26043 };
26044
26045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26047 if (!SWIG_IsOK(res1)) {
26048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26049 }
26050 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26051 ecode2 = SWIG_AsVal_double(obj1, &val2);
26052 if (!SWIG_IsOK(ecode2)) {
26053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26054 }
26055 arg2 = static_cast< wxDouble >(val2);
26056 {
26057 (arg1)->Rotate(arg2);
26058 if (PyErr_Occurred()) SWIG_fail;
26059 }
26060 resultobj = SWIG_Py_Void();
26061 return resultobj;
26062 fail:
26063 return NULL;
26064 }
26065
26066
26067 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26068 PyObject *resultobj = 0;
26069 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26070 wxPen *arg2 = 0 ;
26071 void *argp1 = 0 ;
26072 int res1 = 0 ;
26073 void *argp2 = 0 ;
26074 int res2 = 0 ;
26075 PyObject * obj0 = 0 ;
26076 PyObject * obj1 = 0 ;
26077 char * kwnames[] = {
26078 (char *) "self",(char *) "pen", NULL
26079 };
26080
26081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26083 if (!SWIG_IsOK(res1)) {
26084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26085 }
26086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26088 if (!SWIG_IsOK(res2)) {
26089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26090 }
26091 if (!argp2) {
26092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26093 }
26094 arg2 = reinterpret_cast< wxPen * >(argp2);
26095 {
26096 (arg1)->SetPen((wxPen const &)*arg2);
26097 if (PyErr_Occurred()) SWIG_fail;
26098 }
26099 resultobj = SWIG_Py_Void();
26100 return resultobj;
26101 fail:
26102 return NULL;
26103 }
26104
26105
26106 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj = 0;
26108 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26109 wxBrush *arg2 = 0 ;
26110 void *argp1 = 0 ;
26111 int res1 = 0 ;
26112 void *argp2 = 0 ;
26113 int res2 = 0 ;
26114 PyObject * obj0 = 0 ;
26115 PyObject * obj1 = 0 ;
26116 char * kwnames[] = {
26117 (char *) "self",(char *) "brush", NULL
26118 };
26119
26120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26122 if (!SWIG_IsOK(res1)) {
26123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26124 }
26125 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26127 if (!SWIG_IsOK(res2)) {
26128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26129 }
26130 if (!argp2) {
26131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26132 }
26133 arg2 = reinterpret_cast< wxBrush * >(argp2);
26134 {
26135 (arg1)->SetBrush((wxBrush const &)*arg2);
26136 if (PyErr_Occurred()) SWIG_fail;
26137 }
26138 resultobj = SWIG_Py_Void();
26139 return resultobj;
26140 fail:
26141 return NULL;
26142 }
26143
26144
26145 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26146 PyObject *resultobj = 0;
26147 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26148 wxDouble arg2 ;
26149 wxDouble arg3 ;
26150 wxDouble arg4 ;
26151 wxDouble arg5 ;
26152 wxColour *arg6 = 0 ;
26153 wxColour *arg7 = 0 ;
26154 void *argp1 = 0 ;
26155 int res1 = 0 ;
26156 double val2 ;
26157 int ecode2 = 0 ;
26158 double val3 ;
26159 int ecode3 = 0 ;
26160 double val4 ;
26161 int ecode4 = 0 ;
26162 double val5 ;
26163 int ecode5 = 0 ;
26164 wxColour temp6 ;
26165 wxColour temp7 ;
26166 PyObject * obj0 = 0 ;
26167 PyObject * obj1 = 0 ;
26168 PyObject * obj2 = 0 ;
26169 PyObject * obj3 = 0 ;
26170 PyObject * obj4 = 0 ;
26171 PyObject * obj5 = 0 ;
26172 PyObject * obj6 = 0 ;
26173 char * kwnames[] = {
26174 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26175 };
26176
26177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26179 if (!SWIG_IsOK(res1)) {
26180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26181 }
26182 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26183 ecode2 = SWIG_AsVal_double(obj1, &val2);
26184 if (!SWIG_IsOK(ecode2)) {
26185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26186 }
26187 arg2 = static_cast< wxDouble >(val2);
26188 ecode3 = SWIG_AsVal_double(obj2, &val3);
26189 if (!SWIG_IsOK(ecode3)) {
26190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26191 }
26192 arg3 = static_cast< wxDouble >(val3);
26193 ecode4 = SWIG_AsVal_double(obj3, &val4);
26194 if (!SWIG_IsOK(ecode4)) {
26195 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26196 }
26197 arg4 = static_cast< wxDouble >(val4);
26198 ecode5 = SWIG_AsVal_double(obj4, &val5);
26199 if (!SWIG_IsOK(ecode5)) {
26200 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26201 }
26202 arg5 = static_cast< wxDouble >(val5);
26203 {
26204 arg6 = &temp6;
26205 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26206 }
26207 {
26208 arg7 = &temp7;
26209 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26210 }
26211 {
26212 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
26213 if (PyErr_Occurred()) SWIG_fail;
26214 }
26215 resultobj = SWIG_Py_Void();
26216 return resultobj;
26217 fail:
26218 return NULL;
26219 }
26220
26221
26222 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26223 PyObject *resultobj = 0;
26224 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26225 wxDouble arg2 ;
26226 wxDouble arg3 ;
26227 wxDouble arg4 ;
26228 wxDouble arg5 ;
26229 wxDouble arg6 ;
26230 wxColour *arg7 = 0 ;
26231 wxColour *arg8 = 0 ;
26232 void *argp1 = 0 ;
26233 int res1 = 0 ;
26234 double val2 ;
26235 int ecode2 = 0 ;
26236 double val3 ;
26237 int ecode3 = 0 ;
26238 double val4 ;
26239 int ecode4 = 0 ;
26240 double val5 ;
26241 int ecode5 = 0 ;
26242 double val6 ;
26243 int ecode6 = 0 ;
26244 wxColour temp7 ;
26245 wxColour temp8 ;
26246 PyObject * obj0 = 0 ;
26247 PyObject * obj1 = 0 ;
26248 PyObject * obj2 = 0 ;
26249 PyObject * obj3 = 0 ;
26250 PyObject * obj4 = 0 ;
26251 PyObject * obj5 = 0 ;
26252 PyObject * obj6 = 0 ;
26253 PyObject * obj7 = 0 ;
26254 char * kwnames[] = {
26255 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26256 };
26257
26258 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26259 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26260 if (!SWIG_IsOK(res1)) {
26261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26262 }
26263 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26264 ecode2 = SWIG_AsVal_double(obj1, &val2);
26265 if (!SWIG_IsOK(ecode2)) {
26266 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26267 }
26268 arg2 = static_cast< wxDouble >(val2);
26269 ecode3 = SWIG_AsVal_double(obj2, &val3);
26270 if (!SWIG_IsOK(ecode3)) {
26271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26272 }
26273 arg3 = static_cast< wxDouble >(val3);
26274 ecode4 = SWIG_AsVal_double(obj3, &val4);
26275 if (!SWIG_IsOK(ecode4)) {
26276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26277 }
26278 arg4 = static_cast< wxDouble >(val4);
26279 ecode5 = SWIG_AsVal_double(obj4, &val5);
26280 if (!SWIG_IsOK(ecode5)) {
26281 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26282 }
26283 arg5 = static_cast< wxDouble >(val5);
26284 ecode6 = SWIG_AsVal_double(obj5, &val6);
26285 if (!SWIG_IsOK(ecode6)) {
26286 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26287 }
26288 arg6 = static_cast< wxDouble >(val6);
26289 {
26290 arg7 = &temp7;
26291 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26292 }
26293 {
26294 arg8 = &temp8;
26295 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26296 }
26297 {
26298 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26299 if (PyErr_Occurred()) SWIG_fail;
26300 }
26301 resultobj = SWIG_Py_Void();
26302 return resultobj;
26303 fail:
26304 return NULL;
26305 }
26306
26307
26308 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26309 PyObject *resultobj = 0;
26310 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26311 wxFont *arg2 = 0 ;
26312 void *argp1 = 0 ;
26313 int res1 = 0 ;
26314 void *argp2 = 0 ;
26315 int res2 = 0 ;
26316 PyObject * obj0 = 0 ;
26317 PyObject * obj1 = 0 ;
26318 char * kwnames[] = {
26319 (char *) "self",(char *) "font", NULL
26320 };
26321
26322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26324 if (!SWIG_IsOK(res1)) {
26325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26326 }
26327 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26328 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26329 if (!SWIG_IsOK(res2)) {
26330 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26331 }
26332 if (!argp2) {
26333 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26334 }
26335 arg2 = reinterpret_cast< wxFont * >(argp2);
26336 {
26337 (arg1)->SetFont((wxFont const &)*arg2);
26338 if (PyErr_Occurred()) SWIG_fail;
26339 }
26340 resultobj = SWIG_Py_Void();
26341 return resultobj;
26342 fail:
26343 return NULL;
26344 }
26345
26346
26347 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26348 PyObject *resultobj = 0;
26349 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26350 wxColour *arg2 = 0 ;
26351 void *argp1 = 0 ;
26352 int res1 = 0 ;
26353 wxColour temp2 ;
26354 PyObject * obj0 = 0 ;
26355 PyObject * obj1 = 0 ;
26356 char * kwnames[] = {
26357 (char *) "self",(char *) "col", NULL
26358 };
26359
26360 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26361 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26362 if (!SWIG_IsOK(res1)) {
26363 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26364 }
26365 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26366 {
26367 arg2 = &temp2;
26368 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26369 }
26370 {
26371 (arg1)->SetTextColor((wxColour const &)*arg2);
26372 if (PyErr_Occurred()) SWIG_fail;
26373 }
26374 resultobj = SWIG_Py_Void();
26375 return resultobj;
26376 fail:
26377 return NULL;
26378 }
26379
26380
26381 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26382 PyObject *resultobj = 0;
26383 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26384 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26385 void *argp1 = 0 ;
26386 int res1 = 0 ;
26387 void *argp2 = 0 ;
26388 int res2 = 0 ;
26389 PyObject * obj0 = 0 ;
26390 PyObject * obj1 = 0 ;
26391 char * kwnames[] = {
26392 (char *) "self",(char *) "path", NULL
26393 };
26394
26395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26397 if (!SWIG_IsOK(res1)) {
26398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26399 }
26400 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26402 if (!SWIG_IsOK(res2)) {
26403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26404 }
26405 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26406 {
26407 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26408 if (PyErr_Occurred()) SWIG_fail;
26409 }
26410 resultobj = SWIG_Py_Void();
26411 return resultobj;
26412 fail:
26413 return NULL;
26414 }
26415
26416
26417 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26418 PyObject *resultobj = 0;
26419 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26420 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26421 int arg3 = (int) wxWINDING_RULE ;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 void *argp2 = 0 ;
26425 int res2 = 0 ;
26426 int val3 ;
26427 int ecode3 = 0 ;
26428 PyObject * obj0 = 0 ;
26429 PyObject * obj1 = 0 ;
26430 PyObject * obj2 = 0 ;
26431 char * kwnames[] = {
26432 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26433 };
26434
26435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26437 if (!SWIG_IsOK(res1)) {
26438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26439 }
26440 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26441 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26442 if (!SWIG_IsOK(res2)) {
26443 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26444 }
26445 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26446 if (obj2) {
26447 ecode3 = SWIG_AsVal_int(obj2, &val3);
26448 if (!SWIG_IsOK(ecode3)) {
26449 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26450 }
26451 arg3 = static_cast< int >(val3);
26452 }
26453 {
26454 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26455 if (PyErr_Occurred()) SWIG_fail;
26456 }
26457 resultobj = SWIG_Py_Void();
26458 return resultobj;
26459 fail:
26460 return NULL;
26461 }
26462
26463
26464 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26465 PyObject *resultobj = 0;
26466 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26467 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26468 int arg3 = (int) wxWINDING_RULE ;
26469 void *argp1 = 0 ;
26470 int res1 = 0 ;
26471 void *argp2 = 0 ;
26472 int res2 = 0 ;
26473 int val3 ;
26474 int ecode3 = 0 ;
26475 PyObject * obj0 = 0 ;
26476 PyObject * obj1 = 0 ;
26477 PyObject * obj2 = 0 ;
26478 char * kwnames[] = {
26479 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26480 };
26481
26482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26484 if (!SWIG_IsOK(res1)) {
26485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26486 }
26487 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26488 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26489 if (!SWIG_IsOK(res2)) {
26490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26491 }
26492 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26493 if (obj2) {
26494 ecode3 = SWIG_AsVal_int(obj2, &val3);
26495 if (!SWIG_IsOK(ecode3)) {
26496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26497 }
26498 arg3 = static_cast< int >(val3);
26499 }
26500 {
26501 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26502 if (PyErr_Occurred()) SWIG_fail;
26503 }
26504 resultobj = SWIG_Py_Void();
26505 return resultobj;
26506 fail:
26507 return NULL;
26508 }
26509
26510
26511 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26512 PyObject *resultobj = 0;
26513 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26514 wxString *arg2 = 0 ;
26515 wxDouble arg3 ;
26516 wxDouble arg4 ;
26517 void *argp1 = 0 ;
26518 int res1 = 0 ;
26519 bool temp2 = false ;
26520 double val3 ;
26521 int ecode3 = 0 ;
26522 double val4 ;
26523 int ecode4 = 0 ;
26524 PyObject * obj0 = 0 ;
26525 PyObject * obj1 = 0 ;
26526 PyObject * obj2 = 0 ;
26527 PyObject * obj3 = 0 ;
26528 char * kwnames[] = {
26529 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26530 };
26531
26532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26534 if (!SWIG_IsOK(res1)) {
26535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26536 }
26537 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26538 {
26539 arg2 = wxString_in_helper(obj1);
26540 if (arg2 == NULL) SWIG_fail;
26541 temp2 = true;
26542 }
26543 ecode3 = SWIG_AsVal_double(obj2, &val3);
26544 if (!SWIG_IsOK(ecode3)) {
26545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26546 }
26547 arg3 = static_cast< wxDouble >(val3);
26548 ecode4 = SWIG_AsVal_double(obj3, &val4);
26549 if (!SWIG_IsOK(ecode4)) {
26550 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26551 }
26552 arg4 = static_cast< wxDouble >(val4);
26553 {
26554 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26555 if (PyErr_Occurred()) SWIG_fail;
26556 }
26557 resultobj = SWIG_Py_Void();
26558 {
26559 if (temp2)
26560 delete arg2;
26561 }
26562 return resultobj;
26563 fail:
26564 {
26565 if (temp2)
26566 delete arg2;
26567 }
26568 return NULL;
26569 }
26570
26571
26572 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26573 PyObject *resultobj = 0;
26574 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26575 wxString *arg2 = 0 ;
26576 wxDouble arg3 ;
26577 wxDouble arg4 ;
26578 wxDouble arg5 ;
26579 void *argp1 = 0 ;
26580 int res1 = 0 ;
26581 bool temp2 = false ;
26582 double val3 ;
26583 int ecode3 = 0 ;
26584 double val4 ;
26585 int ecode4 = 0 ;
26586 double val5 ;
26587 int ecode5 = 0 ;
26588 PyObject * obj0 = 0 ;
26589 PyObject * obj1 = 0 ;
26590 PyObject * obj2 = 0 ;
26591 PyObject * obj3 = 0 ;
26592 PyObject * obj4 = 0 ;
26593 char * kwnames[] = {
26594 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26595 };
26596
26597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26599 if (!SWIG_IsOK(res1)) {
26600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26601 }
26602 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26603 {
26604 arg2 = wxString_in_helper(obj1);
26605 if (arg2 == NULL) SWIG_fail;
26606 temp2 = true;
26607 }
26608 ecode3 = SWIG_AsVal_double(obj2, &val3);
26609 if (!SWIG_IsOK(ecode3)) {
26610 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26611 }
26612 arg3 = static_cast< wxDouble >(val3);
26613 ecode4 = SWIG_AsVal_double(obj3, &val4);
26614 if (!SWIG_IsOK(ecode4)) {
26615 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26616 }
26617 arg4 = static_cast< wxDouble >(val4);
26618 ecode5 = SWIG_AsVal_double(obj4, &val5);
26619 if (!SWIG_IsOK(ecode5)) {
26620 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26621 }
26622 arg5 = static_cast< wxDouble >(val5);
26623 {
26624 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26625 if (PyErr_Occurred()) SWIG_fail;
26626 }
26627 resultobj = SWIG_Py_Void();
26628 {
26629 if (temp2)
26630 delete arg2;
26631 }
26632 return resultobj;
26633 fail:
26634 {
26635 if (temp2)
26636 delete arg2;
26637 }
26638 return NULL;
26639 }
26640
26641
26642 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26643 PyObject *resultobj = 0;
26644 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26645 wxString *arg2 = 0 ;
26646 wxDouble *arg3 = (wxDouble *) 0 ;
26647 wxDouble *arg4 = (wxDouble *) 0 ;
26648 wxDouble *arg5 = (wxDouble *) 0 ;
26649 wxDouble *arg6 = (wxDouble *) 0 ;
26650 void *argp1 = 0 ;
26651 int res1 = 0 ;
26652 bool temp2 = false ;
26653 wxDouble temp3 ;
26654 int res3 = SWIG_TMPOBJ ;
26655 wxDouble temp4 ;
26656 int res4 = SWIG_TMPOBJ ;
26657 wxDouble temp5 ;
26658 int res5 = SWIG_TMPOBJ ;
26659 wxDouble temp6 ;
26660 int res6 = SWIG_TMPOBJ ;
26661 PyObject * obj0 = 0 ;
26662 PyObject * obj1 = 0 ;
26663 char * kwnames[] = {
26664 (char *) "self",(char *) "text", NULL
26665 };
26666
26667 arg3 = &temp3;
26668 arg4 = &temp4;
26669 arg5 = &temp5;
26670 arg6 = &temp6;
26671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26673 if (!SWIG_IsOK(res1)) {
26674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26675 }
26676 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26677 {
26678 arg2 = wxString_in_helper(obj1);
26679 if (arg2 == NULL) SWIG_fail;
26680 temp2 = true;
26681 }
26682 {
26683 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26684 if (PyErr_Occurred()) SWIG_fail;
26685 }
26686 resultobj = SWIG_Py_Void();
26687 if (SWIG_IsTmpObj(res3)) {
26688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26689 } else {
26690 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26692 }
26693 if (SWIG_IsTmpObj(res4)) {
26694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26695 } else {
26696 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26698 }
26699 if (SWIG_IsTmpObj(res5)) {
26700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26701 } else {
26702 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26704 }
26705 if (SWIG_IsTmpObj(res6)) {
26706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26707 } else {
26708 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26710 }
26711 {
26712 if (temp2)
26713 delete arg2;
26714 }
26715 return resultobj;
26716 fail:
26717 {
26718 if (temp2)
26719 delete arg2;
26720 }
26721 return NULL;
26722 }
26723
26724
26725 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26726 PyObject *resultobj = 0;
26727 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26728 wxString *arg2 = 0 ;
26729 wxArrayDouble result;
26730 void *argp1 = 0 ;
26731 int res1 = 0 ;
26732 bool temp2 = false ;
26733 PyObject * obj0 = 0 ;
26734 PyObject * obj1 = 0 ;
26735 char * kwnames[] = {
26736 (char *) "self",(char *) "text", NULL
26737 };
26738
26739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26741 if (!SWIG_IsOK(res1)) {
26742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26743 }
26744 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26745 {
26746 arg2 = wxString_in_helper(obj1);
26747 if (arg2 == NULL) SWIG_fail;
26748 temp2 = true;
26749 }
26750 {
26751 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26752 if (PyErr_Occurred()) SWIG_fail;
26753 }
26754 {
26755 resultobj = wxArrayDouble2PyList_helper(result);
26756 }
26757 {
26758 if (temp2)
26759 delete arg2;
26760 }
26761 return resultobj;
26762 fail:
26763 {
26764 if (temp2)
26765 delete arg2;
26766 }
26767 return NULL;
26768 }
26769
26770
26771 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26772 PyObject *resultobj = 0;
26773 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26774 wxBitmap *arg2 = 0 ;
26775 wxDouble arg3 ;
26776 wxDouble arg4 ;
26777 wxDouble arg5 ;
26778 wxDouble arg6 ;
26779 void *argp1 = 0 ;
26780 int res1 = 0 ;
26781 void *argp2 = 0 ;
26782 int res2 = 0 ;
26783 double val3 ;
26784 int ecode3 = 0 ;
26785 double val4 ;
26786 int ecode4 = 0 ;
26787 double val5 ;
26788 int ecode5 = 0 ;
26789 double val6 ;
26790 int ecode6 = 0 ;
26791 PyObject * obj0 = 0 ;
26792 PyObject * obj1 = 0 ;
26793 PyObject * obj2 = 0 ;
26794 PyObject * obj3 = 0 ;
26795 PyObject * obj4 = 0 ;
26796 PyObject * obj5 = 0 ;
26797 char * kwnames[] = {
26798 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26799 };
26800
26801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26803 if (!SWIG_IsOK(res1)) {
26804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26805 }
26806 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26807 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26808 if (!SWIG_IsOK(res2)) {
26809 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26810 }
26811 if (!argp2) {
26812 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
26813 }
26814 arg2 = reinterpret_cast< wxBitmap * >(argp2);
26815 ecode3 = SWIG_AsVal_double(obj2, &val3);
26816 if (!SWIG_IsOK(ecode3)) {
26817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
26818 }
26819 arg3 = static_cast< wxDouble >(val3);
26820 ecode4 = SWIG_AsVal_double(obj3, &val4);
26821 if (!SWIG_IsOK(ecode4)) {
26822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
26823 }
26824 arg4 = static_cast< wxDouble >(val4);
26825 ecode5 = SWIG_AsVal_double(obj4, &val5);
26826 if (!SWIG_IsOK(ecode5)) {
26827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
26828 }
26829 arg5 = static_cast< wxDouble >(val5);
26830 ecode6 = SWIG_AsVal_double(obj5, &val6);
26831 if (!SWIG_IsOK(ecode6)) {
26832 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
26833 }
26834 arg6 = static_cast< wxDouble >(val6);
26835 {
26836 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
26837 if (PyErr_Occurred()) SWIG_fail;
26838 }
26839 resultobj = SWIG_Py_Void();
26840 return resultobj;
26841 fail:
26842 return NULL;
26843 }
26844
26845
26846 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26847 PyObject *resultobj = 0;
26848 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26849 wxIcon *arg2 = 0 ;
26850 wxDouble arg3 ;
26851 wxDouble arg4 ;
26852 wxDouble arg5 ;
26853 wxDouble arg6 ;
26854 void *argp1 = 0 ;
26855 int res1 = 0 ;
26856 void *argp2 = 0 ;
26857 int res2 = 0 ;
26858 double val3 ;
26859 int ecode3 = 0 ;
26860 double val4 ;
26861 int ecode4 = 0 ;
26862 double val5 ;
26863 int ecode5 = 0 ;
26864 double val6 ;
26865 int ecode6 = 0 ;
26866 PyObject * obj0 = 0 ;
26867 PyObject * obj1 = 0 ;
26868 PyObject * obj2 = 0 ;
26869 PyObject * obj3 = 0 ;
26870 PyObject * obj4 = 0 ;
26871 PyObject * obj5 = 0 ;
26872 char * kwnames[] = {
26873 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26874 };
26875
26876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26878 if (!SWIG_IsOK(res1)) {
26879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26880 }
26881 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
26883 if (!SWIG_IsOK(res2)) {
26884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26885 }
26886 if (!argp2) {
26887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
26888 }
26889 arg2 = reinterpret_cast< wxIcon * >(argp2);
26890 ecode3 = SWIG_AsVal_double(obj2, &val3);
26891 if (!SWIG_IsOK(ecode3)) {
26892 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
26893 }
26894 arg3 = static_cast< wxDouble >(val3);
26895 ecode4 = SWIG_AsVal_double(obj3, &val4);
26896 if (!SWIG_IsOK(ecode4)) {
26897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
26898 }
26899 arg4 = static_cast< wxDouble >(val4);
26900 ecode5 = SWIG_AsVal_double(obj4, &val5);
26901 if (!SWIG_IsOK(ecode5)) {
26902 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
26903 }
26904 arg5 = static_cast< wxDouble >(val5);
26905 ecode6 = SWIG_AsVal_double(obj5, &val6);
26906 if (!SWIG_IsOK(ecode6)) {
26907 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
26908 }
26909 arg6 = static_cast< wxDouble >(val6);
26910 {
26911 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
26912 if (PyErr_Occurred()) SWIG_fail;
26913 }
26914 resultobj = SWIG_Py_Void();
26915 return resultobj;
26916 fail:
26917 return NULL;
26918 }
26919
26920
26921 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26922 PyObject *resultobj = 0;
26923 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26924 wxDouble arg2 ;
26925 wxDouble arg3 ;
26926 wxDouble arg4 ;
26927 wxDouble arg5 ;
26928 void *argp1 = 0 ;
26929 int res1 = 0 ;
26930 double val2 ;
26931 int ecode2 = 0 ;
26932 double val3 ;
26933 int ecode3 = 0 ;
26934 double val4 ;
26935 int ecode4 = 0 ;
26936 double val5 ;
26937 int ecode5 = 0 ;
26938 PyObject * obj0 = 0 ;
26939 PyObject * obj1 = 0 ;
26940 PyObject * obj2 = 0 ;
26941 PyObject * obj3 = 0 ;
26942 PyObject * obj4 = 0 ;
26943 char * kwnames[] = {
26944 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26945 };
26946
26947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26951 }
26952 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26953 ecode2 = SWIG_AsVal_double(obj1, &val2);
26954 if (!SWIG_IsOK(ecode2)) {
26955 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
26956 }
26957 arg2 = static_cast< wxDouble >(val2);
26958 ecode3 = SWIG_AsVal_double(obj2, &val3);
26959 if (!SWIG_IsOK(ecode3)) {
26960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
26961 }
26962 arg3 = static_cast< wxDouble >(val3);
26963 ecode4 = SWIG_AsVal_double(obj3, &val4);
26964 if (!SWIG_IsOK(ecode4)) {
26965 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
26966 }
26967 arg4 = static_cast< wxDouble >(val4);
26968 ecode5 = SWIG_AsVal_double(obj4, &val5);
26969 if (!SWIG_IsOK(ecode5)) {
26970 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
26971 }
26972 arg5 = static_cast< wxDouble >(val5);
26973 {
26974 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
26975 if (PyErr_Occurred()) SWIG_fail;
26976 }
26977 resultobj = SWIG_Py_Void();
26978 return resultobj;
26979 fail:
26980 return NULL;
26981 }
26982
26983
26984 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26985 PyObject *resultobj = 0;
26986 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26987 size_t arg2 ;
26988 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
26989 void *argp1 = 0 ;
26990 int res1 = 0 ;
26991 PyObject * obj0 = 0 ;
26992 PyObject * obj1 = 0 ;
26993 char * kwnames[] = {
26994 (char *) "self",(char *) "points", NULL
26995 };
26996
26997 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
26998 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26999 if (!SWIG_IsOK(res1)) {
27000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27001 }
27002 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27003 {
27004 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27005 if (arg3 == NULL) SWIG_fail;
27006 }
27007 {
27008 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
27009 if (PyErr_Occurred()) SWIG_fail;
27010 }
27011 resultobj = SWIG_Py_Void();
27012 {
27013 if (arg3) delete [] arg3;
27014 }
27015 return resultobj;
27016 fail:
27017 {
27018 if (arg3) delete [] arg3;
27019 }
27020 return NULL;
27021 }
27022
27023
27024 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeDisconnectedLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27025 PyObject *resultobj = 0;
27026 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27027 PyObject *arg2 = (PyObject *) 0 ;
27028 PyObject *arg3 = (PyObject *) 0 ;
27029 void *argp1 = 0 ;
27030 int res1 = 0 ;
27031 PyObject * obj0 = 0 ;
27032 PyObject * obj1 = 0 ;
27033 PyObject * obj2 = 0 ;
27034 char * kwnames[] = {
27035 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
27036 };
27037
27038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeDisconnectedLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27040 if (!SWIG_IsOK(res1)) {
27041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeDisconnectedLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27042 }
27043 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27044 arg2 = obj1;
27045 arg3 = obj2;
27046 {
27047 wxGraphicsContext_StrokeDisconnectedLines(arg1,arg2,arg3);
27048 if (PyErr_Occurred()) SWIG_fail;
27049 }
27050 resultobj = SWIG_Py_Void();
27051 return resultobj;
27052 fail:
27053 return NULL;
27054 }
27055
27056
27057 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27058 PyObject *resultobj = 0;
27059 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27060 size_t arg2 ;
27061 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27062 int arg4 = (int) wxWINDING_RULE ;
27063 void *argp1 = 0 ;
27064 int res1 = 0 ;
27065 int val4 ;
27066 int ecode4 = 0 ;
27067 PyObject * obj0 = 0 ;
27068 PyObject * obj1 = 0 ;
27069 PyObject * obj2 = 0 ;
27070 char * kwnames[] = {
27071 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
27072 };
27073
27074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27076 if (!SWIG_IsOK(res1)) {
27077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27078 }
27079 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27080 {
27081 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27082 if (arg3 == NULL) SWIG_fail;
27083 }
27084 if (obj2) {
27085 ecode4 = SWIG_AsVal_int(obj2, &val4);
27086 if (!SWIG_IsOK(ecode4)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27088 }
27089 arg4 = static_cast< int >(val4);
27090 }
27091 {
27092 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27093 if (PyErr_Occurred()) SWIG_fail;
27094 }
27095 resultobj = SWIG_Py_Void();
27096 {
27097 if (arg3) delete [] arg3;
27098 }
27099 return resultobj;
27100 fail:
27101 {
27102 if (arg3) delete [] arg3;
27103 }
27104 return NULL;
27105 }
27106
27107
27108 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27109 PyObject *resultobj = 0;
27110 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27111 wxDouble arg2 ;
27112 wxDouble arg3 ;
27113 wxDouble arg4 ;
27114 wxDouble arg5 ;
27115 void *argp1 = 0 ;
27116 int res1 = 0 ;
27117 double val2 ;
27118 int ecode2 = 0 ;
27119 double val3 ;
27120 int ecode3 = 0 ;
27121 double val4 ;
27122 int ecode4 = 0 ;
27123 double val5 ;
27124 int ecode5 = 0 ;
27125 PyObject * obj0 = 0 ;
27126 PyObject * obj1 = 0 ;
27127 PyObject * obj2 = 0 ;
27128 PyObject * obj3 = 0 ;
27129 PyObject * obj4 = 0 ;
27130 char * kwnames[] = {
27131 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27132 };
27133
27134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27136 if (!SWIG_IsOK(res1)) {
27137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27138 }
27139 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27140 ecode2 = SWIG_AsVal_double(obj1, &val2);
27141 if (!SWIG_IsOK(ecode2)) {
27142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27143 }
27144 arg2 = static_cast< wxDouble >(val2);
27145 ecode3 = SWIG_AsVal_double(obj2, &val3);
27146 if (!SWIG_IsOK(ecode3)) {
27147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27148 }
27149 arg3 = static_cast< wxDouble >(val3);
27150 ecode4 = SWIG_AsVal_double(obj3, &val4);
27151 if (!SWIG_IsOK(ecode4)) {
27152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27153 }
27154 arg4 = static_cast< wxDouble >(val4);
27155 ecode5 = SWIG_AsVal_double(obj4, &val5);
27156 if (!SWIG_IsOK(ecode5)) {
27157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27158 }
27159 arg5 = static_cast< wxDouble >(val5);
27160 {
27161 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27162 if (PyErr_Occurred()) SWIG_fail;
27163 }
27164 resultobj = SWIG_Py_Void();
27165 return resultobj;
27166 fail:
27167 return NULL;
27168 }
27169
27170
27171 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27172 PyObject *resultobj = 0;
27173 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27174 wxDouble arg2 ;
27175 wxDouble arg3 ;
27176 wxDouble arg4 ;
27177 wxDouble arg5 ;
27178 void *argp1 = 0 ;
27179 int res1 = 0 ;
27180 double val2 ;
27181 int ecode2 = 0 ;
27182 double val3 ;
27183 int ecode3 = 0 ;
27184 double val4 ;
27185 int ecode4 = 0 ;
27186 double val5 ;
27187 int ecode5 = 0 ;
27188 PyObject * obj0 = 0 ;
27189 PyObject * obj1 = 0 ;
27190 PyObject * obj2 = 0 ;
27191 PyObject * obj3 = 0 ;
27192 PyObject * obj4 = 0 ;
27193 char * kwnames[] = {
27194 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27195 };
27196
27197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27199 if (!SWIG_IsOK(res1)) {
27200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27201 }
27202 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27203 ecode2 = SWIG_AsVal_double(obj1, &val2);
27204 if (!SWIG_IsOK(ecode2)) {
27205 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27206 }
27207 arg2 = static_cast< wxDouble >(val2);
27208 ecode3 = SWIG_AsVal_double(obj2, &val3);
27209 if (!SWIG_IsOK(ecode3)) {
27210 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27211 }
27212 arg3 = static_cast< wxDouble >(val3);
27213 ecode4 = SWIG_AsVal_double(obj3, &val4);
27214 if (!SWIG_IsOK(ecode4)) {
27215 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27216 }
27217 arg4 = static_cast< wxDouble >(val4);
27218 ecode5 = SWIG_AsVal_double(obj4, &val5);
27219 if (!SWIG_IsOK(ecode5)) {
27220 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27221 }
27222 arg5 = static_cast< wxDouble >(val5);
27223 {
27224 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27225 if (PyErr_Occurred()) SWIG_fail;
27226 }
27227 resultobj = SWIG_Py_Void();
27228 return resultobj;
27229 fail:
27230 return NULL;
27231 }
27232
27233
27234 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27235 PyObject *resultobj = 0;
27236 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27237 wxDouble arg2 ;
27238 wxDouble arg3 ;
27239 wxDouble arg4 ;
27240 wxDouble arg5 ;
27241 wxDouble arg6 ;
27242 void *argp1 = 0 ;
27243 int res1 = 0 ;
27244 double val2 ;
27245 int ecode2 = 0 ;
27246 double val3 ;
27247 int ecode3 = 0 ;
27248 double val4 ;
27249 int ecode4 = 0 ;
27250 double val5 ;
27251 int ecode5 = 0 ;
27252 double val6 ;
27253 int ecode6 = 0 ;
27254 PyObject * obj0 = 0 ;
27255 PyObject * obj1 = 0 ;
27256 PyObject * obj2 = 0 ;
27257 PyObject * obj3 = 0 ;
27258 PyObject * obj4 = 0 ;
27259 PyObject * obj5 = 0 ;
27260 char * kwnames[] = {
27261 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27262 };
27263
27264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27266 if (!SWIG_IsOK(res1)) {
27267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27268 }
27269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27270 ecode2 = SWIG_AsVal_double(obj1, &val2);
27271 if (!SWIG_IsOK(ecode2)) {
27272 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27273 }
27274 arg2 = static_cast< wxDouble >(val2);
27275 ecode3 = SWIG_AsVal_double(obj2, &val3);
27276 if (!SWIG_IsOK(ecode3)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27278 }
27279 arg3 = static_cast< wxDouble >(val3);
27280 ecode4 = SWIG_AsVal_double(obj3, &val4);
27281 if (!SWIG_IsOK(ecode4)) {
27282 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27283 }
27284 arg4 = static_cast< wxDouble >(val4);
27285 ecode5 = SWIG_AsVal_double(obj4, &val5);
27286 if (!SWIG_IsOK(ecode5)) {
27287 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27288 }
27289 arg5 = static_cast< wxDouble >(val5);
27290 ecode6 = SWIG_AsVal_double(obj5, &val6);
27291 if (!SWIG_IsOK(ecode6)) {
27292 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27293 }
27294 arg6 = static_cast< wxDouble >(val6);
27295 {
27296 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27297 if (PyErr_Occurred()) SWIG_fail;
27298 }
27299 resultobj = SWIG_Py_Void();
27300 return resultobj;
27301 fail:
27302 return NULL;
27303 }
27304
27305
27306 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27307 PyObject *obj;
27308 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27309 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27310 return SWIG_Py_Void();
27311 }
27312
27313 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj = 0;
27315 wxWindowDC *arg1 = 0 ;
27316 wxGCDC *result = 0 ;
27317 void *argp1 = 0 ;
27318 int res1 = 0 ;
27319 PyObject * obj0 = 0 ;
27320 char * kwnames[] = {
27321 (char *) "dc", NULL
27322 };
27323
27324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27328 }
27329 if (!argp1) {
27330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27331 }
27332 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27333 {
27334 if (!wxPyCheckForApp()) SWIG_fail;
27335 PyThreadState* __tstate = wxPyBeginAllowThreads();
27336 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27337 wxPyEndAllowThreads(__tstate);
27338 if (PyErr_Occurred()) SWIG_fail;
27339 }
27340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27341 return resultobj;
27342 fail:
27343 return NULL;
27344 }
27345
27346
27347 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27348 PyObject *resultobj = 0;
27349 wxGCDC *arg1 = (wxGCDC *) 0 ;
27350 void *argp1 = 0 ;
27351 int res1 = 0 ;
27352 PyObject *swig_obj[1] ;
27353
27354 if (!args) SWIG_fail;
27355 swig_obj[0] = args;
27356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27357 if (!SWIG_IsOK(res1)) {
27358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27359 }
27360 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27361 {
27362 delete arg1;
27363
27364 if (PyErr_Occurred()) SWIG_fail;
27365 }
27366 resultobj = SWIG_Py_Void();
27367 return resultobj;
27368 fail:
27369 return NULL;
27370 }
27371
27372
27373 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27374 PyObject *resultobj = 0;
27375 wxGCDC *arg1 = (wxGCDC *) 0 ;
27376 wxGraphicsContext *result = 0 ;
27377 void *argp1 = 0 ;
27378 int res1 = 0 ;
27379 PyObject *swig_obj[1] ;
27380
27381 if (!args) SWIG_fail;
27382 swig_obj[0] = args;
27383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27384 if (!SWIG_IsOK(res1)) {
27385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27386 }
27387 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27388 {
27389 result = (wxGraphicsContext *)(arg1)->GetGraphicContext();
27390 if (PyErr_Occurred()) SWIG_fail;
27391 }
27392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27393 return resultobj;
27394 fail:
27395 return NULL;
27396 }
27397
27398
27399 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27400 PyObject *obj;
27401 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27402 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27403 return SWIG_Py_Void();
27404 }
27405
27406 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27407 return SWIG_Python_InitShadowInstance(args);
27408 }
27409
27410 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27411 PyObject *resultobj = 0;
27412 wxOverlay *result = 0 ;
27413
27414 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27415 {
27416 PyThreadState* __tstate = wxPyBeginAllowThreads();
27417 result = (wxOverlay *)new wxOverlay();
27418 wxPyEndAllowThreads(__tstate);
27419 if (PyErr_Occurred()) SWIG_fail;
27420 }
27421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27422 return resultobj;
27423 fail:
27424 return NULL;
27425 }
27426
27427
27428 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27429 PyObject *resultobj = 0;
27430 wxOverlay *arg1 = (wxOverlay *) 0 ;
27431 void *argp1 = 0 ;
27432 int res1 = 0 ;
27433 PyObject *swig_obj[1] ;
27434
27435 if (!args) SWIG_fail;
27436 swig_obj[0] = args;
27437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27438 if (!SWIG_IsOK(res1)) {
27439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27440 }
27441 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27442 {
27443 PyThreadState* __tstate = wxPyBeginAllowThreads();
27444 delete arg1;
27445
27446 wxPyEndAllowThreads(__tstate);
27447 if (PyErr_Occurred()) SWIG_fail;
27448 }
27449 resultobj = SWIG_Py_Void();
27450 return resultobj;
27451 fail:
27452 return NULL;
27453 }
27454
27455
27456 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27457 PyObject *resultobj = 0;
27458 wxOverlay *arg1 = (wxOverlay *) 0 ;
27459 void *argp1 = 0 ;
27460 int res1 = 0 ;
27461 PyObject *swig_obj[1] ;
27462
27463 if (!args) SWIG_fail;
27464 swig_obj[0] = args;
27465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27466 if (!SWIG_IsOK(res1)) {
27467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27468 }
27469 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27470 {
27471 PyThreadState* __tstate = wxPyBeginAllowThreads();
27472 (arg1)->Reset();
27473 wxPyEndAllowThreads(__tstate);
27474 if (PyErr_Occurred()) SWIG_fail;
27475 }
27476 resultobj = SWIG_Py_Void();
27477 return resultobj;
27478 fail:
27479 return NULL;
27480 }
27481
27482
27483 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27484 PyObject *obj;
27485 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27486 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27487 return SWIG_Py_Void();
27488 }
27489
27490 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27491 return SWIG_Python_InitShadowInstance(args);
27492 }
27493
27494 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27495 PyObject *resultobj = 0;
27496 wxOverlay *arg1 = 0 ;
27497 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27498 int arg3 ;
27499 int arg4 ;
27500 int arg5 ;
27501 int arg6 ;
27502 wxDCOverlay *result = 0 ;
27503 void *argp1 = 0 ;
27504 int res1 = 0 ;
27505 void *argp2 = 0 ;
27506 int res2 = 0 ;
27507 int val3 ;
27508 int ecode3 = 0 ;
27509 int val4 ;
27510 int ecode4 = 0 ;
27511 int val5 ;
27512 int ecode5 = 0 ;
27513 int val6 ;
27514 int ecode6 = 0 ;
27515
27516 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27518 if (!SWIG_IsOK(res1)) {
27519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27520 }
27521 if (!argp1) {
27522 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27523 }
27524 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27525 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27526 if (!SWIG_IsOK(res2)) {
27527 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27528 }
27529 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27530 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27531 if (!SWIG_IsOK(ecode3)) {
27532 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27533 }
27534 arg3 = static_cast< int >(val3);
27535 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27536 if (!SWIG_IsOK(ecode4)) {
27537 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27538 }
27539 arg4 = static_cast< int >(val4);
27540 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27541 if (!SWIG_IsOK(ecode5)) {
27542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27543 }
27544 arg5 = static_cast< int >(val5);
27545 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27546 if (!SWIG_IsOK(ecode6)) {
27547 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27548 }
27549 arg6 = static_cast< int >(val6);
27550 {
27551 PyThreadState* __tstate = wxPyBeginAllowThreads();
27552 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27553 wxPyEndAllowThreads(__tstate);
27554 if (PyErr_Occurred()) SWIG_fail;
27555 }
27556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27557 return resultobj;
27558 fail:
27559 return NULL;
27560 }
27561
27562
27563 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27564 PyObject *resultobj = 0;
27565 wxOverlay *arg1 = 0 ;
27566 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27567 wxDCOverlay *result = 0 ;
27568 void *argp1 = 0 ;
27569 int res1 = 0 ;
27570 void *argp2 = 0 ;
27571 int res2 = 0 ;
27572
27573 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27574 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27575 if (!SWIG_IsOK(res1)) {
27576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27577 }
27578 if (!argp1) {
27579 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27580 }
27581 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27582 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27583 if (!SWIG_IsOK(res2)) {
27584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27585 }
27586 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27587 {
27588 PyThreadState* __tstate = wxPyBeginAllowThreads();
27589 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27590 wxPyEndAllowThreads(__tstate);
27591 if (PyErr_Occurred()) SWIG_fail;
27592 }
27593 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27594 return resultobj;
27595 fail:
27596 return NULL;
27597 }
27598
27599
27600 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27601 int argc;
27602 PyObject *argv[7];
27603
27604 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27605 --argc;
27606 if (argc == 2) {
27607 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27608 }
27609 if (argc == 6) {
27610 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27611 }
27612
27613 fail:
27614 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27615 return NULL;
27616 }
27617
27618
27619 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27620 PyObject *resultobj = 0;
27621 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27622 void *argp1 = 0 ;
27623 int res1 = 0 ;
27624 PyObject *swig_obj[1] ;
27625
27626 if (!args) SWIG_fail;
27627 swig_obj[0] = args;
27628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27629 if (!SWIG_IsOK(res1)) {
27630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27631 }
27632 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27633 {
27634 PyThreadState* __tstate = wxPyBeginAllowThreads();
27635 delete arg1;
27636
27637 wxPyEndAllowThreads(__tstate);
27638 if (PyErr_Occurred()) SWIG_fail;
27639 }
27640 resultobj = SWIG_Py_Void();
27641 return resultobj;
27642 fail:
27643 return NULL;
27644 }
27645
27646
27647 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27648 PyObject *resultobj = 0;
27649 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27650 void *argp1 = 0 ;
27651 int res1 = 0 ;
27652 PyObject *swig_obj[1] ;
27653
27654 if (!args) SWIG_fail;
27655 swig_obj[0] = args;
27656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27657 if (!SWIG_IsOK(res1)) {
27658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27659 }
27660 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27661 {
27662 PyThreadState* __tstate = wxPyBeginAllowThreads();
27663 (arg1)->Clear();
27664 wxPyEndAllowThreads(__tstate);
27665 if (PyErr_Occurred()) SWIG_fail;
27666 }
27667 resultobj = SWIG_Py_Void();
27668 return resultobj;
27669 fail:
27670 return NULL;
27671 }
27672
27673
27674 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27675 PyObject *obj;
27676 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27677 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27678 return SWIG_Py_Void();
27679 }
27680
27681 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27682 return SWIG_Python_InitShadowInstance(args);
27683 }
27684
27685 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27686 PyObject *resultobj = 0;
27687 int arg1 ;
27688 int arg2 ;
27689 int arg3 = (int) true ;
27690 int arg4 = (int) 1 ;
27691 wxImageList *result = 0 ;
27692 int val1 ;
27693 int ecode1 = 0 ;
27694 int val2 ;
27695 int ecode2 = 0 ;
27696 int val3 ;
27697 int ecode3 = 0 ;
27698 int val4 ;
27699 int ecode4 = 0 ;
27700 PyObject * obj0 = 0 ;
27701 PyObject * obj1 = 0 ;
27702 PyObject * obj2 = 0 ;
27703 PyObject * obj3 = 0 ;
27704 char * kwnames[] = {
27705 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27706 };
27707
27708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27709 ecode1 = SWIG_AsVal_int(obj0, &val1);
27710 if (!SWIG_IsOK(ecode1)) {
27711 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27712 }
27713 arg1 = static_cast< int >(val1);
27714 ecode2 = SWIG_AsVal_int(obj1, &val2);
27715 if (!SWIG_IsOK(ecode2)) {
27716 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27717 }
27718 arg2 = static_cast< int >(val2);
27719 if (obj2) {
27720 ecode3 = SWIG_AsVal_int(obj2, &val3);
27721 if (!SWIG_IsOK(ecode3)) {
27722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27723 }
27724 arg3 = static_cast< int >(val3);
27725 }
27726 if (obj3) {
27727 ecode4 = SWIG_AsVal_int(obj3, &val4);
27728 if (!SWIG_IsOK(ecode4)) {
27729 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27730 }
27731 arg4 = static_cast< int >(val4);
27732 }
27733 {
27734 if (!wxPyCheckForApp()) SWIG_fail;
27735 PyThreadState* __tstate = wxPyBeginAllowThreads();
27736 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27737 wxPyEndAllowThreads(__tstate);
27738 if (PyErr_Occurred()) SWIG_fail;
27739 }
27740 {
27741 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
27742 }
27743 return resultobj;
27744 fail:
27745 return NULL;
27746 }
27747
27748
27749 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27750 PyObject *resultobj = 0;
27751 wxImageList *arg1 = (wxImageList *) 0 ;
27752 void *argp1 = 0 ;
27753 int res1 = 0 ;
27754 PyObject *swig_obj[1] ;
27755
27756 if (!args) SWIG_fail;
27757 swig_obj[0] = args;
27758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27759 if (!SWIG_IsOK(res1)) {
27760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27761 }
27762 arg1 = reinterpret_cast< wxImageList * >(argp1);
27763 {
27764 PyThreadState* __tstate = wxPyBeginAllowThreads();
27765 delete arg1;
27766
27767 wxPyEndAllowThreads(__tstate);
27768 if (PyErr_Occurred()) SWIG_fail;
27769 }
27770 resultobj = SWIG_Py_Void();
27771 return resultobj;
27772 fail:
27773 return NULL;
27774 }
27775
27776
27777 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27778 PyObject *resultobj = 0;
27779 wxImageList *arg1 = (wxImageList *) 0 ;
27780 wxBitmap *arg2 = 0 ;
27781 wxBitmap const &arg3_defvalue = wxNullBitmap ;
27782 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
27783 int result;
27784 void *argp1 = 0 ;
27785 int res1 = 0 ;
27786 void *argp2 = 0 ;
27787 int res2 = 0 ;
27788 void *argp3 = 0 ;
27789 int res3 = 0 ;
27790 PyObject * obj0 = 0 ;
27791 PyObject * obj1 = 0 ;
27792 PyObject * obj2 = 0 ;
27793 char * kwnames[] = {
27794 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
27795 };
27796
27797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27799 if (!SWIG_IsOK(res1)) {
27800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
27801 }
27802 arg1 = reinterpret_cast< wxImageList * >(argp1);
27803 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27804 if (!SWIG_IsOK(res2)) {
27805 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27806 }
27807 if (!argp2) {
27808 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27809 }
27810 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27811 if (obj2) {
27812 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
27813 if (!SWIG_IsOK(res3)) {
27814 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27815 }
27816 if (!argp3) {
27817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
27818 }
27819 arg3 = reinterpret_cast< wxBitmap * >(argp3);
27820 }
27821 {
27822 PyThreadState* __tstate = wxPyBeginAllowThreads();
27823 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
27824 wxPyEndAllowThreads(__tstate);
27825 if (PyErr_Occurred()) SWIG_fail;
27826 }
27827 resultobj = SWIG_From_int(static_cast< int >(result));
27828 return resultobj;
27829 fail:
27830 return NULL;
27831 }
27832
27833
27834 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27835 PyObject *resultobj = 0;
27836 wxImageList *arg1 = (wxImageList *) 0 ;
27837 wxBitmap *arg2 = 0 ;
27838 wxColour *arg3 = 0 ;
27839 int result;
27840 void *argp1 = 0 ;
27841 int res1 = 0 ;
27842 void *argp2 = 0 ;
27843 int res2 = 0 ;
27844 wxColour temp3 ;
27845 PyObject * obj0 = 0 ;
27846 PyObject * obj1 = 0 ;
27847 PyObject * obj2 = 0 ;
27848 char * kwnames[] = {
27849 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
27850 };
27851
27852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27854 if (!SWIG_IsOK(res1)) {
27855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
27856 }
27857 arg1 = reinterpret_cast< wxImageList * >(argp1);
27858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27859 if (!SWIG_IsOK(res2)) {
27860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27861 }
27862 if (!argp2) {
27863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27864 }
27865 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27866 {
27867 arg3 = &temp3;
27868 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
27869 }
27870 {
27871 PyThreadState* __tstate = wxPyBeginAllowThreads();
27872 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
27873 wxPyEndAllowThreads(__tstate);
27874 if (PyErr_Occurred()) SWIG_fail;
27875 }
27876 resultobj = SWIG_From_int(static_cast< int >(result));
27877 return resultobj;
27878 fail:
27879 return NULL;
27880 }
27881
27882
27883 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27884 PyObject *resultobj = 0;
27885 wxImageList *arg1 = (wxImageList *) 0 ;
27886 wxIcon *arg2 = 0 ;
27887 int result;
27888 void *argp1 = 0 ;
27889 int res1 = 0 ;
27890 void *argp2 = 0 ;
27891 int res2 = 0 ;
27892 PyObject * obj0 = 0 ;
27893 PyObject * obj1 = 0 ;
27894 char * kwnames[] = {
27895 (char *) "self",(char *) "icon", NULL
27896 };
27897
27898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27900 if (!SWIG_IsOK(res1)) {
27901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
27902 }
27903 arg1 = reinterpret_cast< wxImageList * >(argp1);
27904 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27905 if (!SWIG_IsOK(res2)) {
27906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27907 }
27908 if (!argp2) {
27909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27910 }
27911 arg2 = reinterpret_cast< wxIcon * >(argp2);
27912 {
27913 PyThreadState* __tstate = wxPyBeginAllowThreads();
27914 result = (int)(arg1)->Add((wxIcon const &)*arg2);
27915 wxPyEndAllowThreads(__tstate);
27916 if (PyErr_Occurred()) SWIG_fail;
27917 }
27918 resultobj = SWIG_From_int(static_cast< int >(result));
27919 return resultobj;
27920 fail:
27921 return NULL;
27922 }
27923
27924
27925 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27926 PyObject *resultobj = 0;
27927 wxImageList *arg1 = (wxImageList *) 0 ;
27928 int arg2 ;
27929 SwigValueWrapper<wxBitmap > result;
27930 void *argp1 = 0 ;
27931 int res1 = 0 ;
27932 int val2 ;
27933 int ecode2 = 0 ;
27934 PyObject * obj0 = 0 ;
27935 PyObject * obj1 = 0 ;
27936 char * kwnames[] = {
27937 (char *) "self",(char *) "index", NULL
27938 };
27939
27940 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
27941 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27942 if (!SWIG_IsOK(res1)) {
27943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
27944 }
27945 arg1 = reinterpret_cast< wxImageList * >(argp1);
27946 ecode2 = SWIG_AsVal_int(obj1, &val2);
27947 if (!SWIG_IsOK(ecode2)) {
27948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
27949 }
27950 arg2 = static_cast< int >(val2);
27951 {
27952 PyThreadState* __tstate = wxPyBeginAllowThreads();
27953 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
27954 wxPyEndAllowThreads(__tstate);
27955 if (PyErr_Occurred()) SWIG_fail;
27956 }
27957 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
27958 return resultobj;
27959 fail:
27960 return NULL;
27961 }
27962
27963
27964 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27965 PyObject *resultobj = 0;
27966 wxImageList *arg1 = (wxImageList *) 0 ;
27967 int arg2 ;
27968 wxIcon result;
27969 void *argp1 = 0 ;
27970 int res1 = 0 ;
27971 int val2 ;
27972 int ecode2 = 0 ;
27973 PyObject * obj0 = 0 ;
27974 PyObject * obj1 = 0 ;
27975 char * kwnames[] = {
27976 (char *) "self",(char *) "index", NULL
27977 };
27978
27979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
27980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
27981 if (!SWIG_IsOK(res1)) {
27982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
27983 }
27984 arg1 = reinterpret_cast< wxImageList * >(argp1);
27985 ecode2 = SWIG_AsVal_int(obj1, &val2);
27986 if (!SWIG_IsOK(ecode2)) {
27987 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
27988 }
27989 arg2 = static_cast< int >(val2);
27990 {
27991 PyThreadState* __tstate = wxPyBeginAllowThreads();
27992 result = ((wxImageList const *)arg1)->GetIcon(arg2);
27993 wxPyEndAllowThreads(__tstate);
27994 if (PyErr_Occurred()) SWIG_fail;
27995 }
27996 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
27997 return resultobj;
27998 fail:
27999 return NULL;
28000 }
28001
28002
28003 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28004 PyObject *resultobj = 0;
28005 wxImageList *arg1 = (wxImageList *) 0 ;
28006 int arg2 ;
28007 wxBitmap *arg3 = 0 ;
28008 wxBitmap const &arg4_defvalue = wxNullBitmap ;
28009 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
28010 bool result;
28011 void *argp1 = 0 ;
28012 int res1 = 0 ;
28013 int val2 ;
28014 int ecode2 = 0 ;
28015 void *argp3 = 0 ;
28016 int res3 = 0 ;
28017 void *argp4 = 0 ;
28018 int res4 = 0 ;
28019 PyObject * obj0 = 0 ;
28020 PyObject * obj1 = 0 ;
28021 PyObject * obj2 = 0 ;
28022 PyObject * obj3 = 0 ;
28023 char * kwnames[] = {
28024 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
28025 };
28026
28027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28029 if (!SWIG_IsOK(res1)) {
28030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
28031 }
28032 arg1 = reinterpret_cast< wxImageList * >(argp1);
28033 ecode2 = SWIG_AsVal_int(obj1, &val2);
28034 if (!SWIG_IsOK(ecode2)) {
28035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
28036 }
28037 arg2 = static_cast< int >(val2);
28038 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28039 if (!SWIG_IsOK(res3)) {
28040 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28041 }
28042 if (!argp3) {
28043 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28044 }
28045 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28046 if (obj3) {
28047 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28048 if (!SWIG_IsOK(res4)) {
28049 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28050 }
28051 if (!argp4) {
28052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28053 }
28054 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28055 }
28056 {
28057 PyThreadState* __tstate = wxPyBeginAllowThreads();
28058 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28059 wxPyEndAllowThreads(__tstate);
28060 if (PyErr_Occurred()) SWIG_fail;
28061 }
28062 {
28063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28064 }
28065 return resultobj;
28066 fail:
28067 return NULL;
28068 }
28069
28070
28071 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28072 PyObject *resultobj = 0;
28073 wxImageList *arg1 = (wxImageList *) 0 ;
28074 int arg2 ;
28075 wxDC *arg3 = 0 ;
28076 int arg4 ;
28077 int arg5 ;
28078 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28079 bool arg7 = (bool) (bool)false ;
28080 bool result;
28081 void *argp1 = 0 ;
28082 int res1 = 0 ;
28083 int val2 ;
28084 int ecode2 = 0 ;
28085 void *argp3 = 0 ;
28086 int res3 = 0 ;
28087 int val4 ;
28088 int ecode4 = 0 ;
28089 int val5 ;
28090 int ecode5 = 0 ;
28091 int val6 ;
28092 int ecode6 = 0 ;
28093 bool val7 ;
28094 int ecode7 = 0 ;
28095 PyObject * obj0 = 0 ;
28096 PyObject * obj1 = 0 ;
28097 PyObject * obj2 = 0 ;
28098 PyObject * obj3 = 0 ;
28099 PyObject * obj4 = 0 ;
28100 PyObject * obj5 = 0 ;
28101 PyObject * obj6 = 0 ;
28102 char * kwnames[] = {
28103 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28104 };
28105
28106 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28107 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28108 if (!SWIG_IsOK(res1)) {
28109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28110 }
28111 arg1 = reinterpret_cast< wxImageList * >(argp1);
28112 ecode2 = SWIG_AsVal_int(obj1, &val2);
28113 if (!SWIG_IsOK(ecode2)) {
28114 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28115 }
28116 arg2 = static_cast< int >(val2);
28117 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28118 if (!SWIG_IsOK(res3)) {
28119 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28120 }
28121 if (!argp3) {
28122 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28123 }
28124 arg3 = reinterpret_cast< wxDC * >(argp3);
28125 ecode4 = SWIG_AsVal_int(obj3, &val4);
28126 if (!SWIG_IsOK(ecode4)) {
28127 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28128 }
28129 arg4 = static_cast< int >(val4);
28130 ecode5 = SWIG_AsVal_int(obj4, &val5);
28131 if (!SWIG_IsOK(ecode5)) {
28132 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28133 }
28134 arg5 = static_cast< int >(val5);
28135 if (obj5) {
28136 ecode6 = SWIG_AsVal_int(obj5, &val6);
28137 if (!SWIG_IsOK(ecode6)) {
28138 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28139 }
28140 arg6 = static_cast< int >(val6);
28141 }
28142 if (obj6) {
28143 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28144 if (!SWIG_IsOK(ecode7)) {
28145 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28146 }
28147 arg7 = static_cast< bool >(val7);
28148 }
28149 {
28150 PyThreadState* __tstate = wxPyBeginAllowThreads();
28151 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28152 wxPyEndAllowThreads(__tstate);
28153 if (PyErr_Occurred()) SWIG_fail;
28154 }
28155 {
28156 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28157 }
28158 return resultobj;
28159 fail:
28160 return NULL;
28161 }
28162
28163
28164 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28165 PyObject *resultobj = 0;
28166 wxImageList *arg1 = (wxImageList *) 0 ;
28167 int result;
28168 void *argp1 = 0 ;
28169 int res1 = 0 ;
28170 PyObject *swig_obj[1] ;
28171
28172 if (!args) SWIG_fail;
28173 swig_obj[0] = args;
28174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28175 if (!SWIG_IsOK(res1)) {
28176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28177 }
28178 arg1 = reinterpret_cast< wxImageList * >(argp1);
28179 {
28180 PyThreadState* __tstate = wxPyBeginAllowThreads();
28181 result = (int)(arg1)->GetImageCount();
28182 wxPyEndAllowThreads(__tstate);
28183 if (PyErr_Occurred()) SWIG_fail;
28184 }
28185 resultobj = SWIG_From_int(static_cast< int >(result));
28186 return resultobj;
28187 fail:
28188 return NULL;
28189 }
28190
28191
28192 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28193 PyObject *resultobj = 0;
28194 wxImageList *arg1 = (wxImageList *) 0 ;
28195 int arg2 ;
28196 bool result;
28197 void *argp1 = 0 ;
28198 int res1 = 0 ;
28199 int val2 ;
28200 int ecode2 = 0 ;
28201 PyObject * obj0 = 0 ;
28202 PyObject * obj1 = 0 ;
28203 char * kwnames[] = {
28204 (char *) "self",(char *) "index", NULL
28205 };
28206
28207 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28208 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28209 if (!SWIG_IsOK(res1)) {
28210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28211 }
28212 arg1 = reinterpret_cast< wxImageList * >(argp1);
28213 ecode2 = SWIG_AsVal_int(obj1, &val2);
28214 if (!SWIG_IsOK(ecode2)) {
28215 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28216 }
28217 arg2 = static_cast< int >(val2);
28218 {
28219 PyThreadState* __tstate = wxPyBeginAllowThreads();
28220 result = (bool)(arg1)->Remove(arg2);
28221 wxPyEndAllowThreads(__tstate);
28222 if (PyErr_Occurred()) SWIG_fail;
28223 }
28224 {
28225 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28226 }
28227 return resultobj;
28228 fail:
28229 return NULL;
28230 }
28231
28232
28233 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28234 PyObject *resultobj = 0;
28235 wxImageList *arg1 = (wxImageList *) 0 ;
28236 bool result;
28237 void *argp1 = 0 ;
28238 int res1 = 0 ;
28239 PyObject *swig_obj[1] ;
28240
28241 if (!args) SWIG_fail;
28242 swig_obj[0] = args;
28243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28244 if (!SWIG_IsOK(res1)) {
28245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28246 }
28247 arg1 = reinterpret_cast< wxImageList * >(argp1);
28248 {
28249 PyThreadState* __tstate = wxPyBeginAllowThreads();
28250 result = (bool)(arg1)->RemoveAll();
28251 wxPyEndAllowThreads(__tstate);
28252 if (PyErr_Occurred()) SWIG_fail;
28253 }
28254 {
28255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28256 }
28257 return resultobj;
28258 fail:
28259 return NULL;
28260 }
28261
28262
28263 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28264 PyObject *resultobj = 0;
28265 wxImageList *arg1 = (wxImageList *) 0 ;
28266 int arg2 ;
28267 int *arg3 = 0 ;
28268 int *arg4 = 0 ;
28269 void *argp1 = 0 ;
28270 int res1 = 0 ;
28271 int val2 ;
28272 int ecode2 = 0 ;
28273 int temp3 ;
28274 int res3 = SWIG_TMPOBJ ;
28275 int temp4 ;
28276 int res4 = SWIG_TMPOBJ ;
28277 PyObject * obj0 = 0 ;
28278 PyObject * obj1 = 0 ;
28279 char * kwnames[] = {
28280 (char *) "self",(char *) "index", NULL
28281 };
28282
28283 arg3 = &temp3;
28284 arg4 = &temp4;
28285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28287 if (!SWIG_IsOK(res1)) {
28288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28289 }
28290 arg1 = reinterpret_cast< wxImageList * >(argp1);
28291 ecode2 = SWIG_AsVal_int(obj1, &val2);
28292 if (!SWIG_IsOK(ecode2)) {
28293 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28294 }
28295 arg2 = static_cast< int >(val2);
28296 {
28297 PyThreadState* __tstate = wxPyBeginAllowThreads();
28298 (arg1)->GetSize(arg2,*arg3,*arg4);
28299 wxPyEndAllowThreads(__tstate);
28300 if (PyErr_Occurred()) SWIG_fail;
28301 }
28302 resultobj = SWIG_Py_Void();
28303 if (SWIG_IsTmpObj(res3)) {
28304 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28305 } else {
28306 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28307 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28308 }
28309 if (SWIG_IsTmpObj(res4)) {
28310 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28311 } else {
28312 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28313 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28314 }
28315 return resultobj;
28316 fail:
28317 return NULL;
28318 }
28319
28320
28321 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28322 PyObject *obj;
28323 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28324 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28325 return SWIG_Py_Void();
28326 }
28327
28328 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28329 return SWIG_Python_InitShadowInstance(args);
28330 }
28331
28332 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28333 PyObject *resultobj = 0;
28334 wxStockGDI *result = 0 ;
28335
28336 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28337 {
28338 PyThreadState* __tstate = wxPyBeginAllowThreads();
28339 result = (wxStockGDI *)new wxStockGDI();
28340 wxPyEndAllowThreads(__tstate);
28341 if (PyErr_Occurred()) SWIG_fail;
28342 }
28343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28344 return resultobj;
28345 fail:
28346 return NULL;
28347 }
28348
28349
28350 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28351 PyObject *resultobj = 0;
28352 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28353 void *argp1 = 0 ;
28354 int res1 = 0 ;
28355 PyObject *swig_obj[1] ;
28356
28357 if (!args) SWIG_fail;
28358 swig_obj[0] = args;
28359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28360 if (!SWIG_IsOK(res1)) {
28361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28362 }
28363 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28364 {
28365 PyThreadState* __tstate = wxPyBeginAllowThreads();
28366 delete arg1;
28367
28368 wxPyEndAllowThreads(__tstate);
28369 if (PyErr_Occurred()) SWIG_fail;
28370 }
28371 resultobj = SWIG_Py_Void();
28372 return resultobj;
28373 fail:
28374 return NULL;
28375 }
28376
28377
28378 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28379 PyObject *resultobj = 0;
28380
28381 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28382 {
28383 PyThreadState* __tstate = wxPyBeginAllowThreads();
28384 wxStockGDI::DeleteAll();
28385 wxPyEndAllowThreads(__tstate);
28386 if (PyErr_Occurred()) SWIG_fail;
28387 }
28388 resultobj = SWIG_Py_Void();
28389 return resultobj;
28390 fail:
28391 return NULL;
28392 }
28393
28394
28395 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28396 PyObject *resultobj = 0;
28397 wxStockGDI *result = 0 ;
28398
28399 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28400 {
28401 PyThreadState* __tstate = wxPyBeginAllowThreads();
28402 {
28403 wxStockGDI &_result_ref = wxStockGDI::instance();
28404 result = (wxStockGDI *) &_result_ref;
28405 }
28406 wxPyEndAllowThreads(__tstate);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28410 return resultobj;
28411 fail:
28412 return NULL;
28413 }
28414
28415
28416 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28417 PyObject *resultobj = 0;
28418 wxStockGDI::Item arg1 ;
28419 wxBrush *result = 0 ;
28420 int val1 ;
28421 int ecode1 = 0 ;
28422 PyObject * obj0 = 0 ;
28423 char * kwnames[] = {
28424 (char *) "item", NULL
28425 };
28426
28427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28428 ecode1 = SWIG_AsVal_int(obj0, &val1);
28429 if (!SWIG_IsOK(ecode1)) {
28430 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28431 }
28432 arg1 = static_cast< wxStockGDI::Item >(val1);
28433 {
28434 PyThreadState* __tstate = wxPyBeginAllowThreads();
28435 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28436 wxPyEndAllowThreads(__tstate);
28437 if (PyErr_Occurred()) SWIG_fail;
28438 }
28439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28440 return resultobj;
28441 fail:
28442 return NULL;
28443 }
28444
28445
28446 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28447 PyObject *resultobj = 0;
28448 wxStockGDI::Item arg1 ;
28449 wxColour *result = 0 ;
28450 int val1 ;
28451 int ecode1 = 0 ;
28452 PyObject * obj0 = 0 ;
28453 char * kwnames[] = {
28454 (char *) "item", NULL
28455 };
28456
28457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28458 ecode1 = SWIG_AsVal_int(obj0, &val1);
28459 if (!SWIG_IsOK(ecode1)) {
28460 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28461 }
28462 arg1 = static_cast< wxStockGDI::Item >(val1);
28463 {
28464 PyThreadState* __tstate = wxPyBeginAllowThreads();
28465 result = (wxColour *)wxStockGDI::GetColour(arg1);
28466 wxPyEndAllowThreads(__tstate);
28467 if (PyErr_Occurred()) SWIG_fail;
28468 }
28469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28470 return resultobj;
28471 fail:
28472 return NULL;
28473 }
28474
28475
28476 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28477 PyObject *resultobj = 0;
28478 wxStockGDI::Item arg1 ;
28479 wxCursor *result = 0 ;
28480 int val1 ;
28481 int ecode1 = 0 ;
28482 PyObject * obj0 = 0 ;
28483 char * kwnames[] = {
28484 (char *) "item", NULL
28485 };
28486
28487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28488 ecode1 = SWIG_AsVal_int(obj0, &val1);
28489 if (!SWIG_IsOK(ecode1)) {
28490 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28491 }
28492 arg1 = static_cast< wxStockGDI::Item >(val1);
28493 {
28494 PyThreadState* __tstate = wxPyBeginAllowThreads();
28495 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28496 wxPyEndAllowThreads(__tstate);
28497 if (PyErr_Occurred()) SWIG_fail;
28498 }
28499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28500 return resultobj;
28501 fail:
28502 return NULL;
28503 }
28504
28505
28506 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28507 PyObject *resultobj = 0;
28508 wxStockGDI::Item arg1 ;
28509 wxPen *result = 0 ;
28510 int val1 ;
28511 int ecode1 = 0 ;
28512 PyObject * obj0 = 0 ;
28513 char * kwnames[] = {
28514 (char *) "item", NULL
28515 };
28516
28517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28518 ecode1 = SWIG_AsVal_int(obj0, &val1);
28519 if (!SWIG_IsOK(ecode1)) {
28520 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28521 }
28522 arg1 = static_cast< wxStockGDI::Item >(val1);
28523 {
28524 PyThreadState* __tstate = wxPyBeginAllowThreads();
28525 result = (wxPen *)wxStockGDI::GetPen(arg1);
28526 wxPyEndAllowThreads(__tstate);
28527 if (PyErr_Occurred()) SWIG_fail;
28528 }
28529 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28530 return resultobj;
28531 fail:
28532 return NULL;
28533 }
28534
28535
28536 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28537 PyObject *resultobj = 0;
28538 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28539 wxStockGDI::Item arg2 ;
28540 wxFont *result = 0 ;
28541 void *argp1 = 0 ;
28542 int res1 = 0 ;
28543 int val2 ;
28544 int ecode2 = 0 ;
28545 PyObject * obj0 = 0 ;
28546 PyObject * obj1 = 0 ;
28547 char * kwnames[] = {
28548 (char *) "self",(char *) "item", NULL
28549 };
28550
28551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28553 if (!SWIG_IsOK(res1)) {
28554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28555 }
28556 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28557 ecode2 = SWIG_AsVal_int(obj1, &val2);
28558 if (!SWIG_IsOK(ecode2)) {
28559 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28560 }
28561 arg2 = static_cast< wxStockGDI::Item >(val2);
28562 {
28563 PyThreadState* __tstate = wxPyBeginAllowThreads();
28564 result = (wxFont *)(arg1)->GetFont(arg2);
28565 wxPyEndAllowThreads(__tstate);
28566 if (PyErr_Occurred()) SWIG_fail;
28567 }
28568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28569 return resultobj;
28570 fail:
28571 return NULL;
28572 }
28573
28574
28575 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28576 PyObject *obj;
28577 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28578 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28579 return SWIG_Py_Void();
28580 }
28581
28582 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28583 return SWIG_Python_InitShadowInstance(args);
28584 }
28585
28586 SWIGINTERN int NullBitmap_set(PyObject *) {
28587 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28588 return 1;
28589 }
28590
28591
28592 SWIGINTERN PyObject *NullBitmap_get(void) {
28593 PyObject *pyobj = 0;
28594
28595 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28596 return pyobj;
28597 }
28598
28599
28600 SWIGINTERN int NullIcon_set(PyObject *) {
28601 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28602 return 1;
28603 }
28604
28605
28606 SWIGINTERN PyObject *NullIcon_get(void) {
28607 PyObject *pyobj = 0;
28608
28609 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28610 return pyobj;
28611 }
28612
28613
28614 SWIGINTERN int NullCursor_set(PyObject *) {
28615 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28616 return 1;
28617 }
28618
28619
28620 SWIGINTERN PyObject *NullCursor_get(void) {
28621 PyObject *pyobj = 0;
28622
28623 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28624 return pyobj;
28625 }
28626
28627
28628 SWIGINTERN int NullPen_set(PyObject *) {
28629 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28630 return 1;
28631 }
28632
28633
28634 SWIGINTERN PyObject *NullPen_get(void) {
28635 PyObject *pyobj = 0;
28636
28637 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28638 return pyobj;
28639 }
28640
28641
28642 SWIGINTERN int NullBrush_set(PyObject *) {
28643 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28644 return 1;
28645 }
28646
28647
28648 SWIGINTERN PyObject *NullBrush_get(void) {
28649 PyObject *pyobj = 0;
28650
28651 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28652 return pyobj;
28653 }
28654
28655
28656 SWIGINTERN int NullPalette_set(PyObject *) {
28657 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28658 return 1;
28659 }
28660
28661
28662 SWIGINTERN PyObject *NullPalette_get(void) {
28663 PyObject *pyobj = 0;
28664
28665 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28666 return pyobj;
28667 }
28668
28669
28670 SWIGINTERN int NullFont_set(PyObject *) {
28671 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28672 return 1;
28673 }
28674
28675
28676 SWIGINTERN PyObject *NullFont_get(void) {
28677 PyObject *pyobj = 0;
28678
28679 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28680 return pyobj;
28681 }
28682
28683
28684 SWIGINTERN int NullColour_set(PyObject *) {
28685 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28686 return 1;
28687 }
28688
28689
28690 SWIGINTERN PyObject *NullColour_get(void) {
28691 PyObject *pyobj = 0;
28692
28693 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28694 return pyobj;
28695 }
28696
28697
28698 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28699 PyObject *resultobj = 0;
28700 wxGDIObjListBase *result = 0 ;
28701
28702 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28703 {
28704 PyThreadState* __tstate = wxPyBeginAllowThreads();
28705 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28706 wxPyEndAllowThreads(__tstate);
28707 if (PyErr_Occurred()) SWIG_fail;
28708 }
28709 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28710 return resultobj;
28711 fail:
28712 return NULL;
28713 }
28714
28715
28716 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28717 PyObject *resultobj = 0;
28718 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28719 void *argp1 = 0 ;
28720 int res1 = 0 ;
28721 PyObject *swig_obj[1] ;
28722
28723 if (!args) SWIG_fail;
28724 swig_obj[0] = args;
28725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28726 if (!SWIG_IsOK(res1)) {
28727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28728 }
28729 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28730 {
28731 PyThreadState* __tstate = wxPyBeginAllowThreads();
28732 delete arg1;
28733
28734 wxPyEndAllowThreads(__tstate);
28735 if (PyErr_Occurred()) SWIG_fail;
28736 }
28737 resultobj = SWIG_Py_Void();
28738 return resultobj;
28739 fail:
28740 return NULL;
28741 }
28742
28743
28744 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28745 PyObject *obj;
28746 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28747 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28748 return SWIG_Py_Void();
28749 }
28750
28751 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28752 return SWIG_Python_InitShadowInstance(args);
28753 }
28754
28755 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28756 PyObject *resultobj = 0;
28757 wxPenList *arg1 = (wxPenList *) 0 ;
28758 wxColour *arg2 = 0 ;
28759 int arg3 ;
28760 int arg4 ;
28761 wxPen *result = 0 ;
28762 void *argp1 = 0 ;
28763 int res1 = 0 ;
28764 wxColour temp2 ;
28765 int val3 ;
28766 int ecode3 = 0 ;
28767 int val4 ;
28768 int ecode4 = 0 ;
28769 PyObject * obj0 = 0 ;
28770 PyObject * obj1 = 0 ;
28771 PyObject * obj2 = 0 ;
28772 PyObject * obj3 = 0 ;
28773 char * kwnames[] = {
28774 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28775 };
28776
28777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28779 if (!SWIG_IsOK(res1)) {
28780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28781 }
28782 arg1 = reinterpret_cast< wxPenList * >(argp1);
28783 {
28784 arg2 = &temp2;
28785 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28786 }
28787 ecode3 = SWIG_AsVal_int(obj2, &val3);
28788 if (!SWIG_IsOK(ecode3)) {
28789 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
28790 }
28791 arg3 = static_cast< int >(val3);
28792 ecode4 = SWIG_AsVal_int(obj3, &val4);
28793 if (!SWIG_IsOK(ecode4)) {
28794 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
28795 }
28796 arg4 = static_cast< int >(val4);
28797 {
28798 PyThreadState* __tstate = wxPyBeginAllowThreads();
28799 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
28800 wxPyEndAllowThreads(__tstate);
28801 if (PyErr_Occurred()) SWIG_fail;
28802 }
28803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28804 return resultobj;
28805 fail:
28806 return NULL;
28807 }
28808
28809
28810 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28811 PyObject *resultobj = 0;
28812 wxPenList *arg1 = (wxPenList *) 0 ;
28813 wxPen *arg2 = (wxPen *) 0 ;
28814 void *argp1 = 0 ;
28815 int res1 = 0 ;
28816 void *argp2 = 0 ;
28817 int res2 = 0 ;
28818 PyObject * obj0 = 0 ;
28819 PyObject * obj1 = 0 ;
28820 char * kwnames[] = {
28821 (char *) "self",(char *) "pen", NULL
28822 };
28823
28824 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
28825 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28826 if (!SWIG_IsOK(res1)) {
28827 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
28828 }
28829 arg1 = reinterpret_cast< wxPenList * >(argp1);
28830 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28831 if (!SWIG_IsOK(res2)) {
28832 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
28833 }
28834 arg2 = reinterpret_cast< wxPen * >(argp2);
28835 {
28836 PyThreadState* __tstate = wxPyBeginAllowThreads();
28837 (arg1)->AddPen(arg2);
28838 wxPyEndAllowThreads(__tstate);
28839 if (PyErr_Occurred()) SWIG_fail;
28840 }
28841 resultobj = SWIG_Py_Void();
28842 return resultobj;
28843 fail:
28844 return NULL;
28845 }
28846
28847
28848 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28849 PyObject *resultobj = 0;
28850 wxPenList *arg1 = (wxPenList *) 0 ;
28851 wxPen *arg2 = (wxPen *) 0 ;
28852 void *argp1 = 0 ;
28853 int res1 = 0 ;
28854 void *argp2 = 0 ;
28855 int res2 = 0 ;
28856 PyObject * obj0 = 0 ;
28857 PyObject * obj1 = 0 ;
28858 char * kwnames[] = {
28859 (char *) "self",(char *) "pen", NULL
28860 };
28861
28862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
28863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
28864 if (!SWIG_IsOK(res1)) {
28865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
28866 }
28867 arg1 = reinterpret_cast< wxPenList * >(argp1);
28868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
28869 if (!SWIG_IsOK(res2)) {
28870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
28871 }
28872 arg2 = reinterpret_cast< wxPen * >(argp2);
28873 {
28874 PyThreadState* __tstate = wxPyBeginAllowThreads();
28875 (arg1)->RemovePen(arg2);
28876 wxPyEndAllowThreads(__tstate);
28877 if (PyErr_Occurred()) SWIG_fail;
28878 }
28879 resultobj = SWIG_Py_Void();
28880 return resultobj;
28881 fail:
28882 return NULL;
28883 }
28884
28885
28886 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28887 PyObject *obj;
28888 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28889 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
28890 return SWIG_Py_Void();
28891 }
28892
28893 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28894 PyObject *resultobj = 0;
28895 wxBrushList *arg1 = (wxBrushList *) 0 ;
28896 wxColour *arg2 = 0 ;
28897 int arg3 = (int) wxSOLID ;
28898 wxBrush *result = 0 ;
28899 void *argp1 = 0 ;
28900 int res1 = 0 ;
28901 wxColour temp2 ;
28902 int val3 ;
28903 int ecode3 = 0 ;
28904 PyObject * obj0 = 0 ;
28905 PyObject * obj1 = 0 ;
28906 PyObject * obj2 = 0 ;
28907 char * kwnames[] = {
28908 (char *) "self",(char *) "colour",(char *) "style", NULL
28909 };
28910
28911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28913 if (!SWIG_IsOK(res1)) {
28914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28915 }
28916 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28917 {
28918 arg2 = &temp2;
28919 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28920 }
28921 if (obj2) {
28922 ecode3 = SWIG_AsVal_int(obj2, &val3);
28923 if (!SWIG_IsOK(ecode3)) {
28924 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
28925 }
28926 arg3 = static_cast< int >(val3);
28927 }
28928 {
28929 PyThreadState* __tstate = wxPyBeginAllowThreads();
28930 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
28931 wxPyEndAllowThreads(__tstate);
28932 if (PyErr_Occurred()) SWIG_fail;
28933 }
28934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28935 return resultobj;
28936 fail:
28937 return NULL;
28938 }
28939
28940
28941 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28942 PyObject *resultobj = 0;
28943 wxBrushList *arg1 = (wxBrushList *) 0 ;
28944 wxBrush *arg2 = (wxBrush *) 0 ;
28945 void *argp1 = 0 ;
28946 int res1 = 0 ;
28947 void *argp2 = 0 ;
28948 int res2 = 0 ;
28949 PyObject * obj0 = 0 ;
28950 PyObject * obj1 = 0 ;
28951 char * kwnames[] = {
28952 (char *) "self",(char *) "brush", NULL
28953 };
28954
28955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28957 if (!SWIG_IsOK(res1)) {
28958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28959 }
28960 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28961 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
28962 if (!SWIG_IsOK(res2)) {
28963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
28964 }
28965 arg2 = reinterpret_cast< wxBrush * >(argp2);
28966 {
28967 PyThreadState* __tstate = wxPyBeginAllowThreads();
28968 (arg1)->AddBrush(arg2);
28969 wxPyEndAllowThreads(__tstate);
28970 if (PyErr_Occurred()) SWIG_fail;
28971 }
28972 resultobj = SWIG_Py_Void();
28973 return resultobj;
28974 fail:
28975 return NULL;
28976 }
28977
28978
28979 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28980 PyObject *resultobj = 0;
28981 wxBrushList *arg1 = (wxBrushList *) 0 ;
28982 wxBrush *arg2 = (wxBrush *) 0 ;
28983 void *argp1 = 0 ;
28984 int res1 = 0 ;
28985 void *argp2 = 0 ;
28986 int res2 = 0 ;
28987 PyObject * obj0 = 0 ;
28988 PyObject * obj1 = 0 ;
28989 char * kwnames[] = {
28990 (char *) "self",(char *) "brush", NULL
28991 };
28992
28993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
28995 if (!SWIG_IsOK(res1)) {
28996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
28997 }
28998 arg1 = reinterpret_cast< wxBrushList * >(argp1);
28999 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29000 if (!SWIG_IsOK(res2)) {
29001 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29002 }
29003 arg2 = reinterpret_cast< wxBrush * >(argp2);
29004 {
29005 PyThreadState* __tstate = wxPyBeginAllowThreads();
29006 (arg1)->RemoveBrush(arg2);
29007 wxPyEndAllowThreads(__tstate);
29008 if (PyErr_Occurred()) SWIG_fail;
29009 }
29010 resultobj = SWIG_Py_Void();
29011 return resultobj;
29012 fail:
29013 return NULL;
29014 }
29015
29016
29017 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29018 PyObject *obj;
29019 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29020 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
29021 return SWIG_Py_Void();
29022 }
29023
29024 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29025 PyObject *resultobj = 0;
29026 wxFontList *arg1 = (wxFontList *) 0 ;
29027 int arg2 ;
29028 int arg3 ;
29029 int arg4 ;
29030 int arg5 ;
29031 bool arg6 = (bool) false ;
29032 wxString const &arg7_defvalue = wxPyEmptyString ;
29033 wxString *arg7 = (wxString *) &arg7_defvalue ;
29034 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
29035 wxFont *result = 0 ;
29036 void *argp1 = 0 ;
29037 int res1 = 0 ;
29038 int val2 ;
29039 int ecode2 = 0 ;
29040 int val3 ;
29041 int ecode3 = 0 ;
29042 int val4 ;
29043 int ecode4 = 0 ;
29044 int val5 ;
29045 int ecode5 = 0 ;
29046 bool val6 ;
29047 int ecode6 = 0 ;
29048 bool temp7 = false ;
29049 int val8 ;
29050 int ecode8 = 0 ;
29051 PyObject * obj0 = 0 ;
29052 PyObject * obj1 = 0 ;
29053 PyObject * obj2 = 0 ;
29054 PyObject * obj3 = 0 ;
29055 PyObject * obj4 = 0 ;
29056 PyObject * obj5 = 0 ;
29057 PyObject * obj6 = 0 ;
29058 PyObject * obj7 = 0 ;
29059 char * kwnames[] = {
29060 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
29061 };
29062
29063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29065 if (!SWIG_IsOK(res1)) {
29066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29067 }
29068 arg1 = reinterpret_cast< wxFontList * >(argp1);
29069 ecode2 = SWIG_AsVal_int(obj1, &val2);
29070 if (!SWIG_IsOK(ecode2)) {
29071 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29072 }
29073 arg2 = static_cast< int >(val2);
29074 ecode3 = SWIG_AsVal_int(obj2, &val3);
29075 if (!SWIG_IsOK(ecode3)) {
29076 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29077 }
29078 arg3 = static_cast< int >(val3);
29079 ecode4 = SWIG_AsVal_int(obj3, &val4);
29080 if (!SWIG_IsOK(ecode4)) {
29081 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29082 }
29083 arg4 = static_cast< int >(val4);
29084 ecode5 = SWIG_AsVal_int(obj4, &val5);
29085 if (!SWIG_IsOK(ecode5)) {
29086 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29087 }
29088 arg5 = static_cast< int >(val5);
29089 if (obj5) {
29090 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29091 if (!SWIG_IsOK(ecode6)) {
29092 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29093 }
29094 arg6 = static_cast< bool >(val6);
29095 }
29096 if (obj6) {
29097 {
29098 arg7 = wxString_in_helper(obj6);
29099 if (arg7 == NULL) SWIG_fail;
29100 temp7 = true;
29101 }
29102 }
29103 if (obj7) {
29104 ecode8 = SWIG_AsVal_int(obj7, &val8);
29105 if (!SWIG_IsOK(ecode8)) {
29106 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
29107 }
29108 arg8 = static_cast< wxFontEncoding >(val8);
29109 }
29110 {
29111 PyThreadState* __tstate = wxPyBeginAllowThreads();
29112 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
29113 wxPyEndAllowThreads(__tstate);
29114 if (PyErr_Occurred()) SWIG_fail;
29115 }
29116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29117 {
29118 if (temp7)
29119 delete arg7;
29120 }
29121 return resultobj;
29122 fail:
29123 {
29124 if (temp7)
29125 delete arg7;
29126 }
29127 return NULL;
29128 }
29129
29130
29131 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29132 PyObject *resultobj = 0;
29133 wxFontList *arg1 = (wxFontList *) 0 ;
29134 wxFont *arg2 = (wxFont *) 0 ;
29135 void *argp1 = 0 ;
29136 int res1 = 0 ;
29137 void *argp2 = 0 ;
29138 int res2 = 0 ;
29139 PyObject * obj0 = 0 ;
29140 PyObject * obj1 = 0 ;
29141 char * kwnames[] = {
29142 (char *) "self",(char *) "font", NULL
29143 };
29144
29145 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29146 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29147 if (!SWIG_IsOK(res1)) {
29148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29149 }
29150 arg1 = reinterpret_cast< wxFontList * >(argp1);
29151 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29152 if (!SWIG_IsOK(res2)) {
29153 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
29154 }
29155 arg2 = reinterpret_cast< wxFont * >(argp2);
29156 {
29157 PyThreadState* __tstate = wxPyBeginAllowThreads();
29158 (arg1)->AddFont(arg2);
29159 wxPyEndAllowThreads(__tstate);
29160 if (PyErr_Occurred()) SWIG_fail;
29161 }
29162 resultobj = SWIG_Py_Void();
29163 return resultobj;
29164 fail:
29165 return NULL;
29166 }
29167
29168
29169 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29170 PyObject *resultobj = 0;
29171 wxFontList *arg1 = (wxFontList *) 0 ;
29172 wxFont *arg2 = (wxFont *) 0 ;
29173 void *argp1 = 0 ;
29174 int res1 = 0 ;
29175 void *argp2 = 0 ;
29176 int res2 = 0 ;
29177 PyObject * obj0 = 0 ;
29178 PyObject * obj1 = 0 ;
29179 char * kwnames[] = {
29180 (char *) "self",(char *) "font", NULL
29181 };
29182
29183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29185 if (!SWIG_IsOK(res1)) {
29186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29187 }
29188 arg1 = reinterpret_cast< wxFontList * >(argp1);
29189 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29190 if (!SWIG_IsOK(res2)) {
29191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29192 }
29193 arg2 = reinterpret_cast< wxFont * >(argp2);
29194 {
29195 PyThreadState* __tstate = wxPyBeginAllowThreads();
29196 (arg1)->RemoveFont(arg2);
29197 wxPyEndAllowThreads(__tstate);
29198 if (PyErr_Occurred()) SWIG_fail;
29199 }
29200 resultobj = SWIG_Py_Void();
29201 return resultobj;
29202 fail:
29203 return NULL;
29204 }
29205
29206
29207 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29208 PyObject *obj;
29209 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29210 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
29211 return SWIG_Py_Void();
29212 }
29213
29214 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29215 PyObject *resultobj = 0;
29216 wxColourDatabase *result = 0 ;
29217
29218 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29219 {
29220 if (!wxPyCheckForApp()) SWIG_fail;
29221 PyThreadState* __tstate = wxPyBeginAllowThreads();
29222 result = (wxColourDatabase *)new wxColourDatabase();
29223 wxPyEndAllowThreads(__tstate);
29224 if (PyErr_Occurred()) SWIG_fail;
29225 }
29226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29227 return resultobj;
29228 fail:
29229 return NULL;
29230 }
29231
29232
29233 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29234 PyObject *resultobj = 0;
29235 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29236 void *argp1 = 0 ;
29237 int res1 = 0 ;
29238 PyObject *swig_obj[1] ;
29239
29240 if (!args) SWIG_fail;
29241 swig_obj[0] = args;
29242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29243 if (!SWIG_IsOK(res1)) {
29244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29245 }
29246 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29247 {
29248 PyThreadState* __tstate = wxPyBeginAllowThreads();
29249 delete arg1;
29250
29251 wxPyEndAllowThreads(__tstate);
29252 if (PyErr_Occurred()) SWIG_fail;
29253 }
29254 resultobj = SWIG_Py_Void();
29255 return resultobj;
29256 fail:
29257 return NULL;
29258 }
29259
29260
29261 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29262 PyObject *resultobj = 0;
29263 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29264 wxString *arg2 = 0 ;
29265 wxColour result;
29266 void *argp1 = 0 ;
29267 int res1 = 0 ;
29268 bool temp2 = false ;
29269 PyObject * obj0 = 0 ;
29270 PyObject * obj1 = 0 ;
29271 char * kwnames[] = {
29272 (char *) "self",(char *) "name", NULL
29273 };
29274
29275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29277 if (!SWIG_IsOK(res1)) {
29278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29279 }
29280 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29281 {
29282 arg2 = wxString_in_helper(obj1);
29283 if (arg2 == NULL) SWIG_fail;
29284 temp2 = true;
29285 }
29286 {
29287 PyThreadState* __tstate = wxPyBeginAllowThreads();
29288 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29289 wxPyEndAllowThreads(__tstate);
29290 if (PyErr_Occurred()) SWIG_fail;
29291 }
29292 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29293 {
29294 if (temp2)
29295 delete arg2;
29296 }
29297 return resultobj;
29298 fail:
29299 {
29300 if (temp2)
29301 delete arg2;
29302 }
29303 return NULL;
29304 }
29305
29306
29307 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29308 PyObject *resultobj = 0;
29309 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29310 wxColour *arg2 = 0 ;
29311 wxString result;
29312 void *argp1 = 0 ;
29313 int res1 = 0 ;
29314 wxColour temp2 ;
29315 PyObject * obj0 = 0 ;
29316 PyObject * obj1 = 0 ;
29317 char * kwnames[] = {
29318 (char *) "self",(char *) "colour", NULL
29319 };
29320
29321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29323 if (!SWIG_IsOK(res1)) {
29324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29325 }
29326 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29327 {
29328 arg2 = &temp2;
29329 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29330 }
29331 {
29332 PyThreadState* __tstate = wxPyBeginAllowThreads();
29333 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29334 wxPyEndAllowThreads(__tstate);
29335 if (PyErr_Occurred()) SWIG_fail;
29336 }
29337 {
29338 #if wxUSE_UNICODE
29339 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29340 #else
29341 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29342 #endif
29343 }
29344 return resultobj;
29345 fail:
29346 return NULL;
29347 }
29348
29349
29350 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29351 PyObject *resultobj = 0;
29352 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29353 wxString *arg2 = 0 ;
29354 wxColour *arg3 = 0 ;
29355 void *argp1 = 0 ;
29356 int res1 = 0 ;
29357 bool temp2 = false ;
29358 wxColour temp3 ;
29359 PyObject * obj0 = 0 ;
29360 PyObject * obj1 = 0 ;
29361 PyObject * obj2 = 0 ;
29362 char * kwnames[] = {
29363 (char *) "self",(char *) "name",(char *) "colour", NULL
29364 };
29365
29366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29367 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29368 if (!SWIG_IsOK(res1)) {
29369 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29370 }
29371 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29372 {
29373 arg2 = wxString_in_helper(obj1);
29374 if (arg2 == NULL) SWIG_fail;
29375 temp2 = true;
29376 }
29377 {
29378 arg3 = &temp3;
29379 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29380 }
29381 {
29382 PyThreadState* __tstate = wxPyBeginAllowThreads();
29383 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29384 wxPyEndAllowThreads(__tstate);
29385 if (PyErr_Occurred()) SWIG_fail;
29386 }
29387 resultobj = SWIG_Py_Void();
29388 {
29389 if (temp2)
29390 delete arg2;
29391 }
29392 return resultobj;
29393 fail:
29394 {
29395 if (temp2)
29396 delete arg2;
29397 }
29398 return NULL;
29399 }
29400
29401
29402 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29403 PyObject *resultobj = 0;
29404 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29405 wxString *arg2 = 0 ;
29406 int arg3 ;
29407 int arg4 ;
29408 int arg5 ;
29409 void *argp1 = 0 ;
29410 int res1 = 0 ;
29411 bool temp2 = false ;
29412 int val3 ;
29413 int ecode3 = 0 ;
29414 int val4 ;
29415 int ecode4 = 0 ;
29416 int val5 ;
29417 int ecode5 = 0 ;
29418 PyObject * obj0 = 0 ;
29419 PyObject * obj1 = 0 ;
29420 PyObject * obj2 = 0 ;
29421 PyObject * obj3 = 0 ;
29422 PyObject * obj4 = 0 ;
29423 char * kwnames[] = {
29424 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29425 };
29426
29427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29429 if (!SWIG_IsOK(res1)) {
29430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29431 }
29432 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29433 {
29434 arg2 = wxString_in_helper(obj1);
29435 if (arg2 == NULL) SWIG_fail;
29436 temp2 = true;
29437 }
29438 ecode3 = SWIG_AsVal_int(obj2, &val3);
29439 if (!SWIG_IsOK(ecode3)) {
29440 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29441 }
29442 arg3 = static_cast< int >(val3);
29443 ecode4 = SWIG_AsVal_int(obj3, &val4);
29444 if (!SWIG_IsOK(ecode4)) {
29445 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29446 }
29447 arg4 = static_cast< int >(val4);
29448 ecode5 = SWIG_AsVal_int(obj4, &val5);
29449 if (!SWIG_IsOK(ecode5)) {
29450 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29451 }
29452 arg5 = static_cast< int >(val5);
29453 {
29454 PyThreadState* __tstate = wxPyBeginAllowThreads();
29455 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29456 wxPyEndAllowThreads(__tstate);
29457 if (PyErr_Occurred()) SWIG_fail;
29458 }
29459 resultobj = SWIG_Py_Void();
29460 {
29461 if (temp2)
29462 delete arg2;
29463 }
29464 return resultobj;
29465 fail:
29466 {
29467 if (temp2)
29468 delete arg2;
29469 }
29470 return NULL;
29471 }
29472
29473
29474 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29475 PyObject *obj;
29476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29477 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29478 return SWIG_Py_Void();
29479 }
29480
29481 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29482 return SWIG_Python_InitShadowInstance(args);
29483 }
29484
29485 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29486 PyObject *resultobj = 0;
29487 wxFontList *result = 0 ;
29488
29489 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29490 {
29491 PyThreadState* __tstate = wxPyBeginAllowThreads();
29492 result = (wxFontList *)_wxPyInitTheFontList();
29493 wxPyEndAllowThreads(__tstate);
29494 if (PyErr_Occurred()) SWIG_fail;
29495 }
29496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29497 return resultobj;
29498 fail:
29499 return NULL;
29500 }
29501
29502
29503 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29504 PyObject *resultobj = 0;
29505 wxPenList *result = 0 ;
29506
29507 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29508 {
29509 PyThreadState* __tstate = wxPyBeginAllowThreads();
29510 result = (wxPenList *)_wxPyInitThePenList();
29511 wxPyEndAllowThreads(__tstate);
29512 if (PyErr_Occurred()) SWIG_fail;
29513 }
29514 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29515 return resultobj;
29516 fail:
29517 return NULL;
29518 }
29519
29520
29521 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29522 PyObject *resultobj = 0;
29523 wxBrushList *result = 0 ;
29524
29525 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29526 {
29527 PyThreadState* __tstate = wxPyBeginAllowThreads();
29528 result = (wxBrushList *)_wxPyInitTheBrushList();
29529 wxPyEndAllowThreads(__tstate);
29530 if (PyErr_Occurred()) SWIG_fail;
29531 }
29532 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29533 return resultobj;
29534 fail:
29535 return NULL;
29536 }
29537
29538
29539 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29540 PyObject *resultobj = 0;
29541 wxColourDatabase *result = 0 ;
29542
29543 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29544 {
29545 PyThreadState* __tstate = wxPyBeginAllowThreads();
29546 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29547 wxPyEndAllowThreads(__tstate);
29548 if (PyErr_Occurred()) SWIG_fail;
29549 }
29550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29551 return resultobj;
29552 fail:
29553 return NULL;
29554 }
29555
29556
29557 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29558 PyObject *resultobj = 0;
29559 wxEffects *result = 0 ;
29560
29561 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29562 {
29563 PyThreadState* __tstate = wxPyBeginAllowThreads();
29564 result = (wxEffects *)new wxEffects();
29565 wxPyEndAllowThreads(__tstate);
29566 if (PyErr_Occurred()) SWIG_fail;
29567 }
29568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29569 return resultobj;
29570 fail:
29571 return NULL;
29572 }
29573
29574
29575 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29576 PyObject *resultobj = 0;
29577 wxEffects *arg1 = (wxEffects *) 0 ;
29578 wxColour result;
29579 void *argp1 = 0 ;
29580 int res1 = 0 ;
29581 PyObject *swig_obj[1] ;
29582
29583 if (!args) SWIG_fail;
29584 swig_obj[0] = args;
29585 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29586 if (!SWIG_IsOK(res1)) {
29587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29588 }
29589 arg1 = reinterpret_cast< wxEffects * >(argp1);
29590 {
29591 PyThreadState* __tstate = wxPyBeginAllowThreads();
29592 result = ((wxEffects const *)arg1)->GetHighlightColour();
29593 wxPyEndAllowThreads(__tstate);
29594 if (PyErr_Occurred()) SWIG_fail;
29595 }
29596 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29597 return resultobj;
29598 fail:
29599 return NULL;
29600 }
29601
29602
29603 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29604 PyObject *resultobj = 0;
29605 wxEffects *arg1 = (wxEffects *) 0 ;
29606 wxColour result;
29607 void *argp1 = 0 ;
29608 int res1 = 0 ;
29609 PyObject *swig_obj[1] ;
29610
29611 if (!args) SWIG_fail;
29612 swig_obj[0] = args;
29613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29614 if (!SWIG_IsOK(res1)) {
29615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29616 }
29617 arg1 = reinterpret_cast< wxEffects * >(argp1);
29618 {
29619 PyThreadState* __tstate = wxPyBeginAllowThreads();
29620 result = ((wxEffects const *)arg1)->GetLightShadow();
29621 wxPyEndAllowThreads(__tstate);
29622 if (PyErr_Occurred()) SWIG_fail;
29623 }
29624 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29625 return resultobj;
29626 fail:
29627 return NULL;
29628 }
29629
29630
29631 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29632 PyObject *resultobj = 0;
29633 wxEffects *arg1 = (wxEffects *) 0 ;
29634 wxColour result;
29635 void *argp1 = 0 ;
29636 int res1 = 0 ;
29637 PyObject *swig_obj[1] ;
29638
29639 if (!args) SWIG_fail;
29640 swig_obj[0] = args;
29641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29642 if (!SWIG_IsOK(res1)) {
29643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29644 }
29645 arg1 = reinterpret_cast< wxEffects * >(argp1);
29646 {
29647 PyThreadState* __tstate = wxPyBeginAllowThreads();
29648 result = ((wxEffects const *)arg1)->GetFaceColour();
29649 wxPyEndAllowThreads(__tstate);
29650 if (PyErr_Occurred()) SWIG_fail;
29651 }
29652 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29653 return resultobj;
29654 fail:
29655 return NULL;
29656 }
29657
29658
29659 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29660 PyObject *resultobj = 0;
29661 wxEffects *arg1 = (wxEffects *) 0 ;
29662 wxColour result;
29663 void *argp1 = 0 ;
29664 int res1 = 0 ;
29665 PyObject *swig_obj[1] ;
29666
29667 if (!args) SWIG_fail;
29668 swig_obj[0] = args;
29669 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29670 if (!SWIG_IsOK(res1)) {
29671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29672 }
29673 arg1 = reinterpret_cast< wxEffects * >(argp1);
29674 {
29675 PyThreadState* __tstate = wxPyBeginAllowThreads();
29676 result = ((wxEffects const *)arg1)->GetMediumShadow();
29677 wxPyEndAllowThreads(__tstate);
29678 if (PyErr_Occurred()) SWIG_fail;
29679 }
29680 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29681 return resultobj;
29682 fail:
29683 return NULL;
29684 }
29685
29686
29687 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29688 PyObject *resultobj = 0;
29689 wxEffects *arg1 = (wxEffects *) 0 ;
29690 wxColour result;
29691 void *argp1 = 0 ;
29692 int res1 = 0 ;
29693 PyObject *swig_obj[1] ;
29694
29695 if (!args) SWIG_fail;
29696 swig_obj[0] = args;
29697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29698 if (!SWIG_IsOK(res1)) {
29699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29700 }
29701 arg1 = reinterpret_cast< wxEffects * >(argp1);
29702 {
29703 PyThreadState* __tstate = wxPyBeginAllowThreads();
29704 result = ((wxEffects const *)arg1)->GetDarkShadow();
29705 wxPyEndAllowThreads(__tstate);
29706 if (PyErr_Occurred()) SWIG_fail;
29707 }
29708 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29709 return resultobj;
29710 fail:
29711 return NULL;
29712 }
29713
29714
29715 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29716 PyObject *resultobj = 0;
29717 wxEffects *arg1 = (wxEffects *) 0 ;
29718 wxColour *arg2 = 0 ;
29719 void *argp1 = 0 ;
29720 int res1 = 0 ;
29721 wxColour temp2 ;
29722 PyObject * obj0 = 0 ;
29723 PyObject * obj1 = 0 ;
29724 char * kwnames[] = {
29725 (char *) "self",(char *) "c", NULL
29726 };
29727
29728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29730 if (!SWIG_IsOK(res1)) {
29731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29732 }
29733 arg1 = reinterpret_cast< wxEffects * >(argp1);
29734 {
29735 arg2 = &temp2;
29736 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29737 }
29738 {
29739 PyThreadState* __tstate = wxPyBeginAllowThreads();
29740 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29741 wxPyEndAllowThreads(__tstate);
29742 if (PyErr_Occurred()) SWIG_fail;
29743 }
29744 resultobj = SWIG_Py_Void();
29745 return resultobj;
29746 fail:
29747 return NULL;
29748 }
29749
29750
29751 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29752 PyObject *resultobj = 0;
29753 wxEffects *arg1 = (wxEffects *) 0 ;
29754 wxColour *arg2 = 0 ;
29755 void *argp1 = 0 ;
29756 int res1 = 0 ;
29757 wxColour temp2 ;
29758 PyObject * obj0 = 0 ;
29759 PyObject * obj1 = 0 ;
29760 char * kwnames[] = {
29761 (char *) "self",(char *) "c", NULL
29762 };
29763
29764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29766 if (!SWIG_IsOK(res1)) {
29767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29768 }
29769 arg1 = reinterpret_cast< wxEffects * >(argp1);
29770 {
29771 arg2 = &temp2;
29772 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29773 }
29774 {
29775 PyThreadState* __tstate = wxPyBeginAllowThreads();
29776 (arg1)->SetLightShadow((wxColour const &)*arg2);
29777 wxPyEndAllowThreads(__tstate);
29778 if (PyErr_Occurred()) SWIG_fail;
29779 }
29780 resultobj = SWIG_Py_Void();
29781 return resultobj;
29782 fail:
29783 return NULL;
29784 }
29785
29786
29787 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29788 PyObject *resultobj = 0;
29789 wxEffects *arg1 = (wxEffects *) 0 ;
29790 wxColour *arg2 = 0 ;
29791 void *argp1 = 0 ;
29792 int res1 = 0 ;
29793 wxColour temp2 ;
29794 PyObject * obj0 = 0 ;
29795 PyObject * obj1 = 0 ;
29796 char * kwnames[] = {
29797 (char *) "self",(char *) "c", NULL
29798 };
29799
29800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
29801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29802 if (!SWIG_IsOK(res1)) {
29803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29804 }
29805 arg1 = reinterpret_cast< wxEffects * >(argp1);
29806 {
29807 arg2 = &temp2;
29808 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29809 }
29810 {
29811 PyThreadState* __tstate = wxPyBeginAllowThreads();
29812 (arg1)->SetFaceColour((wxColour const &)*arg2);
29813 wxPyEndAllowThreads(__tstate);
29814 if (PyErr_Occurred()) SWIG_fail;
29815 }
29816 resultobj = SWIG_Py_Void();
29817 return resultobj;
29818 fail:
29819 return NULL;
29820 }
29821
29822
29823 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29824 PyObject *resultobj = 0;
29825 wxEffects *arg1 = (wxEffects *) 0 ;
29826 wxColour *arg2 = 0 ;
29827 void *argp1 = 0 ;
29828 int res1 = 0 ;
29829 wxColour temp2 ;
29830 PyObject * obj0 = 0 ;
29831 PyObject * obj1 = 0 ;
29832 char * kwnames[] = {
29833 (char *) "self",(char *) "c", NULL
29834 };
29835
29836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29838 if (!SWIG_IsOK(res1)) {
29839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29840 }
29841 arg1 = reinterpret_cast< wxEffects * >(argp1);
29842 {
29843 arg2 = &temp2;
29844 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29845 }
29846 {
29847 PyThreadState* __tstate = wxPyBeginAllowThreads();
29848 (arg1)->SetMediumShadow((wxColour const &)*arg2);
29849 wxPyEndAllowThreads(__tstate);
29850 if (PyErr_Occurred()) SWIG_fail;
29851 }
29852 resultobj = SWIG_Py_Void();
29853 return resultobj;
29854 fail:
29855 return NULL;
29856 }
29857
29858
29859 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29860 PyObject *resultobj = 0;
29861 wxEffects *arg1 = (wxEffects *) 0 ;
29862 wxColour *arg2 = 0 ;
29863 void *argp1 = 0 ;
29864 int res1 = 0 ;
29865 wxColour temp2 ;
29866 PyObject * obj0 = 0 ;
29867 PyObject * obj1 = 0 ;
29868 char * kwnames[] = {
29869 (char *) "self",(char *) "c", NULL
29870 };
29871
29872 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29873 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29874 if (!SWIG_IsOK(res1)) {
29875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29876 }
29877 arg1 = reinterpret_cast< wxEffects * >(argp1);
29878 {
29879 arg2 = &temp2;
29880 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29881 }
29882 {
29883 PyThreadState* __tstate = wxPyBeginAllowThreads();
29884 (arg1)->SetDarkShadow((wxColour const &)*arg2);
29885 wxPyEndAllowThreads(__tstate);
29886 if (PyErr_Occurred()) SWIG_fail;
29887 }
29888 resultobj = SWIG_Py_Void();
29889 return resultobj;
29890 fail:
29891 return NULL;
29892 }
29893
29894
29895 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29896 PyObject *resultobj = 0;
29897 wxEffects *arg1 = (wxEffects *) 0 ;
29898 wxColour *arg2 = 0 ;
29899 wxColour *arg3 = 0 ;
29900 wxColour *arg4 = 0 ;
29901 wxColour *arg5 = 0 ;
29902 wxColour *arg6 = 0 ;
29903 void *argp1 = 0 ;
29904 int res1 = 0 ;
29905 wxColour temp2 ;
29906 wxColour temp3 ;
29907 wxColour temp4 ;
29908 wxColour temp5 ;
29909 wxColour temp6 ;
29910 PyObject * obj0 = 0 ;
29911 PyObject * obj1 = 0 ;
29912 PyObject * obj2 = 0 ;
29913 PyObject * obj3 = 0 ;
29914 PyObject * obj4 = 0 ;
29915 PyObject * obj5 = 0 ;
29916 char * kwnames[] = {
29917 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
29918 };
29919
29920 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
29921 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29922 if (!SWIG_IsOK(res1)) {
29923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
29924 }
29925 arg1 = reinterpret_cast< wxEffects * >(argp1);
29926 {
29927 arg2 = &temp2;
29928 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29929 }
29930 {
29931 arg3 = &temp3;
29932 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29933 }
29934 {
29935 arg4 = &temp4;
29936 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
29937 }
29938 {
29939 arg5 = &temp5;
29940 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
29941 }
29942 {
29943 arg6 = &temp6;
29944 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
29945 }
29946 {
29947 PyThreadState* __tstate = wxPyBeginAllowThreads();
29948 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
29949 wxPyEndAllowThreads(__tstate);
29950 if (PyErr_Occurred()) SWIG_fail;
29951 }
29952 resultobj = SWIG_Py_Void();
29953 return resultobj;
29954 fail:
29955 return NULL;
29956 }
29957
29958
29959 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29960 PyObject *resultobj = 0;
29961 wxEffects *arg1 = (wxEffects *) 0 ;
29962 wxDC *arg2 = 0 ;
29963 wxRect *arg3 = 0 ;
29964 int arg4 = (int) 1 ;
29965 void *argp1 = 0 ;
29966 int res1 = 0 ;
29967 void *argp2 = 0 ;
29968 int res2 = 0 ;
29969 wxRect temp3 ;
29970 int val4 ;
29971 int ecode4 = 0 ;
29972 PyObject * obj0 = 0 ;
29973 PyObject * obj1 = 0 ;
29974 PyObject * obj2 = 0 ;
29975 PyObject * obj3 = 0 ;
29976 char * kwnames[] = {
29977 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
29978 };
29979
29980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29982 if (!SWIG_IsOK(res1)) {
29983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
29984 }
29985 arg1 = reinterpret_cast< wxEffects * >(argp1);
29986 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
29987 if (!SWIG_IsOK(res2)) {
29988 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29989 }
29990 if (!argp2) {
29991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
29992 }
29993 arg2 = reinterpret_cast< wxDC * >(argp2);
29994 {
29995 arg3 = &temp3;
29996 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
29997 }
29998 if (obj3) {
29999 ecode4 = SWIG_AsVal_int(obj3, &val4);
30000 if (!SWIG_IsOK(ecode4)) {
30001 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
30002 }
30003 arg4 = static_cast< int >(val4);
30004 }
30005 {
30006 PyThreadState* __tstate = wxPyBeginAllowThreads();
30007 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
30008 wxPyEndAllowThreads(__tstate);
30009 if (PyErr_Occurred()) SWIG_fail;
30010 }
30011 resultobj = SWIG_Py_Void();
30012 return resultobj;
30013 fail:
30014 return NULL;
30015 }
30016
30017
30018 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30019 PyObject *resultobj = 0;
30020 wxEffects *arg1 = (wxEffects *) 0 ;
30021 wxRect *arg2 = 0 ;
30022 wxDC *arg3 = 0 ;
30023 wxBitmap *arg4 = 0 ;
30024 bool result;
30025 void *argp1 = 0 ;
30026 int res1 = 0 ;
30027 wxRect temp2 ;
30028 void *argp3 = 0 ;
30029 int res3 = 0 ;
30030 void *argp4 = 0 ;
30031 int res4 = 0 ;
30032 PyObject * obj0 = 0 ;
30033 PyObject * obj1 = 0 ;
30034 PyObject * obj2 = 0 ;
30035 PyObject * obj3 = 0 ;
30036 char * kwnames[] = {
30037 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
30038 };
30039
30040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30042 if (!SWIG_IsOK(res1)) {
30043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30044 }
30045 arg1 = reinterpret_cast< wxEffects * >(argp1);
30046 {
30047 arg2 = &temp2;
30048 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30049 }
30050 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30051 if (!SWIG_IsOK(res3)) {
30052 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30053 }
30054 if (!argp3) {
30055 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30056 }
30057 arg3 = reinterpret_cast< wxDC * >(argp3);
30058 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30059 if (!SWIG_IsOK(res4)) {
30060 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30061 }
30062 if (!argp4) {
30063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30064 }
30065 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30066 {
30067 PyThreadState* __tstate = wxPyBeginAllowThreads();
30068 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30069 wxPyEndAllowThreads(__tstate);
30070 if (PyErr_Occurred()) SWIG_fail;
30071 }
30072 {
30073 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30074 }
30075 return resultobj;
30076 fail:
30077 return NULL;
30078 }
30079
30080
30081 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30082 PyObject *obj;
30083 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30084 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30085 return SWIG_Py_Void();
30086 }
30087
30088 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30089 return SWIG_Python_InitShadowInstance(args);
30090 }
30091
30092 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30093 PyObject *resultobj = 0;
30094 int arg1 ;
30095 int arg2 ;
30096 bool arg3 ;
30097 wxSplitterRenderParams *result = 0 ;
30098 int val1 ;
30099 int ecode1 = 0 ;
30100 int val2 ;
30101 int ecode2 = 0 ;
30102 bool val3 ;
30103 int ecode3 = 0 ;
30104 PyObject * obj0 = 0 ;
30105 PyObject * obj1 = 0 ;
30106 PyObject * obj2 = 0 ;
30107 char * kwnames[] = {
30108 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30109 };
30110
30111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30112 ecode1 = SWIG_AsVal_int(obj0, &val1);
30113 if (!SWIG_IsOK(ecode1)) {
30114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30115 }
30116 arg1 = static_cast< int >(val1);
30117 ecode2 = SWIG_AsVal_int(obj1, &val2);
30118 if (!SWIG_IsOK(ecode2)) {
30119 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30120 }
30121 arg2 = static_cast< int >(val2);
30122 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30123 if (!SWIG_IsOK(ecode3)) {
30124 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30125 }
30126 arg3 = static_cast< bool >(val3);
30127 {
30128 PyThreadState* __tstate = wxPyBeginAllowThreads();
30129 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30130 wxPyEndAllowThreads(__tstate);
30131 if (PyErr_Occurred()) SWIG_fail;
30132 }
30133 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30134 return resultobj;
30135 fail:
30136 return NULL;
30137 }
30138
30139
30140 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30141 PyObject *resultobj = 0;
30142 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30143 void *argp1 = 0 ;
30144 int res1 = 0 ;
30145 PyObject *swig_obj[1] ;
30146
30147 if (!args) SWIG_fail;
30148 swig_obj[0] = args;
30149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30150 if (!SWIG_IsOK(res1)) {
30151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30152 }
30153 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30154 {
30155 PyThreadState* __tstate = wxPyBeginAllowThreads();
30156 delete arg1;
30157
30158 wxPyEndAllowThreads(__tstate);
30159 if (PyErr_Occurred()) SWIG_fail;
30160 }
30161 resultobj = SWIG_Py_Void();
30162 return resultobj;
30163 fail:
30164 return NULL;
30165 }
30166
30167
30168 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30169 PyObject *resultobj = 0;
30170 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30171 int result;
30172 void *argp1 = 0 ;
30173 int res1 = 0 ;
30174 PyObject *swig_obj[1] ;
30175
30176 if (!args) SWIG_fail;
30177 swig_obj[0] = args;
30178 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30179 if (!SWIG_IsOK(res1)) {
30180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30181 }
30182 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30183 result = (int)(int) ((arg1)->widthSash);
30184 resultobj = SWIG_From_int(static_cast< int >(result));
30185 return resultobj;
30186 fail:
30187 return NULL;
30188 }
30189
30190
30191 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30192 PyObject *resultobj = 0;
30193 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30194 int result;
30195 void *argp1 = 0 ;
30196 int res1 = 0 ;
30197 PyObject *swig_obj[1] ;
30198
30199 if (!args) SWIG_fail;
30200 swig_obj[0] = args;
30201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30202 if (!SWIG_IsOK(res1)) {
30203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30204 }
30205 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30206 result = (int)(int) ((arg1)->border);
30207 resultobj = SWIG_From_int(static_cast< int >(result));
30208 return resultobj;
30209 fail:
30210 return NULL;
30211 }
30212
30213
30214 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30215 PyObject *resultobj = 0;
30216 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30217 bool result;
30218 void *argp1 = 0 ;
30219 int res1 = 0 ;
30220 PyObject *swig_obj[1] ;
30221
30222 if (!args) SWIG_fail;
30223 swig_obj[0] = args;
30224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30225 if (!SWIG_IsOK(res1)) {
30226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30227 }
30228 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30229 result = (bool)(bool) ((arg1)->isHotSensitive);
30230 resultobj = SWIG_From_bool(static_cast< bool >(result));
30231 return resultobj;
30232 fail:
30233 return NULL;
30234 }
30235
30236
30237 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30238 PyObject *obj;
30239 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30240 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30241 return SWIG_Py_Void();
30242 }
30243
30244 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30245 return SWIG_Python_InitShadowInstance(args);
30246 }
30247
30248 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30249 PyObject *resultobj = 0;
30250 wxHeaderButtonParams *result = 0 ;
30251
30252 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30253 {
30254 PyThreadState* __tstate = wxPyBeginAllowThreads();
30255 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30256 wxPyEndAllowThreads(__tstate);
30257 if (PyErr_Occurred()) SWIG_fail;
30258 }
30259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30260 return resultobj;
30261 fail:
30262 return NULL;
30263 }
30264
30265
30266 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30267 PyObject *resultobj = 0;
30268 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30269 void *argp1 = 0 ;
30270 int res1 = 0 ;
30271 PyObject *swig_obj[1] ;
30272
30273 if (!args) SWIG_fail;
30274 swig_obj[0] = args;
30275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30276 if (!SWIG_IsOK(res1)) {
30277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30278 }
30279 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30280 {
30281 PyThreadState* __tstate = wxPyBeginAllowThreads();
30282 delete arg1;
30283
30284 wxPyEndAllowThreads(__tstate);
30285 if (PyErr_Occurred()) SWIG_fail;
30286 }
30287 resultobj = SWIG_Py_Void();
30288 return resultobj;
30289 fail:
30290 return NULL;
30291 }
30292
30293
30294 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30295 PyObject *resultobj = 0;
30296 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30297 wxColour *arg2 = (wxColour *) 0 ;
30298 void *argp1 = 0 ;
30299 int res1 = 0 ;
30300 wxColour temp2 ;
30301 PyObject *swig_obj[2] ;
30302
30303 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30305 if (!SWIG_IsOK(res1)) {
30306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30307 }
30308 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30309 {
30310 arg2 = &temp2;
30311 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30312 }
30313 if (arg1) (arg1)->m_arrowColour = *arg2;
30314
30315 resultobj = SWIG_Py_Void();
30316 return resultobj;
30317 fail:
30318 return NULL;
30319 }
30320
30321
30322 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30323 PyObject *resultobj = 0;
30324 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30325 wxColour *result = 0 ;
30326 void *argp1 = 0 ;
30327 int res1 = 0 ;
30328 PyObject *swig_obj[1] ;
30329
30330 if (!args) SWIG_fail;
30331 swig_obj[0] = args;
30332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30333 if (!SWIG_IsOK(res1)) {
30334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30335 }
30336 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30337 result = (wxColour *)& ((arg1)->m_arrowColour);
30338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30339 return resultobj;
30340 fail:
30341 return NULL;
30342 }
30343
30344
30345 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30346 PyObject *resultobj = 0;
30347 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30348 wxColour *arg2 = (wxColour *) 0 ;
30349 void *argp1 = 0 ;
30350 int res1 = 0 ;
30351 wxColour temp2 ;
30352 PyObject *swig_obj[2] ;
30353
30354 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30356 if (!SWIG_IsOK(res1)) {
30357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30358 }
30359 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30360 {
30361 arg2 = &temp2;
30362 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30363 }
30364 if (arg1) (arg1)->m_selectionColour = *arg2;
30365
30366 resultobj = SWIG_Py_Void();
30367 return resultobj;
30368 fail:
30369 return NULL;
30370 }
30371
30372
30373 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30374 PyObject *resultobj = 0;
30375 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30376 wxColour *result = 0 ;
30377 void *argp1 = 0 ;
30378 int res1 = 0 ;
30379 PyObject *swig_obj[1] ;
30380
30381 if (!args) SWIG_fail;
30382 swig_obj[0] = args;
30383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30384 if (!SWIG_IsOK(res1)) {
30385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30386 }
30387 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30388 result = (wxColour *)& ((arg1)->m_selectionColour);
30389 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30390 return resultobj;
30391 fail:
30392 return NULL;
30393 }
30394
30395
30396 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30397 PyObject *resultobj = 0;
30398 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30399 wxString *arg2 = (wxString *) 0 ;
30400 void *argp1 = 0 ;
30401 int res1 = 0 ;
30402 bool temp2 = false ;
30403 PyObject *swig_obj[2] ;
30404
30405 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30406 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30407 if (!SWIG_IsOK(res1)) {
30408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30409 }
30410 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30411 {
30412 arg2 = wxString_in_helper(swig_obj[1]);
30413 if (arg2 == NULL) SWIG_fail;
30414 temp2 = true;
30415 }
30416 if (arg1) (arg1)->m_labelText = *arg2;
30417
30418 resultobj = SWIG_Py_Void();
30419 {
30420 if (temp2)
30421 delete arg2;
30422 }
30423 return resultobj;
30424 fail:
30425 {
30426 if (temp2)
30427 delete arg2;
30428 }
30429 return NULL;
30430 }
30431
30432
30433 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30434 PyObject *resultobj = 0;
30435 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30436 wxString *result = 0 ;
30437 void *argp1 = 0 ;
30438 int res1 = 0 ;
30439 PyObject *swig_obj[1] ;
30440
30441 if (!args) SWIG_fail;
30442 swig_obj[0] = args;
30443 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30444 if (!SWIG_IsOK(res1)) {
30445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30446 }
30447 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30448 result = (wxString *)& ((arg1)->m_labelText);
30449 {
30450 #if wxUSE_UNICODE
30451 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30452 #else
30453 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30454 #endif
30455 }
30456 return resultobj;
30457 fail:
30458 return NULL;
30459 }
30460
30461
30462 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30463 PyObject *resultobj = 0;
30464 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30465 wxFont *arg2 = (wxFont *) 0 ;
30466 void *argp1 = 0 ;
30467 int res1 = 0 ;
30468 void *argp2 = 0 ;
30469 int res2 = 0 ;
30470 PyObject *swig_obj[2] ;
30471
30472 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30473 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30474 if (!SWIG_IsOK(res1)) {
30475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30476 }
30477 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30478 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30479 if (!SWIG_IsOK(res2)) {
30480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30481 }
30482 arg2 = reinterpret_cast< wxFont * >(argp2);
30483 if (arg1) (arg1)->m_labelFont = *arg2;
30484
30485 resultobj = SWIG_Py_Void();
30486 return resultobj;
30487 fail:
30488 return NULL;
30489 }
30490
30491
30492 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30493 PyObject *resultobj = 0;
30494 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30495 wxFont *result = 0 ;
30496 void *argp1 = 0 ;
30497 int res1 = 0 ;
30498 PyObject *swig_obj[1] ;
30499
30500 if (!args) SWIG_fail;
30501 swig_obj[0] = args;
30502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30503 if (!SWIG_IsOK(res1)) {
30504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30505 }
30506 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30507 result = (wxFont *)& ((arg1)->m_labelFont);
30508 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30509 return resultobj;
30510 fail:
30511 return NULL;
30512 }
30513
30514
30515 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30516 PyObject *resultobj = 0;
30517 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30518 wxColour *arg2 = (wxColour *) 0 ;
30519 void *argp1 = 0 ;
30520 int res1 = 0 ;
30521 wxColour temp2 ;
30522 PyObject *swig_obj[2] ;
30523
30524 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30525 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30526 if (!SWIG_IsOK(res1)) {
30527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30528 }
30529 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30530 {
30531 arg2 = &temp2;
30532 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30533 }
30534 if (arg1) (arg1)->m_labelColour = *arg2;
30535
30536 resultobj = SWIG_Py_Void();
30537 return resultobj;
30538 fail:
30539 return NULL;
30540 }
30541
30542
30543 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30544 PyObject *resultobj = 0;
30545 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30546 wxColour *result = 0 ;
30547 void *argp1 = 0 ;
30548 int res1 = 0 ;
30549 PyObject *swig_obj[1] ;
30550
30551 if (!args) SWIG_fail;
30552 swig_obj[0] = args;
30553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30554 if (!SWIG_IsOK(res1)) {
30555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30556 }
30557 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30558 result = (wxColour *)& ((arg1)->m_labelColour);
30559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30560 return resultobj;
30561 fail:
30562 return NULL;
30563 }
30564
30565
30566 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30567 PyObject *resultobj = 0;
30568 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30569 wxBitmap *arg2 = (wxBitmap *) 0 ;
30570 void *argp1 = 0 ;
30571 int res1 = 0 ;
30572 void *argp2 = 0 ;
30573 int res2 = 0 ;
30574 PyObject *swig_obj[2] ;
30575
30576 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30578 if (!SWIG_IsOK(res1)) {
30579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30580 }
30581 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30582 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30583 if (!SWIG_IsOK(res2)) {
30584 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30585 }
30586 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30587 if (arg1) (arg1)->m_labelBitmap = *arg2;
30588
30589 resultobj = SWIG_Py_Void();
30590 return resultobj;
30591 fail:
30592 return NULL;
30593 }
30594
30595
30596 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30597 PyObject *resultobj = 0;
30598 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30599 wxBitmap *result = 0 ;
30600 void *argp1 = 0 ;
30601 int res1 = 0 ;
30602 PyObject *swig_obj[1] ;
30603
30604 if (!args) SWIG_fail;
30605 swig_obj[0] = args;
30606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30607 if (!SWIG_IsOK(res1)) {
30608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30609 }
30610 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30611 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30612 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30613 return resultobj;
30614 fail:
30615 return NULL;
30616 }
30617
30618
30619 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30620 PyObject *resultobj = 0;
30621 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30622 int arg2 ;
30623 void *argp1 = 0 ;
30624 int res1 = 0 ;
30625 int val2 ;
30626 int ecode2 = 0 ;
30627 PyObject *swig_obj[2] ;
30628
30629 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30631 if (!SWIG_IsOK(res1)) {
30632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30633 }
30634 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30635 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30636 if (!SWIG_IsOK(ecode2)) {
30637 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30638 }
30639 arg2 = static_cast< int >(val2);
30640 if (arg1) (arg1)->m_labelAlignment = arg2;
30641
30642 resultobj = SWIG_Py_Void();
30643 return resultobj;
30644 fail:
30645 return NULL;
30646 }
30647
30648
30649 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30650 PyObject *resultobj = 0;
30651 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30652 int result;
30653 void *argp1 = 0 ;
30654 int res1 = 0 ;
30655 PyObject *swig_obj[1] ;
30656
30657 if (!args) SWIG_fail;
30658 swig_obj[0] = args;
30659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30660 if (!SWIG_IsOK(res1)) {
30661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30662 }
30663 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30664 result = (int) ((arg1)->m_labelAlignment);
30665 resultobj = SWIG_From_int(static_cast< int >(result));
30666 return resultobj;
30667 fail:
30668 return NULL;
30669 }
30670
30671
30672 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30673 PyObject *obj;
30674 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30675 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30676 return SWIG_Py_Void();
30677 }
30678
30679 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30680 return SWIG_Python_InitShadowInstance(args);
30681 }
30682
30683 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30684 PyObject *resultobj = 0;
30685 int arg1 ;
30686 int arg2 ;
30687 wxRendererVersion *result = 0 ;
30688 int val1 ;
30689 int ecode1 = 0 ;
30690 int val2 ;
30691 int ecode2 = 0 ;
30692 PyObject * obj0 = 0 ;
30693 PyObject * obj1 = 0 ;
30694 char * kwnames[] = {
30695 (char *) "version_",(char *) "age_", NULL
30696 };
30697
30698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30699 ecode1 = SWIG_AsVal_int(obj0, &val1);
30700 if (!SWIG_IsOK(ecode1)) {
30701 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30702 }
30703 arg1 = static_cast< int >(val1);
30704 ecode2 = SWIG_AsVal_int(obj1, &val2);
30705 if (!SWIG_IsOK(ecode2)) {
30706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30707 }
30708 arg2 = static_cast< int >(val2);
30709 {
30710 PyThreadState* __tstate = wxPyBeginAllowThreads();
30711 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30712 wxPyEndAllowThreads(__tstate);
30713 if (PyErr_Occurred()) SWIG_fail;
30714 }
30715 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30716 return resultobj;
30717 fail:
30718 return NULL;
30719 }
30720
30721
30722 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30723 PyObject *resultobj = 0;
30724 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30725 void *argp1 = 0 ;
30726 int res1 = 0 ;
30727 PyObject *swig_obj[1] ;
30728
30729 if (!args) SWIG_fail;
30730 swig_obj[0] = args;
30731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30732 if (!SWIG_IsOK(res1)) {
30733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30734 }
30735 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30736 {
30737 PyThreadState* __tstate = wxPyBeginAllowThreads();
30738 delete arg1;
30739
30740 wxPyEndAllowThreads(__tstate);
30741 if (PyErr_Occurred()) SWIG_fail;
30742 }
30743 resultobj = SWIG_Py_Void();
30744 return resultobj;
30745 fail:
30746 return NULL;
30747 }
30748
30749
30750 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30751 PyObject *resultobj = 0;
30752 wxRendererVersion *arg1 = 0 ;
30753 bool result;
30754 void *argp1 = 0 ;
30755 int res1 = 0 ;
30756 PyObject * obj0 = 0 ;
30757 char * kwnames[] = {
30758 (char *) "ver", NULL
30759 };
30760
30761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30762 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30763 if (!SWIG_IsOK(res1)) {
30764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30765 }
30766 if (!argp1) {
30767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30768 }
30769 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30770 {
30771 PyThreadState* __tstate = wxPyBeginAllowThreads();
30772 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30773 wxPyEndAllowThreads(__tstate);
30774 if (PyErr_Occurred()) SWIG_fail;
30775 }
30776 {
30777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30778 }
30779 return resultobj;
30780 fail:
30781 return NULL;
30782 }
30783
30784
30785 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30786 PyObject *resultobj = 0;
30787 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30788 int result;
30789 void *argp1 = 0 ;
30790 int res1 = 0 ;
30791 PyObject *swig_obj[1] ;
30792
30793 if (!args) SWIG_fail;
30794 swig_obj[0] = args;
30795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30796 if (!SWIG_IsOK(res1)) {
30797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30798 }
30799 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30800 result = (int)(int) ((arg1)->version);
30801 resultobj = SWIG_From_int(static_cast< int >(result));
30802 return resultobj;
30803 fail:
30804 return NULL;
30805 }
30806
30807
30808 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30809 PyObject *resultobj = 0;
30810 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30811 int result;
30812 void *argp1 = 0 ;
30813 int res1 = 0 ;
30814 PyObject *swig_obj[1] ;
30815
30816 if (!args) SWIG_fail;
30817 swig_obj[0] = args;
30818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
30819 if (!SWIG_IsOK(res1)) {
30820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30821 }
30822 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30823 result = (int)(int) ((arg1)->age);
30824 resultobj = SWIG_From_int(static_cast< int >(result));
30825 return resultobj;
30826 fail:
30827 return NULL;
30828 }
30829
30830
30831 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30832 PyObject *obj;
30833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30834 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
30835 return SWIG_Py_Void();
30836 }
30837
30838 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30839 return SWIG_Python_InitShadowInstance(args);
30840 }
30841
30842 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30843 PyObject *resultobj = 0;
30844 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30845 wxWindow *arg2 = (wxWindow *) 0 ;
30846 wxDC *arg3 = 0 ;
30847 wxRect *arg4 = 0 ;
30848 int arg5 = (int) 0 ;
30849 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30850 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30851 void *argp1 = 0 ;
30852 int res1 = 0 ;
30853 void *argp2 = 0 ;
30854 int res2 = 0 ;
30855 void *argp3 = 0 ;
30856 int res3 = 0 ;
30857 wxRect temp4 ;
30858 int val5 ;
30859 int ecode5 = 0 ;
30860 int val6 ;
30861 int ecode6 = 0 ;
30862 void *argp7 = 0 ;
30863 int res7 = 0 ;
30864 PyObject * obj0 = 0 ;
30865 PyObject * obj1 = 0 ;
30866 PyObject * obj2 = 0 ;
30867 PyObject * obj3 = 0 ;
30868 PyObject * obj4 = 0 ;
30869 PyObject * obj5 = 0 ;
30870 PyObject * obj6 = 0 ;
30871 char * kwnames[] = {
30872 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30873 };
30874
30875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30877 if (!SWIG_IsOK(res1)) {
30878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30879 }
30880 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30881 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30882 if (!SWIG_IsOK(res2)) {
30883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
30884 }
30885 arg2 = reinterpret_cast< wxWindow * >(argp2);
30886 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30887 if (!SWIG_IsOK(res3)) {
30888 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30889 }
30890 if (!argp3) {
30891 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
30892 }
30893 arg3 = reinterpret_cast< wxDC * >(argp3);
30894 {
30895 arg4 = &temp4;
30896 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30897 }
30898 if (obj4) {
30899 ecode5 = SWIG_AsVal_int(obj4, &val5);
30900 if (!SWIG_IsOK(ecode5)) {
30901 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
30902 }
30903 arg5 = static_cast< int >(val5);
30904 }
30905 if (obj5) {
30906 ecode6 = SWIG_AsVal_int(obj5, &val6);
30907 if (!SWIG_IsOK(ecode6)) {
30908 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30909 }
30910 arg6 = static_cast< wxHeaderSortIconType >(val6);
30911 }
30912 if (obj6) {
30913 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30914 if (!SWIG_IsOK(res7)) {
30915 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
30916 }
30917 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
30918 }
30919 {
30920 PyThreadState* __tstate = wxPyBeginAllowThreads();
30921 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
30922 wxPyEndAllowThreads(__tstate);
30923 if (PyErr_Occurred()) SWIG_fail;
30924 }
30925 resultobj = SWIG_Py_Void();
30926 return resultobj;
30927 fail:
30928 return NULL;
30929 }
30930
30931
30932 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30933 PyObject *resultobj = 0;
30934 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
30935 wxWindow *arg2 = (wxWindow *) 0 ;
30936 wxDC *arg3 = 0 ;
30937 wxRect *arg4 = 0 ;
30938 int arg5 = (int) 0 ;
30939 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
30940 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
30941 void *argp1 = 0 ;
30942 int res1 = 0 ;
30943 void *argp2 = 0 ;
30944 int res2 = 0 ;
30945 void *argp3 = 0 ;
30946 int res3 = 0 ;
30947 wxRect temp4 ;
30948 int val5 ;
30949 int ecode5 = 0 ;
30950 int val6 ;
30951 int ecode6 = 0 ;
30952 void *argp7 = 0 ;
30953 int res7 = 0 ;
30954 PyObject * obj0 = 0 ;
30955 PyObject * obj1 = 0 ;
30956 PyObject * obj2 = 0 ;
30957 PyObject * obj3 = 0 ;
30958 PyObject * obj4 = 0 ;
30959 PyObject * obj5 = 0 ;
30960 PyObject * obj6 = 0 ;
30961 char * kwnames[] = {
30962 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
30963 };
30964
30965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
30966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
30967 if (!SWIG_IsOK(res1)) {
30968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
30969 }
30970 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
30971 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
30972 if (!SWIG_IsOK(res2)) {
30973 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
30974 }
30975 arg2 = reinterpret_cast< wxWindow * >(argp2);
30976 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30977 if (!SWIG_IsOK(res3)) {
30978 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30979 }
30980 if (!argp3) {
30981 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
30982 }
30983 arg3 = reinterpret_cast< wxDC * >(argp3);
30984 {
30985 arg4 = &temp4;
30986 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
30987 }
30988 if (obj4) {
30989 ecode5 = SWIG_AsVal_int(obj4, &val5);
30990 if (!SWIG_IsOK(ecode5)) {
30991 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
30992 }
30993 arg5 = static_cast< int >(val5);
30994 }
30995 if (obj5) {
30996 ecode6 = SWIG_AsVal_int(obj5, &val6);
30997 if (!SWIG_IsOK(ecode6)) {
30998 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
30999 }
31000 arg6 = static_cast< wxHeaderSortIconType >(val6);
31001 }
31002 if (obj6) {
31003 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31004 if (!SWIG_IsOK(res7)) {
31005 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31006 }
31007 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31008 }
31009 {
31010 PyThreadState* __tstate = wxPyBeginAllowThreads();
31011 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31012 wxPyEndAllowThreads(__tstate);
31013 if (PyErr_Occurred()) SWIG_fail;
31014 }
31015 resultobj = SWIG_Py_Void();
31016 return resultobj;
31017 fail:
31018 return NULL;
31019 }
31020
31021
31022 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31023 PyObject *resultobj = 0;
31024 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31025 wxWindow *arg2 = (wxWindow *) 0 ;
31026 int result;
31027 void *argp1 = 0 ;
31028 int res1 = 0 ;
31029 void *argp2 = 0 ;
31030 int res2 = 0 ;
31031 PyObject * obj0 = 0 ;
31032 PyObject * obj1 = 0 ;
31033 char * kwnames[] = {
31034 (char *) "self",(char *) "win", NULL
31035 };
31036
31037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
31038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31039 if (!SWIG_IsOK(res1)) {
31040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31041 }
31042 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31043 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31044 if (!SWIG_IsOK(res2)) {
31045 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31046 }
31047 arg2 = reinterpret_cast< wxWindow * >(argp2);
31048 {
31049 PyThreadState* __tstate = wxPyBeginAllowThreads();
31050 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31051 wxPyEndAllowThreads(__tstate);
31052 if (PyErr_Occurred()) SWIG_fail;
31053 }
31054 resultobj = SWIG_From_int(static_cast< int >(result));
31055 return resultobj;
31056 fail:
31057 return NULL;
31058 }
31059
31060
31061 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31062 PyObject *resultobj = 0;
31063 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31064 wxWindow *arg2 = (wxWindow *) 0 ;
31065 wxDC *arg3 = 0 ;
31066 wxRect *arg4 = 0 ;
31067 int arg5 = (int) 0 ;
31068 void *argp1 = 0 ;
31069 int res1 = 0 ;
31070 void *argp2 = 0 ;
31071 int res2 = 0 ;
31072 void *argp3 = 0 ;
31073 int res3 = 0 ;
31074 wxRect temp4 ;
31075 int val5 ;
31076 int ecode5 = 0 ;
31077 PyObject * obj0 = 0 ;
31078 PyObject * obj1 = 0 ;
31079 PyObject * obj2 = 0 ;
31080 PyObject * obj3 = 0 ;
31081 PyObject * obj4 = 0 ;
31082 char * kwnames[] = {
31083 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31084 };
31085
31086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31088 if (!SWIG_IsOK(res1)) {
31089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31090 }
31091 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31092 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31093 if (!SWIG_IsOK(res2)) {
31094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31095 }
31096 arg2 = reinterpret_cast< wxWindow * >(argp2);
31097 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31098 if (!SWIG_IsOK(res3)) {
31099 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31100 }
31101 if (!argp3) {
31102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31103 }
31104 arg3 = reinterpret_cast< wxDC * >(argp3);
31105 {
31106 arg4 = &temp4;
31107 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31108 }
31109 if (obj4) {
31110 ecode5 = SWIG_AsVal_int(obj4, &val5);
31111 if (!SWIG_IsOK(ecode5)) {
31112 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31113 }
31114 arg5 = static_cast< int >(val5);
31115 }
31116 {
31117 PyThreadState* __tstate = wxPyBeginAllowThreads();
31118 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31119 wxPyEndAllowThreads(__tstate);
31120 if (PyErr_Occurred()) SWIG_fail;
31121 }
31122 resultobj = SWIG_Py_Void();
31123 return resultobj;
31124 fail:
31125 return NULL;
31126 }
31127
31128
31129 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31130 PyObject *resultobj = 0;
31131 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31132 wxWindow *arg2 = (wxWindow *) 0 ;
31133 wxDC *arg3 = 0 ;
31134 wxRect *arg4 = 0 ;
31135 int arg5 = (int) 0 ;
31136 void *argp1 = 0 ;
31137 int res1 = 0 ;
31138 void *argp2 = 0 ;
31139 int res2 = 0 ;
31140 void *argp3 = 0 ;
31141 int res3 = 0 ;
31142 wxRect temp4 ;
31143 int val5 ;
31144 int ecode5 = 0 ;
31145 PyObject * obj0 = 0 ;
31146 PyObject * obj1 = 0 ;
31147 PyObject * obj2 = 0 ;
31148 PyObject * obj3 = 0 ;
31149 PyObject * obj4 = 0 ;
31150 char * kwnames[] = {
31151 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31152 };
31153
31154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31156 if (!SWIG_IsOK(res1)) {
31157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31158 }
31159 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31160 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31161 if (!SWIG_IsOK(res2)) {
31162 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31163 }
31164 arg2 = reinterpret_cast< wxWindow * >(argp2);
31165 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31166 if (!SWIG_IsOK(res3)) {
31167 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31168 }
31169 if (!argp3) {
31170 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31171 }
31172 arg3 = reinterpret_cast< wxDC * >(argp3);
31173 {
31174 arg4 = &temp4;
31175 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31176 }
31177 if (obj4) {
31178 ecode5 = SWIG_AsVal_int(obj4, &val5);
31179 if (!SWIG_IsOK(ecode5)) {
31180 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31181 }
31182 arg5 = static_cast< int >(val5);
31183 }
31184 {
31185 PyThreadState* __tstate = wxPyBeginAllowThreads();
31186 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31187 wxPyEndAllowThreads(__tstate);
31188 if (PyErr_Occurred()) SWIG_fail;
31189 }
31190 resultobj = SWIG_Py_Void();
31191 return resultobj;
31192 fail:
31193 return NULL;
31194 }
31195
31196
31197 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31198 PyObject *resultobj = 0;
31199 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31200 wxWindow *arg2 = (wxWindow *) 0 ;
31201 wxDC *arg3 = 0 ;
31202 wxSize *arg4 = 0 ;
31203 int arg5 ;
31204 wxOrientation arg6 ;
31205 int arg7 = (int) 0 ;
31206 void *argp1 = 0 ;
31207 int res1 = 0 ;
31208 void *argp2 = 0 ;
31209 int res2 = 0 ;
31210 void *argp3 = 0 ;
31211 int res3 = 0 ;
31212 wxSize temp4 ;
31213 int val5 ;
31214 int ecode5 = 0 ;
31215 int val6 ;
31216 int ecode6 = 0 ;
31217 int val7 ;
31218 int ecode7 = 0 ;
31219 PyObject * obj0 = 0 ;
31220 PyObject * obj1 = 0 ;
31221 PyObject * obj2 = 0 ;
31222 PyObject * obj3 = 0 ;
31223 PyObject * obj4 = 0 ;
31224 PyObject * obj5 = 0 ;
31225 PyObject * obj6 = 0 ;
31226 char * kwnames[] = {
31227 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31228 };
31229
31230 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31231 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31232 if (!SWIG_IsOK(res1)) {
31233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31234 }
31235 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31236 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31237 if (!SWIG_IsOK(res2)) {
31238 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31239 }
31240 arg2 = reinterpret_cast< wxWindow * >(argp2);
31241 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31242 if (!SWIG_IsOK(res3)) {
31243 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31244 }
31245 if (!argp3) {
31246 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31247 }
31248 arg3 = reinterpret_cast< wxDC * >(argp3);
31249 {
31250 arg4 = &temp4;
31251 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31252 }
31253 ecode5 = SWIG_AsVal_int(obj4, &val5);
31254 if (!SWIG_IsOK(ecode5)) {
31255 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31256 }
31257 arg5 = static_cast< int >(val5);
31258 ecode6 = SWIG_AsVal_int(obj5, &val6);
31259 if (!SWIG_IsOK(ecode6)) {
31260 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31261 }
31262 arg6 = static_cast< wxOrientation >(val6);
31263 if (obj6) {
31264 ecode7 = SWIG_AsVal_int(obj6, &val7);
31265 if (!SWIG_IsOK(ecode7)) {
31266 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31267 }
31268 arg7 = static_cast< int >(val7);
31269 }
31270 {
31271 PyThreadState* __tstate = wxPyBeginAllowThreads();
31272 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31273 wxPyEndAllowThreads(__tstate);
31274 if (PyErr_Occurred()) SWIG_fail;
31275 }
31276 resultobj = SWIG_Py_Void();
31277 return resultobj;
31278 fail:
31279 return NULL;
31280 }
31281
31282
31283 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31284 PyObject *resultobj = 0;
31285 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31286 wxWindow *arg2 = (wxWindow *) 0 ;
31287 wxDC *arg3 = 0 ;
31288 wxRect *arg4 = 0 ;
31289 int arg5 = (int) 0 ;
31290 void *argp1 = 0 ;
31291 int res1 = 0 ;
31292 void *argp2 = 0 ;
31293 int res2 = 0 ;
31294 void *argp3 = 0 ;
31295 int res3 = 0 ;
31296 wxRect temp4 ;
31297 int val5 ;
31298 int ecode5 = 0 ;
31299 PyObject * obj0 = 0 ;
31300 PyObject * obj1 = 0 ;
31301 PyObject * obj2 = 0 ;
31302 PyObject * obj3 = 0 ;
31303 PyObject * obj4 = 0 ;
31304 char * kwnames[] = {
31305 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31306 };
31307
31308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31310 if (!SWIG_IsOK(res1)) {
31311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31312 }
31313 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31315 if (!SWIG_IsOK(res2)) {
31316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31317 }
31318 arg2 = reinterpret_cast< wxWindow * >(argp2);
31319 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31320 if (!SWIG_IsOK(res3)) {
31321 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31322 }
31323 if (!argp3) {
31324 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31325 }
31326 arg3 = reinterpret_cast< wxDC * >(argp3);
31327 {
31328 arg4 = &temp4;
31329 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31330 }
31331 if (obj4) {
31332 ecode5 = SWIG_AsVal_int(obj4, &val5);
31333 if (!SWIG_IsOK(ecode5)) {
31334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31335 }
31336 arg5 = static_cast< int >(val5);
31337 }
31338 {
31339 PyThreadState* __tstate = wxPyBeginAllowThreads();
31340 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31341 wxPyEndAllowThreads(__tstate);
31342 if (PyErr_Occurred()) SWIG_fail;
31343 }
31344 resultobj = SWIG_Py_Void();
31345 return resultobj;
31346 fail:
31347 return NULL;
31348 }
31349
31350
31351 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31352 PyObject *resultobj = 0;
31353 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31354 wxWindow *arg2 = (wxWindow *) 0 ;
31355 wxDC *arg3 = 0 ;
31356 wxRect *arg4 = 0 ;
31357 int arg5 = (int) 0 ;
31358 void *argp1 = 0 ;
31359 int res1 = 0 ;
31360 void *argp2 = 0 ;
31361 int res2 = 0 ;
31362 void *argp3 = 0 ;
31363 int res3 = 0 ;
31364 wxRect temp4 ;
31365 int val5 ;
31366 int ecode5 = 0 ;
31367 PyObject * obj0 = 0 ;
31368 PyObject * obj1 = 0 ;
31369 PyObject * obj2 = 0 ;
31370 PyObject * obj3 = 0 ;
31371 PyObject * obj4 = 0 ;
31372 char * kwnames[] = {
31373 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31374 };
31375
31376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31378 if (!SWIG_IsOK(res1)) {
31379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31380 }
31381 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31382 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31383 if (!SWIG_IsOK(res2)) {
31384 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31385 }
31386 arg2 = reinterpret_cast< wxWindow * >(argp2);
31387 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31388 if (!SWIG_IsOK(res3)) {
31389 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31390 }
31391 if (!argp3) {
31392 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31393 }
31394 arg3 = reinterpret_cast< wxDC * >(argp3);
31395 {
31396 arg4 = &temp4;
31397 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31398 }
31399 if (obj4) {
31400 ecode5 = SWIG_AsVal_int(obj4, &val5);
31401 if (!SWIG_IsOK(ecode5)) {
31402 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31403 }
31404 arg5 = static_cast< int >(val5);
31405 }
31406 {
31407 PyThreadState* __tstate = wxPyBeginAllowThreads();
31408 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31409 wxPyEndAllowThreads(__tstate);
31410 if (PyErr_Occurred()) SWIG_fail;
31411 }
31412 resultobj = SWIG_Py_Void();
31413 return resultobj;
31414 fail:
31415 return NULL;
31416 }
31417
31418
31419 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31420 PyObject *resultobj = 0;
31421 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31422 wxWindow *arg2 = (wxWindow *) 0 ;
31423 wxDC *arg3 = 0 ;
31424 wxRect *arg4 = 0 ;
31425 int arg5 = (int) 0 ;
31426 void *argp1 = 0 ;
31427 int res1 = 0 ;
31428 void *argp2 = 0 ;
31429 int res2 = 0 ;
31430 void *argp3 = 0 ;
31431 int res3 = 0 ;
31432 wxRect temp4 ;
31433 int val5 ;
31434 int ecode5 = 0 ;
31435 PyObject * obj0 = 0 ;
31436 PyObject * obj1 = 0 ;
31437 PyObject * obj2 = 0 ;
31438 PyObject * obj3 = 0 ;
31439 PyObject * obj4 = 0 ;
31440 char * kwnames[] = {
31441 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31442 };
31443
31444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31446 if (!SWIG_IsOK(res1)) {
31447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31448 }
31449 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31451 if (!SWIG_IsOK(res2)) {
31452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31453 }
31454 arg2 = reinterpret_cast< wxWindow * >(argp2);
31455 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31456 if (!SWIG_IsOK(res3)) {
31457 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31458 }
31459 if (!argp3) {
31460 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31461 }
31462 arg3 = reinterpret_cast< wxDC * >(argp3);
31463 {
31464 arg4 = &temp4;
31465 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31466 }
31467 if (obj4) {
31468 ecode5 = SWIG_AsVal_int(obj4, &val5);
31469 if (!SWIG_IsOK(ecode5)) {
31470 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31471 }
31472 arg5 = static_cast< int >(val5);
31473 }
31474 {
31475 PyThreadState* __tstate = wxPyBeginAllowThreads();
31476 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31477 wxPyEndAllowThreads(__tstate);
31478 if (PyErr_Occurred()) SWIG_fail;
31479 }
31480 resultobj = SWIG_Py_Void();
31481 return resultobj;
31482 fail:
31483 return NULL;
31484 }
31485
31486
31487 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31488 PyObject *resultobj = 0;
31489 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31490 wxWindow *arg2 = (wxWindow *) 0 ;
31491 wxDC *arg3 = 0 ;
31492 wxRect *arg4 = 0 ;
31493 int arg5 = (int) 0 ;
31494 void *argp1 = 0 ;
31495 int res1 = 0 ;
31496 void *argp2 = 0 ;
31497 int res2 = 0 ;
31498 void *argp3 = 0 ;
31499 int res3 = 0 ;
31500 wxRect temp4 ;
31501 int val5 ;
31502 int ecode5 = 0 ;
31503 PyObject * obj0 = 0 ;
31504 PyObject * obj1 = 0 ;
31505 PyObject * obj2 = 0 ;
31506 PyObject * obj3 = 0 ;
31507 PyObject * obj4 = 0 ;
31508 char * kwnames[] = {
31509 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31510 };
31511
31512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31514 if (!SWIG_IsOK(res1)) {
31515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31516 }
31517 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31518 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31519 if (!SWIG_IsOK(res2)) {
31520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31521 }
31522 arg2 = reinterpret_cast< wxWindow * >(argp2);
31523 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31524 if (!SWIG_IsOK(res3)) {
31525 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31526 }
31527 if (!argp3) {
31528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31529 }
31530 arg3 = reinterpret_cast< wxDC * >(argp3);
31531 {
31532 arg4 = &temp4;
31533 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31534 }
31535 if (obj4) {
31536 ecode5 = SWIG_AsVal_int(obj4, &val5);
31537 if (!SWIG_IsOK(ecode5)) {
31538 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31539 }
31540 arg5 = static_cast< int >(val5);
31541 }
31542 {
31543 PyThreadState* __tstate = wxPyBeginAllowThreads();
31544 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31545 wxPyEndAllowThreads(__tstate);
31546 if (PyErr_Occurred()) SWIG_fail;
31547 }
31548 resultobj = SWIG_Py_Void();
31549 return resultobj;
31550 fail:
31551 return NULL;
31552 }
31553
31554
31555 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31556 PyObject *resultobj = 0;
31557 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31558 wxWindow *arg2 = (wxWindow *) 0 ;
31559 wxDC *arg3 = 0 ;
31560 wxRect *arg4 = 0 ;
31561 int arg5 = (int) 0 ;
31562 void *argp1 = 0 ;
31563 int res1 = 0 ;
31564 void *argp2 = 0 ;
31565 int res2 = 0 ;
31566 void *argp3 = 0 ;
31567 int res3 = 0 ;
31568 wxRect temp4 ;
31569 int val5 ;
31570 int ecode5 = 0 ;
31571 PyObject * obj0 = 0 ;
31572 PyObject * obj1 = 0 ;
31573 PyObject * obj2 = 0 ;
31574 PyObject * obj3 = 0 ;
31575 PyObject * obj4 = 0 ;
31576 char * kwnames[] = {
31577 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31578 };
31579
31580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31582 if (!SWIG_IsOK(res1)) {
31583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31584 }
31585 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31586 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31587 if (!SWIG_IsOK(res2)) {
31588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31589 }
31590 arg2 = reinterpret_cast< wxWindow * >(argp2);
31591 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31592 if (!SWIG_IsOK(res3)) {
31593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31594 }
31595 if (!argp3) {
31596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31597 }
31598 arg3 = reinterpret_cast< wxDC * >(argp3);
31599 {
31600 arg4 = &temp4;
31601 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31602 }
31603 if (obj4) {
31604 ecode5 = SWIG_AsVal_int(obj4, &val5);
31605 if (!SWIG_IsOK(ecode5)) {
31606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31607 }
31608 arg5 = static_cast< int >(val5);
31609 }
31610 {
31611 PyThreadState* __tstate = wxPyBeginAllowThreads();
31612 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31613 wxPyEndAllowThreads(__tstate);
31614 if (PyErr_Occurred()) SWIG_fail;
31615 }
31616 resultobj = SWIG_Py_Void();
31617 return resultobj;
31618 fail:
31619 return NULL;
31620 }
31621
31622
31623 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31624 PyObject *resultobj = 0;
31625 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31626 wxWindow *arg2 = (wxWindow *) 0 ;
31627 SwigValueWrapper<wxSplitterRenderParams > result;
31628 void *argp1 = 0 ;
31629 int res1 = 0 ;
31630 void *argp2 = 0 ;
31631 int res2 = 0 ;
31632 PyObject * obj0 = 0 ;
31633 PyObject * obj1 = 0 ;
31634 char * kwnames[] = {
31635 (char *) "self",(char *) "win", NULL
31636 };
31637
31638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31640 if (!SWIG_IsOK(res1)) {
31641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31642 }
31643 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31644 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31645 if (!SWIG_IsOK(res2)) {
31646 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31647 }
31648 arg2 = reinterpret_cast< wxWindow * >(argp2);
31649 {
31650 PyThreadState* __tstate = wxPyBeginAllowThreads();
31651 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31652 wxPyEndAllowThreads(__tstate);
31653 if (PyErr_Occurred()) SWIG_fail;
31654 }
31655 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31656 return resultobj;
31657 fail:
31658 return NULL;
31659 }
31660
31661
31662 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31663 PyObject *resultobj = 0;
31664 wxRendererNative *result = 0 ;
31665
31666 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31667 {
31668 if (!wxPyCheckForApp()) SWIG_fail;
31669 PyThreadState* __tstate = wxPyBeginAllowThreads();
31670 {
31671 wxRendererNative &_result_ref = wxRendererNative::Get();
31672 result = (wxRendererNative *) &_result_ref;
31673 }
31674 wxPyEndAllowThreads(__tstate);
31675 if (PyErr_Occurred()) SWIG_fail;
31676 }
31677 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31678 return resultobj;
31679 fail:
31680 return NULL;
31681 }
31682
31683
31684 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31685 PyObject *resultobj = 0;
31686 wxRendererNative *result = 0 ;
31687
31688 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31689 {
31690 if (!wxPyCheckForApp()) SWIG_fail;
31691 PyThreadState* __tstate = wxPyBeginAllowThreads();
31692 {
31693 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31694 result = (wxRendererNative *) &_result_ref;
31695 }
31696 wxPyEndAllowThreads(__tstate);
31697 if (PyErr_Occurred()) SWIG_fail;
31698 }
31699 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31700 return resultobj;
31701 fail:
31702 return NULL;
31703 }
31704
31705
31706 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31707 PyObject *resultobj = 0;
31708 wxRendererNative *result = 0 ;
31709
31710 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31711 {
31712 if (!wxPyCheckForApp()) SWIG_fail;
31713 PyThreadState* __tstate = wxPyBeginAllowThreads();
31714 {
31715 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31716 result = (wxRendererNative *) &_result_ref;
31717 }
31718 wxPyEndAllowThreads(__tstate);
31719 if (PyErr_Occurred()) SWIG_fail;
31720 }
31721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31722 return resultobj;
31723 fail:
31724 return NULL;
31725 }
31726
31727
31728 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31729 PyObject *resultobj = 0;
31730 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31731 wxRendererNative *result = 0 ;
31732 void *argp1 = 0 ;
31733 int res1 = 0 ;
31734 PyObject * obj0 = 0 ;
31735 char * kwnames[] = {
31736 (char *) "renderer", NULL
31737 };
31738
31739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31741 if (!SWIG_IsOK(res1)) {
31742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31743 }
31744 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31745 {
31746 if (!wxPyCheckForApp()) SWIG_fail;
31747 PyThreadState* __tstate = wxPyBeginAllowThreads();
31748 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31749 wxPyEndAllowThreads(__tstate);
31750 if (PyErr_Occurred()) SWIG_fail;
31751 }
31752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31753 return resultobj;
31754 fail:
31755 return NULL;
31756 }
31757
31758
31759 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31760 PyObject *resultobj = 0;
31761 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31762 SwigValueWrapper<wxRendererVersion > result;
31763 void *argp1 = 0 ;
31764 int res1 = 0 ;
31765 PyObject *swig_obj[1] ;
31766
31767 if (!args) SWIG_fail;
31768 swig_obj[0] = args;
31769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31770 if (!SWIG_IsOK(res1)) {
31771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31772 }
31773 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31774 {
31775 PyThreadState* __tstate = wxPyBeginAllowThreads();
31776 result = ((wxRendererNative const *)arg1)->GetVersion();
31777 wxPyEndAllowThreads(__tstate);
31778 if (PyErr_Occurred()) SWIG_fail;
31779 }
31780 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
31781 return resultobj;
31782 fail:
31783 return NULL;
31784 }
31785
31786
31787 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31788 PyObject *obj;
31789 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31790 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
31791 return SWIG_Py_Void();
31792 }
31793
31794 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31795 PyObject *resultobj = 0;
31796 wxPseudoDC *result = 0 ;
31797
31798 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
31799 {
31800 PyThreadState* __tstate = wxPyBeginAllowThreads();
31801 result = (wxPseudoDC *)new wxPseudoDC();
31802 wxPyEndAllowThreads(__tstate);
31803 if (PyErr_Occurred()) SWIG_fail;
31804 }
31805 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
31806 return resultobj;
31807 fail:
31808 return NULL;
31809 }
31810
31811
31812 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31813 PyObject *resultobj = 0;
31814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31815 void *argp1 = 0 ;
31816 int res1 = 0 ;
31817 PyObject *swig_obj[1] ;
31818
31819 if (!args) SWIG_fail;
31820 swig_obj[0] = args;
31821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31822 if (!SWIG_IsOK(res1)) {
31823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31824 }
31825 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31826 {
31827 PyThreadState* __tstate = wxPyBeginAllowThreads();
31828 (arg1)->BeginDrawing();
31829 wxPyEndAllowThreads(__tstate);
31830 if (PyErr_Occurred()) SWIG_fail;
31831 }
31832 resultobj = SWIG_Py_Void();
31833 return resultobj;
31834 fail:
31835 return NULL;
31836 }
31837
31838
31839 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31840 PyObject *resultobj = 0;
31841 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31842 void *argp1 = 0 ;
31843 int res1 = 0 ;
31844 PyObject *swig_obj[1] ;
31845
31846 if (!args) SWIG_fail;
31847 swig_obj[0] = args;
31848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31849 if (!SWIG_IsOK(res1)) {
31850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31851 }
31852 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31853 {
31854 PyThreadState* __tstate = wxPyBeginAllowThreads();
31855 (arg1)->EndDrawing();
31856 wxPyEndAllowThreads(__tstate);
31857 if (PyErr_Occurred()) SWIG_fail;
31858 }
31859 resultobj = SWIG_Py_Void();
31860 return resultobj;
31861 fail:
31862 return NULL;
31863 }
31864
31865
31866 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31867 PyObject *resultobj = 0;
31868 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31869 void *argp1 = 0 ;
31870 int res1 = 0 ;
31871 PyObject *swig_obj[1] ;
31872
31873 if (!args) SWIG_fail;
31874 swig_obj[0] = args;
31875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
31876 if (!SWIG_IsOK(res1)) {
31877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31878 }
31879 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31880 {
31881 PyThreadState* __tstate = wxPyBeginAllowThreads();
31882 delete arg1;
31883
31884 wxPyEndAllowThreads(__tstate);
31885 if (PyErr_Occurred()) SWIG_fail;
31886 }
31887 resultobj = SWIG_Py_Void();
31888 return resultobj;
31889 fail:
31890 return NULL;
31891 }
31892
31893
31894 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31895 PyObject *resultobj = 0;
31896 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31897 void *argp1 = 0 ;
31898 int res1 = 0 ;
31899 PyObject *swig_obj[1] ;
31900
31901 if (!args) SWIG_fail;
31902 swig_obj[0] = args;
31903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31904 if (!SWIG_IsOK(res1)) {
31905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31906 }
31907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31908 {
31909 PyThreadState* __tstate = wxPyBeginAllowThreads();
31910 (arg1)->RemoveAll();
31911 wxPyEndAllowThreads(__tstate);
31912 if (PyErr_Occurred()) SWIG_fail;
31913 }
31914 resultobj = SWIG_Py_Void();
31915 return resultobj;
31916 fail:
31917 return NULL;
31918 }
31919
31920
31921 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31922 PyObject *resultobj = 0;
31923 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31924 int result;
31925 void *argp1 = 0 ;
31926 int res1 = 0 ;
31927 PyObject *swig_obj[1] ;
31928
31929 if (!args) SWIG_fail;
31930 swig_obj[0] = args;
31931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31932 if (!SWIG_IsOK(res1)) {
31933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31934 }
31935 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31936 {
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 result = (int)(arg1)->GetLen();
31939 wxPyEndAllowThreads(__tstate);
31940 if (PyErr_Occurred()) SWIG_fail;
31941 }
31942 resultobj = SWIG_From_int(static_cast< int >(result));
31943 return resultobj;
31944 fail:
31945 return NULL;
31946 }
31947
31948
31949 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31950 PyObject *resultobj = 0;
31951 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31952 int arg2 ;
31953 void *argp1 = 0 ;
31954 int res1 = 0 ;
31955 int val2 ;
31956 int ecode2 = 0 ;
31957 PyObject * obj0 = 0 ;
31958 PyObject * obj1 = 0 ;
31959 char * kwnames[] = {
31960 (char *) "self",(char *) "id", NULL
31961 };
31962
31963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
31964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
31967 }
31968 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
31969 ecode2 = SWIG_AsVal_int(obj1, &val2);
31970 if (!SWIG_IsOK(ecode2)) {
31971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
31972 }
31973 arg2 = static_cast< int >(val2);
31974 {
31975 PyThreadState* __tstate = wxPyBeginAllowThreads();
31976 (arg1)->SetId(arg2);
31977 wxPyEndAllowThreads(__tstate);
31978 if (PyErr_Occurred()) SWIG_fail;
31979 }
31980 resultobj = SWIG_Py_Void();
31981 return resultobj;
31982 fail:
31983 return NULL;
31984 }
31985
31986
31987 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31988 PyObject *resultobj = 0;
31989 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
31990 int arg2 ;
31991 void *argp1 = 0 ;
31992 int res1 = 0 ;
31993 int val2 ;
31994 int ecode2 = 0 ;
31995 PyObject * obj0 = 0 ;
31996 PyObject * obj1 = 0 ;
31997 char * kwnames[] = {
31998 (char *) "self",(char *) "id", NULL
31999 };
32000
32001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
32002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32003 if (!SWIG_IsOK(res1)) {
32004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32005 }
32006 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32007 ecode2 = SWIG_AsVal_int(obj1, &val2);
32008 if (!SWIG_IsOK(ecode2)) {
32009 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
32010 }
32011 arg2 = static_cast< int >(val2);
32012 {
32013 PyThreadState* __tstate = wxPyBeginAllowThreads();
32014 (arg1)->ClearId(arg2);
32015 wxPyEndAllowThreads(__tstate);
32016 if (PyErr_Occurred()) SWIG_fail;
32017 }
32018 resultobj = SWIG_Py_Void();
32019 return resultobj;
32020 fail:
32021 return NULL;
32022 }
32023
32024
32025 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32026 PyObject *resultobj = 0;
32027 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32028 int arg2 ;
32029 void *argp1 = 0 ;
32030 int res1 = 0 ;
32031 int val2 ;
32032 int ecode2 = 0 ;
32033 PyObject * obj0 = 0 ;
32034 PyObject * obj1 = 0 ;
32035 char * kwnames[] = {
32036 (char *) "self",(char *) "id", NULL
32037 };
32038
32039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
32040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32041 if (!SWIG_IsOK(res1)) {
32042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32043 }
32044 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32045 ecode2 = SWIG_AsVal_int(obj1, &val2);
32046 if (!SWIG_IsOK(ecode2)) {
32047 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32048 }
32049 arg2 = static_cast< int >(val2);
32050 {
32051 PyThreadState* __tstate = wxPyBeginAllowThreads();
32052 (arg1)->RemoveId(arg2);
32053 wxPyEndAllowThreads(__tstate);
32054 if (PyErr_Occurred()) SWIG_fail;
32055 }
32056 resultobj = SWIG_Py_Void();
32057 return resultobj;
32058 fail:
32059 return NULL;
32060 }
32061
32062
32063 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32064 PyObject *resultobj = 0;
32065 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32066 int arg2 ;
32067 int arg3 ;
32068 int arg4 ;
32069 void *argp1 = 0 ;
32070 int res1 = 0 ;
32071 int val2 ;
32072 int ecode2 = 0 ;
32073 int val3 ;
32074 int ecode3 = 0 ;
32075 int val4 ;
32076 int ecode4 = 0 ;
32077 PyObject * obj0 = 0 ;
32078 PyObject * obj1 = 0 ;
32079 PyObject * obj2 = 0 ;
32080 PyObject * obj3 = 0 ;
32081 char * kwnames[] = {
32082 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32083 };
32084
32085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32087 if (!SWIG_IsOK(res1)) {
32088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32089 }
32090 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32091 ecode2 = SWIG_AsVal_int(obj1, &val2);
32092 if (!SWIG_IsOK(ecode2)) {
32093 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32094 }
32095 arg2 = static_cast< int >(val2);
32096 ecode3 = SWIG_AsVal_int(obj2, &val3);
32097 if (!SWIG_IsOK(ecode3)) {
32098 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32099 }
32100 arg3 = static_cast< int >(val3);
32101 ecode4 = SWIG_AsVal_int(obj3, &val4);
32102 if (!SWIG_IsOK(ecode4)) {
32103 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32104 }
32105 arg4 = static_cast< int >(val4);
32106 {
32107 PyThreadState* __tstate = wxPyBeginAllowThreads();
32108 (arg1)->TranslateId(arg2,arg3,arg4);
32109 wxPyEndAllowThreads(__tstate);
32110 if (PyErr_Occurred()) SWIG_fail;
32111 }
32112 resultobj = SWIG_Py_Void();
32113 return resultobj;
32114 fail:
32115 return NULL;
32116 }
32117
32118
32119 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32120 PyObject *resultobj = 0;
32121 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32122 int arg2 ;
32123 bool arg3 = (bool) true ;
32124 void *argp1 = 0 ;
32125 int res1 = 0 ;
32126 int val2 ;
32127 int ecode2 = 0 ;
32128 bool val3 ;
32129 int ecode3 = 0 ;
32130 PyObject * obj0 = 0 ;
32131 PyObject * obj1 = 0 ;
32132 PyObject * obj2 = 0 ;
32133 char * kwnames[] = {
32134 (char *) "self",(char *) "id",(char *) "greyout", NULL
32135 };
32136
32137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32139 if (!SWIG_IsOK(res1)) {
32140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32141 }
32142 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32143 ecode2 = SWIG_AsVal_int(obj1, &val2);
32144 if (!SWIG_IsOK(ecode2)) {
32145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32146 }
32147 arg2 = static_cast< int >(val2);
32148 if (obj2) {
32149 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32150 if (!SWIG_IsOK(ecode3)) {
32151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32152 }
32153 arg3 = static_cast< bool >(val3);
32154 }
32155 {
32156 PyThreadState* __tstate = wxPyBeginAllowThreads();
32157 (arg1)->SetIdGreyedOut(arg2,arg3);
32158 wxPyEndAllowThreads(__tstate);
32159 if (PyErr_Occurred()) SWIG_fail;
32160 }
32161 resultobj = SWIG_Py_Void();
32162 return resultobj;
32163 fail:
32164 return NULL;
32165 }
32166
32167
32168 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32169 PyObject *resultobj = 0;
32170 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32171 int arg2 ;
32172 bool result;
32173 void *argp1 = 0 ;
32174 int res1 = 0 ;
32175 int val2 ;
32176 int ecode2 = 0 ;
32177 PyObject * obj0 = 0 ;
32178 PyObject * obj1 = 0 ;
32179 char * kwnames[] = {
32180 (char *) "self",(char *) "id", NULL
32181 };
32182
32183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32185 if (!SWIG_IsOK(res1)) {
32186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32187 }
32188 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32189 ecode2 = SWIG_AsVal_int(obj1, &val2);
32190 if (!SWIG_IsOK(ecode2)) {
32191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32192 }
32193 arg2 = static_cast< int >(val2);
32194 {
32195 PyThreadState* __tstate = wxPyBeginAllowThreads();
32196 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32197 wxPyEndAllowThreads(__tstate);
32198 if (PyErr_Occurred()) SWIG_fail;
32199 }
32200 {
32201 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32202 }
32203 return resultobj;
32204 fail:
32205 return NULL;
32206 }
32207
32208
32209 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32210 PyObject *resultobj = 0;
32211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32212 int arg2 ;
32213 int arg3 ;
32214 int arg4 = (int) 1 ;
32215 wxColor const &arg5_defvalue = *wxWHITE ;
32216 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32217 PyObject *result = 0 ;
32218 void *argp1 = 0 ;
32219 int res1 = 0 ;
32220 int val2 ;
32221 int ecode2 = 0 ;
32222 int val3 ;
32223 int ecode3 = 0 ;
32224 int val4 ;
32225 int ecode4 = 0 ;
32226 void *argp5 = 0 ;
32227 int res5 = 0 ;
32228 PyObject * obj0 = 0 ;
32229 PyObject * obj1 = 0 ;
32230 PyObject * obj2 = 0 ;
32231 PyObject * obj3 = 0 ;
32232 PyObject * obj4 = 0 ;
32233 char * kwnames[] = {
32234 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32235 };
32236
32237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32239 if (!SWIG_IsOK(res1)) {
32240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32241 }
32242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32243 ecode2 = SWIG_AsVal_int(obj1, &val2);
32244 if (!SWIG_IsOK(ecode2)) {
32245 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32246 }
32247 arg2 = static_cast< int >(val2);
32248 ecode3 = SWIG_AsVal_int(obj2, &val3);
32249 if (!SWIG_IsOK(ecode3)) {
32250 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32251 }
32252 arg3 = static_cast< int >(val3);
32253 if (obj3) {
32254 ecode4 = SWIG_AsVal_int(obj3, &val4);
32255 if (!SWIG_IsOK(ecode4)) {
32256 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32257 }
32258 arg4 = static_cast< int >(val4);
32259 }
32260 if (obj4) {
32261 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32262 if (!SWIG_IsOK(res5)) {
32263 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32264 }
32265 if (!argp5) {
32266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32267 }
32268 arg5 = reinterpret_cast< wxColor * >(argp5);
32269 }
32270 {
32271 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32272 if (PyErr_Occurred()) SWIG_fail;
32273 }
32274 resultobj = result;
32275 return resultobj;
32276 fail:
32277 return NULL;
32278 }
32279
32280
32281 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32282 PyObject *resultobj = 0;
32283 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32284 int arg2 ;
32285 int arg3 ;
32286 PyObject *result = 0 ;
32287 void *argp1 = 0 ;
32288 int res1 = 0 ;
32289 int val2 ;
32290 int ecode2 = 0 ;
32291 int val3 ;
32292 int ecode3 = 0 ;
32293 PyObject * obj0 = 0 ;
32294 PyObject * obj1 = 0 ;
32295 PyObject * obj2 = 0 ;
32296 char * kwnames[] = {
32297 (char *) "self",(char *) "x",(char *) "y", NULL
32298 };
32299
32300 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32301 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32302 if (!SWIG_IsOK(res1)) {
32303 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32304 }
32305 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32306 ecode2 = SWIG_AsVal_int(obj1, &val2);
32307 if (!SWIG_IsOK(ecode2)) {
32308 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32309 }
32310 arg2 = static_cast< int >(val2);
32311 ecode3 = SWIG_AsVal_int(obj2, &val3);
32312 if (!SWIG_IsOK(ecode3)) {
32313 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32314 }
32315 arg3 = static_cast< int >(val3);
32316 {
32317 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32318 if (PyErr_Occurred()) SWIG_fail;
32319 }
32320 resultobj = result;
32321 return resultobj;
32322 fail:
32323 return NULL;
32324 }
32325
32326
32327 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32328 PyObject *resultobj = 0;
32329 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32330 int arg2 ;
32331 wxDC *arg3 = (wxDC *) 0 ;
32332 void *argp1 = 0 ;
32333 int res1 = 0 ;
32334 int val2 ;
32335 int ecode2 = 0 ;
32336 void *argp3 = 0 ;
32337 int res3 = 0 ;
32338 PyObject * obj0 = 0 ;
32339 PyObject * obj1 = 0 ;
32340 PyObject * obj2 = 0 ;
32341 char * kwnames[] = {
32342 (char *) "self",(char *) "id",(char *) "dc", NULL
32343 };
32344
32345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32347 if (!SWIG_IsOK(res1)) {
32348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32349 }
32350 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32351 ecode2 = SWIG_AsVal_int(obj1, &val2);
32352 if (!SWIG_IsOK(ecode2)) {
32353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32354 }
32355 arg2 = static_cast< int >(val2);
32356 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32357 if (!SWIG_IsOK(res3)) {
32358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32359 }
32360 arg3 = reinterpret_cast< wxDC * >(argp3);
32361 {
32362 PyThreadState* __tstate = wxPyBeginAllowThreads();
32363 (arg1)->DrawIdToDC(arg2,arg3);
32364 wxPyEndAllowThreads(__tstate);
32365 if (PyErr_Occurred()) SWIG_fail;
32366 }
32367 resultobj = SWIG_Py_Void();
32368 return resultobj;
32369 fail:
32370 return NULL;
32371 }
32372
32373
32374 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32375 PyObject *resultobj = 0;
32376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32377 int arg2 ;
32378 wxRect *arg3 = 0 ;
32379 void *argp1 = 0 ;
32380 int res1 = 0 ;
32381 int val2 ;
32382 int ecode2 = 0 ;
32383 wxRect temp3 ;
32384 PyObject * obj0 = 0 ;
32385 PyObject * obj1 = 0 ;
32386 PyObject * obj2 = 0 ;
32387 char * kwnames[] = {
32388 (char *) "self",(char *) "id",(char *) "rect", NULL
32389 };
32390
32391 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32392 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32393 if (!SWIG_IsOK(res1)) {
32394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32395 }
32396 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32397 ecode2 = SWIG_AsVal_int(obj1, &val2);
32398 if (!SWIG_IsOK(ecode2)) {
32399 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32400 }
32401 arg2 = static_cast< int >(val2);
32402 {
32403 arg3 = &temp3;
32404 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32405 }
32406 {
32407 PyThreadState* __tstate = wxPyBeginAllowThreads();
32408 (arg1)->SetIdBounds(arg2,*arg3);
32409 wxPyEndAllowThreads(__tstate);
32410 if (PyErr_Occurred()) SWIG_fail;
32411 }
32412 resultobj = SWIG_Py_Void();
32413 return resultobj;
32414 fail:
32415 return NULL;
32416 }
32417
32418
32419 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32420 PyObject *resultobj = 0;
32421 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32422 int arg2 ;
32423 wxRect result;
32424 void *argp1 = 0 ;
32425 int res1 = 0 ;
32426 int val2 ;
32427 int ecode2 = 0 ;
32428 PyObject * obj0 = 0 ;
32429 PyObject * obj1 = 0 ;
32430 char * kwnames[] = {
32431 (char *) "self",(char *) "id", NULL
32432 };
32433
32434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32436 if (!SWIG_IsOK(res1)) {
32437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32438 }
32439 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32440 ecode2 = SWIG_AsVal_int(obj1, &val2);
32441 if (!SWIG_IsOK(ecode2)) {
32442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32443 }
32444 arg2 = static_cast< int >(val2);
32445 {
32446 PyThreadState* __tstate = wxPyBeginAllowThreads();
32447 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32448 wxPyEndAllowThreads(__tstate);
32449 if (PyErr_Occurred()) SWIG_fail;
32450 }
32451 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32452 return resultobj;
32453 fail:
32454 return NULL;
32455 }
32456
32457
32458 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32459 PyObject *resultobj = 0;
32460 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32461 wxDC *arg2 = (wxDC *) 0 ;
32462 wxRect *arg3 = 0 ;
32463 void *argp1 = 0 ;
32464 int res1 = 0 ;
32465 void *argp2 = 0 ;
32466 int res2 = 0 ;
32467 wxRect temp3 ;
32468 PyObject * obj0 = 0 ;
32469 PyObject * obj1 = 0 ;
32470 PyObject * obj2 = 0 ;
32471 char * kwnames[] = {
32472 (char *) "self",(char *) "dc",(char *) "rect", NULL
32473 };
32474
32475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32477 if (!SWIG_IsOK(res1)) {
32478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32479 }
32480 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32481 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32482 if (!SWIG_IsOK(res2)) {
32483 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32484 }
32485 arg2 = reinterpret_cast< wxDC * >(argp2);
32486 {
32487 arg3 = &temp3;
32488 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32489 }
32490 {
32491 PyThreadState* __tstate = wxPyBeginAllowThreads();
32492 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32493 wxPyEndAllowThreads(__tstate);
32494 if (PyErr_Occurred()) SWIG_fail;
32495 }
32496 resultobj = SWIG_Py_Void();
32497 return resultobj;
32498 fail:
32499 return NULL;
32500 }
32501
32502
32503 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32504 PyObject *resultobj = 0;
32505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32506 wxDC *arg2 = (wxDC *) 0 ;
32507 wxRegion *arg3 = 0 ;
32508 void *argp1 = 0 ;
32509 int res1 = 0 ;
32510 void *argp2 = 0 ;
32511 int res2 = 0 ;
32512 void *argp3 = 0 ;
32513 int res3 = 0 ;
32514 PyObject * obj0 = 0 ;
32515 PyObject * obj1 = 0 ;
32516 PyObject * obj2 = 0 ;
32517 char * kwnames[] = {
32518 (char *) "self",(char *) "dc",(char *) "region", NULL
32519 };
32520
32521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32523 if (!SWIG_IsOK(res1)) {
32524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32525 }
32526 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32527 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32528 if (!SWIG_IsOK(res2)) {
32529 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32530 }
32531 arg2 = reinterpret_cast< wxDC * >(argp2);
32532 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32533 if (!SWIG_IsOK(res3)) {
32534 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32535 }
32536 if (!argp3) {
32537 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32538 }
32539 arg3 = reinterpret_cast< wxRegion * >(argp3);
32540 {
32541 PyThreadState* __tstate = wxPyBeginAllowThreads();
32542 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32543 wxPyEndAllowThreads(__tstate);
32544 if (PyErr_Occurred()) SWIG_fail;
32545 }
32546 resultobj = SWIG_Py_Void();
32547 return resultobj;
32548 fail:
32549 return NULL;
32550 }
32551
32552
32553 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32554 PyObject *resultobj = 0;
32555 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32556 wxDC *arg2 = (wxDC *) 0 ;
32557 void *argp1 = 0 ;
32558 int res1 = 0 ;
32559 void *argp2 = 0 ;
32560 int res2 = 0 ;
32561 PyObject * obj0 = 0 ;
32562 PyObject * obj1 = 0 ;
32563 char * kwnames[] = {
32564 (char *) "self",(char *) "dc", NULL
32565 };
32566
32567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32569 if (!SWIG_IsOK(res1)) {
32570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32571 }
32572 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32573 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32574 if (!SWIG_IsOK(res2)) {
32575 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32576 }
32577 arg2 = reinterpret_cast< wxDC * >(argp2);
32578 {
32579 PyThreadState* __tstate = wxPyBeginAllowThreads();
32580 (arg1)->DrawToDC(arg2);
32581 wxPyEndAllowThreads(__tstate);
32582 if (PyErr_Occurred()) SWIG_fail;
32583 }
32584 resultobj = SWIG_Py_Void();
32585 return resultobj;
32586 fail:
32587 return NULL;
32588 }
32589
32590
32591 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32592 PyObject *resultobj = 0;
32593 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32594 int arg2 ;
32595 int arg3 ;
32596 wxColour *arg4 = 0 ;
32597 int arg5 = (int) wxFLOOD_SURFACE ;
32598 void *argp1 = 0 ;
32599 int res1 = 0 ;
32600 int val2 ;
32601 int ecode2 = 0 ;
32602 int val3 ;
32603 int ecode3 = 0 ;
32604 wxColour temp4 ;
32605 int val5 ;
32606 int ecode5 = 0 ;
32607 PyObject * obj0 = 0 ;
32608 PyObject * obj1 = 0 ;
32609 PyObject * obj2 = 0 ;
32610 PyObject * obj3 = 0 ;
32611 PyObject * obj4 = 0 ;
32612 char * kwnames[] = {
32613 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32614 };
32615
32616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32618 if (!SWIG_IsOK(res1)) {
32619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32620 }
32621 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32622 ecode2 = SWIG_AsVal_int(obj1, &val2);
32623 if (!SWIG_IsOK(ecode2)) {
32624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32625 }
32626 arg2 = static_cast< int >(val2);
32627 ecode3 = SWIG_AsVal_int(obj2, &val3);
32628 if (!SWIG_IsOK(ecode3)) {
32629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32630 }
32631 arg3 = static_cast< int >(val3);
32632 {
32633 arg4 = &temp4;
32634 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32635 }
32636 if (obj4) {
32637 ecode5 = SWIG_AsVal_int(obj4, &val5);
32638 if (!SWIG_IsOK(ecode5)) {
32639 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32640 }
32641 arg5 = static_cast< int >(val5);
32642 }
32643 {
32644 PyThreadState* __tstate = wxPyBeginAllowThreads();
32645 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32646 wxPyEndAllowThreads(__tstate);
32647 if (PyErr_Occurred()) SWIG_fail;
32648 }
32649 resultobj = SWIG_Py_Void();
32650 return resultobj;
32651 fail:
32652 return NULL;
32653 }
32654
32655
32656 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32657 PyObject *resultobj = 0;
32658 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32659 wxPoint *arg2 = 0 ;
32660 wxColour *arg3 = 0 ;
32661 int arg4 = (int) wxFLOOD_SURFACE ;
32662 void *argp1 = 0 ;
32663 int res1 = 0 ;
32664 wxPoint temp2 ;
32665 wxColour temp3 ;
32666 int val4 ;
32667 int ecode4 = 0 ;
32668 PyObject * obj0 = 0 ;
32669 PyObject * obj1 = 0 ;
32670 PyObject * obj2 = 0 ;
32671 PyObject * obj3 = 0 ;
32672 char * kwnames[] = {
32673 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32674 };
32675
32676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32678 if (!SWIG_IsOK(res1)) {
32679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32680 }
32681 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32682 {
32683 arg2 = &temp2;
32684 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32685 }
32686 {
32687 arg3 = &temp3;
32688 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32689 }
32690 if (obj3) {
32691 ecode4 = SWIG_AsVal_int(obj3, &val4);
32692 if (!SWIG_IsOK(ecode4)) {
32693 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32694 }
32695 arg4 = static_cast< int >(val4);
32696 }
32697 {
32698 PyThreadState* __tstate = wxPyBeginAllowThreads();
32699 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32700 wxPyEndAllowThreads(__tstate);
32701 if (PyErr_Occurred()) SWIG_fail;
32702 }
32703 resultobj = SWIG_Py_Void();
32704 return resultobj;
32705 fail:
32706 return NULL;
32707 }
32708
32709
32710 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32711 PyObject *resultobj = 0;
32712 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32713 int arg2 ;
32714 int arg3 ;
32715 int arg4 ;
32716 int arg5 ;
32717 void *argp1 = 0 ;
32718 int res1 = 0 ;
32719 int val2 ;
32720 int ecode2 = 0 ;
32721 int val3 ;
32722 int ecode3 = 0 ;
32723 int val4 ;
32724 int ecode4 = 0 ;
32725 int val5 ;
32726 int ecode5 = 0 ;
32727 PyObject * obj0 = 0 ;
32728 PyObject * obj1 = 0 ;
32729 PyObject * obj2 = 0 ;
32730 PyObject * obj3 = 0 ;
32731 PyObject * obj4 = 0 ;
32732 char * kwnames[] = {
32733 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32734 };
32735
32736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32738 if (!SWIG_IsOK(res1)) {
32739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32740 }
32741 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32742 ecode2 = SWIG_AsVal_int(obj1, &val2);
32743 if (!SWIG_IsOK(ecode2)) {
32744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32745 }
32746 arg2 = static_cast< int >(val2);
32747 ecode3 = SWIG_AsVal_int(obj2, &val3);
32748 if (!SWIG_IsOK(ecode3)) {
32749 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32750 }
32751 arg3 = static_cast< int >(val3);
32752 ecode4 = SWIG_AsVal_int(obj3, &val4);
32753 if (!SWIG_IsOK(ecode4)) {
32754 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32755 }
32756 arg4 = static_cast< int >(val4);
32757 ecode5 = SWIG_AsVal_int(obj4, &val5);
32758 if (!SWIG_IsOK(ecode5)) {
32759 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32760 }
32761 arg5 = static_cast< int >(val5);
32762 {
32763 PyThreadState* __tstate = wxPyBeginAllowThreads();
32764 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32765 wxPyEndAllowThreads(__tstate);
32766 if (PyErr_Occurred()) SWIG_fail;
32767 }
32768 resultobj = SWIG_Py_Void();
32769 return resultobj;
32770 fail:
32771 return NULL;
32772 }
32773
32774
32775 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32776 PyObject *resultobj = 0;
32777 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32778 wxPoint *arg2 = 0 ;
32779 wxPoint *arg3 = 0 ;
32780 void *argp1 = 0 ;
32781 int res1 = 0 ;
32782 wxPoint temp2 ;
32783 wxPoint temp3 ;
32784 PyObject * obj0 = 0 ;
32785 PyObject * obj1 = 0 ;
32786 PyObject * obj2 = 0 ;
32787 char * kwnames[] = {
32788 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
32789 };
32790
32791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32793 if (!SWIG_IsOK(res1)) {
32794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32795 }
32796 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32797 {
32798 arg2 = &temp2;
32799 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32800 }
32801 {
32802 arg3 = &temp3;
32803 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
32804 }
32805 {
32806 PyThreadState* __tstate = wxPyBeginAllowThreads();
32807 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
32808 wxPyEndAllowThreads(__tstate);
32809 if (PyErr_Occurred()) SWIG_fail;
32810 }
32811 resultobj = SWIG_Py_Void();
32812 return resultobj;
32813 fail:
32814 return NULL;
32815 }
32816
32817
32818 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32819 PyObject *resultobj = 0;
32820 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32821 int arg2 ;
32822 int arg3 ;
32823 void *argp1 = 0 ;
32824 int res1 = 0 ;
32825 int val2 ;
32826 int ecode2 = 0 ;
32827 int val3 ;
32828 int ecode3 = 0 ;
32829 PyObject * obj0 = 0 ;
32830 PyObject * obj1 = 0 ;
32831 PyObject * obj2 = 0 ;
32832 char * kwnames[] = {
32833 (char *) "self",(char *) "x",(char *) "y", NULL
32834 };
32835
32836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32838 if (!SWIG_IsOK(res1)) {
32839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32840 }
32841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32842 ecode2 = SWIG_AsVal_int(obj1, &val2);
32843 if (!SWIG_IsOK(ecode2)) {
32844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
32845 }
32846 arg2 = static_cast< int >(val2);
32847 ecode3 = SWIG_AsVal_int(obj2, &val3);
32848 if (!SWIG_IsOK(ecode3)) {
32849 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
32850 }
32851 arg3 = static_cast< int >(val3);
32852 {
32853 PyThreadState* __tstate = wxPyBeginAllowThreads();
32854 (arg1)->CrossHair(arg2,arg3);
32855 wxPyEndAllowThreads(__tstate);
32856 if (PyErr_Occurred()) SWIG_fail;
32857 }
32858 resultobj = SWIG_Py_Void();
32859 return resultobj;
32860 fail:
32861 return NULL;
32862 }
32863
32864
32865 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32866 PyObject *resultobj = 0;
32867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32868 wxPoint *arg2 = 0 ;
32869 void *argp1 = 0 ;
32870 int res1 = 0 ;
32871 wxPoint temp2 ;
32872 PyObject * obj0 = 0 ;
32873 PyObject * obj1 = 0 ;
32874 char * kwnames[] = {
32875 (char *) "self",(char *) "pt", NULL
32876 };
32877
32878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
32879 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32880 if (!SWIG_IsOK(res1)) {
32881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32882 }
32883 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32884 {
32885 arg2 = &temp2;
32886 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32887 }
32888 {
32889 PyThreadState* __tstate = wxPyBeginAllowThreads();
32890 (arg1)->CrossHair((wxPoint const &)*arg2);
32891 wxPyEndAllowThreads(__tstate);
32892 if (PyErr_Occurred()) SWIG_fail;
32893 }
32894 resultobj = SWIG_Py_Void();
32895 return resultobj;
32896 fail:
32897 return NULL;
32898 }
32899
32900
32901 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32902 PyObject *resultobj = 0;
32903 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32904 int arg2 ;
32905 int arg3 ;
32906 int arg4 ;
32907 int arg5 ;
32908 int arg6 ;
32909 int arg7 ;
32910 void *argp1 = 0 ;
32911 int res1 = 0 ;
32912 int val2 ;
32913 int ecode2 = 0 ;
32914 int val3 ;
32915 int ecode3 = 0 ;
32916 int val4 ;
32917 int ecode4 = 0 ;
32918 int val5 ;
32919 int ecode5 = 0 ;
32920 int val6 ;
32921 int ecode6 = 0 ;
32922 int val7 ;
32923 int ecode7 = 0 ;
32924 PyObject * obj0 = 0 ;
32925 PyObject * obj1 = 0 ;
32926 PyObject * obj2 = 0 ;
32927 PyObject * obj3 = 0 ;
32928 PyObject * obj4 = 0 ;
32929 PyObject * obj5 = 0 ;
32930 PyObject * obj6 = 0 ;
32931 char * kwnames[] = {
32932 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
32933 };
32934
32935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
32936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32937 if (!SWIG_IsOK(res1)) {
32938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32939 }
32940 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32941 ecode2 = SWIG_AsVal_int(obj1, &val2);
32942 if (!SWIG_IsOK(ecode2)) {
32943 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
32944 }
32945 arg2 = static_cast< int >(val2);
32946 ecode3 = SWIG_AsVal_int(obj2, &val3);
32947 if (!SWIG_IsOK(ecode3)) {
32948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
32949 }
32950 arg3 = static_cast< int >(val3);
32951 ecode4 = SWIG_AsVal_int(obj3, &val4);
32952 if (!SWIG_IsOK(ecode4)) {
32953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
32954 }
32955 arg4 = static_cast< int >(val4);
32956 ecode5 = SWIG_AsVal_int(obj4, &val5);
32957 if (!SWIG_IsOK(ecode5)) {
32958 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
32959 }
32960 arg5 = static_cast< int >(val5);
32961 ecode6 = SWIG_AsVal_int(obj5, &val6);
32962 if (!SWIG_IsOK(ecode6)) {
32963 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
32964 }
32965 arg6 = static_cast< int >(val6);
32966 ecode7 = SWIG_AsVal_int(obj6, &val7);
32967 if (!SWIG_IsOK(ecode7)) {
32968 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
32969 }
32970 arg7 = static_cast< int >(val7);
32971 {
32972 PyThreadState* __tstate = wxPyBeginAllowThreads();
32973 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
32974 wxPyEndAllowThreads(__tstate);
32975 if (PyErr_Occurred()) SWIG_fail;
32976 }
32977 resultobj = SWIG_Py_Void();
32978 return resultobj;
32979 fail:
32980 return NULL;
32981 }
32982
32983
32984 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32985 PyObject *resultobj = 0;
32986 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32987 wxPoint *arg2 = 0 ;
32988 wxPoint *arg3 = 0 ;
32989 wxPoint *arg4 = 0 ;
32990 void *argp1 = 0 ;
32991 int res1 = 0 ;
32992 wxPoint temp2 ;
32993 wxPoint temp3 ;
32994 wxPoint temp4 ;
32995 PyObject * obj0 = 0 ;
32996 PyObject * obj1 = 0 ;
32997 PyObject * obj2 = 0 ;
32998 PyObject * obj3 = 0 ;
32999 char * kwnames[] = {
33000 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
33001 };
33002
33003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33005 if (!SWIG_IsOK(res1)) {
33006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33007 }
33008 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33009 {
33010 arg2 = &temp2;
33011 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33012 }
33013 {
33014 arg3 = &temp3;
33015 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33016 }
33017 {
33018 arg4 = &temp4;
33019 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33020 }
33021 {
33022 PyThreadState* __tstate = wxPyBeginAllowThreads();
33023 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
33024 wxPyEndAllowThreads(__tstate);
33025 if (PyErr_Occurred()) SWIG_fail;
33026 }
33027 resultobj = SWIG_Py_Void();
33028 return resultobj;
33029 fail:
33030 return NULL;
33031 }
33032
33033
33034 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33035 PyObject *resultobj = 0;
33036 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33037 int arg2 ;
33038 int arg3 ;
33039 int arg4 ;
33040 int arg5 ;
33041 void *argp1 = 0 ;
33042 int res1 = 0 ;
33043 int val2 ;
33044 int ecode2 = 0 ;
33045 int val3 ;
33046 int ecode3 = 0 ;
33047 int val4 ;
33048 int ecode4 = 0 ;
33049 int val5 ;
33050 int ecode5 = 0 ;
33051 PyObject * obj0 = 0 ;
33052 PyObject * obj1 = 0 ;
33053 PyObject * obj2 = 0 ;
33054 PyObject * obj3 = 0 ;
33055 PyObject * obj4 = 0 ;
33056 char * kwnames[] = {
33057 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33058 };
33059
33060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33062 if (!SWIG_IsOK(res1)) {
33063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33064 }
33065 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33066 ecode2 = SWIG_AsVal_int(obj1, &val2);
33067 if (!SWIG_IsOK(ecode2)) {
33068 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33069 }
33070 arg2 = static_cast< int >(val2);
33071 ecode3 = SWIG_AsVal_int(obj2, &val3);
33072 if (!SWIG_IsOK(ecode3)) {
33073 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33074 }
33075 arg3 = static_cast< int >(val3);
33076 ecode4 = SWIG_AsVal_int(obj3, &val4);
33077 if (!SWIG_IsOK(ecode4)) {
33078 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33079 }
33080 arg4 = static_cast< int >(val4);
33081 ecode5 = SWIG_AsVal_int(obj4, &val5);
33082 if (!SWIG_IsOK(ecode5)) {
33083 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33084 }
33085 arg5 = static_cast< int >(val5);
33086 {
33087 PyThreadState* __tstate = wxPyBeginAllowThreads();
33088 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33089 wxPyEndAllowThreads(__tstate);
33090 if (PyErr_Occurred()) SWIG_fail;
33091 }
33092 resultobj = SWIG_Py_Void();
33093 return resultobj;
33094 fail:
33095 return NULL;
33096 }
33097
33098
33099 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33100 PyObject *resultobj = 0;
33101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33102 wxRect *arg2 = 0 ;
33103 void *argp1 = 0 ;
33104 int res1 = 0 ;
33105 wxRect temp2 ;
33106 PyObject * obj0 = 0 ;
33107 PyObject * obj1 = 0 ;
33108 char * kwnames[] = {
33109 (char *) "self",(char *) "rect", NULL
33110 };
33111
33112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33114 if (!SWIG_IsOK(res1)) {
33115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33116 }
33117 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33118 {
33119 arg2 = &temp2;
33120 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33121 }
33122 {
33123 PyThreadState* __tstate = wxPyBeginAllowThreads();
33124 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33125 wxPyEndAllowThreads(__tstate);
33126 if (PyErr_Occurred()) SWIG_fail;
33127 }
33128 resultobj = SWIG_Py_Void();
33129 return resultobj;
33130 fail:
33131 return NULL;
33132 }
33133
33134
33135 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33136 PyObject *resultobj = 0;
33137 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33138 int arg2 ;
33139 int arg3 ;
33140 int arg4 ;
33141 int arg5 ;
33142 double arg6 ;
33143 double arg7 ;
33144 void *argp1 = 0 ;
33145 int res1 = 0 ;
33146 int val2 ;
33147 int ecode2 = 0 ;
33148 int val3 ;
33149 int ecode3 = 0 ;
33150 int val4 ;
33151 int ecode4 = 0 ;
33152 int val5 ;
33153 int ecode5 = 0 ;
33154 double val6 ;
33155 int ecode6 = 0 ;
33156 double val7 ;
33157 int ecode7 = 0 ;
33158 PyObject * obj0 = 0 ;
33159 PyObject * obj1 = 0 ;
33160 PyObject * obj2 = 0 ;
33161 PyObject * obj3 = 0 ;
33162 PyObject * obj4 = 0 ;
33163 PyObject * obj5 = 0 ;
33164 PyObject * obj6 = 0 ;
33165 char * kwnames[] = {
33166 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33167 };
33168
33169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33171 if (!SWIG_IsOK(res1)) {
33172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33173 }
33174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33175 ecode2 = SWIG_AsVal_int(obj1, &val2);
33176 if (!SWIG_IsOK(ecode2)) {
33177 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33178 }
33179 arg2 = static_cast< int >(val2);
33180 ecode3 = SWIG_AsVal_int(obj2, &val3);
33181 if (!SWIG_IsOK(ecode3)) {
33182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33183 }
33184 arg3 = static_cast< int >(val3);
33185 ecode4 = SWIG_AsVal_int(obj3, &val4);
33186 if (!SWIG_IsOK(ecode4)) {
33187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33188 }
33189 arg4 = static_cast< int >(val4);
33190 ecode5 = SWIG_AsVal_int(obj4, &val5);
33191 if (!SWIG_IsOK(ecode5)) {
33192 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33193 }
33194 arg5 = static_cast< int >(val5);
33195 ecode6 = SWIG_AsVal_double(obj5, &val6);
33196 if (!SWIG_IsOK(ecode6)) {
33197 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33198 }
33199 arg6 = static_cast< double >(val6);
33200 ecode7 = SWIG_AsVal_double(obj6, &val7);
33201 if (!SWIG_IsOK(ecode7)) {
33202 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33203 }
33204 arg7 = static_cast< double >(val7);
33205 {
33206 PyThreadState* __tstate = wxPyBeginAllowThreads();
33207 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33208 wxPyEndAllowThreads(__tstate);
33209 if (PyErr_Occurred()) SWIG_fail;
33210 }
33211 resultobj = SWIG_Py_Void();
33212 return resultobj;
33213 fail:
33214 return NULL;
33215 }
33216
33217
33218 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33219 PyObject *resultobj = 0;
33220 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33221 wxPoint *arg2 = 0 ;
33222 wxSize *arg3 = 0 ;
33223 double arg4 ;
33224 double arg5 ;
33225 void *argp1 = 0 ;
33226 int res1 = 0 ;
33227 wxPoint temp2 ;
33228 wxSize temp3 ;
33229 double val4 ;
33230 int ecode4 = 0 ;
33231 double val5 ;
33232 int ecode5 = 0 ;
33233 PyObject * obj0 = 0 ;
33234 PyObject * obj1 = 0 ;
33235 PyObject * obj2 = 0 ;
33236 PyObject * obj3 = 0 ;
33237 PyObject * obj4 = 0 ;
33238 char * kwnames[] = {
33239 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33240 };
33241
33242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33244 if (!SWIG_IsOK(res1)) {
33245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33246 }
33247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33248 {
33249 arg2 = &temp2;
33250 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33251 }
33252 {
33253 arg3 = &temp3;
33254 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33255 }
33256 ecode4 = SWIG_AsVal_double(obj3, &val4);
33257 if (!SWIG_IsOK(ecode4)) {
33258 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33259 }
33260 arg4 = static_cast< double >(val4);
33261 ecode5 = SWIG_AsVal_double(obj4, &val5);
33262 if (!SWIG_IsOK(ecode5)) {
33263 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33264 }
33265 arg5 = static_cast< double >(val5);
33266 {
33267 PyThreadState* __tstate = wxPyBeginAllowThreads();
33268 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33269 wxPyEndAllowThreads(__tstate);
33270 if (PyErr_Occurred()) SWIG_fail;
33271 }
33272 resultobj = SWIG_Py_Void();
33273 return resultobj;
33274 fail:
33275 return NULL;
33276 }
33277
33278
33279 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33280 PyObject *resultobj = 0;
33281 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33282 int arg2 ;
33283 int arg3 ;
33284 void *argp1 = 0 ;
33285 int res1 = 0 ;
33286 int val2 ;
33287 int ecode2 = 0 ;
33288 int val3 ;
33289 int ecode3 = 0 ;
33290 PyObject * obj0 = 0 ;
33291 PyObject * obj1 = 0 ;
33292 PyObject * obj2 = 0 ;
33293 char * kwnames[] = {
33294 (char *) "self",(char *) "x",(char *) "y", NULL
33295 };
33296
33297 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33298 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33299 if (!SWIG_IsOK(res1)) {
33300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33301 }
33302 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33303 ecode2 = SWIG_AsVal_int(obj1, &val2);
33304 if (!SWIG_IsOK(ecode2)) {
33305 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33306 }
33307 arg2 = static_cast< int >(val2);
33308 ecode3 = SWIG_AsVal_int(obj2, &val3);
33309 if (!SWIG_IsOK(ecode3)) {
33310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33311 }
33312 arg3 = static_cast< int >(val3);
33313 {
33314 PyThreadState* __tstate = wxPyBeginAllowThreads();
33315 (arg1)->DrawPoint(arg2,arg3);
33316 wxPyEndAllowThreads(__tstate);
33317 if (PyErr_Occurred()) SWIG_fail;
33318 }
33319 resultobj = SWIG_Py_Void();
33320 return resultobj;
33321 fail:
33322 return NULL;
33323 }
33324
33325
33326 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33327 PyObject *resultobj = 0;
33328 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33329 wxPoint *arg2 = 0 ;
33330 void *argp1 = 0 ;
33331 int res1 = 0 ;
33332 wxPoint temp2 ;
33333 PyObject * obj0 = 0 ;
33334 PyObject * obj1 = 0 ;
33335 char * kwnames[] = {
33336 (char *) "self",(char *) "pt", NULL
33337 };
33338
33339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33341 if (!SWIG_IsOK(res1)) {
33342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33343 }
33344 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33345 {
33346 arg2 = &temp2;
33347 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33348 }
33349 {
33350 PyThreadState* __tstate = wxPyBeginAllowThreads();
33351 (arg1)->DrawPoint((wxPoint const &)*arg2);
33352 wxPyEndAllowThreads(__tstate);
33353 if (PyErr_Occurred()) SWIG_fail;
33354 }
33355 resultobj = SWIG_Py_Void();
33356 return resultobj;
33357 fail:
33358 return NULL;
33359 }
33360
33361
33362 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33363 PyObject *resultobj = 0;
33364 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33365 int arg2 ;
33366 int arg3 ;
33367 int arg4 ;
33368 int arg5 ;
33369 void *argp1 = 0 ;
33370 int res1 = 0 ;
33371 int val2 ;
33372 int ecode2 = 0 ;
33373 int val3 ;
33374 int ecode3 = 0 ;
33375 int val4 ;
33376 int ecode4 = 0 ;
33377 int val5 ;
33378 int ecode5 = 0 ;
33379 PyObject * obj0 = 0 ;
33380 PyObject * obj1 = 0 ;
33381 PyObject * obj2 = 0 ;
33382 PyObject * obj3 = 0 ;
33383 PyObject * obj4 = 0 ;
33384 char * kwnames[] = {
33385 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33386 };
33387
33388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33390 if (!SWIG_IsOK(res1)) {
33391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33392 }
33393 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33394 ecode2 = SWIG_AsVal_int(obj1, &val2);
33395 if (!SWIG_IsOK(ecode2)) {
33396 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33397 }
33398 arg2 = static_cast< int >(val2);
33399 ecode3 = SWIG_AsVal_int(obj2, &val3);
33400 if (!SWIG_IsOK(ecode3)) {
33401 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33402 }
33403 arg3 = static_cast< int >(val3);
33404 ecode4 = SWIG_AsVal_int(obj3, &val4);
33405 if (!SWIG_IsOK(ecode4)) {
33406 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33407 }
33408 arg4 = static_cast< int >(val4);
33409 ecode5 = SWIG_AsVal_int(obj4, &val5);
33410 if (!SWIG_IsOK(ecode5)) {
33411 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33412 }
33413 arg5 = static_cast< int >(val5);
33414 {
33415 PyThreadState* __tstate = wxPyBeginAllowThreads();
33416 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33417 wxPyEndAllowThreads(__tstate);
33418 if (PyErr_Occurred()) SWIG_fail;
33419 }
33420 resultobj = SWIG_Py_Void();
33421 return resultobj;
33422 fail:
33423 return NULL;
33424 }
33425
33426
33427 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33428 PyObject *resultobj = 0;
33429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33430 wxRect *arg2 = 0 ;
33431 void *argp1 = 0 ;
33432 int res1 = 0 ;
33433 wxRect temp2 ;
33434 PyObject * obj0 = 0 ;
33435 PyObject * obj1 = 0 ;
33436 char * kwnames[] = {
33437 (char *) "self",(char *) "rect", NULL
33438 };
33439
33440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33442 if (!SWIG_IsOK(res1)) {
33443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33444 }
33445 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33446 {
33447 arg2 = &temp2;
33448 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33449 }
33450 {
33451 PyThreadState* __tstate = wxPyBeginAllowThreads();
33452 (arg1)->DrawRectangle((wxRect const &)*arg2);
33453 wxPyEndAllowThreads(__tstate);
33454 if (PyErr_Occurred()) SWIG_fail;
33455 }
33456 resultobj = SWIG_Py_Void();
33457 return resultobj;
33458 fail:
33459 return NULL;
33460 }
33461
33462
33463 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33464 PyObject *resultobj = 0;
33465 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33466 wxPoint *arg2 = 0 ;
33467 wxSize *arg3 = 0 ;
33468 void *argp1 = 0 ;
33469 int res1 = 0 ;
33470 wxPoint temp2 ;
33471 wxSize temp3 ;
33472 PyObject * obj0 = 0 ;
33473 PyObject * obj1 = 0 ;
33474 PyObject * obj2 = 0 ;
33475 char * kwnames[] = {
33476 (char *) "self",(char *) "pt",(char *) "sz", NULL
33477 };
33478
33479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33481 if (!SWIG_IsOK(res1)) {
33482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33483 }
33484 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33485 {
33486 arg2 = &temp2;
33487 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33488 }
33489 {
33490 arg3 = &temp3;
33491 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33492 }
33493 {
33494 PyThreadState* __tstate = wxPyBeginAllowThreads();
33495 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33496 wxPyEndAllowThreads(__tstate);
33497 if (PyErr_Occurred()) SWIG_fail;
33498 }
33499 resultobj = SWIG_Py_Void();
33500 return resultobj;
33501 fail:
33502 return NULL;
33503 }
33504
33505
33506 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33507 PyObject *resultobj = 0;
33508 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33509 int arg2 ;
33510 int arg3 ;
33511 int arg4 ;
33512 int arg5 ;
33513 double arg6 ;
33514 void *argp1 = 0 ;
33515 int res1 = 0 ;
33516 int val2 ;
33517 int ecode2 = 0 ;
33518 int val3 ;
33519 int ecode3 = 0 ;
33520 int val4 ;
33521 int ecode4 = 0 ;
33522 int val5 ;
33523 int ecode5 = 0 ;
33524 double val6 ;
33525 int ecode6 = 0 ;
33526 PyObject * obj0 = 0 ;
33527 PyObject * obj1 = 0 ;
33528 PyObject * obj2 = 0 ;
33529 PyObject * obj3 = 0 ;
33530 PyObject * obj4 = 0 ;
33531 PyObject * obj5 = 0 ;
33532 char * kwnames[] = {
33533 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33534 };
33535
33536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33538 if (!SWIG_IsOK(res1)) {
33539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33540 }
33541 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33542 ecode2 = SWIG_AsVal_int(obj1, &val2);
33543 if (!SWIG_IsOK(ecode2)) {
33544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33545 }
33546 arg2 = static_cast< int >(val2);
33547 ecode3 = SWIG_AsVal_int(obj2, &val3);
33548 if (!SWIG_IsOK(ecode3)) {
33549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33550 }
33551 arg3 = static_cast< int >(val3);
33552 ecode4 = SWIG_AsVal_int(obj3, &val4);
33553 if (!SWIG_IsOK(ecode4)) {
33554 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33555 }
33556 arg4 = static_cast< int >(val4);
33557 ecode5 = SWIG_AsVal_int(obj4, &val5);
33558 if (!SWIG_IsOK(ecode5)) {
33559 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33560 }
33561 arg5 = static_cast< int >(val5);
33562 ecode6 = SWIG_AsVal_double(obj5, &val6);
33563 if (!SWIG_IsOK(ecode6)) {
33564 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33565 }
33566 arg6 = static_cast< double >(val6);
33567 {
33568 PyThreadState* __tstate = wxPyBeginAllowThreads();
33569 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33570 wxPyEndAllowThreads(__tstate);
33571 if (PyErr_Occurred()) SWIG_fail;
33572 }
33573 resultobj = SWIG_Py_Void();
33574 return resultobj;
33575 fail:
33576 return NULL;
33577 }
33578
33579
33580 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33581 PyObject *resultobj = 0;
33582 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33583 wxRect *arg2 = 0 ;
33584 double arg3 ;
33585 void *argp1 = 0 ;
33586 int res1 = 0 ;
33587 wxRect temp2 ;
33588 double val3 ;
33589 int ecode3 = 0 ;
33590 PyObject * obj0 = 0 ;
33591 PyObject * obj1 = 0 ;
33592 PyObject * obj2 = 0 ;
33593 char * kwnames[] = {
33594 (char *) "self",(char *) "r",(char *) "radius", NULL
33595 };
33596
33597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33599 if (!SWIG_IsOK(res1)) {
33600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33601 }
33602 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33603 {
33604 arg2 = &temp2;
33605 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33606 }
33607 ecode3 = SWIG_AsVal_double(obj2, &val3);
33608 if (!SWIG_IsOK(ecode3)) {
33609 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33610 }
33611 arg3 = static_cast< double >(val3);
33612 {
33613 PyThreadState* __tstate = wxPyBeginAllowThreads();
33614 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33615 wxPyEndAllowThreads(__tstate);
33616 if (PyErr_Occurred()) SWIG_fail;
33617 }
33618 resultobj = SWIG_Py_Void();
33619 return resultobj;
33620 fail:
33621 return NULL;
33622 }
33623
33624
33625 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33626 PyObject *resultobj = 0;
33627 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33628 wxPoint *arg2 = 0 ;
33629 wxSize *arg3 = 0 ;
33630 double arg4 ;
33631 void *argp1 = 0 ;
33632 int res1 = 0 ;
33633 wxPoint temp2 ;
33634 wxSize temp3 ;
33635 double val4 ;
33636 int ecode4 = 0 ;
33637 PyObject * obj0 = 0 ;
33638 PyObject * obj1 = 0 ;
33639 PyObject * obj2 = 0 ;
33640 PyObject * obj3 = 0 ;
33641 char * kwnames[] = {
33642 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33643 };
33644
33645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33646 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33647 if (!SWIG_IsOK(res1)) {
33648 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33649 }
33650 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33651 {
33652 arg2 = &temp2;
33653 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33654 }
33655 {
33656 arg3 = &temp3;
33657 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33658 }
33659 ecode4 = SWIG_AsVal_double(obj3, &val4);
33660 if (!SWIG_IsOK(ecode4)) {
33661 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33662 }
33663 arg4 = static_cast< double >(val4);
33664 {
33665 PyThreadState* __tstate = wxPyBeginAllowThreads();
33666 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33667 wxPyEndAllowThreads(__tstate);
33668 if (PyErr_Occurred()) SWIG_fail;
33669 }
33670 resultobj = SWIG_Py_Void();
33671 return resultobj;
33672 fail:
33673 return NULL;
33674 }
33675
33676
33677 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33678 PyObject *resultobj = 0;
33679 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33680 int arg2 ;
33681 int arg3 ;
33682 int arg4 ;
33683 void *argp1 = 0 ;
33684 int res1 = 0 ;
33685 int val2 ;
33686 int ecode2 = 0 ;
33687 int val3 ;
33688 int ecode3 = 0 ;
33689 int val4 ;
33690 int ecode4 = 0 ;
33691 PyObject * obj0 = 0 ;
33692 PyObject * obj1 = 0 ;
33693 PyObject * obj2 = 0 ;
33694 PyObject * obj3 = 0 ;
33695 char * kwnames[] = {
33696 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33697 };
33698
33699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33701 if (!SWIG_IsOK(res1)) {
33702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33703 }
33704 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33705 ecode2 = SWIG_AsVal_int(obj1, &val2);
33706 if (!SWIG_IsOK(ecode2)) {
33707 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33708 }
33709 arg2 = static_cast< int >(val2);
33710 ecode3 = SWIG_AsVal_int(obj2, &val3);
33711 if (!SWIG_IsOK(ecode3)) {
33712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33713 }
33714 arg3 = static_cast< int >(val3);
33715 ecode4 = SWIG_AsVal_int(obj3, &val4);
33716 if (!SWIG_IsOK(ecode4)) {
33717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33718 }
33719 arg4 = static_cast< int >(val4);
33720 {
33721 PyThreadState* __tstate = wxPyBeginAllowThreads();
33722 (arg1)->DrawCircle(arg2,arg3,arg4);
33723 wxPyEndAllowThreads(__tstate);
33724 if (PyErr_Occurred()) SWIG_fail;
33725 }
33726 resultobj = SWIG_Py_Void();
33727 return resultobj;
33728 fail:
33729 return NULL;
33730 }
33731
33732
33733 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33734 PyObject *resultobj = 0;
33735 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33736 wxPoint *arg2 = 0 ;
33737 int arg3 ;
33738 void *argp1 = 0 ;
33739 int res1 = 0 ;
33740 wxPoint temp2 ;
33741 int val3 ;
33742 int ecode3 = 0 ;
33743 PyObject * obj0 = 0 ;
33744 PyObject * obj1 = 0 ;
33745 PyObject * obj2 = 0 ;
33746 char * kwnames[] = {
33747 (char *) "self",(char *) "pt",(char *) "radius", NULL
33748 };
33749
33750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33752 if (!SWIG_IsOK(res1)) {
33753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33754 }
33755 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33756 {
33757 arg2 = &temp2;
33758 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33759 }
33760 ecode3 = SWIG_AsVal_int(obj2, &val3);
33761 if (!SWIG_IsOK(ecode3)) {
33762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33763 }
33764 arg3 = static_cast< int >(val3);
33765 {
33766 PyThreadState* __tstate = wxPyBeginAllowThreads();
33767 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33768 wxPyEndAllowThreads(__tstate);
33769 if (PyErr_Occurred()) SWIG_fail;
33770 }
33771 resultobj = SWIG_Py_Void();
33772 return resultobj;
33773 fail:
33774 return NULL;
33775 }
33776
33777
33778 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33779 PyObject *resultobj = 0;
33780 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33781 int arg2 ;
33782 int arg3 ;
33783 int arg4 ;
33784 int arg5 ;
33785 void *argp1 = 0 ;
33786 int res1 = 0 ;
33787 int val2 ;
33788 int ecode2 = 0 ;
33789 int val3 ;
33790 int ecode3 = 0 ;
33791 int val4 ;
33792 int ecode4 = 0 ;
33793 int val5 ;
33794 int ecode5 = 0 ;
33795 PyObject * obj0 = 0 ;
33796 PyObject * obj1 = 0 ;
33797 PyObject * obj2 = 0 ;
33798 PyObject * obj3 = 0 ;
33799 PyObject * obj4 = 0 ;
33800 char * kwnames[] = {
33801 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33802 };
33803
33804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33806 if (!SWIG_IsOK(res1)) {
33807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33808 }
33809 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33810 ecode2 = SWIG_AsVal_int(obj1, &val2);
33811 if (!SWIG_IsOK(ecode2)) {
33812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
33813 }
33814 arg2 = static_cast< int >(val2);
33815 ecode3 = SWIG_AsVal_int(obj2, &val3);
33816 if (!SWIG_IsOK(ecode3)) {
33817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
33818 }
33819 arg3 = static_cast< int >(val3);
33820 ecode4 = SWIG_AsVal_int(obj3, &val4);
33821 if (!SWIG_IsOK(ecode4)) {
33822 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
33823 }
33824 arg4 = static_cast< int >(val4);
33825 ecode5 = SWIG_AsVal_int(obj4, &val5);
33826 if (!SWIG_IsOK(ecode5)) {
33827 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
33828 }
33829 arg5 = static_cast< int >(val5);
33830 {
33831 PyThreadState* __tstate = wxPyBeginAllowThreads();
33832 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
33833 wxPyEndAllowThreads(__tstate);
33834 if (PyErr_Occurred()) SWIG_fail;
33835 }
33836 resultobj = SWIG_Py_Void();
33837 return resultobj;
33838 fail:
33839 return NULL;
33840 }
33841
33842
33843 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33844 PyObject *resultobj = 0;
33845 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33846 wxRect *arg2 = 0 ;
33847 void *argp1 = 0 ;
33848 int res1 = 0 ;
33849 wxRect temp2 ;
33850 PyObject * obj0 = 0 ;
33851 PyObject * obj1 = 0 ;
33852 char * kwnames[] = {
33853 (char *) "self",(char *) "rect", NULL
33854 };
33855
33856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
33857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33858 if (!SWIG_IsOK(res1)) {
33859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33860 }
33861 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33862 {
33863 arg2 = &temp2;
33864 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33865 }
33866 {
33867 PyThreadState* __tstate = wxPyBeginAllowThreads();
33868 (arg1)->DrawEllipse((wxRect const &)*arg2);
33869 wxPyEndAllowThreads(__tstate);
33870 if (PyErr_Occurred()) SWIG_fail;
33871 }
33872 resultobj = SWIG_Py_Void();
33873 return resultobj;
33874 fail:
33875 return NULL;
33876 }
33877
33878
33879 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33880 PyObject *resultobj = 0;
33881 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33882 wxPoint *arg2 = 0 ;
33883 wxSize *arg3 = 0 ;
33884 void *argp1 = 0 ;
33885 int res1 = 0 ;
33886 wxPoint temp2 ;
33887 wxSize temp3 ;
33888 PyObject * obj0 = 0 ;
33889 PyObject * obj1 = 0 ;
33890 PyObject * obj2 = 0 ;
33891 char * kwnames[] = {
33892 (char *) "self",(char *) "pt",(char *) "sz", NULL
33893 };
33894
33895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33897 if (!SWIG_IsOK(res1)) {
33898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33899 }
33900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33901 {
33902 arg2 = &temp2;
33903 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33904 }
33905 {
33906 arg3 = &temp3;
33907 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33908 }
33909 {
33910 PyThreadState* __tstate = wxPyBeginAllowThreads();
33911 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
33912 wxPyEndAllowThreads(__tstate);
33913 if (PyErr_Occurred()) SWIG_fail;
33914 }
33915 resultobj = SWIG_Py_Void();
33916 return resultobj;
33917 fail:
33918 return NULL;
33919 }
33920
33921
33922 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33923 PyObject *resultobj = 0;
33924 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33925 wxIcon *arg2 = 0 ;
33926 int arg3 ;
33927 int arg4 ;
33928 void *argp1 = 0 ;
33929 int res1 = 0 ;
33930 void *argp2 = 0 ;
33931 int res2 = 0 ;
33932 int val3 ;
33933 int ecode3 = 0 ;
33934 int val4 ;
33935 int ecode4 = 0 ;
33936 PyObject * obj0 = 0 ;
33937 PyObject * obj1 = 0 ;
33938 PyObject * obj2 = 0 ;
33939 PyObject * obj3 = 0 ;
33940 char * kwnames[] = {
33941 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
33942 };
33943
33944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33946 if (!SWIG_IsOK(res1)) {
33947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33948 }
33949 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
33951 if (!SWIG_IsOK(res2)) {
33952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33953 }
33954 if (!argp2) {
33955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
33956 }
33957 arg2 = reinterpret_cast< wxIcon * >(argp2);
33958 ecode3 = SWIG_AsVal_int(obj2, &val3);
33959 if (!SWIG_IsOK(ecode3)) {
33960 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
33961 }
33962 arg3 = static_cast< int >(val3);
33963 ecode4 = SWIG_AsVal_int(obj3, &val4);
33964 if (!SWIG_IsOK(ecode4)) {
33965 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
33966 }
33967 arg4 = static_cast< int >(val4);
33968 {
33969 PyThreadState* __tstate = wxPyBeginAllowThreads();
33970 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
33971 wxPyEndAllowThreads(__tstate);
33972 if (PyErr_Occurred()) SWIG_fail;
33973 }
33974 resultobj = SWIG_Py_Void();
33975 return resultobj;
33976 fail:
33977 return NULL;
33978 }
33979
33980
33981 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33982 PyObject *resultobj = 0;
33983 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33984 wxIcon *arg2 = 0 ;
33985 wxPoint *arg3 = 0 ;
33986 void *argp1 = 0 ;
33987 int res1 = 0 ;
33988 void *argp2 = 0 ;
33989 int res2 = 0 ;
33990 wxPoint temp3 ;
33991 PyObject * obj0 = 0 ;
33992 PyObject * obj1 = 0 ;
33993 PyObject * obj2 = 0 ;
33994 char * kwnames[] = {
33995 (char *) "self",(char *) "icon",(char *) "pt", NULL
33996 };
33997
33998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34000 if (!SWIG_IsOK(res1)) {
34001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34002 }
34003 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34005 if (!SWIG_IsOK(res2)) {
34006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34007 }
34008 if (!argp2) {
34009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34010 }
34011 arg2 = reinterpret_cast< wxIcon * >(argp2);
34012 {
34013 arg3 = &temp3;
34014 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34015 }
34016 {
34017 PyThreadState* __tstate = wxPyBeginAllowThreads();
34018 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
34019 wxPyEndAllowThreads(__tstate);
34020 if (PyErr_Occurred()) SWIG_fail;
34021 }
34022 resultobj = SWIG_Py_Void();
34023 return resultobj;
34024 fail:
34025 return NULL;
34026 }
34027
34028
34029 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34030 PyObject *resultobj = 0;
34031 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34032 wxBitmap *arg2 = 0 ;
34033 int arg3 ;
34034 int arg4 ;
34035 bool arg5 = (bool) false ;
34036 void *argp1 = 0 ;
34037 int res1 = 0 ;
34038 void *argp2 = 0 ;
34039 int res2 = 0 ;
34040 int val3 ;
34041 int ecode3 = 0 ;
34042 int val4 ;
34043 int ecode4 = 0 ;
34044 bool val5 ;
34045 int ecode5 = 0 ;
34046 PyObject * obj0 = 0 ;
34047 PyObject * obj1 = 0 ;
34048 PyObject * obj2 = 0 ;
34049 PyObject * obj3 = 0 ;
34050 PyObject * obj4 = 0 ;
34051 char * kwnames[] = {
34052 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34053 };
34054
34055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34057 if (!SWIG_IsOK(res1)) {
34058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34059 }
34060 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34062 if (!SWIG_IsOK(res2)) {
34063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34064 }
34065 if (!argp2) {
34066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34067 }
34068 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34069 ecode3 = SWIG_AsVal_int(obj2, &val3);
34070 if (!SWIG_IsOK(ecode3)) {
34071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34072 }
34073 arg3 = static_cast< int >(val3);
34074 ecode4 = SWIG_AsVal_int(obj3, &val4);
34075 if (!SWIG_IsOK(ecode4)) {
34076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34077 }
34078 arg4 = static_cast< int >(val4);
34079 if (obj4) {
34080 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34081 if (!SWIG_IsOK(ecode5)) {
34082 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34083 }
34084 arg5 = static_cast< bool >(val5);
34085 }
34086 {
34087 PyThreadState* __tstate = wxPyBeginAllowThreads();
34088 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34089 wxPyEndAllowThreads(__tstate);
34090 if (PyErr_Occurred()) SWIG_fail;
34091 }
34092 resultobj = SWIG_Py_Void();
34093 return resultobj;
34094 fail:
34095 return NULL;
34096 }
34097
34098
34099 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34100 PyObject *resultobj = 0;
34101 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34102 wxBitmap *arg2 = 0 ;
34103 wxPoint *arg3 = 0 ;
34104 bool arg4 = (bool) false ;
34105 void *argp1 = 0 ;
34106 int res1 = 0 ;
34107 void *argp2 = 0 ;
34108 int res2 = 0 ;
34109 wxPoint temp3 ;
34110 bool val4 ;
34111 int ecode4 = 0 ;
34112 PyObject * obj0 = 0 ;
34113 PyObject * obj1 = 0 ;
34114 PyObject * obj2 = 0 ;
34115 PyObject * obj3 = 0 ;
34116 char * kwnames[] = {
34117 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34118 };
34119
34120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34122 if (!SWIG_IsOK(res1)) {
34123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34124 }
34125 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34126 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34127 if (!SWIG_IsOK(res2)) {
34128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34129 }
34130 if (!argp2) {
34131 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34132 }
34133 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34134 {
34135 arg3 = &temp3;
34136 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34137 }
34138 if (obj3) {
34139 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34140 if (!SWIG_IsOK(ecode4)) {
34141 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34142 }
34143 arg4 = static_cast< bool >(val4);
34144 }
34145 {
34146 PyThreadState* __tstate = wxPyBeginAllowThreads();
34147 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34148 wxPyEndAllowThreads(__tstate);
34149 if (PyErr_Occurred()) SWIG_fail;
34150 }
34151 resultobj = SWIG_Py_Void();
34152 return resultobj;
34153 fail:
34154 return NULL;
34155 }
34156
34157
34158 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34159 PyObject *resultobj = 0;
34160 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34161 wxString *arg2 = 0 ;
34162 int arg3 ;
34163 int arg4 ;
34164 void *argp1 = 0 ;
34165 int res1 = 0 ;
34166 bool temp2 = false ;
34167 int val3 ;
34168 int ecode3 = 0 ;
34169 int val4 ;
34170 int ecode4 = 0 ;
34171 PyObject * obj0 = 0 ;
34172 PyObject * obj1 = 0 ;
34173 PyObject * obj2 = 0 ;
34174 PyObject * obj3 = 0 ;
34175 char * kwnames[] = {
34176 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34177 };
34178
34179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34181 if (!SWIG_IsOK(res1)) {
34182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34183 }
34184 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34185 {
34186 arg2 = wxString_in_helper(obj1);
34187 if (arg2 == NULL) SWIG_fail;
34188 temp2 = true;
34189 }
34190 ecode3 = SWIG_AsVal_int(obj2, &val3);
34191 if (!SWIG_IsOK(ecode3)) {
34192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34193 }
34194 arg3 = static_cast< int >(val3);
34195 ecode4 = SWIG_AsVal_int(obj3, &val4);
34196 if (!SWIG_IsOK(ecode4)) {
34197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34198 }
34199 arg4 = static_cast< int >(val4);
34200 {
34201 PyThreadState* __tstate = wxPyBeginAllowThreads();
34202 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34203 wxPyEndAllowThreads(__tstate);
34204 if (PyErr_Occurred()) SWIG_fail;
34205 }
34206 resultobj = SWIG_Py_Void();
34207 {
34208 if (temp2)
34209 delete arg2;
34210 }
34211 return resultobj;
34212 fail:
34213 {
34214 if (temp2)
34215 delete arg2;
34216 }
34217 return NULL;
34218 }
34219
34220
34221 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34222 PyObject *resultobj = 0;
34223 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34224 wxString *arg2 = 0 ;
34225 wxPoint *arg3 = 0 ;
34226 void *argp1 = 0 ;
34227 int res1 = 0 ;
34228 bool temp2 = false ;
34229 wxPoint temp3 ;
34230 PyObject * obj0 = 0 ;
34231 PyObject * obj1 = 0 ;
34232 PyObject * obj2 = 0 ;
34233 char * kwnames[] = {
34234 (char *) "self",(char *) "text",(char *) "pt", NULL
34235 };
34236
34237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34239 if (!SWIG_IsOK(res1)) {
34240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34241 }
34242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34243 {
34244 arg2 = wxString_in_helper(obj1);
34245 if (arg2 == NULL) SWIG_fail;
34246 temp2 = true;
34247 }
34248 {
34249 arg3 = &temp3;
34250 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34251 }
34252 {
34253 PyThreadState* __tstate = wxPyBeginAllowThreads();
34254 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34255 wxPyEndAllowThreads(__tstate);
34256 if (PyErr_Occurred()) SWIG_fail;
34257 }
34258 resultobj = SWIG_Py_Void();
34259 {
34260 if (temp2)
34261 delete arg2;
34262 }
34263 return resultobj;
34264 fail:
34265 {
34266 if (temp2)
34267 delete arg2;
34268 }
34269 return NULL;
34270 }
34271
34272
34273 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34274 PyObject *resultobj = 0;
34275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34276 wxString *arg2 = 0 ;
34277 int arg3 ;
34278 int arg4 ;
34279 double arg5 ;
34280 void *argp1 = 0 ;
34281 int res1 = 0 ;
34282 bool temp2 = false ;
34283 int val3 ;
34284 int ecode3 = 0 ;
34285 int val4 ;
34286 int ecode4 = 0 ;
34287 double val5 ;
34288 int ecode5 = 0 ;
34289 PyObject * obj0 = 0 ;
34290 PyObject * obj1 = 0 ;
34291 PyObject * obj2 = 0 ;
34292 PyObject * obj3 = 0 ;
34293 PyObject * obj4 = 0 ;
34294 char * kwnames[] = {
34295 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34296 };
34297
34298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34300 if (!SWIG_IsOK(res1)) {
34301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34302 }
34303 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34304 {
34305 arg2 = wxString_in_helper(obj1);
34306 if (arg2 == NULL) SWIG_fail;
34307 temp2 = true;
34308 }
34309 ecode3 = SWIG_AsVal_int(obj2, &val3);
34310 if (!SWIG_IsOK(ecode3)) {
34311 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34312 }
34313 arg3 = static_cast< int >(val3);
34314 ecode4 = SWIG_AsVal_int(obj3, &val4);
34315 if (!SWIG_IsOK(ecode4)) {
34316 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34317 }
34318 arg4 = static_cast< int >(val4);
34319 ecode5 = SWIG_AsVal_double(obj4, &val5);
34320 if (!SWIG_IsOK(ecode5)) {
34321 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34322 }
34323 arg5 = static_cast< double >(val5);
34324 {
34325 PyThreadState* __tstate = wxPyBeginAllowThreads();
34326 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34327 wxPyEndAllowThreads(__tstate);
34328 if (PyErr_Occurred()) SWIG_fail;
34329 }
34330 resultobj = SWIG_Py_Void();
34331 {
34332 if (temp2)
34333 delete arg2;
34334 }
34335 return resultobj;
34336 fail:
34337 {
34338 if (temp2)
34339 delete arg2;
34340 }
34341 return NULL;
34342 }
34343
34344
34345 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34346 PyObject *resultobj = 0;
34347 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34348 wxString *arg2 = 0 ;
34349 wxPoint *arg3 = 0 ;
34350 double arg4 ;
34351 void *argp1 = 0 ;
34352 int res1 = 0 ;
34353 bool temp2 = false ;
34354 wxPoint temp3 ;
34355 double val4 ;
34356 int ecode4 = 0 ;
34357 PyObject * obj0 = 0 ;
34358 PyObject * obj1 = 0 ;
34359 PyObject * obj2 = 0 ;
34360 PyObject * obj3 = 0 ;
34361 char * kwnames[] = {
34362 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34363 };
34364
34365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34367 if (!SWIG_IsOK(res1)) {
34368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34369 }
34370 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34371 {
34372 arg2 = wxString_in_helper(obj1);
34373 if (arg2 == NULL) SWIG_fail;
34374 temp2 = true;
34375 }
34376 {
34377 arg3 = &temp3;
34378 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34379 }
34380 ecode4 = SWIG_AsVal_double(obj3, &val4);
34381 if (!SWIG_IsOK(ecode4)) {
34382 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34383 }
34384 arg4 = static_cast< double >(val4);
34385 {
34386 PyThreadState* __tstate = wxPyBeginAllowThreads();
34387 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34388 wxPyEndAllowThreads(__tstate);
34389 if (PyErr_Occurred()) SWIG_fail;
34390 }
34391 resultobj = SWIG_Py_Void();
34392 {
34393 if (temp2)
34394 delete arg2;
34395 }
34396 return resultobj;
34397 fail:
34398 {
34399 if (temp2)
34400 delete arg2;
34401 }
34402 return NULL;
34403 }
34404
34405
34406 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34407 PyObject *resultobj = 0;
34408 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34409 int arg2 ;
34410 wxPoint *arg3 = (wxPoint *) 0 ;
34411 int arg4 = (int) 0 ;
34412 int arg5 = (int) 0 ;
34413 void *argp1 = 0 ;
34414 int res1 = 0 ;
34415 int val4 ;
34416 int ecode4 = 0 ;
34417 int val5 ;
34418 int ecode5 = 0 ;
34419 PyObject * obj0 = 0 ;
34420 PyObject * obj1 = 0 ;
34421 PyObject * obj2 = 0 ;
34422 PyObject * obj3 = 0 ;
34423 char * kwnames[] = {
34424 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34425 };
34426
34427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34429 if (!SWIG_IsOK(res1)) {
34430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34431 }
34432 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34433 {
34434 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34435 if (arg3 == NULL) SWIG_fail;
34436 }
34437 if (obj2) {
34438 ecode4 = SWIG_AsVal_int(obj2, &val4);
34439 if (!SWIG_IsOK(ecode4)) {
34440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34441 }
34442 arg4 = static_cast< int >(val4);
34443 }
34444 if (obj3) {
34445 ecode5 = SWIG_AsVal_int(obj3, &val5);
34446 if (!SWIG_IsOK(ecode5)) {
34447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34448 }
34449 arg5 = static_cast< int >(val5);
34450 }
34451 {
34452 PyThreadState* __tstate = wxPyBeginAllowThreads();
34453 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34454 wxPyEndAllowThreads(__tstate);
34455 if (PyErr_Occurred()) SWIG_fail;
34456 }
34457 resultobj = SWIG_Py_Void();
34458 {
34459 if (arg3) delete [] arg3;
34460 }
34461 return resultobj;
34462 fail:
34463 {
34464 if (arg3) delete [] arg3;
34465 }
34466 return NULL;
34467 }
34468
34469
34470 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34471 PyObject *resultobj = 0;
34472 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34473 int arg2 ;
34474 wxPoint *arg3 = (wxPoint *) 0 ;
34475 int arg4 = (int) 0 ;
34476 int arg5 = (int) 0 ;
34477 int arg6 = (int) wxODDEVEN_RULE ;
34478 void *argp1 = 0 ;
34479 int res1 = 0 ;
34480 int val4 ;
34481 int ecode4 = 0 ;
34482 int val5 ;
34483 int ecode5 = 0 ;
34484 int val6 ;
34485 int ecode6 = 0 ;
34486 PyObject * obj0 = 0 ;
34487 PyObject * obj1 = 0 ;
34488 PyObject * obj2 = 0 ;
34489 PyObject * obj3 = 0 ;
34490 PyObject * obj4 = 0 ;
34491 char * kwnames[] = {
34492 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34493 };
34494
34495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34497 if (!SWIG_IsOK(res1)) {
34498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34499 }
34500 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34501 {
34502 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34503 if (arg3 == NULL) SWIG_fail;
34504 }
34505 if (obj2) {
34506 ecode4 = SWIG_AsVal_int(obj2, &val4);
34507 if (!SWIG_IsOK(ecode4)) {
34508 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34509 }
34510 arg4 = static_cast< int >(val4);
34511 }
34512 if (obj3) {
34513 ecode5 = SWIG_AsVal_int(obj3, &val5);
34514 if (!SWIG_IsOK(ecode5)) {
34515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34516 }
34517 arg5 = static_cast< int >(val5);
34518 }
34519 if (obj4) {
34520 ecode6 = SWIG_AsVal_int(obj4, &val6);
34521 if (!SWIG_IsOK(ecode6)) {
34522 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34523 }
34524 arg6 = static_cast< int >(val6);
34525 }
34526 {
34527 PyThreadState* __tstate = wxPyBeginAllowThreads();
34528 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34529 wxPyEndAllowThreads(__tstate);
34530 if (PyErr_Occurred()) SWIG_fail;
34531 }
34532 resultobj = SWIG_Py_Void();
34533 {
34534 if (arg3) delete [] arg3;
34535 }
34536 return resultobj;
34537 fail:
34538 {
34539 if (arg3) delete [] arg3;
34540 }
34541 return NULL;
34542 }
34543
34544
34545 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34546 PyObject *resultobj = 0;
34547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34548 wxString *arg2 = 0 ;
34549 wxRect *arg3 = 0 ;
34550 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34551 int arg5 = (int) -1 ;
34552 void *argp1 = 0 ;
34553 int res1 = 0 ;
34554 bool temp2 = false ;
34555 wxRect temp3 ;
34556 int val4 ;
34557 int ecode4 = 0 ;
34558 int val5 ;
34559 int ecode5 = 0 ;
34560 PyObject * obj0 = 0 ;
34561 PyObject * obj1 = 0 ;
34562 PyObject * obj2 = 0 ;
34563 PyObject * obj3 = 0 ;
34564 PyObject * obj4 = 0 ;
34565 char * kwnames[] = {
34566 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34567 };
34568
34569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34571 if (!SWIG_IsOK(res1)) {
34572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34573 }
34574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34575 {
34576 arg2 = wxString_in_helper(obj1);
34577 if (arg2 == NULL) SWIG_fail;
34578 temp2 = true;
34579 }
34580 {
34581 arg3 = &temp3;
34582 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34583 }
34584 if (obj3) {
34585 ecode4 = SWIG_AsVal_int(obj3, &val4);
34586 if (!SWIG_IsOK(ecode4)) {
34587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34588 }
34589 arg4 = static_cast< int >(val4);
34590 }
34591 if (obj4) {
34592 ecode5 = SWIG_AsVal_int(obj4, &val5);
34593 if (!SWIG_IsOK(ecode5)) {
34594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34595 }
34596 arg5 = static_cast< int >(val5);
34597 }
34598 {
34599 PyThreadState* __tstate = wxPyBeginAllowThreads();
34600 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34601 wxPyEndAllowThreads(__tstate);
34602 if (PyErr_Occurred()) SWIG_fail;
34603 }
34604 resultobj = SWIG_Py_Void();
34605 {
34606 if (temp2)
34607 delete arg2;
34608 }
34609 return resultobj;
34610 fail:
34611 {
34612 if (temp2)
34613 delete arg2;
34614 }
34615 return NULL;
34616 }
34617
34618
34619 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34620 PyObject *resultobj = 0;
34621 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34622 wxString *arg2 = 0 ;
34623 wxBitmap *arg3 = 0 ;
34624 wxRect *arg4 = 0 ;
34625 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34626 int arg6 = (int) -1 ;
34627 void *argp1 = 0 ;
34628 int res1 = 0 ;
34629 bool temp2 = false ;
34630 void *argp3 = 0 ;
34631 int res3 = 0 ;
34632 wxRect temp4 ;
34633 int val5 ;
34634 int ecode5 = 0 ;
34635 int val6 ;
34636 int ecode6 = 0 ;
34637 PyObject * obj0 = 0 ;
34638 PyObject * obj1 = 0 ;
34639 PyObject * obj2 = 0 ;
34640 PyObject * obj3 = 0 ;
34641 PyObject * obj4 = 0 ;
34642 PyObject * obj5 = 0 ;
34643 char * kwnames[] = {
34644 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34645 };
34646
34647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34649 if (!SWIG_IsOK(res1)) {
34650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34651 }
34652 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34653 {
34654 arg2 = wxString_in_helper(obj1);
34655 if (arg2 == NULL) SWIG_fail;
34656 temp2 = true;
34657 }
34658 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34659 if (!SWIG_IsOK(res3)) {
34660 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34661 }
34662 if (!argp3) {
34663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34664 }
34665 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34666 {
34667 arg4 = &temp4;
34668 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34669 }
34670 if (obj4) {
34671 ecode5 = SWIG_AsVal_int(obj4, &val5);
34672 if (!SWIG_IsOK(ecode5)) {
34673 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34674 }
34675 arg5 = static_cast< int >(val5);
34676 }
34677 if (obj5) {
34678 ecode6 = SWIG_AsVal_int(obj5, &val6);
34679 if (!SWIG_IsOK(ecode6)) {
34680 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34681 }
34682 arg6 = static_cast< int >(val6);
34683 }
34684 {
34685 PyThreadState* __tstate = wxPyBeginAllowThreads();
34686 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34687 wxPyEndAllowThreads(__tstate);
34688 if (PyErr_Occurred()) SWIG_fail;
34689 }
34690 resultobj = SWIG_Py_Void();
34691 {
34692 if (temp2)
34693 delete arg2;
34694 }
34695 return resultobj;
34696 fail:
34697 {
34698 if (temp2)
34699 delete arg2;
34700 }
34701 return NULL;
34702 }
34703
34704
34705 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34706 PyObject *resultobj = 0;
34707 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34708 int arg2 ;
34709 wxPoint *arg3 = (wxPoint *) 0 ;
34710 void *argp1 = 0 ;
34711 int res1 = 0 ;
34712 PyObject * obj0 = 0 ;
34713 PyObject * obj1 = 0 ;
34714 char * kwnames[] = {
34715 (char *) "self",(char *) "points", NULL
34716 };
34717
34718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34720 if (!SWIG_IsOK(res1)) {
34721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34722 }
34723 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34724 {
34725 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34726 if (arg3 == NULL) SWIG_fail;
34727 }
34728 {
34729 PyThreadState* __tstate = wxPyBeginAllowThreads();
34730 (arg1)->DrawSpline(arg2,arg3);
34731 wxPyEndAllowThreads(__tstate);
34732 if (PyErr_Occurred()) SWIG_fail;
34733 }
34734 resultobj = SWIG_Py_Void();
34735 {
34736 if (arg3) delete [] arg3;
34737 }
34738 return resultobj;
34739 fail:
34740 {
34741 if (arg3) delete [] arg3;
34742 }
34743 return NULL;
34744 }
34745
34746
34747 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34748 PyObject *resultobj = 0;
34749 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34750 void *argp1 = 0 ;
34751 int res1 = 0 ;
34752 PyObject *swig_obj[1] ;
34753
34754 if (!args) SWIG_fail;
34755 swig_obj[0] = args;
34756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34757 if (!SWIG_IsOK(res1)) {
34758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34759 }
34760 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34761 {
34762 PyThreadState* __tstate = wxPyBeginAllowThreads();
34763 (arg1)->Clear();
34764 wxPyEndAllowThreads(__tstate);
34765 if (PyErr_Occurred()) SWIG_fail;
34766 }
34767 resultobj = SWIG_Py_Void();
34768 return resultobj;
34769 fail:
34770 return NULL;
34771 }
34772
34773
34774 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34775 PyObject *resultobj = 0;
34776 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34777 wxFont *arg2 = 0 ;
34778 void *argp1 = 0 ;
34779 int res1 = 0 ;
34780 void *argp2 = 0 ;
34781 int res2 = 0 ;
34782 PyObject * obj0 = 0 ;
34783 PyObject * obj1 = 0 ;
34784 char * kwnames[] = {
34785 (char *) "self",(char *) "font", NULL
34786 };
34787
34788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
34789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34790 if (!SWIG_IsOK(res1)) {
34791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34792 }
34793 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34794 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
34795 if (!SWIG_IsOK(res2)) {
34796 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34797 }
34798 if (!argp2) {
34799 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
34800 }
34801 arg2 = reinterpret_cast< wxFont * >(argp2);
34802 {
34803 PyThreadState* __tstate = wxPyBeginAllowThreads();
34804 (arg1)->SetFont((wxFont const &)*arg2);
34805 wxPyEndAllowThreads(__tstate);
34806 if (PyErr_Occurred()) SWIG_fail;
34807 }
34808 resultobj = SWIG_Py_Void();
34809 return resultobj;
34810 fail:
34811 return NULL;
34812 }
34813
34814
34815 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34816 PyObject *resultobj = 0;
34817 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34818 wxPen *arg2 = 0 ;
34819 void *argp1 = 0 ;
34820 int res1 = 0 ;
34821 void *argp2 = 0 ;
34822 int res2 = 0 ;
34823 PyObject * obj0 = 0 ;
34824 PyObject * obj1 = 0 ;
34825 char * kwnames[] = {
34826 (char *) "self",(char *) "pen", NULL
34827 };
34828
34829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
34830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34831 if (!SWIG_IsOK(res1)) {
34832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34833 }
34834 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34835 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
34836 if (!SWIG_IsOK(res2)) {
34837 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34838 }
34839 if (!argp2) {
34840 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
34841 }
34842 arg2 = reinterpret_cast< wxPen * >(argp2);
34843 {
34844 PyThreadState* __tstate = wxPyBeginAllowThreads();
34845 (arg1)->SetPen((wxPen const &)*arg2);
34846 wxPyEndAllowThreads(__tstate);
34847 if (PyErr_Occurred()) SWIG_fail;
34848 }
34849 resultobj = SWIG_Py_Void();
34850 return resultobj;
34851 fail:
34852 return NULL;
34853 }
34854
34855
34856 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34857 PyObject *resultobj = 0;
34858 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34859 wxBrush *arg2 = 0 ;
34860 void *argp1 = 0 ;
34861 int res1 = 0 ;
34862 void *argp2 = 0 ;
34863 int res2 = 0 ;
34864 PyObject * obj0 = 0 ;
34865 PyObject * obj1 = 0 ;
34866 char * kwnames[] = {
34867 (char *) "self",(char *) "brush", NULL
34868 };
34869
34870 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
34871 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34872 if (!SWIG_IsOK(res1)) {
34873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34874 }
34875 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34876 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34877 if (!SWIG_IsOK(res2)) {
34878 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34879 }
34880 if (!argp2) {
34881 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
34882 }
34883 arg2 = reinterpret_cast< wxBrush * >(argp2);
34884 {
34885 PyThreadState* __tstate = wxPyBeginAllowThreads();
34886 (arg1)->SetBrush((wxBrush const &)*arg2);
34887 wxPyEndAllowThreads(__tstate);
34888 if (PyErr_Occurred()) SWIG_fail;
34889 }
34890 resultobj = SWIG_Py_Void();
34891 return resultobj;
34892 fail:
34893 return NULL;
34894 }
34895
34896
34897 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34898 PyObject *resultobj = 0;
34899 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34900 wxBrush *arg2 = 0 ;
34901 void *argp1 = 0 ;
34902 int res1 = 0 ;
34903 void *argp2 = 0 ;
34904 int res2 = 0 ;
34905 PyObject * obj0 = 0 ;
34906 PyObject * obj1 = 0 ;
34907 char * kwnames[] = {
34908 (char *) "self",(char *) "brush", NULL
34909 };
34910
34911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
34912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34913 if (!SWIG_IsOK(res1)) {
34914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34915 }
34916 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34917 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
34918 if (!SWIG_IsOK(res2)) {
34919 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34920 }
34921 if (!argp2) {
34922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
34923 }
34924 arg2 = reinterpret_cast< wxBrush * >(argp2);
34925 {
34926 PyThreadState* __tstate = wxPyBeginAllowThreads();
34927 (arg1)->SetBackground((wxBrush const &)*arg2);
34928 wxPyEndAllowThreads(__tstate);
34929 if (PyErr_Occurred()) SWIG_fail;
34930 }
34931 resultobj = SWIG_Py_Void();
34932 return resultobj;
34933 fail:
34934 return NULL;
34935 }
34936
34937
34938 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34939 PyObject *resultobj = 0;
34940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34941 int arg2 ;
34942 void *argp1 = 0 ;
34943 int res1 = 0 ;
34944 int val2 ;
34945 int ecode2 = 0 ;
34946 PyObject * obj0 = 0 ;
34947 PyObject * obj1 = 0 ;
34948 char * kwnames[] = {
34949 (char *) "self",(char *) "mode", NULL
34950 };
34951
34952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
34953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34954 if (!SWIG_IsOK(res1)) {
34955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34956 }
34957 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34958 ecode2 = SWIG_AsVal_int(obj1, &val2);
34959 if (!SWIG_IsOK(ecode2)) {
34960 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
34961 }
34962 arg2 = static_cast< int >(val2);
34963 {
34964 PyThreadState* __tstate = wxPyBeginAllowThreads();
34965 (arg1)->SetBackgroundMode(arg2);
34966 wxPyEndAllowThreads(__tstate);
34967 if (PyErr_Occurred()) SWIG_fail;
34968 }
34969 resultobj = SWIG_Py_Void();
34970 return resultobj;
34971 fail:
34972 return NULL;
34973 }
34974
34975
34976 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34977 PyObject *resultobj = 0;
34978 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34979 wxPalette *arg2 = 0 ;
34980 void *argp1 = 0 ;
34981 int res1 = 0 ;
34982 void *argp2 = 0 ;
34983 int res2 = 0 ;
34984 PyObject * obj0 = 0 ;
34985 PyObject * obj1 = 0 ;
34986 char * kwnames[] = {
34987 (char *) "self",(char *) "palette", NULL
34988 };
34989
34990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
34991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34992 if (!SWIG_IsOK(res1)) {
34993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34994 }
34995 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34996 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
34997 if (!SWIG_IsOK(res2)) {
34998 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
34999 }
35000 if (!argp2) {
35001 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35002 }
35003 arg2 = reinterpret_cast< wxPalette * >(argp2);
35004 {
35005 PyThreadState* __tstate = wxPyBeginAllowThreads();
35006 (arg1)->SetPalette((wxPalette const &)*arg2);
35007 wxPyEndAllowThreads(__tstate);
35008 if (PyErr_Occurred()) SWIG_fail;
35009 }
35010 resultobj = SWIG_Py_Void();
35011 return resultobj;
35012 fail:
35013 return NULL;
35014 }
35015
35016
35017 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35018 PyObject *resultobj = 0;
35019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35020 wxColour *arg2 = 0 ;
35021 void *argp1 = 0 ;
35022 int res1 = 0 ;
35023 wxColour temp2 ;
35024 PyObject * obj0 = 0 ;
35025 PyObject * obj1 = 0 ;
35026 char * kwnames[] = {
35027 (char *) "self",(char *) "colour", NULL
35028 };
35029
35030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
35031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35032 if (!SWIG_IsOK(res1)) {
35033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35034 }
35035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35036 {
35037 arg2 = &temp2;
35038 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35039 }
35040 {
35041 PyThreadState* __tstate = wxPyBeginAllowThreads();
35042 (arg1)->SetTextForeground((wxColour const &)*arg2);
35043 wxPyEndAllowThreads(__tstate);
35044 if (PyErr_Occurred()) SWIG_fail;
35045 }
35046 resultobj = SWIG_Py_Void();
35047 return resultobj;
35048 fail:
35049 return NULL;
35050 }
35051
35052
35053 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35054 PyObject *resultobj = 0;
35055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35056 wxColour *arg2 = 0 ;
35057 void *argp1 = 0 ;
35058 int res1 = 0 ;
35059 wxColour temp2 ;
35060 PyObject * obj0 = 0 ;
35061 PyObject * obj1 = 0 ;
35062 char * kwnames[] = {
35063 (char *) "self",(char *) "colour", NULL
35064 };
35065
35066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35068 if (!SWIG_IsOK(res1)) {
35069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35070 }
35071 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35072 {
35073 arg2 = &temp2;
35074 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35075 }
35076 {
35077 PyThreadState* __tstate = wxPyBeginAllowThreads();
35078 (arg1)->SetTextBackground((wxColour const &)*arg2);
35079 wxPyEndAllowThreads(__tstate);
35080 if (PyErr_Occurred()) SWIG_fail;
35081 }
35082 resultobj = SWIG_Py_Void();
35083 return resultobj;
35084 fail:
35085 return NULL;
35086 }
35087
35088
35089 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35090 PyObject *resultobj = 0;
35091 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35092 int arg2 ;
35093 void *argp1 = 0 ;
35094 int res1 = 0 ;
35095 int val2 ;
35096 int ecode2 = 0 ;
35097 PyObject * obj0 = 0 ;
35098 PyObject * obj1 = 0 ;
35099 char * kwnames[] = {
35100 (char *) "self",(char *) "function", NULL
35101 };
35102
35103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35105 if (!SWIG_IsOK(res1)) {
35106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35107 }
35108 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35109 ecode2 = SWIG_AsVal_int(obj1, &val2);
35110 if (!SWIG_IsOK(ecode2)) {
35111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35112 }
35113 arg2 = static_cast< int >(val2);
35114 {
35115 PyThreadState* __tstate = wxPyBeginAllowThreads();
35116 (arg1)->SetLogicalFunction(arg2);
35117 wxPyEndAllowThreads(__tstate);
35118 if (PyErr_Occurred()) SWIG_fail;
35119 }
35120 resultobj = SWIG_Py_Void();
35121 return resultobj;
35122 fail:
35123 return NULL;
35124 }
35125
35126
35127 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35128 PyObject *obj;
35129 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35130 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35131 return SWIG_Py_Void();
35132 }
35133
35134 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35135 return SWIG_Python_InitShadowInstance(args);
35136 }
35137
35138 static PyMethodDef SwigMethods[] = {
35139 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35140 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35141 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35142 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35143 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35144 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35145 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35146 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35147 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35148 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35149 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35150 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
35151 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
35152 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
35153 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35154 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35155 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35156 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35157 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35158 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35159 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35160 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
35161 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35162 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35163 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35164 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35165 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35166 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35167 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35168 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
35169 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
35170 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35171 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35172 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35173 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35174 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35175 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35176 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35177 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35178 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
35179 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
35180 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35181 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35182 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35183 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35184 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35185 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35186 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35187 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35188 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35189 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35190 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35191 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35192 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35193 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35194 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35195 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35196 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35197 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35198 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35199 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35200 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35201 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35202 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35203 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35204 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
35205 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
35206 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35207 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35208 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35209 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35210 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35211 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35212 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35213 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35214 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35215 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35216 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35217 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
35218 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35219 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35220 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35221 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35222 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35223 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35224 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35225 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35226 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35227 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35228 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35229 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35230 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35231 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35232 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35233 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35234 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35235 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35236 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35237 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35238 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35239 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35240 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
35241 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35242 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35243 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35244 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35245 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35246 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35247 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35248 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35249 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35250 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35251 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35252 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35253 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35254 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35255 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35256 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35257 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35258 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35259 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35260 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35261 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35262 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35263 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35264 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35265 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35266 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35267 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35268 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35269 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35270 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35271 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35272 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35273 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35274 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35275 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35276 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35277 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35278 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35279 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35280 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35281 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35282 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35283 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35284 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35285 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35286 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35287 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35288 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35289 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
35290 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35291 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35292 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35293 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35294 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35295 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35296 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35297 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35298 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35299 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35300 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35301 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35302 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35303 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
35304 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35305 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35306 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35307 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35308 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35309 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35310 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35311 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35312 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35313 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35314 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35315 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35316 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35317 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35318 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35319 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35320 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35321 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35322 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35323 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35324 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35325 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35326 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35327 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35328 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35329 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35330 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35331 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35332 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35333 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35334 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35335 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35336 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35337 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35338 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
35339 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35340 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35341 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35342 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35343 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35344 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35345 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35346 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35347 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35348 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35349 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35350 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35351 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35352 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35353 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35354 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35355 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35356 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35357 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35358 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35359 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35360 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35361 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35362 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35363 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35364 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35365 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35366 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35367 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35368 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35369 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35370 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35371 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35372 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35373 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35374 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35375 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35376 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35377 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35378 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35379 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35380 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35381 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35382 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35383 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35384 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35385 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35386 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35387 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35388 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35389 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35390 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35391 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35392 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35393 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35394 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35395 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35396 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35397 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35398 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35399 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35400 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35401 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35402 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35403 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35404 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35405 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35406 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35411 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35413 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35414 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35415 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35416 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35417 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35418 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35419 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35420 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35421 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35422 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35423 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35424 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35425 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35426 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35427 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35428 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35429 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35430 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35431 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35433 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35434 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35435 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35436 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35439 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35442 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35443 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35444 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35445 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35446 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35447 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35450 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35451 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35453 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35458 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
35459 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35460 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35461 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35462 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35463 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35464 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35465 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35466 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35467 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35468 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35469 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35470 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35471 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35472 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35473 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35474 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35475 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35476 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35477 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35478 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35479 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35480 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35481 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35482 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35483 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35484 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35485 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35486 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35487 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35488 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35489 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35490 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35491 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35492 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35493 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35494 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35495 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35496 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35497 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35498 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35499 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35500 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35501 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35502 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35503 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35504 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35505 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35506 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35507 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35508 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35509 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35510 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35511 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35512 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35513 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35514 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35515 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35516 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35517 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35518 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35519 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35520 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35521 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35522 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35523 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35526 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35528 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35529 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35530 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35531 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35532 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35533 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35534 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35535 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35536 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35537 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35538 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35540 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35541 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35542 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35543 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35544 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35545 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35546 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35547 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35548 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35549 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35550 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35551 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35552 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35553 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35554 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35555 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35556 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35557 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35558 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35559 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35560 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35561 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35562 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35563 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35564 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35565 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35566 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35567 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35568 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35570 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35571 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35572 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35573 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35574 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35575 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35576 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35577 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35578 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35579 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35580 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35581 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35583 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35584 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35586 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35590 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35591 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35592 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35593 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35594 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35595 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35596 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35597 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35598 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35599 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35600 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35601 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35602 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35603 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35604 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35605 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35606 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35607 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35608 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35609 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35610 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35611 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35612 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35613 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35614 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35615 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35616 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35617 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35618 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35619 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35620 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35621 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35622 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35623 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35624 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35625 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35626 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35627 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35628 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35629 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35630 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35631 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35632 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35633 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35634 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35635 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35636 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35637 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35638 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35639 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35640 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35641 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35642 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35643 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35644 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35645 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35646 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35647 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35648 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35649 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35650 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35651 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35652 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35653 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35654 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35655 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35656 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35657 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35658 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35659 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35660 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35661 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35662 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35663 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35664 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35665 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35666 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35667 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35668 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35669 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35670 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35671 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35672 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35673 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35674 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35675 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35676 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35677 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35678 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35679 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35680 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35681 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35682 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35683 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35684 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
35685 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35686 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35687 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35688 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35689 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35690 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35691 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35692 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35693 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35694 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35695 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35696 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35697 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35698 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35699 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35700 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35701 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35702 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35703 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35704 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35705 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35706 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35707 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35708 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35709 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35710 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35711 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35712 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35713 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35714 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35715 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35716 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35717 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35718 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35719 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35720 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35721 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35722 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35723 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35724 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35725 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35726 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35727 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35728 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35729 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35730 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35731 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35732 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35733 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35734 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35735 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35736 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35737 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35738 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35739 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35740 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35741 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35742 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35743 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35744 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35745 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35746 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35747 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35748 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35749 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35750 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35751 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35752 { (char *)"GraphicsContext_Create", (PyCFunction) _wrap_GraphicsContext_Create, METH_VARARGS | METH_KEYWORDS, NULL},
35753 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35754 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35755 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35756 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35757 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35758 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35759 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35760 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35761 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35762 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35763 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35765 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35766 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35767 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
35768 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
35769 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35770 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35771 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35772 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35773 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35774 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35775 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
35776 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
35777 { (char *)"GraphicsContext_StrokeDisconnectedLines", (PyCFunction) _wrap_GraphicsContext_StrokeDisconnectedLines, METH_VARARGS | METH_KEYWORDS, NULL},
35778 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35779 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35780 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35781 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35782 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
35783 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
35784 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
35785 { (char *)"GCDC_GetGraphicContext", (PyCFunction)_wrap_GCDC_GetGraphicContext, METH_O, NULL},
35786 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
35787 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
35788 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
35789 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
35790 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
35791 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
35792 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
35793 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
35794 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
35795 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
35796 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
35797 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
35798 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
35799 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
35800 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
35801 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35803 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35805 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
35806 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
35807 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
35808 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
35809 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
35810 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35811 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
35812 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
35813 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
35814 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
35815 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
35816 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
35817 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35818 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35819 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35820 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
35823 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
35824 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
35825 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
35826 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
35827 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
35828 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
35829 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
35830 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
35831 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
35832 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35833 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35834 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35835 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
35836 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
35837 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
35838 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
35839 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
35840 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
35841 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
35842 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
35843 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
35844 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
35845 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
35846 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
35847 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
35848 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
35849 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
35850 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
35851 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
35852 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
35853 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
35854 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
35855 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
35856 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
35857 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
35858 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
35859 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35860 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
35861 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35862 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
35863 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35864 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
35865 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35866 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
35867 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
35868 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
35869 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
35870 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
35871 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
35872 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
35873 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
35874 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
35875 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
35876 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
35877 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
35878 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
35879 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
35880 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
35881 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
35882 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
35883 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
35884 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
35885 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
35886 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
35887 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
35888 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
35889 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
35890 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
35891 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
35892 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
35893 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
35894 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
35895 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
35896 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
35897 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
35898 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
35899 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
35900 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
35901 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
35902 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35903 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
35905 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
35906 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
35907 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
35908 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
35909 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
35910 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35911 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
35912 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
35913 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
35914 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
35915 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35916 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
35917 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
35918 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
35919 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
35920 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
35921 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
35922 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
35923 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
35924 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
35925 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
35926 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
35927 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
35928 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35929 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
35930 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
35931 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
35932 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35933 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35934 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
35935 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
35936 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
35937 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
35938 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35939 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35940 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35941 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35942 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35943 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35944 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35945 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35946 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35947 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35948 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35949 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35950 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35951 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35952 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35953 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35954 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35955 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35956 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35957 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35958 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35959 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35960 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35961 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35962 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35963 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35964 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35965 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35966 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35967 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35968 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35969 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35970 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35971 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35972 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35973 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35974 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35975 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35976 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
35977 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35978 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35979 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35980 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35981 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35982 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35983 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35984 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35985 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35986 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
35987 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
35988 { NULL, NULL, 0, NULL }
35989 };
35990
35991
35992 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
35993
35994 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
35995 return (void *)((wxClientDC *) ((wxPaintDC *) x));
35996 }
35997 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
35998 return (void *)((wxWindowDC *) ((wxClientDC *) x));
35999 }
36000 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
36001 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
36002 }
36003 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
36004 return (void *)((wxLocale *) ((wxPyLocale *) x));
36005 }
36006 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
36007 return (void *)((wxGDIObject *) ((wxIcon *) x));
36008 }
36009 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
36010 return (void *)((wxGDIObject *) ((wxPalette *) x));
36011 }
36012 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
36013 return (void *)((wxGDIObject *) ((wxPen *) x));
36014 }
36015 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
36016 return (void *)((wxGDIObject *) ((wxFont *) x));
36017 }
36018 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
36019 return (void *)((wxGDIObject *) ((wxCursor *) x));
36020 }
36021 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
36022 return (void *)((wxGDIObject *) ((wxBitmap *) x));
36023 }
36024 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
36025 return (void *)((wxGDIObject *) ((wxRegion *) x));
36026 }
36027 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
36028 return (void *)((wxGDIObject *) ((wxBrush *) x));
36029 }
36030 static void *_p_wxGCDCTo_p_wxDC(void *x) {
36031 return (void *)((wxDC *) ((wxGCDC *) x));
36032 }
36033 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
36034 return (void *)((wxDC *) ((wxBufferedDC *) x));
36035 }
36036 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36037 return (void *)((wxDC *) ((wxScreenDC *) x));
36038 }
36039 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36040 return (void *)((wxDC *) ((wxMirrorDC *) x));
36041 }
36042 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36043 return (void *)((wxDC *) ((wxMemoryDC *) x));
36044 }
36045 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36046 return (void *)((wxDC *) ((wxWindowDC *) x));
36047 }
36048 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36049 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36050 }
36051 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36052 return (void *)((wxDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
36053 }
36054 static void *_p_wxClientDCTo_p_wxDC(void *x) {
36055 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
36056 }
36057 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
36058 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36059 }
36060 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36061 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36062 }
36063 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36064 return (void *)((wxDC *) ((wxPrinterDC *) x));
36065 }
36066 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36067 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36068 }
36069 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36070 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36071 }
36072 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36073 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36074 }
36075 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36076 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36077 }
36078 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36079 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36080 }
36081 static void *_p_wxPenTo_p_wxObject(void *x) {
36082 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36083 }
36084 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36085 return (void *)((wxObject *) ((wxRegionIterator *) x));
36086 }
36087 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36088 return (void *)((wxObject *) ((wxSizerItem *) x));
36089 }
36090 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36091 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36092 }
36093 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36094 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36095 }
36096 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36097 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36098 }
36099 static void *_p_wxIconTo_p_wxObject(void *x) {
36100 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36101 }
36102 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36103 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36104 }
36105 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36106 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36107 }
36108 static void *_p_wxSizerTo_p_wxObject(void *x) {
36109 return (void *)((wxObject *) ((wxSizer *) x));
36110 }
36111 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36112 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36113 }
36114 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36115 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36116 }
36117 static void *_p_wxEventTo_p_wxObject(void *x) {
36118 return (void *)((wxObject *) ((wxEvent *) x));
36119 }
36120 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36121 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36122 }
36123 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36124 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36125 }
36126 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36127 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36128 }
36129 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36130 return (void *)((wxObject *) ((wxPseudoDC *) x));
36131 }
36132 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36133 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36134 }
36135 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36136 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36137 }
36138 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36139 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36140 }
36141 static void *_p_wxDCTo_p_wxObject(void *x) {
36142 return (void *)((wxObject *) ((wxDC *) x));
36143 }
36144 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36145 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36146 }
36147 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36148 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36149 }
36150 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36151 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36152 }
36153 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36154 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36155 }
36156 static void *_p_wxControlTo_p_wxObject(void *x) {
36157 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36158 }
36159 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36160 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36161 }
36162 static void *_p_wxClientDCTo_p_wxObject(void *x) {
36163 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
36164 }
36165 static void *_p_wxFSFileTo_p_wxObject(void *x) {
36166 return (void *)((wxObject *) ((wxFSFile *) x));
36167 }
36168 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36169 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36170 }
36171 static void *_p_wxRegionTo_p_wxObject(void *x) {
36172 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36173 }
36174 static void *_p_wxPySizerTo_p_wxObject(void *x) {
36175 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36176 }
36177 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36178 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36179 }
36180 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36181 return (void *)((wxObject *) ((wxGDIObject *) x));
36182 }
36183 static void *_p_wxEffectsTo_p_wxObject(void *x) {
36184 return (void *)((wxObject *) ((wxEffects *) x));
36185 }
36186 static void *_p_wxPyEventTo_p_wxObject(void *x) {
36187 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36188 }
36189 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36190 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36191 }
36192 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36193 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36194 }
36195 static void *_p_wxShowEventTo_p_wxObject(void *x) {
36196 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36197 }
36198 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36199 return (void *)((wxObject *) ((wxMenuItem *) x));
36200 }
36201 static void *_p_wxDateEventTo_p_wxObject(void *x) {
36202 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36203 }
36204 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36205 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36206 }
36207 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36208 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36209 }
36210 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36211 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36212 }
36213 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36214 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36215 }
36216 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36217 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36218 }
36219 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36220 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36221 }
36222 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36223 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36224 }
36225 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36226 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36227 }
36228 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36229 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36230 }
36231 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36232 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36233 }
36234 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36235 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36236 }
36237 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36238 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36239 }
36240 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36241 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36242 }
36243 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36244 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36245 }
36246 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36247 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36248 }
36249 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36250 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36251 }
36252 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36253 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36254 }
36255 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36256 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36257 }
36258 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36259 return (void *)((wxObject *) ((wxImageHandler *) x));
36260 }
36261 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36262 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36263 }
36264 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36265 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36266 }
36267 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36268 return (void *)((wxObject *) ((wxEvtHandler *) x));
36269 }
36270 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36271 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36272 }
36273 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
36274 return (void *)((wxObject *) (wxDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36275 }
36276 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36277 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36278 }
36279 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36280 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36281 }
36282 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36283 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36284 }
36285 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36286 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36287 }
36288 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36289 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36290 }
36291 static void *_p_wxImageTo_p_wxObject(void *x) {
36292 return (void *)((wxObject *) ((wxImage *) x));
36293 }
36294 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36295 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36296 }
36297 static void *_p_wxPaletteTo_p_wxObject(void *x) {
36298 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36299 }
36300 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
36301 return (void *)((wxObject *) (wxDC *) ((wxBufferedDC *) x));
36302 }
36303 static void *_p_wxImageListTo_p_wxObject(void *x) {
36304 return (void *)((wxObject *) ((wxImageList *) x));
36305 }
36306 static void *_p_wxGCDCTo_p_wxObject(void *x) {
36307 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36308 }
36309 static void *_p_wxCursorTo_p_wxObject(void *x) {
36310 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36311 }
36312 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36313 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36314 }
36315 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36316 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36317 }
36318 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36319 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36320 }
36321 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36322 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36323 }
36324 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36325 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36326 }
36327 static void *_p_wxWindowTo_p_wxObject(void *x) {
36328 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36329 }
36330 static void *_p_wxMenuTo_p_wxObject(void *x) {
36331 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36332 }
36333 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36334 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36335 }
36336 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36337 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36338 }
36339 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36340 return (void *)((wxObject *) ((wxFileSystem *) x));
36341 }
36342 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36343 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36344 }
36345 static void *_p_wxMaskTo_p_wxObject(void *x) {
36346 return (void *)((wxObject *) ((wxMask *) x));
36347 }
36348 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36349 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36350 }
36351 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36352 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36353 }
36354 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36355 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36356 }
36357 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36358 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36359 }
36360 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36361 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36362 }
36363 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36364 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36365 }
36366 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36367 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36368 }
36369 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36370 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36371 }
36372 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36373 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36374 }
36375 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36376 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36377 }
36378 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36379 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36380 }
36381 static void *_p_wxFontTo_p_wxObject(void *x) {
36382 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36383 }
36384 static void *_p_wxBrushTo_p_wxObject(void *x) {
36385 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36386 }
36387 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36388 return (void *)((wxObject *) ((wxMetaFile *) x));
36389 }
36390 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36391 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36392 }
36393 static void *_p_wxColourTo_p_wxObject(void *x) {
36394 return (void *)((wxObject *) ((wxColour *) x));
36395 }
36396 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36397 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36398 }
36399 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36400 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36401 }
36402 static void *_p_wxControlTo_p_wxWindow(void *x) {
36403 return (void *)((wxWindow *) ((wxControl *) x));
36404 }
36405 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36406 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36407 }
36408 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36409 return (void *)((wxWindow *) ((wxMenuBar *) x));
36410 }
36411 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36412 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36413 }
36414 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36415 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36416 }
36417 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36418 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36419 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36420 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};
36421 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36422 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36423 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36424 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36425 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36426 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36427 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36428 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36429 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36430 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36431 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36432 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36433 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36434 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36435 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36436 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36437 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36438 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36439 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
36440 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36441 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36442 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36443 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36444 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36445 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36446 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36447 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36448 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36449 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36450 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36451 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36452 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36453 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36454 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36455 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36456 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36457 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36458 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36459 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36460 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36461 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36462 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36463 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36464 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36465 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36466 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36467 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36468 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36469 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36470 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36471 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36472 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36473 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36474 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36475 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36476 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36477 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36478 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36479 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36480 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36481 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36482 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36483 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36484 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36485 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36486 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36487 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36488 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36489 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36490 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36491 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36492 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36493 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36494 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36495 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36496 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36497 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36498 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36499 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36500 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36501 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36502 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36503 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36504 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36505 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36506 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36507 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36508 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36509 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36510 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36511 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36512 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36513 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36514 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36515 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36516 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36517 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36518 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36519 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36520 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36521 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36522 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36523 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36524 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36525 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36526 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36527 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36528 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36529 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36530 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36531 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36532 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36533 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36534 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36535 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36536 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36537 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36538 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36539 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36540 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36541 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36542 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36543 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36544 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36545 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36546 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36547 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36548 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36549 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36550 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36551 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36552 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36553 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36554 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36555 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36556 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36557 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36558 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36559 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36560 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36561 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36562 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36563 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36564 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36565 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36566 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36567 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36568 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36569 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36570 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36571 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36572 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36573
36574 static swig_type_info *swig_type_initial[] = {
36575 &_swigt__p_buffer,
36576 &_swigt__p_char,
36577 &_swigt__p_double,
36578 &_swigt__p_form_ops_t,
36579 &_swigt__p_int,
36580 &_swigt__p_unsigned_char,
36581 &_swigt__p_unsigned_int,
36582 &_swigt__p_unsigned_long,
36583 &_swigt__p_wxANIHandler,
36584 &_swigt__p_wxAcceleratorTable,
36585 &_swigt__p_wxActivateEvent,
36586 &_swigt__p_wxAlphaPixelData,
36587 &_swigt__p_wxAlphaPixelData_Accessor,
36588 &_swigt__p_wxBMPHandler,
36589 &_swigt__p_wxBitmap,
36590 &_swigt__p_wxBoxSizer,
36591 &_swigt__p_wxBrush,
36592 &_swigt__p_wxBrushList,
36593 &_swigt__p_wxBufferedDC,
36594 &_swigt__p_wxBufferedPaintDC,
36595 &_swigt__p_wxCURHandler,
36596 &_swigt__p_wxChar,
36597 &_swigt__p_wxChildFocusEvent,
36598 &_swigt__p_wxClientDC,
36599 &_swigt__p_wxClipboardTextEvent,
36600 &_swigt__p_wxCloseEvent,
36601 &_swigt__p_wxColor,
36602 &_swigt__p_wxColour,
36603 &_swigt__p_wxColourDatabase,
36604 &_swigt__p_wxCommandEvent,
36605 &_swigt__p_wxContextMenuEvent,
36606 &_swigt__p_wxControl,
36607 &_swigt__p_wxControlWithItems,
36608 &_swigt__p_wxCursor,
36609 &_swigt__p_wxDC,
36610 &_swigt__p_wxDCOverlay,
36611 &_swigt__p_wxDash,
36612 &_swigt__p_wxDateEvent,
36613 &_swigt__p_wxDisplayChangedEvent,
36614 &_swigt__p_wxDropFilesEvent,
36615 &_swigt__p_wxDuplexMode,
36616 &_swigt__p_wxEffects,
36617 &_swigt__p_wxEncodingConverter,
36618 &_swigt__p_wxEraseEvent,
36619 &_swigt__p_wxEvent,
36620 &_swigt__p_wxEvtHandler,
36621 &_swigt__p_wxFSFile,
36622 &_swigt__p_wxFileSystem,
36623 &_swigt__p_wxFlexGridSizer,
36624 &_swigt__p_wxFocusEvent,
36625 &_swigt__p_wxFont,
36626 &_swigt__p_wxFontList,
36627 &_swigt__p_wxFontMapper,
36628 &_swigt__p_wxGBSizerItem,
36629 &_swigt__p_wxGCDC,
36630 &_swigt__p_wxGDIObjListBase,
36631 &_swigt__p_wxGDIObject,
36632 &_swigt__p_wxGIFHandler,
36633 &_swigt__p_wxGraphicsContext,
36634 &_swigt__p_wxGraphicsPath,
36635 &_swigt__p_wxGridBagSizer,
36636 &_swigt__p_wxGridSizer,
36637 &_swigt__p_wxHeaderButtonParams,
36638 &_swigt__p_wxICOHandler,
36639 &_swigt__p_wxIcon,
36640 &_swigt__p_wxIconBundle,
36641 &_swigt__p_wxIconLocation,
36642 &_swigt__p_wxIconizeEvent,
36643 &_swigt__p_wxIdleEvent,
36644 &_swigt__p_wxImage,
36645 &_swigt__p_wxImageHandler,
36646 &_swigt__p_wxImageList,
36647 &_swigt__p_wxIndividualLayoutConstraint,
36648 &_swigt__p_wxInitDialogEvent,
36649 &_swigt__p_wxJPEGHandler,
36650 &_swigt__p_wxKeyEvent,
36651 &_swigt__p_wxLanguageInfo,
36652 &_swigt__p_wxLayoutConstraints,
36653 &_swigt__p_wxLocale,
36654 &_swigt__p_wxMask,
36655 &_swigt__p_wxMaximizeEvent,
36656 &_swigt__p_wxMemoryDC,
36657 &_swigt__p_wxMenu,
36658 &_swigt__p_wxMenuBar,
36659 &_swigt__p_wxMenuEvent,
36660 &_swigt__p_wxMenuItem,
36661 &_swigt__p_wxMetaFile,
36662 &_swigt__p_wxMetaFileDC,
36663 &_swigt__p_wxMirrorDC,
36664 &_swigt__p_wxMouseCaptureChangedEvent,
36665 &_swigt__p_wxMouseCaptureLostEvent,
36666 &_swigt__p_wxMouseEvent,
36667 &_swigt__p_wxMoveEvent,
36668 &_swigt__p_wxNativeEncodingInfo,
36669 &_swigt__p_wxNativeFontInfo,
36670 &_swigt__p_wxNativePixelData,
36671 &_swigt__p_wxNativePixelData_Accessor,
36672 &_swigt__p_wxNavigationKeyEvent,
36673 &_swigt__p_wxNcPaintEvent,
36674 &_swigt__p_wxNotifyEvent,
36675 &_swigt__p_wxObject,
36676 &_swigt__p_wxOverlay,
36677 &_swigt__p_wxPCXHandler,
36678 &_swigt__p_wxPNGHandler,
36679 &_swigt__p_wxPNMHandler,
36680 &_swigt__p_wxPaintDC,
36681 &_swigt__p_wxPaintEvent,
36682 &_swigt__p_wxPalette,
36683 &_swigt__p_wxPaletteChangedEvent,
36684 &_swigt__p_wxPaperSize,
36685 &_swigt__p_wxPen,
36686 &_swigt__p_wxPenList,
36687 &_swigt__p_wxPixelDataBase,
36688 &_swigt__p_wxPoint,
36689 &_swigt__p_wxPoint2D,
36690 &_swigt__p_wxPostScriptDC,
36691 &_swigt__p_wxPrintData,
36692 &_swigt__p_wxPrinterDC,
36693 &_swigt__p_wxPseudoDC,
36694 &_swigt__p_wxPyApp,
36695 &_swigt__p_wxPyCommandEvent,
36696 &_swigt__p_wxPyEvent,
36697 &_swigt__p_wxPyFontEnumerator,
36698 &_swigt__p_wxPyImageHandler,
36699 &_swigt__p_wxPyLocale,
36700 &_swigt__p_wxPySizer,
36701 &_swigt__p_wxPyValidator,
36702 &_swigt__p_wxQueryNewPaletteEvent,
36703 &_swigt__p_wxRect,
36704 &_swigt__p_wxRegion,
36705 &_swigt__p_wxRegionIterator,
36706 &_swigt__p_wxRendererNative,
36707 &_swigt__p_wxRendererVersion,
36708 &_swigt__p_wxScreenDC,
36709 &_swigt__p_wxScrollEvent,
36710 &_swigt__p_wxScrollWinEvent,
36711 &_swigt__p_wxSetCursorEvent,
36712 &_swigt__p_wxShowEvent,
36713 &_swigt__p_wxSize,
36714 &_swigt__p_wxSizeEvent,
36715 &_swigt__p_wxSizer,
36716 &_swigt__p_wxSizerItem,
36717 &_swigt__p_wxSplitterRenderParams,
36718 &_swigt__p_wxStaticBoxSizer,
36719 &_swigt__p_wxStdDialogButtonSizer,
36720 &_swigt__p_wxStockGDI,
36721 &_swigt__p_wxString,
36722 &_swigt__p_wxSysColourChangedEvent,
36723 &_swigt__p_wxTIFFHandler,
36724 &_swigt__p_wxUpdateUIEvent,
36725 &_swigt__p_wxValidator,
36726 &_swigt__p_wxWindow,
36727 &_swigt__p_wxWindowCreateEvent,
36728 &_swigt__p_wxWindowDC,
36729 &_swigt__p_wxWindowDestroyEvent,
36730 &_swigt__p_wxXPMHandler,
36731 };
36732
36733 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36734 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36735 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36736 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36737 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36738 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36739 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36740 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36741 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36742 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36743 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36744 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36745 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36746 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}};
36747 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36748 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
36749 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}};
36750 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
36751 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
36752 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
36753 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
36754 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}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
36755 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
36756 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
36757 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
36758 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
36759 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
36760 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
36761 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
36762 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
36763 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
36764 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}};
36765 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}};
36766 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
36767 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
36768 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
36769 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
36770 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
36771 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
36772 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
36773 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
36774 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
36775 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
36776 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
36777 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxMemoryDC, 0, 0, 0},{0, 0, 0, 0}};
36778 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
36779 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
36780 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
36781 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
36782 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
36783 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
36784 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36785 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
36786 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36787 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
36788 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
36789 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
36790 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36791 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
36792 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
36793 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
36794 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
36795 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
36796 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
36797 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36798 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
36799 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
36800 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
36801 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36802 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
36803 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36804 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36805 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36806 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
36807 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
36808 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
36809 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
36810 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
36811 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
36812 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
36813 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
36814 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
36815 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
36816 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
36817 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
36818 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
36819 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36820 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36821 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
36822 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
36823 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
36824 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
36825 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
36826 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
36827 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36828 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
36829 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
36830 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
36831 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
36832 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
36833 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
36834 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
36835 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
36836 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
36837 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
36838 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
36839 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
36840 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
36841 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
36842 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
36843 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36844 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
36845 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
36846 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
36847 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36848 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
36849 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
36850 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
36851 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
36852 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
36853 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36854 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
36855 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
36856 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36857 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
36858 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
36859 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
36860 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
36861 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_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}};
36862 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
36863 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36864 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
36865 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
36866 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
36867 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
36868 static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}};
36869 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
36870 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
36871 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
36872 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
36873 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
36874 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
36875 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
36876 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
36877 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
36878 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
36879 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
36880 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
36881 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
36882 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
36883 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
36884 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
36885 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
36886 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
36887 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}};
36888 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}};
36889
36890 static swig_cast_info *swig_cast_initial[] = {
36891 _swigc__p_buffer,
36892 _swigc__p_char,
36893 _swigc__p_double,
36894 _swigc__p_form_ops_t,
36895 _swigc__p_int,
36896 _swigc__p_unsigned_char,
36897 _swigc__p_unsigned_int,
36898 _swigc__p_unsigned_long,
36899 _swigc__p_wxANIHandler,
36900 _swigc__p_wxAcceleratorTable,
36901 _swigc__p_wxActivateEvent,
36902 _swigc__p_wxAlphaPixelData,
36903 _swigc__p_wxAlphaPixelData_Accessor,
36904 _swigc__p_wxBMPHandler,
36905 _swigc__p_wxBitmap,
36906 _swigc__p_wxBoxSizer,
36907 _swigc__p_wxBrush,
36908 _swigc__p_wxBrushList,
36909 _swigc__p_wxBufferedDC,
36910 _swigc__p_wxBufferedPaintDC,
36911 _swigc__p_wxCURHandler,
36912 _swigc__p_wxChar,
36913 _swigc__p_wxChildFocusEvent,
36914 _swigc__p_wxClientDC,
36915 _swigc__p_wxClipboardTextEvent,
36916 _swigc__p_wxCloseEvent,
36917 _swigc__p_wxColor,
36918 _swigc__p_wxColour,
36919 _swigc__p_wxColourDatabase,
36920 _swigc__p_wxCommandEvent,
36921 _swigc__p_wxContextMenuEvent,
36922 _swigc__p_wxControl,
36923 _swigc__p_wxControlWithItems,
36924 _swigc__p_wxCursor,
36925 _swigc__p_wxDC,
36926 _swigc__p_wxDCOverlay,
36927 _swigc__p_wxDash,
36928 _swigc__p_wxDateEvent,
36929 _swigc__p_wxDisplayChangedEvent,
36930 _swigc__p_wxDropFilesEvent,
36931 _swigc__p_wxDuplexMode,
36932 _swigc__p_wxEffects,
36933 _swigc__p_wxEncodingConverter,
36934 _swigc__p_wxEraseEvent,
36935 _swigc__p_wxEvent,
36936 _swigc__p_wxEvtHandler,
36937 _swigc__p_wxFSFile,
36938 _swigc__p_wxFileSystem,
36939 _swigc__p_wxFlexGridSizer,
36940 _swigc__p_wxFocusEvent,
36941 _swigc__p_wxFont,
36942 _swigc__p_wxFontList,
36943 _swigc__p_wxFontMapper,
36944 _swigc__p_wxGBSizerItem,
36945 _swigc__p_wxGCDC,
36946 _swigc__p_wxGDIObjListBase,
36947 _swigc__p_wxGDIObject,
36948 _swigc__p_wxGIFHandler,
36949 _swigc__p_wxGraphicsContext,
36950 _swigc__p_wxGraphicsPath,
36951 _swigc__p_wxGridBagSizer,
36952 _swigc__p_wxGridSizer,
36953 _swigc__p_wxHeaderButtonParams,
36954 _swigc__p_wxICOHandler,
36955 _swigc__p_wxIcon,
36956 _swigc__p_wxIconBundle,
36957 _swigc__p_wxIconLocation,
36958 _swigc__p_wxIconizeEvent,
36959 _swigc__p_wxIdleEvent,
36960 _swigc__p_wxImage,
36961 _swigc__p_wxImageHandler,
36962 _swigc__p_wxImageList,
36963 _swigc__p_wxIndividualLayoutConstraint,
36964 _swigc__p_wxInitDialogEvent,
36965 _swigc__p_wxJPEGHandler,
36966 _swigc__p_wxKeyEvent,
36967 _swigc__p_wxLanguageInfo,
36968 _swigc__p_wxLayoutConstraints,
36969 _swigc__p_wxLocale,
36970 _swigc__p_wxMask,
36971 _swigc__p_wxMaximizeEvent,
36972 _swigc__p_wxMemoryDC,
36973 _swigc__p_wxMenu,
36974 _swigc__p_wxMenuBar,
36975 _swigc__p_wxMenuEvent,
36976 _swigc__p_wxMenuItem,
36977 _swigc__p_wxMetaFile,
36978 _swigc__p_wxMetaFileDC,
36979 _swigc__p_wxMirrorDC,
36980 _swigc__p_wxMouseCaptureChangedEvent,
36981 _swigc__p_wxMouseCaptureLostEvent,
36982 _swigc__p_wxMouseEvent,
36983 _swigc__p_wxMoveEvent,
36984 _swigc__p_wxNativeEncodingInfo,
36985 _swigc__p_wxNativeFontInfo,
36986 _swigc__p_wxNativePixelData,
36987 _swigc__p_wxNativePixelData_Accessor,
36988 _swigc__p_wxNavigationKeyEvent,
36989 _swigc__p_wxNcPaintEvent,
36990 _swigc__p_wxNotifyEvent,
36991 _swigc__p_wxObject,
36992 _swigc__p_wxOverlay,
36993 _swigc__p_wxPCXHandler,
36994 _swigc__p_wxPNGHandler,
36995 _swigc__p_wxPNMHandler,
36996 _swigc__p_wxPaintDC,
36997 _swigc__p_wxPaintEvent,
36998 _swigc__p_wxPalette,
36999 _swigc__p_wxPaletteChangedEvent,
37000 _swigc__p_wxPaperSize,
37001 _swigc__p_wxPen,
37002 _swigc__p_wxPenList,
37003 _swigc__p_wxPixelDataBase,
37004 _swigc__p_wxPoint,
37005 _swigc__p_wxPoint2D,
37006 _swigc__p_wxPostScriptDC,
37007 _swigc__p_wxPrintData,
37008 _swigc__p_wxPrinterDC,
37009 _swigc__p_wxPseudoDC,
37010 _swigc__p_wxPyApp,
37011 _swigc__p_wxPyCommandEvent,
37012 _swigc__p_wxPyEvent,
37013 _swigc__p_wxPyFontEnumerator,
37014 _swigc__p_wxPyImageHandler,
37015 _swigc__p_wxPyLocale,
37016 _swigc__p_wxPySizer,
37017 _swigc__p_wxPyValidator,
37018 _swigc__p_wxQueryNewPaletteEvent,
37019 _swigc__p_wxRect,
37020 _swigc__p_wxRegion,
37021 _swigc__p_wxRegionIterator,
37022 _swigc__p_wxRendererNative,
37023 _swigc__p_wxRendererVersion,
37024 _swigc__p_wxScreenDC,
37025 _swigc__p_wxScrollEvent,
37026 _swigc__p_wxScrollWinEvent,
37027 _swigc__p_wxSetCursorEvent,
37028 _swigc__p_wxShowEvent,
37029 _swigc__p_wxSize,
37030 _swigc__p_wxSizeEvent,
37031 _swigc__p_wxSizer,
37032 _swigc__p_wxSizerItem,
37033 _swigc__p_wxSplitterRenderParams,
37034 _swigc__p_wxStaticBoxSizer,
37035 _swigc__p_wxStdDialogButtonSizer,
37036 _swigc__p_wxStockGDI,
37037 _swigc__p_wxString,
37038 _swigc__p_wxSysColourChangedEvent,
37039 _swigc__p_wxTIFFHandler,
37040 _swigc__p_wxUpdateUIEvent,
37041 _swigc__p_wxValidator,
37042 _swigc__p_wxWindow,
37043 _swigc__p_wxWindowCreateEvent,
37044 _swigc__p_wxWindowDC,
37045 _swigc__p_wxWindowDestroyEvent,
37046 _swigc__p_wxXPMHandler,
37047 };
37048
37049
37050 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37051
37052 static swig_const_info swig_const_table[] = {
37053 {0, 0, 0, 0.0, 0, 0}};
37054
37055 #ifdef __cplusplus
37056 }
37057 #endif
37058 /* -----------------------------------------------------------------------------
37059 * Type initialization:
37060 * This problem is tough by the requirement that no dynamic
37061 * memory is used. Also, since swig_type_info structures store pointers to
37062 * swig_cast_info structures and swig_cast_info structures store pointers back
37063 * to swig_type_info structures, we need some lookup code at initialization.
37064 * The idea is that swig generates all the structures that are needed.
37065 * The runtime then collects these partially filled structures.
37066 * The SWIG_InitializeModule function takes these initial arrays out of
37067 * swig_module, and does all the lookup, filling in the swig_module.types
37068 * array with the correct data and linking the correct swig_cast_info
37069 * structures together.
37070 *
37071 * The generated swig_type_info structures are assigned staticly to an initial
37072 * array. We just loop though that array, and handle each type individually.
37073 * First we lookup if this type has been already loaded, and if so, use the
37074 * loaded structure instead of the generated one. Then we have to fill in the
37075 * cast linked list. The cast data is initially stored in something like a
37076 * two-dimensional array. Each row corresponds to a type (there are the same
37077 * number of rows as there are in the swig_type_initial array). Each entry in
37078 * a column is one of the swig_cast_info structures for that type.
37079 * The cast_initial array is actually an array of arrays, because each row has
37080 * a variable number of columns. So to actually build the cast linked list,
37081 * we find the array of casts associated with the type, and loop through it
37082 * adding the casts to the list. The one last trick we need to do is making
37083 * sure the type pointer in the swig_cast_info struct is correct.
37084 *
37085 * First off, we lookup the cast->type name to see if it is already loaded.
37086 * There are three cases to handle:
37087 * 1) If the cast->type has already been loaded AND the type we are adding
37088 * casting info to has not been loaded (it is in this module), THEN we
37089 * replace the cast->type pointer with the type pointer that has already
37090 * been loaded.
37091 * 2) If BOTH types (the one we are adding casting info to, and the
37092 * cast->type) are loaded, THEN the cast info has already been loaded by
37093 * the previous module so we just ignore it.
37094 * 3) Finally, if cast->type has not already been loaded, then we add that
37095 * swig_cast_info to the linked list (because the cast->type) pointer will
37096 * be correct.
37097 * ----------------------------------------------------------------------------- */
37098
37099 #ifdef __cplusplus
37100 extern "C" {
37101 #if 0
37102 } /* c-mode */
37103 #endif
37104 #endif
37105
37106 #if 0
37107 #define SWIGRUNTIME_DEBUG
37108 #endif
37109
37110 SWIGRUNTIME void
37111 SWIG_InitializeModule(void *clientdata) {
37112 size_t i;
37113 swig_module_info *module_head;
37114 static int init_run = 0;
37115
37116 clientdata = clientdata;
37117
37118 if (init_run) return;
37119 init_run = 1;
37120
37121 /* Initialize the swig_module */
37122 swig_module.type_initial = swig_type_initial;
37123 swig_module.cast_initial = swig_cast_initial;
37124
37125 /* Try and load any already created modules */
37126 module_head = SWIG_GetModule(clientdata);
37127 if (module_head) {
37128 swig_module.next = module_head->next;
37129 module_head->next = &swig_module;
37130 } else {
37131 /* This is the first module loaded */
37132 swig_module.next = &swig_module;
37133 SWIG_SetModule(clientdata, &swig_module);
37134 }
37135
37136 /* Now work on filling in swig_module.types */
37137 #ifdef SWIGRUNTIME_DEBUG
37138 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37139 #endif
37140 for (i = 0; i < swig_module.size; ++i) {
37141 swig_type_info *type = 0;
37142 swig_type_info *ret;
37143 swig_cast_info *cast;
37144
37145 #ifdef SWIGRUNTIME_DEBUG
37146 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37147 #endif
37148
37149 /* if there is another module already loaded */
37150 if (swig_module.next != &swig_module) {
37151 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37152 }
37153 if (type) {
37154 /* Overwrite clientdata field */
37155 #ifdef SWIGRUNTIME_DEBUG
37156 printf("SWIG_InitializeModule: found type %s\n", type->name);
37157 #endif
37158 if (swig_module.type_initial[i]->clientdata) {
37159 type->clientdata = swig_module.type_initial[i]->clientdata;
37160 #ifdef SWIGRUNTIME_DEBUG
37161 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37162 #endif
37163 }
37164 } else {
37165 type = swig_module.type_initial[i];
37166 }
37167
37168 /* Insert casting types */
37169 cast = swig_module.cast_initial[i];
37170 while (cast->type) {
37171 /* Don't need to add information already in the list */
37172 ret = 0;
37173 #ifdef SWIGRUNTIME_DEBUG
37174 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37175 #endif
37176 if (swig_module.next != &swig_module) {
37177 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37178 #ifdef SWIGRUNTIME_DEBUG
37179 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37180 #endif
37181 }
37182 if (ret) {
37183 if (type == swig_module.type_initial[i]) {
37184 #ifdef SWIGRUNTIME_DEBUG
37185 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37186 #endif
37187 cast->type = ret;
37188 ret = 0;
37189 } else {
37190 /* Check for casting already in the list */
37191 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37192 #ifdef SWIGRUNTIME_DEBUG
37193 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37194 #endif
37195 if (!ocast) ret = 0;
37196 }
37197 }
37198
37199 if (!ret) {
37200 #ifdef SWIGRUNTIME_DEBUG
37201 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37202 #endif
37203 if (type->cast) {
37204 type->cast->prev = cast;
37205 cast->next = type->cast;
37206 }
37207 type->cast = cast;
37208 }
37209 cast++;
37210 }
37211 /* Set entry in modules->types array equal to the type */
37212 swig_module.types[i] = type;
37213 }
37214 swig_module.types[i] = 0;
37215
37216 #ifdef SWIGRUNTIME_DEBUG
37217 printf("**** SWIG_InitializeModule: Cast List ******\n");
37218 for (i = 0; i < swig_module.size; ++i) {
37219 int j = 0;
37220 swig_cast_info *cast = swig_module.cast_initial[i];
37221 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37222 while (cast->type) {
37223 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37224 cast++;
37225 ++j;
37226 }
37227 printf("---- Total casts: %d\n",j);
37228 }
37229 printf("**** SWIG_InitializeModule: Cast List ******\n");
37230 #endif
37231 }
37232
37233 /* This function will propagate the clientdata field of type to
37234 * any new swig_type_info structures that have been added into the list
37235 * of equivalent types. It is like calling
37236 * SWIG_TypeClientData(type, clientdata) a second time.
37237 */
37238 SWIGRUNTIME void
37239 SWIG_PropagateClientData(void) {
37240 size_t i;
37241 swig_cast_info *equiv;
37242 static int init_run = 0;
37243
37244 if (init_run) return;
37245 init_run = 1;
37246
37247 for (i = 0; i < swig_module.size; i++) {
37248 if (swig_module.types[i]->clientdata) {
37249 equiv = swig_module.types[i]->cast;
37250 while (equiv) {
37251 if (!equiv->converter) {
37252 if (equiv->type && !equiv->type->clientdata)
37253 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37254 }
37255 equiv = equiv->next;
37256 }
37257 }
37258 }
37259 }
37260
37261 #ifdef __cplusplus
37262 #if 0
37263 {
37264 /* c-mode */
37265 #endif
37266 }
37267 #endif
37268
37269
37270
37271 #ifdef __cplusplus
37272 extern "C" {
37273 #endif
37274
37275 /* Python-specific SWIG API */
37276 #define SWIG_newvarlink() SWIG_Python_newvarlink()
37277 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37278 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37279
37280 /* -----------------------------------------------------------------------------
37281 * global variable support code.
37282 * ----------------------------------------------------------------------------- */
37283
37284 typedef struct swig_globalvar {
37285 char *name; /* Name of global variable */
37286 PyObject *(*get_attr)(void); /* Return the current value */
37287 int (*set_attr)(PyObject *); /* Set the value */
37288 struct swig_globalvar *next;
37289 } swig_globalvar;
37290
37291 typedef struct swig_varlinkobject {
37292 PyObject_HEAD
37293 swig_globalvar *vars;
37294 } swig_varlinkobject;
37295
37296 SWIGINTERN PyObject *
37297 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37298 return PyString_FromString("<Swig global variables>");
37299 }
37300
37301 SWIGINTERN PyObject *
37302 swig_varlink_str(swig_varlinkobject *v) {
37303 PyObject *str = PyString_FromString("(");
37304 swig_globalvar *var;
37305 for (var = v->vars; var; var=var->next) {
37306 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37307 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37308 }
37309 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37310 return str;
37311 }
37312
37313 SWIGINTERN int
37314 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37315 PyObject *str = swig_varlink_str(v);
37316 fprintf(fp,"Swig global variables ");
37317 fprintf(fp,"%s\n", PyString_AsString(str));
37318 Py_DECREF(str);
37319 return 0;
37320 }
37321
37322 SWIGINTERN void
37323 swig_varlink_dealloc(swig_varlinkobject *v) {
37324 swig_globalvar *var = v->vars;
37325 while (var) {
37326 swig_globalvar *n = var->next;
37327 free(var->name);
37328 free(var);
37329 var = n;
37330 }
37331 }
37332
37333 SWIGINTERN PyObject *
37334 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37335 PyObject *res = NULL;
37336 swig_globalvar *var = v->vars;
37337 while (var) {
37338 if (strcmp(var->name,n) == 0) {
37339 res = (*var->get_attr)();
37340 break;
37341 }
37342 var = var->next;
37343 }
37344 if (res == NULL && !PyErr_Occurred()) {
37345 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37346 }
37347 return res;
37348 }
37349
37350 SWIGINTERN int
37351 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37352 int res = 1;
37353 swig_globalvar *var = v->vars;
37354 while (var) {
37355 if (strcmp(var->name,n) == 0) {
37356 res = (*var->set_attr)(p);
37357 break;
37358 }
37359 var = var->next;
37360 }
37361 if (res == 1 && !PyErr_Occurred()) {
37362 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37363 }
37364 return res;
37365 }
37366
37367 SWIGINTERN PyTypeObject*
37368 swig_varlink_type(void) {
37369 static char varlink__doc__[] = "Swig var link object";
37370 static PyTypeObject varlink_type;
37371 static int type_init = 0;
37372 if (!type_init) {
37373 const PyTypeObject tmp
37374 = {
37375 PyObject_HEAD_INIT(NULL)
37376 0, /* Number of items in variable part (ob_size) */
37377 (char *)"swigvarlink", /* Type name (tp_name) */
37378 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37379 0, /* Itemsize (tp_itemsize) */
37380 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37381 (printfunc) swig_varlink_print, /* Print (tp_print) */
37382 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37383 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37384 0, /* tp_compare */
37385 (reprfunc) swig_varlink_repr, /* tp_repr */
37386 0, /* tp_as_number */
37387 0, /* tp_as_sequence */
37388 0, /* tp_as_mapping */
37389 0, /* tp_hash */
37390 0, /* tp_call */
37391 (reprfunc)swig_varlink_str, /* tp_str */
37392 0, /* tp_getattro */
37393 0, /* tp_setattro */
37394 0, /* tp_as_buffer */
37395 0, /* tp_flags */
37396 varlink__doc__, /* tp_doc */
37397 0, /* tp_traverse */
37398 0, /* tp_clear */
37399 0, /* tp_richcompare */
37400 0, /* tp_weaklistoffset */
37401 #if PY_VERSION_HEX >= 0x02020000
37402 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37403 #endif
37404 #if PY_VERSION_HEX >= 0x02030000
37405 0, /* tp_del */
37406 #endif
37407 #ifdef COUNT_ALLOCS
37408 0,0,0,0 /* tp_alloc -> tp_next */
37409 #endif
37410 };
37411 varlink_type = tmp;
37412 varlink_type.ob_type = &PyType_Type;
37413 type_init = 1;
37414 }
37415 return &varlink_type;
37416 }
37417
37418 /* Create a variable linking object for use later */
37419 SWIGINTERN PyObject *
37420 SWIG_Python_newvarlink(void) {
37421 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37422 if (result) {
37423 result->vars = 0;
37424 }
37425 return ((PyObject*) result);
37426 }
37427
37428 SWIGINTERN void
37429 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37430 swig_varlinkobject *v = (swig_varlinkobject *) p;
37431 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37432 if (gv) {
37433 size_t size = strlen(name)+1;
37434 gv->name = (char *)malloc(size);
37435 if (gv->name) {
37436 strncpy(gv->name,name,size);
37437 gv->get_attr = get_attr;
37438 gv->set_attr = set_attr;
37439 gv->next = v->vars;
37440 }
37441 }
37442 v->vars = gv;
37443 }
37444
37445 SWIGINTERN PyObject *
37446 SWIG_globals() {
37447 static PyObject *_SWIG_globals = 0;
37448 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37449 return _SWIG_globals;
37450 }
37451
37452 /* -----------------------------------------------------------------------------
37453 * constants/methods manipulation
37454 * ----------------------------------------------------------------------------- */
37455
37456 /* Install Constants */
37457 SWIGINTERN void
37458 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37459 PyObject *obj = 0;
37460 size_t i;
37461 for (i = 0; constants[i].type; ++i) {
37462 switch(constants[i].type) {
37463 case SWIG_PY_POINTER:
37464 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37465 break;
37466 case SWIG_PY_BINARY:
37467 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37468 break;
37469 default:
37470 obj = 0;
37471 break;
37472 }
37473 if (obj) {
37474 PyDict_SetItemString(d, constants[i].name, obj);
37475 Py_DECREF(obj);
37476 }
37477 }
37478 }
37479
37480 /* -----------------------------------------------------------------------------*/
37481 /* Fix SwigMethods to carry the callback ptrs when needed */
37482 /* -----------------------------------------------------------------------------*/
37483
37484 SWIGINTERN void
37485 SWIG_Python_FixMethods(PyMethodDef *methods,
37486 swig_const_info *const_table,
37487 swig_type_info **types,
37488 swig_type_info **types_initial) {
37489 size_t i;
37490 for (i = 0; methods[i].ml_name; ++i) {
37491 const char *c = methods[i].ml_doc;
37492 if (c && (c = strstr(c, "swig_ptr: "))) {
37493 int j;
37494 swig_const_info *ci = 0;
37495 const char *name = c + 10;
37496 for (j = 0; const_table[j].type; ++j) {
37497 if (strncmp(const_table[j].name, name,
37498 strlen(const_table[j].name)) == 0) {
37499 ci = &(const_table[j]);
37500 break;
37501 }
37502 }
37503 if (ci) {
37504 size_t shift = (ci->ptype) - types;
37505 swig_type_info *ty = types_initial[shift];
37506 size_t ldoc = (c - methods[i].ml_doc);
37507 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37508 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37509 if (ndoc) {
37510 char *buff = ndoc;
37511 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37512 if (ptr) {
37513 strncpy(buff, methods[i].ml_doc, ldoc);
37514 buff += ldoc;
37515 strncpy(buff, "swig_ptr: ", 10);
37516 buff += 10;
37517 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37518 methods[i].ml_doc = ndoc;
37519 }
37520 }
37521 }
37522 }
37523 }
37524 }
37525
37526 #ifdef __cplusplus
37527 }
37528 #endif
37529
37530 /* -----------------------------------------------------------------------------*
37531 * Partial Init method
37532 * -----------------------------------------------------------------------------*/
37533
37534 #ifdef __cplusplus
37535 extern "C"
37536 #endif
37537 SWIGEXPORT void SWIG_init(void) {
37538 PyObject *m, *d;
37539
37540 /* Fix SwigMethods to carry the callback ptrs when needed */
37541 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37542
37543 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37544 d = PyModule_GetDict(m);
37545
37546 SWIG_InitializeModule(0);
37547 SWIG_InstallConstants(d,swig_const_table);
37548
37549
37550 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37551 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37552 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37553 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37554 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37555 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37556 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37557 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37558 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37559 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37560 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37561 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37562 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37563 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37564 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37565 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37566 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37567 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37568 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37569 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37570 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37571 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37572 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37573 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37574 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37575 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37576 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37577 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37578 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37579 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37580 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37581 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37582 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37583 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37584 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37585 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37586 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37587 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37588 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37589 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37590 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37591 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37592 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37593 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37594 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37595 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37596 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37597 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37598 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37599 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37600 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37601 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37602 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37603 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37604 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37605 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37606 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37607 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37608 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37609 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37610 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37611 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37612 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37613 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37614 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37615 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37616 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37617 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37618 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37619 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37620 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37621 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37622 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37623 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37624 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37625 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37626 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37627 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37628 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37629 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37630 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37631 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37632 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37633 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37634 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37635 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37636 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37637 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37638 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37639 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37640 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37641 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37642 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37643 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37644 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37645 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37646 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37647 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37648 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37649 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37650 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37651 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37652 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37653 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37654 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37655 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37656 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37657 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37658 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37659 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37660 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37661 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37662 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37663 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37664 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37665 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37666 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37667 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37668 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37669 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37670 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37671 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37672 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37673 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37674 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37675 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37676 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37677 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37678 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37679 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37680 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37681 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37682
37683 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37684
37685 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37686 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37687 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37688 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37689 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37690 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37691 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37692 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37693 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37694 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37695 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37696 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37697 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37698 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37699 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37700 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37701 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37702 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37703 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37704 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37705 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37706 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37707 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37708 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37709 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37710 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37711 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37712 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37713 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37714 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37715 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37716 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37717 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37718 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37719 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37720 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37721 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37722 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37723 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37724 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37725 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37726 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37727 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37728 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37729 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37730 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37731 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37732 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37733 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37734 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37735 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37736 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37737 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37738 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37739 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37740 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37741 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37742 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37743 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37744 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37745 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37746 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
37747 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
37748 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
37749 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
37750 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
37751 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
37752 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
37753 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
37754 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
37755 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
37756 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
37757 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
37758 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
37759 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
37760 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
37761 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
37762 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
37763 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
37764 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
37765 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
37766 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
37767 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
37768 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
37769 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
37770 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
37771 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
37772 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
37773 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
37774 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
37775 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
37776 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
37777 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
37778 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
37779 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
37780 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
37781 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
37782 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
37783 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
37784 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
37785 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
37786 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
37787 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
37788 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
37789 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
37790 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
37791 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
37792 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
37793 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
37794 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
37795 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
37796 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
37797 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
37798 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
37799 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
37800 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
37801 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
37802 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
37803 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
37804 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
37805 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
37806 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
37807 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
37808 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
37809 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
37810 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
37811 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
37812 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
37813 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
37814 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
37815 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
37816 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
37817 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
37818 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
37819 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
37820 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
37821 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
37822 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
37823 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
37824 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
37825 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
37826 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
37827 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
37828 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
37829 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
37830 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
37831 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
37832 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
37833 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
37834 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
37835 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
37836 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
37837 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
37838 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
37839 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
37840 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
37841 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
37842 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
37843 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
37844 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
37845 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
37846 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
37847 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
37848 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
37849 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
37850 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
37851 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
37852 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
37853 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
37854 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
37855 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
37856 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
37857 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
37858 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
37859 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
37860 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
37861 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
37862 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
37863 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
37864 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
37865 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
37866 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
37867 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
37868 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
37869 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
37870 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
37871 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
37872 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
37873 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
37874 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
37875 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
37876 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
37877 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
37878 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
37879 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
37880 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
37881 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
37882 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
37883 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
37884 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
37885 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
37886 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
37887 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
37888 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
37889 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
37890 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
37891 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
37892 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
37893 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
37894 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
37895 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
37896 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
37897 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
37898 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
37899 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
37900 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
37901 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
37902 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
37903 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
37904 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
37905 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
37906 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
37907 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
37908 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
37909 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
37910 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
37911 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
37912 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
37913 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
37914 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
37915 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
37916 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
37917 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
37918 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
37919 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
37920 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
37921 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
37922 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
37923 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
37924 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
37925 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
37926 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
37927 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
37928 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
37929 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
37930 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
37931 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
37932 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
37933 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
37934 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
37935 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
37936 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
37937 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
37938 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
37939 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
37940 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
37941 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
37942 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
37943 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
37944 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
37945 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
37946 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
37947 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
37948 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
37949 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
37950 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
37951 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
37952 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
37953 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
37954 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
37955 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
37956 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
37957 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
37958 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
37959 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
37960 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
37961 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
37962 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
37963 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
37964 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
37965 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
37966 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
37967 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
37968 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
37969 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
37970 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
37971 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
37972 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
37973 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
37974 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
37975 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
37976 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
37977 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
37978 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
37979 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
37980 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
37981 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
37982 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
37983 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
37984 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
37985 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
37986 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
37987 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
37988 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
37989 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
37990 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
37991 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
37992 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
37993 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
37994 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
37995 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
37996 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
37997 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
37998 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
37999 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
38000 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
38001 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
38002 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
38003 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
38004
38005 // Work around a chicken/egg problem in drawlist.cpp
38006 wxPyDrawList_SetAPIPtr();
38007
38008 }
38009