]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
5f74b50531bd183a0abdead771e86a97f1a81be2
[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_void swig_types[8]
2475 #define SWIGTYPE_p_wxANIHandler swig_types[9]
2476 #define SWIGTYPE_p_wxAcceleratorTable swig_types[10]
2477 #define SWIGTYPE_p_wxActivateEvent swig_types[11]
2478 #define SWIGTYPE_p_wxAlphaPixelData swig_types[12]
2479 #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13]
2480 #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14]
2481 #define SWIGTYPE_p_wxBMPHandler swig_types[15]
2482 #define SWIGTYPE_p_wxBitmap swig_types[16]
2483 #define SWIGTYPE_p_wxBoxSizer swig_types[17]
2484 #define SWIGTYPE_p_wxBrush swig_types[18]
2485 #define SWIGTYPE_p_wxBrushList swig_types[19]
2486 #define SWIGTYPE_p_wxBufferedDC swig_types[20]
2487 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21]
2488 #define SWIGTYPE_p_wxCURHandler swig_types[22]
2489 #define SWIGTYPE_p_wxChar swig_types[23]
2490 #define SWIGTYPE_p_wxChildFocusEvent swig_types[24]
2491 #define SWIGTYPE_p_wxClientDC swig_types[25]
2492 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26]
2493 #define SWIGTYPE_p_wxCloseEvent swig_types[27]
2494 #define SWIGTYPE_p_wxColor swig_types[28]
2495 #define SWIGTYPE_p_wxColour swig_types[29]
2496 #define SWIGTYPE_p_wxColourDatabase swig_types[30]
2497 #define SWIGTYPE_p_wxCommandEvent swig_types[31]
2498 #define SWIGTYPE_p_wxContextMenuEvent swig_types[32]
2499 #define SWIGTYPE_p_wxControl swig_types[33]
2500 #define SWIGTYPE_p_wxControlWithItems swig_types[34]
2501 #define SWIGTYPE_p_wxCursor swig_types[35]
2502 #define SWIGTYPE_p_wxDC swig_types[36]
2503 #define SWIGTYPE_p_wxDCOverlay swig_types[37]
2504 #define SWIGTYPE_p_wxDash swig_types[38]
2505 #define SWIGTYPE_p_wxDateEvent swig_types[39]
2506 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40]
2507 #define SWIGTYPE_p_wxDropFilesEvent swig_types[41]
2508 #define SWIGTYPE_p_wxDuplexMode swig_types[42]
2509 #define SWIGTYPE_p_wxEffects swig_types[43]
2510 #define SWIGTYPE_p_wxEncodingConverter swig_types[44]
2511 #define SWIGTYPE_p_wxEraseEvent swig_types[45]
2512 #define SWIGTYPE_p_wxEvent swig_types[46]
2513 #define SWIGTYPE_p_wxEvtHandler swig_types[47]
2514 #define SWIGTYPE_p_wxFSFile swig_types[48]
2515 #define SWIGTYPE_p_wxFileSystem swig_types[49]
2516 #define SWIGTYPE_p_wxFlexGridSizer swig_types[50]
2517 #define SWIGTYPE_p_wxFocusEvent swig_types[51]
2518 #define SWIGTYPE_p_wxFont swig_types[52]
2519 #define SWIGTYPE_p_wxFontList swig_types[53]
2520 #define SWIGTYPE_p_wxFontMapper swig_types[54]
2521 #define SWIGTYPE_p_wxGBSizerItem swig_types[55]
2522 #define SWIGTYPE_p_wxGCDC swig_types[56]
2523 #define SWIGTYPE_p_wxGDIObjListBase swig_types[57]
2524 #define SWIGTYPE_p_wxGDIObject swig_types[58]
2525 #define SWIGTYPE_p_wxGIFHandler swig_types[59]
2526 #define SWIGTYPE_p_wxGraphicsContext swig_types[60]
2527 #define SWIGTYPE_p_wxGraphicsPath swig_types[61]
2528 #define SWIGTYPE_p_wxGridBagSizer swig_types[62]
2529 #define SWIGTYPE_p_wxGridSizer swig_types[63]
2530 #define SWIGTYPE_p_wxHeaderButtonParams swig_types[64]
2531 #define SWIGTYPE_p_wxICOHandler swig_types[65]
2532 #define SWIGTYPE_p_wxIcon swig_types[66]
2533 #define SWIGTYPE_p_wxIconBundle swig_types[67]
2534 #define SWIGTYPE_p_wxIconLocation swig_types[68]
2535 #define SWIGTYPE_p_wxIconizeEvent swig_types[69]
2536 #define SWIGTYPE_p_wxIdleEvent swig_types[70]
2537 #define SWIGTYPE_p_wxImage swig_types[71]
2538 #define SWIGTYPE_p_wxImageHandler swig_types[72]
2539 #define SWIGTYPE_p_wxImageList swig_types[73]
2540 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74]
2541 #define SWIGTYPE_p_wxInitDialogEvent swig_types[75]
2542 #define SWIGTYPE_p_wxJPEGHandler swig_types[76]
2543 #define SWIGTYPE_p_wxKeyEvent swig_types[77]
2544 #define SWIGTYPE_p_wxLanguageInfo swig_types[78]
2545 #define SWIGTYPE_p_wxLayoutConstraints swig_types[79]
2546 #define SWIGTYPE_p_wxLocale swig_types[80]
2547 #define SWIGTYPE_p_wxMask swig_types[81]
2548 #define SWIGTYPE_p_wxMaximizeEvent swig_types[82]
2549 #define SWIGTYPE_p_wxMemoryDC swig_types[83]
2550 #define SWIGTYPE_p_wxMenu swig_types[84]
2551 #define SWIGTYPE_p_wxMenuBar swig_types[85]
2552 #define SWIGTYPE_p_wxMenuEvent swig_types[86]
2553 #define SWIGTYPE_p_wxMenuItem swig_types[87]
2554 #define SWIGTYPE_p_wxMetaFile swig_types[88]
2555 #define SWIGTYPE_p_wxMetaFileDC swig_types[89]
2556 #define SWIGTYPE_p_wxMirrorDC swig_types[90]
2557 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91]
2558 #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92]
2559 #define SWIGTYPE_p_wxMouseEvent swig_types[93]
2560 #define SWIGTYPE_p_wxMoveEvent swig_types[94]
2561 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95]
2562 #define SWIGTYPE_p_wxNativeFontInfo swig_types[96]
2563 #define SWIGTYPE_p_wxNativePixelData swig_types[97]
2564 #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98]
2565 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99]
2566 #define SWIGTYPE_p_wxNcPaintEvent swig_types[100]
2567 #define SWIGTYPE_p_wxNotifyEvent swig_types[101]
2568 #define SWIGTYPE_p_wxObject swig_types[102]
2569 #define SWIGTYPE_p_wxOverlay swig_types[103]
2570 #define SWIGTYPE_p_wxPCXHandler swig_types[104]
2571 #define SWIGTYPE_p_wxPNGHandler swig_types[105]
2572 #define SWIGTYPE_p_wxPNMHandler swig_types[106]
2573 #define SWIGTYPE_p_wxPaintDC swig_types[107]
2574 #define SWIGTYPE_p_wxPaintEvent swig_types[108]
2575 #define SWIGTYPE_p_wxPalette swig_types[109]
2576 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110]
2577 #define SWIGTYPE_p_wxPaperSize swig_types[111]
2578 #define SWIGTYPE_p_wxPen swig_types[112]
2579 #define SWIGTYPE_p_wxPenList swig_types[113]
2580 #define SWIGTYPE_p_wxPixelDataBase swig_types[114]
2581 #define SWIGTYPE_p_wxPoint swig_types[115]
2582 #define SWIGTYPE_p_wxPoint2D swig_types[116]
2583 #define SWIGTYPE_p_wxPostScriptDC swig_types[117]
2584 #define SWIGTYPE_p_wxPrintData swig_types[118]
2585 #define SWIGTYPE_p_wxPrinterDC swig_types[119]
2586 #define SWIGTYPE_p_wxPseudoDC swig_types[120]
2587 #define SWIGTYPE_p_wxPyApp swig_types[121]
2588 #define SWIGTYPE_p_wxPyCommandEvent swig_types[122]
2589 #define SWIGTYPE_p_wxPyEvent swig_types[123]
2590 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[124]
2591 #define SWIGTYPE_p_wxPyImageHandler swig_types[125]
2592 #define SWIGTYPE_p_wxPyLocale swig_types[126]
2593 #define SWIGTYPE_p_wxPySizer swig_types[127]
2594 #define SWIGTYPE_p_wxPyValidator swig_types[128]
2595 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129]
2596 #define SWIGTYPE_p_wxRect swig_types[130]
2597 #define SWIGTYPE_p_wxRegion swig_types[131]
2598 #define SWIGTYPE_p_wxRegionIterator swig_types[132]
2599 #define SWIGTYPE_p_wxRendererNative swig_types[133]
2600 #define SWIGTYPE_p_wxRendererVersion swig_types[134]
2601 #define SWIGTYPE_p_wxScreenDC swig_types[135]
2602 #define SWIGTYPE_p_wxScrollEvent swig_types[136]
2603 #define SWIGTYPE_p_wxScrollWinEvent swig_types[137]
2604 #define SWIGTYPE_p_wxSetCursorEvent swig_types[138]
2605 #define SWIGTYPE_p_wxShowEvent swig_types[139]
2606 #define SWIGTYPE_p_wxSize swig_types[140]
2607 #define SWIGTYPE_p_wxSizeEvent swig_types[141]
2608 #define SWIGTYPE_p_wxSizer swig_types[142]
2609 #define SWIGTYPE_p_wxSizerItem swig_types[143]
2610 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[144]
2611 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145]
2612 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146]
2613 #define SWIGTYPE_p_wxStockGDI swig_types[147]
2614 #define SWIGTYPE_p_wxString swig_types[148]
2615 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149]
2616 #define SWIGTYPE_p_wxTIFFHandler swig_types[150]
2617 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[151]
2618 #define SWIGTYPE_p_wxValidator swig_types[152]
2619 #define SWIGTYPE_p_wxWindow swig_types[153]
2620 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[154]
2621 #define SWIGTYPE_p_wxWindowDC swig_types[155]
2622 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156]
2623 #define SWIGTYPE_p_wxXPMHandler swig_types[157]
2624 static swig_type_info *swig_types[159];
2625 static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0};
2626 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2627 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2628
2629 /* -------- TYPES TABLE (END) -------- */
2630
2631 #if (PY_VERSION_HEX <= 0x02000000)
2632 # if !defined(SWIG_PYTHON_CLASSIC)
2633 # error "This python version requires to use swig with the '-classic' option"
2634 # endif
2635 #endif
2636 #if (PY_VERSION_HEX <= 0x02020000)
2637 # error "This python version requires to use swig with the '-nomodern' option"
2638 #endif
2639 #if (PY_VERSION_HEX <= 0x02020000)
2640 # error "This python version requires to use swig with the '-nomodernargs' option"
2641 #endif
2642 #ifndef METH_O
2643 # error "This python version requires to use swig with the '-nofastunpack' option"
2644 #endif
2645
2646 /*-----------------------------------------------
2647 @(target):= _gdi_.so
2648 ------------------------------------------------*/
2649 #define SWIG_init init_gdi_
2650
2651 #define SWIG_name "_gdi_"
2652
2653 #define SWIGVERSION 0x010329
2654
2655
2656 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2657 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2658
2659
2660 #include <stdexcept>
2661
2662
2663 namespace swig {
2664 class PyObject_ptr {
2665 protected:
2666 PyObject *_obj;
2667
2668 public:
2669 PyObject_ptr() :_obj(0)
2670 {
2671 }
2672
2673 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2674 {
2675 Py_XINCREF(_obj);
2676 }
2677
2678 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2679 {
2680 if (initial_ref) Py_XINCREF(_obj);
2681 }
2682
2683 PyObject_ptr & operator=(const PyObject_ptr& item)
2684 {
2685 Py_XINCREF(item._obj);
2686 Py_XDECREF(_obj);
2687 _obj = item._obj;
2688 return *this;
2689 }
2690
2691 ~PyObject_ptr()
2692 {
2693 Py_XDECREF(_obj);
2694 }
2695
2696 operator PyObject *() const
2697 {
2698 return _obj;
2699 }
2700
2701 PyObject *operator->() const
2702 {
2703 return _obj;
2704 }
2705 };
2706 }
2707
2708
2709 namespace swig {
2710 struct PyObject_var : PyObject_ptr {
2711 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2712
2713 PyObject_var & operator = (PyObject* obj)
2714 {
2715 Py_XDECREF(_obj);
2716 _obj = obj;
2717 return *this;
2718 }
2719 };
2720 }
2721
2722
2723 #include "wx/wxPython/wxPython.h"
2724 #include "wx/wxPython/pyclasses.h"
2725
2726
2727 static const wxString wxPyEmptyString(wxEmptyString);
2728
2729 #define SWIG_From_long PyInt_FromLong
2730
2731
2732 SWIGINTERNINLINE PyObject *
2733 SWIG_From_int (int value)
2734 {
2735 return SWIG_From_long (value);
2736 }
2737
2738
2739 #include <limits.h>
2740 #ifndef LLONG_MIN
2741 # define LLONG_MIN LONG_LONG_MIN
2742 #endif
2743 #ifndef LLONG_MAX
2744 # define LLONG_MAX LONG_LONG_MAX
2745 #endif
2746 #ifndef ULLONG_MAX
2747 # define ULLONG_MAX ULONG_LONG_MAX
2748 #endif
2749
2750
2751 SWIGINTERN int
2752 SWIG_AsVal_long (PyObject* obj, long* val)
2753 {
2754 if (PyNumber_Check(obj)) {
2755 if (val) *val = PyInt_AsLong(obj);
2756 return SWIG_OK;
2757 }
2758 return SWIG_TypeError;
2759 }
2760
2761
2762 SWIGINTERN int
2763 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2764 {
2765 long v = 0;
2766 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2767 return SWIG_TypeError;
2768 }
2769 else if (val)
2770 *val = (unsigned long)v;
2771 return SWIG_OK;
2772 }
2773
2774
2775 SWIGINTERN int
2776 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2777 {
2778 unsigned long v;
2779 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2780 if (SWIG_IsOK(res)) {
2781 if ((v > UCHAR_MAX)) {
2782 return SWIG_OverflowError;
2783 } else {
2784 if (val) *val = static_cast< unsigned char >(v);
2785 }
2786 }
2787 return res;
2788 }
2789
2790
2791 SWIGINTERNINLINE PyObject*
2792 SWIG_From_unsigned_SS_long (unsigned long value)
2793 {
2794 return (value > LONG_MAX) ?
2795 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2796 }
2797
2798
2799 SWIGINTERNINLINE PyObject *
2800 SWIG_From_unsigned_SS_char (unsigned char value)
2801 {
2802 return SWIG_From_unsigned_SS_long (value);
2803 }
2804
2805 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2806 wxColour temp, *obj = &temp;
2807 if ( other == Py_None ) return false;
2808 if ( ! wxColour_helper(other, &obj) ) {
2809 PyErr_Clear();
2810 return false;
2811 }
2812 return self->operator==(*obj);
2813 }
2814 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2815 wxColour temp, *obj = &temp;
2816 if ( other == Py_None ) return true;
2817 if ( ! wxColour_helper(other, &obj)) {
2818 PyErr_Clear();
2819 return true;
2820 }
2821 return self->operator!=(*obj);
2822 }
2823
2824 SWIGINTERN int
2825 SWIG_AsVal_bool (PyObject *obj, bool *val)
2826 {
2827 if (obj == Py_True) {
2828 if (val) *val = true;
2829 return SWIG_OK;
2830 } else if (obj == Py_False) {
2831 if (val) *val = false;
2832 return SWIG_OK;
2833 } else {
2834 long v = 0;
2835 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
2836 if (SWIG_IsOK(res) && val) *val = v ? true : false;
2837 return res;
2838 }
2839 }
2840
2841 SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){
2842 PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3);
2843 int red = -1;
2844 int green = -1;
2845 int blue = -1;
2846 int alpha = wxALPHA_OPAQUE;
2847 if (self->IsOk()) {
2848 red = self->Red();
2849 green = self->Green();
2850 blue = self->Blue();
2851 alpha = self->Alpha();
2852 }
2853 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2854 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2855 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2856 if (includeAlpha)
2857 PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha));
2858 return rv;
2859 }
2860 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2861 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2862 }
2863
2864 SWIGINTERN int
2865 SWIG_AsVal_int (PyObject * obj, int *val)
2866 {
2867 long v;
2868 int res = SWIG_AsVal_long (obj, &v);
2869 if (SWIG_IsOK(res)) {
2870 if ((v < INT_MIN || v > INT_MAX)) {
2871 return SWIG_OverflowError;
2872 } else {
2873 if (val) *val = static_cast< int >(v);
2874 }
2875 }
2876 return res;
2877 }
2878
2879 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2880 wxDash* dashes;
2881 int count = self->GetDashes(&dashes);
2882 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2883 PyObject* retval = PyList_New(0);
2884 for (int x=0; x<count; x++) {
2885 PyObject* pyint = PyInt_FromLong(dashes[x]);
2886 PyList_Append(retval, pyint);
2887 Py_DECREF(pyint);
2888 }
2889 wxPyEndBlockThreads(blocked);
2890 return retval;
2891 }
2892 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2893 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2894 int size = PyList_Size(pyDashes);
2895 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2896
2897 // black magic warning! The array of wxDashes needs to exist as
2898 // long as the pen does because wxPen does not copy the array. So
2899 // stick a copy in a Python string object and attach it to _self,
2900 // and then call SetDashes with a pointer to that array. Then
2901 // when the Python pen object is destroyed the array will be
2902 // cleaned up too.
2903 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2904 PyObject_SetAttrString(_self, "_dashes", strDashes);
2905
2906 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2907 delete [] dashes;
2908 Py_DECREF(strDashes);
2909 wxPyEndBlockThreads(blocked);
2910 }
2911 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2912 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2913
2914 #include <wx/rawbmp.h>
2915
2916
2917 #include <wx/image.h>
2918
2919 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2920 char** cArray = NULL;
2921 int count;
2922
2923 if (!PyList_Check(listOfStrings)) {
2924 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2925 return NULL;
2926 }
2927 count = PyList_Size(listOfStrings);
2928 cArray = new char*[count];
2929
2930 for(int x=0; x<count; x++) {
2931 // TODO: Need some validation and error checking here
2932 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2933 }
2934 return cArray;
2935 }
2936
2937
2938 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2939 char** cArray = NULL;
2940 wxBitmap* bmp;
2941
2942 cArray = ConvertListOfStrings(listOfStrings);
2943 if (! cArray)
2944 return NULL;
2945 bmp = new wxBitmap(cArray);
2946 delete [] cArray;
2947 return bmp;
2948 }
2949 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2950 char* buf;
2951 Py_ssize_t length;
2952 PyString_AsStringAndSize(bits, &buf, &length);
2953 return new wxBitmap(buf, width, height, depth);
2954 }
2955 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2956 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2957 wxSize size(self->GetWidth(), self->GetHeight());
2958 return size;
2959 }
2960 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2961 wxMask *mask = new wxMask(*self, colour);
2962 self->SetMask(mask);
2963 }
2964 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2965 self->SetWidth(size.x);
2966 self->SetHeight(size.y);
2967 }
2968 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2969 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2970
2971 // See http://tinyurl.com/e5adr for what premultiplying alpha means. It
2972 // appears to me that the other platforms are already doing it, so I'll just
2973 // automatically do it for wxMSW here.
2974 #ifdef __WXMSW__
2975 #define wxPy_premultiply(p, a) ((p) * (a) / 0xff)
2976 #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p))
2977 #else
2978 #define wxPy_premultiply(p, a) (p)
2979 #define wxPy_unpremultiply(p, a) (p)
2980 #endif
2981
2982
2983 wxBitmap* _BitmapFromBufferAlpha(int width, int height,
2984 buffer data, int DATASIZE,
2985 buffer alpha, int ALPHASIZE)
2986 {
2987 if (DATASIZE != width*height*3) {
2988 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
2989 return NULL;
2990 }
2991
2992 if (ALPHASIZE != width*height) {
2993 wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size.");
2994 return NULL;
2995 }
2996
2997 wxBitmap* bmp = new wxBitmap(width, height, 32);
2998 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
2999 if (! pixData) {
3000 // raise an exception...
3001 wxPyErr_SetString(PyExc_RuntimeError,
3002 "Failed to gain raw access to bitmap data.");
3003 return NULL;
3004 }
3005
3006 pixData.UseAlpha();
3007 wxAlphaPixelData::Iterator p(pixData);
3008 for (int y=0; y<height; y++) {
3009 wxAlphaPixelData::Iterator rowStart = p;
3010 for (int x=0; x<width; x++) {
3011 byte a = *(alpha++);
3012 p.Red() = wxPy_premultiply(*(data++), a);
3013 p.Green() = wxPy_premultiply(*(data++), a);
3014 p.Blue() = wxPy_premultiply(*(data++), a);
3015 p.Alpha() = a;
3016 ++p;
3017 }
3018 p = rowStart;
3019 p.OffsetY(pixData, 1);
3020 }
3021 return bmp;
3022 }
3023
3024 wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE)
3025 {
3026 if (DATASIZE != width*height*3) {
3027 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3028 return NULL;
3029 }
3030
3031 wxBitmap* bmp = new wxBitmap(width, height, 24);
3032 wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3033 if (! pixData) {
3034 // raise an exception...
3035 wxPyErr_SetString(PyExc_RuntimeError,
3036 "Failed to gain raw access to bitmap data.");
3037 return NULL;
3038 }
3039
3040 wxNativePixelData::Iterator p(pixData);
3041 for (int y=0; y<height; y++) {
3042 wxNativePixelData::Iterator rowStart = p;
3043 for (int x=0; x<width; x++) {
3044 p.Red() = *(data++);
3045 p.Green() = *(data++);
3046 p.Blue() = *(data++);
3047 ++p;
3048 }
3049 p = rowStart;
3050 p.OffsetY(pixData, 1);
3051 }
3052 return bmp;
3053 }
3054
3055
3056 wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE)
3057 {
3058 if (DATASIZE != width*height*4) {
3059 wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size.");
3060 return NULL;
3061 }
3062
3063 wxBitmap* bmp = new wxBitmap(width, height, 32);
3064 wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height));
3065 if (! pixData) {
3066 // raise an exception...
3067 wxPyErr_SetString(PyExc_RuntimeError,
3068 "Failed to gain raw access to bitmap data.");
3069 return NULL;
3070 }
3071
3072 pixData.UseAlpha();
3073 wxAlphaPixelData::Iterator p(pixData);
3074 for (int y=0; y<height; y++) {
3075 wxAlphaPixelData::Iterator rowStart = p;
3076 for (int x=0; x<width; x++) {
3077 byte a = data[3];
3078 p.Red() = wxPy_premultiply(*(data++), a);
3079 p.Green() = wxPy_premultiply(*(data++), a);
3080 p.Blue() = wxPy_premultiply(*(data++), a);
3081 p.Alpha() = a; data++;
3082 ++p;
3083 }
3084 p = rowStart;
3085 p.OffsetY(pixData, 1);
3086 }
3087 return bmp;
3088 }
3089
3090
3091 typedef wxNativePixelData::Iterator wxNativePixelData_Accessor;
3092
3093 SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); }
3094 SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); }
3095 SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){
3096 self->Red() = red;
3097 self->Green() = green;
3098 self->Blue() = blue;
3099 }
3100 SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){
3101 PyObject* rv = PyTuple_New(3);
3102 PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red()));
3103 PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green()));
3104 PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue()));
3105 return rv;
3106 }
3107
3108 typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor;
3109
3110 SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); }
3111 SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); }
3112 SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){
3113 self->Red() = wxPy_premultiply(red, alpha);
3114 self->Green() = wxPy_premultiply(green, alpha);
3115 self->Blue() = wxPy_premultiply(blue, alpha);
3116 self->Alpha() = alpha;
3117 }
3118 SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){
3119 PyObject* rv = PyTuple_New(4);
3120 int red = self->Red();
3121 int green = self->Green();
3122 int blue = self->Blue();
3123 int alpha = self->Alpha();
3124
3125 PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) ));
3126 PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) ));
3127 PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) ));
3128 PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha ));
3129 return rv;
3130 }
3131 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
3132 if ( !colour.IsOk() )
3133 return new wxMask(bitmap, *wxBLACK);
3134 else
3135 return new wxMask(bitmap, colour);
3136 }
3137
3138 #include <wx/iconbndl.h>
3139
3140 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
3141 wxIcon* icon = new wxIcon();
3142 icon->CopyFromBitmap(bmp);
3143 return icon;
3144 }
3145 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
3146 char** cArray = NULL;
3147 wxIcon* icon;
3148
3149 cArray = ConvertListOfStrings(listOfStrings);
3150 if (! cArray)
3151 return NULL;
3152 icon = new wxIcon(cArray);
3153 delete [] cArray;
3154 return icon;
3155 }
3156 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3157 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
3158
3159 return new wxIconLocation(*filename, num);
3160
3161
3162
3163 }
3164 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
3165
3166 self->SetIndex(num);
3167
3168
3169
3170 }
3171 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
3172
3173 return self->GetIndex();
3174
3175
3176
3177 }
3178 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
3179 #ifdef __WXGTK__
3180 wxImage img(cursorName, type);
3181 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
3182 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
3183 return new wxCursor(img);
3184 #else
3185 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
3186 #endif
3187 }
3188 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
3189
3190
3191 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
3192 (*self) ++;
3193 }
3194 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
3195 return self->operator bool();
3196 }
3197
3198 #include <wx/fontutil.h>
3199 #include <wx/fontmap.h>
3200 #include <wx/fontenum.h>
3201
3202 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3203 return self->ToString();
3204 }
3205
3206 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3207 { wxPyRaiseNotImplemented(); return NULL; }
3208
3209 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3210 { wxPyRaiseNotImplemented(); return false; }
3211
3212
3213 SWIGINTERNINLINE PyObject *
3214 SWIG_From_size_t (size_t value)
3215 {
3216 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3217 }
3218
3219
3220 SWIGINTERNINLINE int
3221 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3222 {
3223 unsigned long v;
3224 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3225 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3226 return res;
3227 }
3228
3229 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3230 wxFontEncoding alt_enc;
3231 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3232 return PyInt_FromLong(alt_enc);
3233 else {
3234 Py_INCREF(Py_None);
3235 return Py_None;
3236 }
3237 }
3238 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3239 wxNativeFontInfo nfi;
3240 nfi.FromString(info);
3241 return new wxFont(nfi);
3242 }
3243 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3244 return wxFont::New(pointSize, family, flags, face, encoding);
3245 }
3246 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3247 return wxFontBase::New(pixelSize, family,
3248 style, weight, underlined,
3249 face, encoding);
3250 }
3251 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3252 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3253 }
3254 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3255 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3256
3257 class wxPyFontEnumerator : public wxFontEnumerator {
3258 public:
3259 wxPyFontEnumerator() {}
3260 ~wxPyFontEnumerator() {}
3261
3262 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3263 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3264
3265 PYPRIVATE;
3266 };
3267
3268 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3269 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3270
3271
3272 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3273 PyObject* ret;
3274 wxArrayString arr = wxFontEnumerator::GetEncodings();
3275 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3276 ret = wxArrayString2PyList_helper(arr);
3277 wxPyEndBlockThreads(blocked);
3278 return ret;
3279 }
3280 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3281 PyObject* ret;
3282 wxArrayString arr = wxFontEnumerator::GetFacenames();
3283 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3284 ret = wxArrayString2PyList_helper(arr);
3285 wxPyEndBlockThreads(blocked);
3286 return ret;
3287 }
3288
3289 #include <locale.h>
3290
3291 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3292 wxLocale* loc;
3293 if (language == -1)
3294 loc = new wxLocale();
3295 else
3296 loc = new wxLocale(language, flags);
3297 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3298 // for the floating point conversions and such to work right.
3299 #if PY_VERSION_HEX < 0x02040000
3300 setlocale(LC_NUMERIC, "C");
3301 #endif
3302 return loc;
3303 }
3304 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3305 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3306 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3307 // for the floating point conversions and such to work right.
3308 #if PY_VERSION_HEX < 0x02040000
3309 setlocale(LC_NUMERIC, "C");
3310 #endif
3311 return rc;
3312 }
3313 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3314 bool rc = self->Init(language, flags);
3315 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3316 // for the floating point conversions and such to work right.
3317 #if PY_VERSION_HEX < 0x02040000
3318 setlocale(LC_NUMERIC, "C");
3319 #endif
3320 return rc;
3321 }
3322
3323 class wxPyLocale : public wxLocale
3324 {
3325 public:
3326 wxPyLocale();
3327
3328 wxPyLocale(const wxChar *szName, // name (for messages)
3329 const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files)
3330 const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale)
3331 bool bLoadDefault = true, // preload wxstd.mo?
3332 bool bConvertEncoding = false); // convert Win<->Unix if necessary?
3333
3334 wxPyLocale(int language, // wxLanguage id or custom language
3335 int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING);
3336
3337 ~wxPyLocale();
3338
3339 virtual const wxChar *GetString(const wxChar *szOrigString,
3340 const wxChar *szDomain = NULL) const;
3341 virtual const wxChar *GetString(const wxChar *szOrigString,
3342 const wxChar *szOrigString2, size_t n,
3343 const wxChar *szDomain = NULL) const;
3344
3345 virtual wxChar *GetSingularString(const wxChar *szOrigString,
3346 const wxChar *szDomain = NULL) const;
3347 virtual wxChar *GetPluralString(const wxChar *szOrigString,
3348 const wxChar *szOrigString2, size_t n,
3349 const wxChar *szDomain = NULL) const;
3350
3351 PYPRIVATE;
3352 private:
3353 DECLARE_NO_COPY_CLASS(wxPyLocale)
3354 };
3355
3356 wxPyLocale::wxPyLocale() : wxLocale()
3357 {
3358 }
3359
3360 wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages)
3361 const wxChar *szShort, // dir prefix (for msg files)
3362 const wxChar *szLocale, // locale (for setlocale)
3363 bool bLoadDefault, // preload wxstd.mo?
3364 bool bConvertEncoding) // convert Win<->Unix if necessary?
3365 : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding)
3366 {
3367 }
3368
3369 wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language
3370 int flags) : wxLocale(language, flags)
3371 {
3372 }
3373
3374 wxPyLocale::~wxPyLocale()
3375 {
3376 }
3377
3378 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3379 const wxChar *szDomain) const
3380 {
3381 wxChar *str = GetSingularString(szOrigString, szDomain);
3382 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain);
3383 }
3384
3385 const wxChar *wxPyLocale::GetString(const wxChar *szOrigString,
3386 const wxChar *szOrigString2, size_t n,
3387 const wxChar *szDomain) const
3388 {
3389 wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain);
3390 return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain);
3391 }
3392
3393 wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString,
3394 const wxChar *szDomain) const
3395 {
3396 bool found;
3397 static wxString str;
3398 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.
3399 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3400 if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) {
3401 PyObject* param1 = wx2PyString(szOrigString);
3402 PyObject* param2 = wx2PyString(szDomain);
3403 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2));
3404 Py_DECREF(param1);
3405 Py_DECREF(param2);
3406 if (ret) {
3407 str = Py2wxString(ret);
3408 Py_DECREF(ret);
3409 }
3410 }
3411 wxPyEndBlockThreads(blocked);
3412 return (found ? (wxChar*)str.c_str() : NULL);
3413 }
3414
3415 wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString,
3416 const wxChar *szOrigString2, size_t n,
3417 const wxChar *szDomain) const
3418 {
3419 bool found;
3420 static wxString str;
3421 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.
3422 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3423 if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) {
3424 PyObject* param1 = wx2PyString(szOrigString);
3425 PyObject* param2 = wx2PyString(szOrigString2);
3426 PyObject* param4 = wx2PyString(szDomain);
3427 PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4));
3428 Py_DECREF(param1);
3429 Py_DECREF(param2);
3430 Py_DECREF(param4);
3431 if( ret) {
3432 str = Py2wxString(ret);
3433 Py_DECREF(ret);
3434 }
3435 }
3436 wxPyEndBlockThreads(blocked);
3437 return (found ? (wxChar*)str.c_str() : NULL);
3438 }
3439
3440 SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3441 wxPyLocale* loc;
3442 if (language == -1)
3443 loc = new wxPyLocale();
3444 else
3445 loc = new wxPyLocale(language, flags);
3446 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3447 // for the floating point conversions and such to work right.
3448 #if PY_VERSION_HEX < 0x02040000
3449 setlocale(LC_NUMERIC, "C");
3450 #endif
3451 return loc;
3452 }
3453
3454 #include "wx/wxPython/pydrawxxx.h"
3455
3456 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3457 wxColour col;
3458 self->GetPixel(x, y, &col);
3459 return col;
3460 }
3461 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3462 wxColour col;
3463 self->GetPixel(pt, &col);
3464 return col;
3465 }
3466
3467 SWIGINTERN int
3468 SWIG_AsVal_double (PyObject *obj, double* val)
3469 {
3470 if (PyNumber_Check(obj)) {
3471 if (val) *val = PyFloat_AsDouble(obj);
3472 return SWIG_OK;
3473 }
3474 return SWIG_TypeError;
3475 }
3476
3477 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3478 wxRect rv;
3479 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3480 return rv;
3481 }
3482 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3483 wxRect rect;
3484 self->GetClippingBox(rect);
3485 return rect;
3486 }
3487 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3488 wxArrayInt widths;
3489 self->GetPartialTextExtents(text, widths);
3490 return widths;
3491 }
3492
3493 #define SWIG_From_double PyFloat_FromDouble
3494
3495 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3496 self->SetLogicalOrigin(point.x, point.y);
3497 }
3498 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3499 self->SetDeviceOrigin(point.x, point.y);
3500 }
3501 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3502 self->CalcBoundingBox(point.x, point.y);
3503 }
3504 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3505 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3506 }
3507 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3508 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3509 }
3510 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3511 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3512 }
3513 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3514 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3515 }
3516 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3517 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3518 }
3519 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3520 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3521 }
3522
3523 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3524 *x1 = dc->MinX();
3525 *y1 = dc->MinY();
3526 *x2 = dc->MaxX();
3527 *y2 = dc->MaxY();
3528 }
3529
3530
3531 #include <wx/dcbuffer.h>
3532
3533
3534 #include <wx/dcps.h>
3535
3536
3537 #include <wx/metafile.h>
3538
3539
3540 #include <wx/graphics.h>
3541
3542
3543 #if !wxUSE_GRAPHICS_CONTEXT
3544 // C++ stub classes for platforms that don't have wxGraphicsContext yet.
3545
3546 class wxGraphicsPath
3547 {
3548 public :
3549 wxGraphicsPath() {
3550 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3551 PyErr_SetString(PyExc_NotImplementedError,
3552 "wxGraphicsPath is not available on this platform.");
3553 wxPyEndBlockThreads(blocked);
3554 }
3555 virtual ~wxGraphicsPath() {}
3556
3557 void MoveToPoint( wxDouble, wxDouble ) {}
3558 void AddLineToPoint( wxDouble, wxDouble ) {}
3559 void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {}
3560 void CloseSubpath() {}
3561 void GetCurrentPoint( wxDouble&, wxDouble&) {}
3562 void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {}
3563
3564 void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3565 void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3566 void AddCircle( wxDouble, wxDouble, wxDouble ) {}
3567 void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {}
3568
3569 wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); }
3570 void MoveToPoint( const wxPoint2DDouble& ) {}
3571 void AddLineToPoint( const wxPoint2DDouble&) {}
3572 void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {}
3573 void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {}
3574 };
3575
3576
3577 class wxGraphicsContext
3578 {
3579 public:
3580 wxGraphicsContext() {
3581 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3582 PyErr_SetString(PyExc_NotImplementedError,
3583 "wxGraphicsContext is not available on this platform.");
3584 wxPyEndBlockThreads(blocked);
3585 }
3586 virtual ~wxGraphicsContext() {}
3587
3588 static wxGraphicsContext* Create( const wxWindowDC&) {
3589 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3590 PyErr_SetString(PyExc_NotImplementedError,
3591 "wxGraphicsPath is not available on this platform.");
3592 wxPyEndBlockThreads(blocked);
3593 return NULL;
3594 }
3595
3596 wxGraphicsPath * CreatePath() { return NULL; }
3597 void PushState() {}
3598 void PopState() {}
3599 void Clip( const wxRegion & ) {}
3600 void Translate( wxDouble , wxDouble ) {}
3601 void Scale( wxDouble , wxDouble ) {}
3602 void Rotate( wxDouble ) {}
3603 void SetPen( const wxPen & ) {}
3604 void SetBrush( const wxBrush & ) {}
3605 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3606 const wxColour&, const wxColour&) {}
3607 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3608 const wxColour &, const wxColour &) {}
3609 void SetFont( const wxFont & ) {}
3610 void SetTextColor( const wxColour & ) {}
3611 void StrokePath( const wxGraphicsPath * ) {}
3612 void FillPath( const wxGraphicsPath *, int ) {}
3613 void DrawPath( const wxGraphicsPath *, int ) {}
3614 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3615 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3616 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3617 wxDouble *, wxDouble * ) const {}
3618 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3619 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3620 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3621 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3622 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3623 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3624 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3625 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3626 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3627 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3628 };
3629
3630
3631 class wxGCDC: public wxWindowDC
3632 {
3633 public:
3634 wxGCDC(const wxWindowDC&) {
3635 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3636 PyErr_SetString(PyExc_NotImplementedError,
3637 "wxGCDC is not available on this platform.");
3638 wxPyEndBlockThreads(blocked);
3639 }
3640
3641 wxGCDC() {
3642 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3643 PyErr_SetString(PyExc_NotImplementedError,
3644 "wxGCDC is not available on this platform.");
3645 wxPyEndBlockThreads(blocked);
3646 }
3647
3648 virtual ~wxGCDC() {}
3649
3650 wxGraphicsContext* GetGraphicContext() { return NULL; }
3651 };
3652
3653 #endif
3654
3655 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3656 wxArrayDouble widths;
3657 self->GetPartialTextExtents(text, widths);
3658 return widths;
3659 }
3660 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3661 size_t c1, c2, count;
3662 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3663 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3664
3665 if ( beginP != NULL && endP != NULL )
3666 {
3667 count = wxMin(c1, c2);
3668 self->StrokeLines(count, beginP, endP);
3669 }
3670 delete [] beginP;
3671 delete [] endP;
3672 }
3673
3674 #include "wx/dcgraph.h"
3675
3676
3677
3678 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3679 self->AddColour(name, wxColour(red, green, blue));
3680 }
3681
3682 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3683 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3684 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3685 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3686
3687
3688 #include <wx/effects.h>
3689
3690
3691 #include "wx/renderer.h"
3692
3693
3694 SWIGINTERNINLINE PyObject*
3695 SWIG_From_bool (bool value)
3696 {
3697 return PyBool_FromLong(value ? 1 : 0);
3698 }
3699
3700
3701 #include "wx/wxPython/pseudodc.h"
3702
3703 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3704 wxRect rect;
3705 self->GetIdBounds(id, rect);
3706 return rect;
3707 }
3708 #ifdef __cplusplus
3709 extern "C" {
3710 #endif
3711 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3712 PyObject *resultobj = 0;
3713 wxGDIObject *result = 0 ;
3714
3715 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3716 {
3717 if (!wxPyCheckForApp()) SWIG_fail;
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 result = (wxGDIObject *)new wxGDIObject();
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3724 return resultobj;
3725 fail:
3726 return NULL;
3727 }
3728
3729
3730 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3731 PyObject *resultobj = 0;
3732 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3733 void *argp1 = 0 ;
3734 int res1 = 0 ;
3735 PyObject *swig_obj[1] ;
3736
3737 if (!args) SWIG_fail;
3738 swig_obj[0] = args;
3739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3740 if (!SWIG_IsOK(res1)) {
3741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3742 }
3743 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3744 {
3745 PyThreadState* __tstate = wxPyBeginAllowThreads();
3746 delete arg1;
3747
3748 wxPyEndAllowThreads(__tstate);
3749 if (PyErr_Occurred()) SWIG_fail;
3750 }
3751 resultobj = SWIG_Py_Void();
3752 return resultobj;
3753 fail:
3754 return NULL;
3755 }
3756
3757
3758 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3759 PyObject *resultobj = 0;
3760 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3761 bool result;
3762 void *argp1 = 0 ;
3763 int res1 = 0 ;
3764 PyObject *swig_obj[1] ;
3765
3766 if (!args) SWIG_fail;
3767 swig_obj[0] = args;
3768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3769 if (!SWIG_IsOK(res1)) {
3770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3771 }
3772 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3773 {
3774 PyThreadState* __tstate = wxPyBeginAllowThreads();
3775 result = (bool)(arg1)->IsNull();
3776 wxPyEndAllowThreads(__tstate);
3777 if (PyErr_Occurred()) SWIG_fail;
3778 }
3779 {
3780 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3781 }
3782 return resultobj;
3783 fail:
3784 return NULL;
3785 }
3786
3787
3788 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3789 PyObject *obj;
3790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3791 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3792 return SWIG_Py_Void();
3793 }
3794
3795 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3796 return SWIG_Python_InitShadowInstance(args);
3797 }
3798
3799 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3800 PyObject *resultobj = 0;
3801 byte arg1 = (byte) 0 ;
3802 byte arg2 = (byte) 0 ;
3803 byte arg3 = (byte) 0 ;
3804 byte arg4 = (byte) wxALPHA_OPAQUE ;
3805 wxColour *result = 0 ;
3806 unsigned char val1 ;
3807 int ecode1 = 0 ;
3808 unsigned char val2 ;
3809 int ecode2 = 0 ;
3810 unsigned char val3 ;
3811 int ecode3 = 0 ;
3812 unsigned char val4 ;
3813 int ecode4 = 0 ;
3814 PyObject * obj0 = 0 ;
3815 PyObject * obj1 = 0 ;
3816 PyObject * obj2 = 0 ;
3817 PyObject * obj3 = 0 ;
3818 char * kwnames[] = {
3819 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3820 };
3821
3822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3823 if (obj0) {
3824 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3825 if (!SWIG_IsOK(ecode1)) {
3826 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3827 }
3828 arg1 = static_cast< byte >(val1);
3829 }
3830 if (obj1) {
3831 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3832 if (!SWIG_IsOK(ecode2)) {
3833 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3834 }
3835 arg2 = static_cast< byte >(val2);
3836 }
3837 if (obj2) {
3838 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3839 if (!SWIG_IsOK(ecode3)) {
3840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3841 }
3842 arg3 = static_cast< byte >(val3);
3843 }
3844 if (obj3) {
3845 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3846 if (!SWIG_IsOK(ecode4)) {
3847 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3848 }
3849 arg4 = static_cast< byte >(val4);
3850 }
3851 {
3852 PyThreadState* __tstate = wxPyBeginAllowThreads();
3853 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3854 wxPyEndAllowThreads(__tstate);
3855 if (PyErr_Occurred()) SWIG_fail;
3856 }
3857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3858 return resultobj;
3859 fail:
3860 return NULL;
3861 }
3862
3863
3864 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3865 PyObject *resultobj = 0;
3866 wxString *arg1 = 0 ;
3867 wxColour *result = 0 ;
3868 bool temp1 = false ;
3869 PyObject * obj0 = 0 ;
3870 char * kwnames[] = {
3871 (char *) "colorName", NULL
3872 };
3873
3874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3875 {
3876 arg1 = wxString_in_helper(obj0);
3877 if (arg1 == NULL) SWIG_fail;
3878 temp1 = true;
3879 }
3880 {
3881 if (!wxPyCheckForApp()) SWIG_fail;
3882 PyThreadState* __tstate = wxPyBeginAllowThreads();
3883 result = (wxColour *)new wxColour((wxString const &)*arg1);
3884 wxPyEndAllowThreads(__tstate);
3885 if (PyErr_Occurred()) SWIG_fail;
3886 }
3887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3888 {
3889 if (temp1)
3890 delete arg1;
3891 }
3892 return resultobj;
3893 fail:
3894 {
3895 if (temp1)
3896 delete arg1;
3897 }
3898 return NULL;
3899 }
3900
3901
3902 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3903 PyObject *resultobj = 0;
3904 unsigned long arg1 ;
3905 wxColour *result = 0 ;
3906 unsigned long val1 ;
3907 int ecode1 = 0 ;
3908 PyObject * obj0 = 0 ;
3909 char * kwnames[] = {
3910 (char *) "colRGB", NULL
3911 };
3912
3913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3914 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3915 if (!SWIG_IsOK(ecode1)) {
3916 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3917 }
3918 arg1 = static_cast< unsigned long >(val1);
3919 {
3920 PyThreadState* __tstate = wxPyBeginAllowThreads();
3921 result = (wxColour *)new wxColour(arg1);
3922 wxPyEndAllowThreads(__tstate);
3923 if (PyErr_Occurred()) SWIG_fail;
3924 }
3925 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3926 return resultobj;
3927 fail:
3928 return NULL;
3929 }
3930
3931
3932 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3933 PyObject *resultobj = 0;
3934 wxColour *arg1 = (wxColour *) 0 ;
3935 void *argp1 = 0 ;
3936 int res1 = 0 ;
3937 PyObject *swig_obj[1] ;
3938
3939 if (!args) SWIG_fail;
3940 swig_obj[0] = args;
3941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3942 if (!SWIG_IsOK(res1)) {
3943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3944 }
3945 arg1 = reinterpret_cast< wxColour * >(argp1);
3946 {
3947 PyThreadState* __tstate = wxPyBeginAllowThreads();
3948 delete arg1;
3949
3950 wxPyEndAllowThreads(__tstate);
3951 if (PyErr_Occurred()) SWIG_fail;
3952 }
3953 resultobj = SWIG_Py_Void();
3954 return resultobj;
3955 fail:
3956 return NULL;
3957 }
3958
3959
3960 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3961 PyObject *resultobj = 0;
3962 wxColour *arg1 = (wxColour *) 0 ;
3963 byte result;
3964 void *argp1 = 0 ;
3965 int res1 = 0 ;
3966 PyObject *swig_obj[1] ;
3967
3968 if (!args) SWIG_fail;
3969 swig_obj[0] = args;
3970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3971 if (!SWIG_IsOK(res1)) {
3972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3973 }
3974 arg1 = reinterpret_cast< wxColour * >(argp1);
3975 {
3976 PyThreadState* __tstate = wxPyBeginAllowThreads();
3977 result = (byte)(arg1)->Red();
3978 wxPyEndAllowThreads(__tstate);
3979 if (PyErr_Occurred()) SWIG_fail;
3980 }
3981 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3982 return resultobj;
3983 fail:
3984 return NULL;
3985 }
3986
3987
3988 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3989 PyObject *resultobj = 0;
3990 wxColour *arg1 = (wxColour *) 0 ;
3991 byte result;
3992 void *argp1 = 0 ;
3993 int res1 = 0 ;
3994 PyObject *swig_obj[1] ;
3995
3996 if (!args) SWIG_fail;
3997 swig_obj[0] = args;
3998 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3999 if (!SWIG_IsOK(res1)) {
4000 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4001 }
4002 arg1 = reinterpret_cast< wxColour * >(argp1);
4003 {
4004 PyThreadState* __tstate = wxPyBeginAllowThreads();
4005 result = (byte)(arg1)->Green();
4006 wxPyEndAllowThreads(__tstate);
4007 if (PyErr_Occurred()) SWIG_fail;
4008 }
4009 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4010 return resultobj;
4011 fail:
4012 return NULL;
4013 }
4014
4015
4016 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4017 PyObject *resultobj = 0;
4018 wxColour *arg1 = (wxColour *) 0 ;
4019 byte result;
4020 void *argp1 = 0 ;
4021 int res1 = 0 ;
4022 PyObject *swig_obj[1] ;
4023
4024 if (!args) SWIG_fail;
4025 swig_obj[0] = args;
4026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4027 if (!SWIG_IsOK(res1)) {
4028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4029 }
4030 arg1 = reinterpret_cast< wxColour * >(argp1);
4031 {
4032 PyThreadState* __tstate = wxPyBeginAllowThreads();
4033 result = (byte)(arg1)->Blue();
4034 wxPyEndAllowThreads(__tstate);
4035 if (PyErr_Occurred()) SWIG_fail;
4036 }
4037 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4038 return resultobj;
4039 fail:
4040 return NULL;
4041 }
4042
4043
4044 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4045 PyObject *resultobj = 0;
4046 wxColour *arg1 = (wxColour *) 0 ;
4047 byte result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 PyObject *swig_obj[1] ;
4051
4052 if (!args) SWIG_fail;
4053 swig_obj[0] = args;
4054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4055 if (!SWIG_IsOK(res1)) {
4056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4057 }
4058 arg1 = reinterpret_cast< wxColour * >(argp1);
4059 {
4060 PyThreadState* __tstate = wxPyBeginAllowThreads();
4061 result = (byte)(arg1)->Alpha();
4062 wxPyEndAllowThreads(__tstate);
4063 if (PyErr_Occurred()) SWIG_fail;
4064 }
4065 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4066 return resultobj;
4067 fail:
4068 return NULL;
4069 }
4070
4071
4072 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4073 PyObject *resultobj = 0;
4074 wxColour *arg1 = (wxColour *) 0 ;
4075 bool result;
4076 void *argp1 = 0 ;
4077 int res1 = 0 ;
4078 PyObject *swig_obj[1] ;
4079
4080 if (!args) SWIG_fail;
4081 swig_obj[0] = args;
4082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4083 if (!SWIG_IsOK(res1)) {
4084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4085 }
4086 arg1 = reinterpret_cast< wxColour * >(argp1);
4087 {
4088 PyThreadState* __tstate = wxPyBeginAllowThreads();
4089 result = (bool)(arg1)->IsOk();
4090 wxPyEndAllowThreads(__tstate);
4091 if (PyErr_Occurred()) SWIG_fail;
4092 }
4093 {
4094 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4095 }
4096 return resultobj;
4097 fail:
4098 return NULL;
4099 }
4100
4101
4102 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4103 PyObject *resultobj = 0;
4104 wxColour *arg1 = (wxColour *) 0 ;
4105 byte arg2 ;
4106 byte arg3 ;
4107 byte arg4 ;
4108 byte arg5 = (byte) wxALPHA_OPAQUE ;
4109 void *argp1 = 0 ;
4110 int res1 = 0 ;
4111 unsigned char val2 ;
4112 int ecode2 = 0 ;
4113 unsigned char val3 ;
4114 int ecode3 = 0 ;
4115 unsigned char val4 ;
4116 int ecode4 = 0 ;
4117 unsigned char val5 ;
4118 int ecode5 = 0 ;
4119 PyObject * obj0 = 0 ;
4120 PyObject * obj1 = 0 ;
4121 PyObject * obj2 = 0 ;
4122 PyObject * obj3 = 0 ;
4123 PyObject * obj4 = 0 ;
4124 char * kwnames[] = {
4125 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4126 };
4127
4128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4130 if (!SWIG_IsOK(res1)) {
4131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4132 }
4133 arg1 = reinterpret_cast< wxColour * >(argp1);
4134 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4135 if (!SWIG_IsOK(ecode2)) {
4136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4137 }
4138 arg2 = static_cast< byte >(val2);
4139 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4140 if (!SWIG_IsOK(ecode3)) {
4141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4142 }
4143 arg3 = static_cast< byte >(val3);
4144 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4145 if (!SWIG_IsOK(ecode4)) {
4146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4147 }
4148 arg4 = static_cast< byte >(val4);
4149 if (obj4) {
4150 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4151 if (!SWIG_IsOK(ecode5)) {
4152 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4153 }
4154 arg5 = static_cast< byte >(val5);
4155 }
4156 {
4157 PyThreadState* __tstate = wxPyBeginAllowThreads();
4158 (arg1)->Set(arg2,arg3,arg4,arg5);
4159 wxPyEndAllowThreads(__tstate);
4160 if (PyErr_Occurred()) SWIG_fail;
4161 }
4162 resultobj = SWIG_Py_Void();
4163 return resultobj;
4164 fail:
4165 return NULL;
4166 }
4167
4168
4169 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4170 PyObject *resultobj = 0;
4171 wxColour *arg1 = (wxColour *) 0 ;
4172 unsigned long arg2 ;
4173 void *argp1 = 0 ;
4174 int res1 = 0 ;
4175 unsigned long val2 ;
4176 int ecode2 = 0 ;
4177 PyObject * obj0 = 0 ;
4178 PyObject * obj1 = 0 ;
4179 char * kwnames[] = {
4180 (char *) "self",(char *) "colRGB", NULL
4181 };
4182
4183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4185 if (!SWIG_IsOK(res1)) {
4186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4187 }
4188 arg1 = reinterpret_cast< wxColour * >(argp1);
4189 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4190 if (!SWIG_IsOK(ecode2)) {
4191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4192 }
4193 arg2 = static_cast< unsigned long >(val2);
4194 {
4195 PyThreadState* __tstate = wxPyBeginAllowThreads();
4196 (arg1)->Set(arg2);
4197 wxPyEndAllowThreads(__tstate);
4198 if (PyErr_Occurred()) SWIG_fail;
4199 }
4200 resultobj = SWIG_Py_Void();
4201 return resultobj;
4202 fail:
4203 return NULL;
4204 }
4205
4206
4207 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4208 PyObject *resultobj = 0;
4209 wxColour *arg1 = (wxColour *) 0 ;
4210 wxString *arg2 = 0 ;
4211 void *argp1 = 0 ;
4212 int res1 = 0 ;
4213 bool temp2 = false ;
4214 PyObject * obj0 = 0 ;
4215 PyObject * obj1 = 0 ;
4216 char * kwnames[] = {
4217 (char *) "self",(char *) "colourName", NULL
4218 };
4219
4220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4222 if (!SWIG_IsOK(res1)) {
4223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4224 }
4225 arg1 = reinterpret_cast< wxColour * >(argp1);
4226 {
4227 arg2 = wxString_in_helper(obj1);
4228 if (arg2 == NULL) SWIG_fail;
4229 temp2 = true;
4230 }
4231 {
4232 PyThreadState* __tstate = wxPyBeginAllowThreads();
4233 (arg1)->Set((wxString const &)*arg2);
4234 wxPyEndAllowThreads(__tstate);
4235 if (PyErr_Occurred()) SWIG_fail;
4236 }
4237 resultobj = SWIG_Py_Void();
4238 {
4239 if (temp2)
4240 delete arg2;
4241 }
4242 return resultobj;
4243 fail:
4244 {
4245 if (temp2)
4246 delete arg2;
4247 }
4248 return NULL;
4249 }
4250
4251
4252 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4253 PyObject *resultobj = 0;
4254 wxColour *arg1 = (wxColour *) 0 ;
4255 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4256 wxString result;
4257 void *argp1 = 0 ;
4258 int res1 = 0 ;
4259 long val2 ;
4260 int ecode2 = 0 ;
4261 PyObject * obj0 = 0 ;
4262 PyObject * obj1 = 0 ;
4263 char * kwnames[] = {
4264 (char *) "self",(char *) "flags", NULL
4265 };
4266
4267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4269 if (!SWIG_IsOK(res1)) {
4270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4271 }
4272 arg1 = reinterpret_cast< wxColour * >(argp1);
4273 if (obj1) {
4274 ecode2 = SWIG_AsVal_long(obj1, &val2);
4275 if (!SWIG_IsOK(ecode2)) {
4276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4277 }
4278 arg2 = static_cast< long >(val2);
4279 }
4280 {
4281 PyThreadState* __tstate = wxPyBeginAllowThreads();
4282 result = ((wxColour const *)arg1)->GetAsString(arg2);
4283 wxPyEndAllowThreads(__tstate);
4284 if (PyErr_Occurred()) SWIG_fail;
4285 }
4286 {
4287 #if wxUSE_UNICODE
4288 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4289 #else
4290 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4291 #endif
4292 }
4293 return resultobj;
4294 fail:
4295 return NULL;
4296 }
4297
4298
4299 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4300 PyObject *resultobj = 0;
4301 wxColour *arg1 = (wxColour *) 0 ;
4302 long result;
4303 void *argp1 = 0 ;
4304 int res1 = 0 ;
4305 PyObject *swig_obj[1] ;
4306
4307 if (!args) SWIG_fail;
4308 swig_obj[0] = args;
4309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4310 if (!SWIG_IsOK(res1)) {
4311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4312 }
4313 arg1 = reinterpret_cast< wxColour * >(argp1);
4314 {
4315 PyThreadState* __tstate = wxPyBeginAllowThreads();
4316 result = (long)((wxColour const *)arg1)->GetPixel();
4317 wxPyEndAllowThreads(__tstate);
4318 if (PyErr_Occurred()) SWIG_fail;
4319 }
4320 resultobj = SWIG_From_long(static_cast< long >(result));
4321 return resultobj;
4322 fail:
4323 return NULL;
4324 }
4325
4326
4327 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4328 PyObject *resultobj = 0;
4329 wxColour *arg1 = (wxColour *) 0 ;
4330 PyObject *arg2 = (PyObject *) 0 ;
4331 bool result;
4332 void *argp1 = 0 ;
4333 int res1 = 0 ;
4334 PyObject * obj0 = 0 ;
4335 PyObject * obj1 = 0 ;
4336 char * kwnames[] = {
4337 (char *) "self",(char *) "other", NULL
4338 };
4339
4340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4342 if (!SWIG_IsOK(res1)) {
4343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4344 }
4345 arg1 = reinterpret_cast< wxColour * >(argp1);
4346 arg2 = obj1;
4347 {
4348 result = (bool)wxColour___eq__(arg1,arg2);
4349 if (PyErr_Occurred()) SWIG_fail;
4350 }
4351 {
4352 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4353 }
4354 return resultobj;
4355 fail:
4356 return NULL;
4357 }
4358
4359
4360 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4361 PyObject *resultobj = 0;
4362 wxColour *arg1 = (wxColour *) 0 ;
4363 PyObject *arg2 = (PyObject *) 0 ;
4364 bool result;
4365 void *argp1 = 0 ;
4366 int res1 = 0 ;
4367 PyObject * obj0 = 0 ;
4368 PyObject * obj1 = 0 ;
4369 char * kwnames[] = {
4370 (char *) "self",(char *) "other", NULL
4371 };
4372
4373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4377 }
4378 arg1 = reinterpret_cast< wxColour * >(argp1);
4379 arg2 = obj1;
4380 {
4381 result = (bool)wxColour___ne__(arg1,arg2);
4382 if (PyErr_Occurred()) SWIG_fail;
4383 }
4384 {
4385 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4386 }
4387 return resultobj;
4388 fail:
4389 return NULL;
4390 }
4391
4392
4393 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4394 PyObject *resultobj = 0;
4395 wxColour *arg1 = (wxColour *) 0 ;
4396 bool arg2 = (bool) false ;
4397 PyObject *result = 0 ;
4398 void *argp1 = 0 ;
4399 int res1 = 0 ;
4400 bool val2 ;
4401 int ecode2 = 0 ;
4402 PyObject * obj0 = 0 ;
4403 PyObject * obj1 = 0 ;
4404 char * kwnames[] = {
4405 (char *) "self",(char *) "includeAlpha", NULL
4406 };
4407
4408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4410 if (!SWIG_IsOK(res1)) {
4411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4412 }
4413 arg1 = reinterpret_cast< wxColour * >(argp1);
4414 if (obj1) {
4415 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4416 if (!SWIG_IsOK(ecode2)) {
4417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4418 }
4419 arg2 = static_cast< bool >(val2);
4420 }
4421 {
4422 result = (PyObject *)wxColour_Get(arg1,arg2);
4423 if (PyErr_Occurred()) SWIG_fail;
4424 }
4425 resultobj = result;
4426 return resultobj;
4427 fail:
4428 return NULL;
4429 }
4430
4431
4432 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4433 PyObject *resultobj = 0;
4434 wxColour *arg1 = (wxColour *) 0 ;
4435 unsigned long result;
4436 void *argp1 = 0 ;
4437 int res1 = 0 ;
4438 PyObject *swig_obj[1] ;
4439
4440 if (!args) SWIG_fail;
4441 swig_obj[0] = args;
4442 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4443 if (!SWIG_IsOK(res1)) {
4444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4445 }
4446 arg1 = reinterpret_cast< wxColour * >(argp1);
4447 {
4448 result = (unsigned long)wxColour_GetRGB(arg1);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4459 PyObject *obj;
4460 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4461 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4462 return SWIG_Py_Void();
4463 }
4464
4465 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4466 return SWIG_Python_InitShadowInstance(args);
4467 }
4468
4469 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4470 PyObject *resultobj = 0;
4471 int arg1 ;
4472 unsigned char *arg2 = (unsigned char *) 0 ;
4473 unsigned char *arg3 = (unsigned char *) 0 ;
4474 unsigned char *arg4 = (unsigned char *) 0 ;
4475 wxPalette *result = 0 ;
4476 int val1 ;
4477 int ecode1 = 0 ;
4478 void *argp2 = 0 ;
4479 int res2 = 0 ;
4480 void *argp3 = 0 ;
4481 int res3 = 0 ;
4482 void *argp4 = 0 ;
4483 int res4 = 0 ;
4484 PyObject * obj0 = 0 ;
4485 PyObject * obj1 = 0 ;
4486 PyObject * obj2 = 0 ;
4487 PyObject * obj3 = 0 ;
4488 char * kwnames[] = {
4489 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4490 };
4491
4492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4493 ecode1 = SWIG_AsVal_int(obj0, &val1);
4494 if (!SWIG_IsOK(ecode1)) {
4495 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4496 }
4497 arg1 = static_cast< int >(val1);
4498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4499 if (!SWIG_IsOK(res2)) {
4500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4501 }
4502 arg2 = reinterpret_cast< unsigned char * >(argp2);
4503 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4504 if (!SWIG_IsOK(res3)) {
4505 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4506 }
4507 arg3 = reinterpret_cast< unsigned char * >(argp3);
4508 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4509 if (!SWIG_IsOK(res4)) {
4510 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4511 }
4512 arg4 = reinterpret_cast< unsigned char * >(argp4);
4513 {
4514 if (!wxPyCheckForApp()) SWIG_fail;
4515 PyThreadState* __tstate = wxPyBeginAllowThreads();
4516 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4517 wxPyEndAllowThreads(__tstate);
4518 if (PyErr_Occurred()) SWIG_fail;
4519 }
4520 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4521 return resultobj;
4522 fail:
4523 return NULL;
4524 }
4525
4526
4527 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4528 PyObject *resultobj = 0;
4529 wxPalette *arg1 = (wxPalette *) 0 ;
4530 void *argp1 = 0 ;
4531 int res1 = 0 ;
4532 PyObject *swig_obj[1] ;
4533
4534 if (!args) SWIG_fail;
4535 swig_obj[0] = args;
4536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4537 if (!SWIG_IsOK(res1)) {
4538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4539 }
4540 arg1 = reinterpret_cast< wxPalette * >(argp1);
4541 {
4542 PyThreadState* __tstate = wxPyBeginAllowThreads();
4543 delete arg1;
4544
4545 wxPyEndAllowThreads(__tstate);
4546 if (PyErr_Occurred()) SWIG_fail;
4547 }
4548 resultobj = SWIG_Py_Void();
4549 return resultobj;
4550 fail:
4551 return NULL;
4552 }
4553
4554
4555 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4556 PyObject *resultobj = 0;
4557 wxPalette *arg1 = (wxPalette *) 0 ;
4558 byte arg2 ;
4559 byte arg3 ;
4560 byte arg4 ;
4561 int result;
4562 void *argp1 = 0 ;
4563 int res1 = 0 ;
4564 unsigned char val2 ;
4565 int ecode2 = 0 ;
4566 unsigned char val3 ;
4567 int ecode3 = 0 ;
4568 unsigned char val4 ;
4569 int ecode4 = 0 ;
4570 PyObject * obj0 = 0 ;
4571 PyObject * obj1 = 0 ;
4572 PyObject * obj2 = 0 ;
4573 PyObject * obj3 = 0 ;
4574 char * kwnames[] = {
4575 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4576 };
4577
4578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4580 if (!SWIG_IsOK(res1)) {
4581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4582 }
4583 arg1 = reinterpret_cast< wxPalette * >(argp1);
4584 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4585 if (!SWIG_IsOK(ecode2)) {
4586 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4587 }
4588 arg2 = static_cast< byte >(val2);
4589 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4590 if (!SWIG_IsOK(ecode3)) {
4591 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4592 }
4593 arg3 = static_cast< byte >(val3);
4594 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4595 if (!SWIG_IsOK(ecode4)) {
4596 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4597 }
4598 arg4 = static_cast< byte >(val4);
4599 {
4600 PyThreadState* __tstate = wxPyBeginAllowThreads();
4601 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4602 wxPyEndAllowThreads(__tstate);
4603 if (PyErr_Occurred()) SWIG_fail;
4604 }
4605 resultobj = SWIG_From_int(static_cast< int >(result));
4606 return resultobj;
4607 fail:
4608 return NULL;
4609 }
4610
4611
4612 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4613 PyObject *resultobj = 0;
4614 wxPalette *arg1 = (wxPalette *) 0 ;
4615 int arg2 ;
4616 byte *arg3 = (byte *) 0 ;
4617 byte *arg4 = (byte *) 0 ;
4618 byte *arg5 = (byte *) 0 ;
4619 bool result;
4620 void *argp1 = 0 ;
4621 int res1 = 0 ;
4622 int val2 ;
4623 int ecode2 = 0 ;
4624 byte temp3 ;
4625 int res3 = SWIG_TMPOBJ ;
4626 byte temp4 ;
4627 int res4 = SWIG_TMPOBJ ;
4628 byte temp5 ;
4629 int res5 = SWIG_TMPOBJ ;
4630 PyObject * obj0 = 0 ;
4631 PyObject * obj1 = 0 ;
4632 char * kwnames[] = {
4633 (char *) "self",(char *) "pixel", NULL
4634 };
4635
4636 arg3 = &temp3;
4637 arg4 = &temp4;
4638 arg5 = &temp5;
4639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4641 if (!SWIG_IsOK(res1)) {
4642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4643 }
4644 arg1 = reinterpret_cast< wxPalette * >(argp1);
4645 ecode2 = SWIG_AsVal_int(obj1, &val2);
4646 if (!SWIG_IsOK(ecode2)) {
4647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4648 }
4649 arg2 = static_cast< int >(val2);
4650 {
4651 PyThreadState* __tstate = wxPyBeginAllowThreads();
4652 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4653 wxPyEndAllowThreads(__tstate);
4654 if (PyErr_Occurred()) SWIG_fail;
4655 }
4656 {
4657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4658 }
4659 if (SWIG_IsTmpObj(res3)) {
4660 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4661 } else {
4662 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4664 }
4665 if (SWIG_IsTmpObj(res4)) {
4666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4667 } else {
4668 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4670 }
4671 if (SWIG_IsTmpObj(res5)) {
4672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4673 } else {
4674 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4676 }
4677 return resultobj;
4678 fail:
4679 return NULL;
4680 }
4681
4682
4683 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4684 PyObject *resultobj = 0;
4685 wxPalette *arg1 = (wxPalette *) 0 ;
4686 int result;
4687 void *argp1 = 0 ;
4688 int res1 = 0 ;
4689 PyObject *swig_obj[1] ;
4690
4691 if (!args) SWIG_fail;
4692 swig_obj[0] = args;
4693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4694 if (!SWIG_IsOK(res1)) {
4695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4696 }
4697 arg1 = reinterpret_cast< wxPalette * >(argp1);
4698 {
4699 PyThreadState* __tstate = wxPyBeginAllowThreads();
4700 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4701 wxPyEndAllowThreads(__tstate);
4702 if (PyErr_Occurred()) SWIG_fail;
4703 }
4704 resultobj = SWIG_From_int(static_cast< int >(result));
4705 return resultobj;
4706 fail:
4707 return NULL;
4708 }
4709
4710
4711 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4712 PyObject *resultobj = 0;
4713 wxPalette *arg1 = (wxPalette *) 0 ;
4714 bool result;
4715 void *argp1 = 0 ;
4716 int res1 = 0 ;
4717 PyObject *swig_obj[1] ;
4718
4719 if (!args) SWIG_fail;
4720 swig_obj[0] = args;
4721 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4722 if (!SWIG_IsOK(res1)) {
4723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4724 }
4725 arg1 = reinterpret_cast< wxPalette * >(argp1);
4726 {
4727 PyThreadState* __tstate = wxPyBeginAllowThreads();
4728 result = (bool)(arg1)->IsOk();
4729 wxPyEndAllowThreads(__tstate);
4730 if (PyErr_Occurred()) SWIG_fail;
4731 }
4732 {
4733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4734 }
4735 return resultobj;
4736 fail:
4737 return NULL;
4738 }
4739
4740
4741 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4742 PyObject *obj;
4743 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4744 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4745 return SWIG_Py_Void();
4746 }
4747
4748 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4749 return SWIG_Python_InitShadowInstance(args);
4750 }
4751
4752 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4753 PyObject *resultobj = 0;
4754 wxColour *arg1 = 0 ;
4755 int arg2 = (int) 1 ;
4756 int arg3 = (int) wxSOLID ;
4757 wxPen *result = 0 ;
4758 wxColour temp1 ;
4759 int val2 ;
4760 int ecode2 = 0 ;
4761 int val3 ;
4762 int ecode3 = 0 ;
4763 PyObject * obj0 = 0 ;
4764 PyObject * obj1 = 0 ;
4765 PyObject * obj2 = 0 ;
4766 char * kwnames[] = {
4767 (char *) "colour",(char *) "width",(char *) "style", NULL
4768 };
4769
4770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4771 {
4772 arg1 = &temp1;
4773 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4774 }
4775 if (obj1) {
4776 ecode2 = SWIG_AsVal_int(obj1, &val2);
4777 if (!SWIG_IsOK(ecode2)) {
4778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4779 }
4780 arg2 = static_cast< int >(val2);
4781 }
4782 if (obj2) {
4783 ecode3 = SWIG_AsVal_int(obj2, &val3);
4784 if (!SWIG_IsOK(ecode3)) {
4785 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4786 }
4787 arg3 = static_cast< int >(val3);
4788 }
4789 {
4790 if (!wxPyCheckForApp()) SWIG_fail;
4791 PyThreadState* __tstate = wxPyBeginAllowThreads();
4792 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4793 wxPyEndAllowThreads(__tstate);
4794 if (PyErr_Occurred()) SWIG_fail;
4795 }
4796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4797 return resultobj;
4798 fail:
4799 return NULL;
4800 }
4801
4802
4803 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4804 PyObject *resultobj = 0;
4805 wxPen *arg1 = (wxPen *) 0 ;
4806 void *argp1 = 0 ;
4807 int res1 = 0 ;
4808 PyObject *swig_obj[1] ;
4809
4810 if (!args) SWIG_fail;
4811 swig_obj[0] = args;
4812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4813 if (!SWIG_IsOK(res1)) {
4814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4815 }
4816 arg1 = reinterpret_cast< wxPen * >(argp1);
4817 {
4818 PyThreadState* __tstate = wxPyBeginAllowThreads();
4819 delete arg1;
4820
4821 wxPyEndAllowThreads(__tstate);
4822 if (PyErr_Occurred()) SWIG_fail;
4823 }
4824 resultobj = SWIG_Py_Void();
4825 return resultobj;
4826 fail:
4827 return NULL;
4828 }
4829
4830
4831 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4832 PyObject *resultobj = 0;
4833 wxPen *arg1 = (wxPen *) 0 ;
4834 int result;
4835 void *argp1 = 0 ;
4836 int res1 = 0 ;
4837 PyObject *swig_obj[1] ;
4838
4839 if (!args) SWIG_fail;
4840 swig_obj[0] = args;
4841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4842 if (!SWIG_IsOK(res1)) {
4843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4844 }
4845 arg1 = reinterpret_cast< wxPen * >(argp1);
4846 {
4847 PyThreadState* __tstate = wxPyBeginAllowThreads();
4848 result = (int)(arg1)->GetCap();
4849 wxPyEndAllowThreads(__tstate);
4850 if (PyErr_Occurred()) SWIG_fail;
4851 }
4852 resultobj = SWIG_From_int(static_cast< int >(result));
4853 return resultobj;
4854 fail:
4855 return NULL;
4856 }
4857
4858
4859 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4860 PyObject *resultobj = 0;
4861 wxPen *arg1 = (wxPen *) 0 ;
4862 wxColour result;
4863 void *argp1 = 0 ;
4864 int res1 = 0 ;
4865 PyObject *swig_obj[1] ;
4866
4867 if (!args) SWIG_fail;
4868 swig_obj[0] = args;
4869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4870 if (!SWIG_IsOK(res1)) {
4871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4872 }
4873 arg1 = reinterpret_cast< wxPen * >(argp1);
4874 {
4875 PyThreadState* __tstate = wxPyBeginAllowThreads();
4876 result = (arg1)->GetColour();
4877 wxPyEndAllowThreads(__tstate);
4878 if (PyErr_Occurred()) SWIG_fail;
4879 }
4880 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4881 return resultobj;
4882 fail:
4883 return NULL;
4884 }
4885
4886
4887 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4888 PyObject *resultobj = 0;
4889 wxPen *arg1 = (wxPen *) 0 ;
4890 int result;
4891 void *argp1 = 0 ;
4892 int res1 = 0 ;
4893 PyObject *swig_obj[1] ;
4894
4895 if (!args) SWIG_fail;
4896 swig_obj[0] = args;
4897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4898 if (!SWIG_IsOK(res1)) {
4899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4900 }
4901 arg1 = reinterpret_cast< wxPen * >(argp1);
4902 {
4903 PyThreadState* __tstate = wxPyBeginAllowThreads();
4904 result = (int)(arg1)->GetJoin();
4905 wxPyEndAllowThreads(__tstate);
4906 if (PyErr_Occurred()) SWIG_fail;
4907 }
4908 resultobj = SWIG_From_int(static_cast< int >(result));
4909 return resultobj;
4910 fail:
4911 return NULL;
4912 }
4913
4914
4915 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4916 PyObject *resultobj = 0;
4917 wxPen *arg1 = (wxPen *) 0 ;
4918 int result;
4919 void *argp1 = 0 ;
4920 int res1 = 0 ;
4921 PyObject *swig_obj[1] ;
4922
4923 if (!args) SWIG_fail;
4924 swig_obj[0] = args;
4925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4926 if (!SWIG_IsOK(res1)) {
4927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4928 }
4929 arg1 = reinterpret_cast< wxPen * >(argp1);
4930 {
4931 PyThreadState* __tstate = wxPyBeginAllowThreads();
4932 result = (int)(arg1)->GetStyle();
4933 wxPyEndAllowThreads(__tstate);
4934 if (PyErr_Occurred()) SWIG_fail;
4935 }
4936 resultobj = SWIG_From_int(static_cast< int >(result));
4937 return resultobj;
4938 fail:
4939 return NULL;
4940 }
4941
4942
4943 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4944 PyObject *resultobj = 0;
4945 wxPen *arg1 = (wxPen *) 0 ;
4946 int result;
4947 void *argp1 = 0 ;
4948 int res1 = 0 ;
4949 PyObject *swig_obj[1] ;
4950
4951 if (!args) SWIG_fail;
4952 swig_obj[0] = args;
4953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4954 if (!SWIG_IsOK(res1)) {
4955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4956 }
4957 arg1 = reinterpret_cast< wxPen * >(argp1);
4958 {
4959 PyThreadState* __tstate = wxPyBeginAllowThreads();
4960 result = (int)(arg1)->GetWidth();
4961 wxPyEndAllowThreads(__tstate);
4962 if (PyErr_Occurred()) SWIG_fail;
4963 }
4964 resultobj = SWIG_From_int(static_cast< int >(result));
4965 return resultobj;
4966 fail:
4967 return NULL;
4968 }
4969
4970
4971 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4972 PyObject *resultobj = 0;
4973 wxPen *arg1 = (wxPen *) 0 ;
4974 bool result;
4975 void *argp1 = 0 ;
4976 int res1 = 0 ;
4977 PyObject *swig_obj[1] ;
4978
4979 if (!args) SWIG_fail;
4980 swig_obj[0] = args;
4981 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4984 }
4985 arg1 = reinterpret_cast< wxPen * >(argp1);
4986 {
4987 PyThreadState* __tstate = wxPyBeginAllowThreads();
4988 result = (bool)(arg1)->IsOk();
4989 wxPyEndAllowThreads(__tstate);
4990 if (PyErr_Occurred()) SWIG_fail;
4991 }
4992 {
4993 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4994 }
4995 return resultobj;
4996 fail:
4997 return NULL;
4998 }
4999
5000
5001 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5002 PyObject *resultobj = 0;
5003 wxPen *arg1 = (wxPen *) 0 ;
5004 int arg2 ;
5005 void *argp1 = 0 ;
5006 int res1 = 0 ;
5007 int val2 ;
5008 int ecode2 = 0 ;
5009 PyObject * obj0 = 0 ;
5010 PyObject * obj1 = 0 ;
5011 char * kwnames[] = {
5012 (char *) "self",(char *) "cap_style", NULL
5013 };
5014
5015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5017 if (!SWIG_IsOK(res1)) {
5018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5019 }
5020 arg1 = reinterpret_cast< wxPen * >(argp1);
5021 ecode2 = SWIG_AsVal_int(obj1, &val2);
5022 if (!SWIG_IsOK(ecode2)) {
5023 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5024 }
5025 arg2 = static_cast< int >(val2);
5026 {
5027 PyThreadState* __tstate = wxPyBeginAllowThreads();
5028 (arg1)->SetCap(arg2);
5029 wxPyEndAllowThreads(__tstate);
5030 if (PyErr_Occurred()) SWIG_fail;
5031 }
5032 resultobj = SWIG_Py_Void();
5033 return resultobj;
5034 fail:
5035 return NULL;
5036 }
5037
5038
5039 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5040 PyObject *resultobj = 0;
5041 wxPen *arg1 = (wxPen *) 0 ;
5042 wxColour *arg2 = 0 ;
5043 void *argp1 = 0 ;
5044 int res1 = 0 ;
5045 wxColour temp2 ;
5046 PyObject * obj0 = 0 ;
5047 PyObject * obj1 = 0 ;
5048 char * kwnames[] = {
5049 (char *) "self",(char *) "colour", NULL
5050 };
5051
5052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5054 if (!SWIG_IsOK(res1)) {
5055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5056 }
5057 arg1 = reinterpret_cast< wxPen * >(argp1);
5058 {
5059 arg2 = &temp2;
5060 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5061 }
5062 {
5063 PyThreadState* __tstate = wxPyBeginAllowThreads();
5064 (arg1)->SetColour(*arg2);
5065 wxPyEndAllowThreads(__tstate);
5066 if (PyErr_Occurred()) SWIG_fail;
5067 }
5068 resultobj = SWIG_Py_Void();
5069 return resultobj;
5070 fail:
5071 return NULL;
5072 }
5073
5074
5075 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5076 PyObject *resultobj = 0;
5077 wxPen *arg1 = (wxPen *) 0 ;
5078 int arg2 ;
5079 void *argp1 = 0 ;
5080 int res1 = 0 ;
5081 int val2 ;
5082 int ecode2 = 0 ;
5083 PyObject * obj0 = 0 ;
5084 PyObject * obj1 = 0 ;
5085 char * kwnames[] = {
5086 (char *) "self",(char *) "join_style", NULL
5087 };
5088
5089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5091 if (!SWIG_IsOK(res1)) {
5092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5093 }
5094 arg1 = reinterpret_cast< wxPen * >(argp1);
5095 ecode2 = SWIG_AsVal_int(obj1, &val2);
5096 if (!SWIG_IsOK(ecode2)) {
5097 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5098 }
5099 arg2 = static_cast< int >(val2);
5100 {
5101 PyThreadState* __tstate = wxPyBeginAllowThreads();
5102 (arg1)->SetJoin(arg2);
5103 wxPyEndAllowThreads(__tstate);
5104 if (PyErr_Occurred()) SWIG_fail;
5105 }
5106 resultobj = SWIG_Py_Void();
5107 return resultobj;
5108 fail:
5109 return NULL;
5110 }
5111
5112
5113 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5114 PyObject *resultobj = 0;
5115 wxPen *arg1 = (wxPen *) 0 ;
5116 int arg2 ;
5117 void *argp1 = 0 ;
5118 int res1 = 0 ;
5119 int val2 ;
5120 int ecode2 = 0 ;
5121 PyObject * obj0 = 0 ;
5122 PyObject * obj1 = 0 ;
5123 char * kwnames[] = {
5124 (char *) "self",(char *) "style", NULL
5125 };
5126
5127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5129 if (!SWIG_IsOK(res1)) {
5130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5131 }
5132 arg1 = reinterpret_cast< wxPen * >(argp1);
5133 ecode2 = SWIG_AsVal_int(obj1, &val2);
5134 if (!SWIG_IsOK(ecode2)) {
5135 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5136 }
5137 arg2 = static_cast< int >(val2);
5138 {
5139 PyThreadState* __tstate = wxPyBeginAllowThreads();
5140 (arg1)->SetStyle(arg2);
5141 wxPyEndAllowThreads(__tstate);
5142 if (PyErr_Occurred()) SWIG_fail;
5143 }
5144 resultobj = SWIG_Py_Void();
5145 return resultobj;
5146 fail:
5147 return NULL;
5148 }
5149
5150
5151 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5152 PyObject *resultobj = 0;
5153 wxPen *arg1 = (wxPen *) 0 ;
5154 int arg2 ;
5155 void *argp1 = 0 ;
5156 int res1 = 0 ;
5157 int val2 ;
5158 int ecode2 = 0 ;
5159 PyObject * obj0 = 0 ;
5160 PyObject * obj1 = 0 ;
5161 char * kwnames[] = {
5162 (char *) "self",(char *) "width", NULL
5163 };
5164
5165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5166 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5167 if (!SWIG_IsOK(res1)) {
5168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5169 }
5170 arg1 = reinterpret_cast< wxPen * >(argp1);
5171 ecode2 = SWIG_AsVal_int(obj1, &val2);
5172 if (!SWIG_IsOK(ecode2)) {
5173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5174 }
5175 arg2 = static_cast< int >(val2);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 (arg1)->SetWidth(arg2);
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_Py_Void();
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5190 PyObject *resultobj = 0;
5191 wxPen *arg1 = (wxPen *) 0 ;
5192 int arg2 ;
5193 wxDash *arg3 = (wxDash *) 0 ;
5194 void *argp1 = 0 ;
5195 int res1 = 0 ;
5196 PyObject * obj0 = 0 ;
5197 PyObject * obj1 = 0 ;
5198 char * kwnames[] = {
5199 (char *) "self",(char *) "dashes", NULL
5200 };
5201
5202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5204 if (!SWIG_IsOK(res1)) {
5205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5206 }
5207 arg1 = reinterpret_cast< wxPen * >(argp1);
5208 {
5209 arg2 = PyList_Size(obj1);
5210 arg3 = (wxDash*)byte_LIST_helper(obj1);
5211 if (arg3 == NULL) SWIG_fail;
5212 }
5213 {
5214 PyThreadState* __tstate = wxPyBeginAllowThreads();
5215 (arg1)->SetDashes(arg2,arg3);
5216 wxPyEndAllowThreads(__tstate);
5217 if (PyErr_Occurred()) SWIG_fail;
5218 }
5219 resultobj = SWIG_Py_Void();
5220 {
5221 if (arg3) delete [] arg3;
5222 }
5223 return resultobj;
5224 fail:
5225 {
5226 if (arg3) delete [] arg3;
5227 }
5228 return NULL;
5229 }
5230
5231
5232 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5233 PyObject *resultobj = 0;
5234 wxPen *arg1 = (wxPen *) 0 ;
5235 PyObject *result = 0 ;
5236 void *argp1 = 0 ;
5237 int res1 = 0 ;
5238 PyObject *swig_obj[1] ;
5239
5240 if (!args) SWIG_fail;
5241 swig_obj[0] = args;
5242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5243 if (!SWIG_IsOK(res1)) {
5244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5245 }
5246 arg1 = reinterpret_cast< wxPen * >(argp1);
5247 {
5248 PyThreadState* __tstate = wxPyBeginAllowThreads();
5249 result = (PyObject *)wxPen_GetDashes(arg1);
5250 wxPyEndAllowThreads(__tstate);
5251 if (PyErr_Occurred()) SWIG_fail;
5252 }
5253 resultobj = result;
5254 return resultobj;
5255 fail:
5256 return NULL;
5257 }
5258
5259
5260 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5261 PyObject *resultobj = 0;
5262 wxPen *arg1 = (wxPen *) 0 ;
5263 PyObject *arg2 = (PyObject *) 0 ;
5264 PyObject *arg3 = (PyObject *) 0 ;
5265 void *argp1 = 0 ;
5266 int res1 = 0 ;
5267 PyObject * obj0 = 0 ;
5268 PyObject * obj1 = 0 ;
5269 PyObject * obj2 = 0 ;
5270 char * kwnames[] = {
5271 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5272 };
5273
5274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5276 if (!SWIG_IsOK(res1)) {
5277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5278 }
5279 arg1 = reinterpret_cast< wxPen * >(argp1);
5280 arg2 = obj1;
5281 arg3 = obj2;
5282 {
5283 PyThreadState* __tstate = wxPyBeginAllowThreads();
5284 wxPen__SetDashes(arg1,arg2,arg3);
5285 wxPyEndAllowThreads(__tstate);
5286 if (PyErr_Occurred()) SWIG_fail;
5287 }
5288 resultobj = SWIG_Py_Void();
5289 return resultobj;
5290 fail:
5291 return NULL;
5292 }
5293
5294
5295 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5296 PyObject *resultobj = 0;
5297 wxPen *arg1 = (wxPen *) 0 ;
5298 int result;
5299 void *argp1 = 0 ;
5300 int res1 = 0 ;
5301 PyObject *swig_obj[1] ;
5302
5303 if (!args) SWIG_fail;
5304 swig_obj[0] = args;
5305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5306 if (!SWIG_IsOK(res1)) {
5307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5308 }
5309 arg1 = reinterpret_cast< wxPen * >(argp1);
5310 {
5311 PyThreadState* __tstate = wxPyBeginAllowThreads();
5312 result = (int)((wxPen const *)arg1)->GetDashCount();
5313 wxPyEndAllowThreads(__tstate);
5314 if (PyErr_Occurred()) SWIG_fail;
5315 }
5316 resultobj = SWIG_From_int(static_cast< int >(result));
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5324 PyObject *resultobj = 0;
5325 wxPen *arg1 = (wxPen *) 0 ;
5326 wxBitmap *result = 0 ;
5327 void *argp1 = 0 ;
5328 int res1 = 0 ;
5329 PyObject *swig_obj[1] ;
5330
5331 if (!args) SWIG_fail;
5332 swig_obj[0] = args;
5333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5334 if (!SWIG_IsOK(res1)) {
5335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5336 }
5337 arg1 = reinterpret_cast< wxPen * >(argp1);
5338 {
5339 PyThreadState* __tstate = wxPyBeginAllowThreads();
5340 result = (wxBitmap *)(arg1)->GetStipple();
5341 wxPyEndAllowThreads(__tstate);
5342 if (PyErr_Occurred()) SWIG_fail;
5343 }
5344 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5345 return resultobj;
5346 fail:
5347 return NULL;
5348 }
5349
5350
5351 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5352 PyObject *resultobj = 0;
5353 wxPen *arg1 = (wxPen *) 0 ;
5354 wxBitmap *arg2 = 0 ;
5355 void *argp1 = 0 ;
5356 int res1 = 0 ;
5357 void *argp2 = 0 ;
5358 int res2 = 0 ;
5359 PyObject * obj0 = 0 ;
5360 PyObject * obj1 = 0 ;
5361 char * kwnames[] = {
5362 (char *) "self",(char *) "stipple", NULL
5363 };
5364
5365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5367 if (!SWIG_IsOK(res1)) {
5368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5369 }
5370 arg1 = reinterpret_cast< wxPen * >(argp1);
5371 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5372 if (!SWIG_IsOK(res2)) {
5373 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5374 }
5375 if (!argp2) {
5376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5377 }
5378 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5379 {
5380 PyThreadState* __tstate = wxPyBeginAllowThreads();
5381 (arg1)->SetStipple(*arg2);
5382 wxPyEndAllowThreads(__tstate);
5383 if (PyErr_Occurred()) SWIG_fail;
5384 }
5385 resultobj = SWIG_Py_Void();
5386 return resultobj;
5387 fail:
5388 return NULL;
5389 }
5390
5391
5392 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5393 PyObject *resultobj = 0;
5394 wxPen *arg1 = (wxPen *) 0 ;
5395 wxPen *arg2 = (wxPen *) 0 ;
5396 bool result;
5397 void *argp1 = 0 ;
5398 int res1 = 0 ;
5399 void *argp2 = 0 ;
5400 int res2 = 0 ;
5401 PyObject * obj0 = 0 ;
5402 PyObject * obj1 = 0 ;
5403 char * kwnames[] = {
5404 (char *) "self",(char *) "other", NULL
5405 };
5406
5407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5409 if (!SWIG_IsOK(res1)) {
5410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5411 }
5412 arg1 = reinterpret_cast< wxPen * >(argp1);
5413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5414 if (!SWIG_IsOK(res2)) {
5415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5416 }
5417 arg2 = reinterpret_cast< wxPen * >(argp2);
5418 {
5419 PyThreadState* __tstate = wxPyBeginAllowThreads();
5420 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5421 wxPyEndAllowThreads(__tstate);
5422 if (PyErr_Occurred()) SWIG_fail;
5423 }
5424 {
5425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5426 }
5427 return resultobj;
5428 fail:
5429 return NULL;
5430 }
5431
5432
5433 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5434 PyObject *resultobj = 0;
5435 wxPen *arg1 = (wxPen *) 0 ;
5436 wxPen *arg2 = (wxPen *) 0 ;
5437 bool result;
5438 void *argp1 = 0 ;
5439 int res1 = 0 ;
5440 void *argp2 = 0 ;
5441 int res2 = 0 ;
5442 PyObject * obj0 = 0 ;
5443 PyObject * obj1 = 0 ;
5444 char * kwnames[] = {
5445 (char *) "self",(char *) "other", NULL
5446 };
5447
5448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5450 if (!SWIG_IsOK(res1)) {
5451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5452 }
5453 arg1 = reinterpret_cast< wxPen * >(argp1);
5454 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5455 if (!SWIG_IsOK(res2)) {
5456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5457 }
5458 arg2 = reinterpret_cast< wxPen * >(argp2);
5459 {
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 {
5466 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5467 }
5468 return resultobj;
5469 fail:
5470 return NULL;
5471 }
5472
5473
5474 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5475 PyObject *obj;
5476 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5477 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5478 return SWIG_Py_Void();
5479 }
5480
5481 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5482 return SWIG_Python_InitShadowInstance(args);
5483 }
5484
5485 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5486 PyObject *resultobj = 0;
5487 wxColour *arg1 = 0 ;
5488 int arg2 = (int) wxSOLID ;
5489 wxBrush *result = 0 ;
5490 wxColour temp1 ;
5491 int val2 ;
5492 int ecode2 = 0 ;
5493 PyObject * obj0 = 0 ;
5494 PyObject * obj1 = 0 ;
5495 char * kwnames[] = {
5496 (char *) "colour",(char *) "style", NULL
5497 };
5498
5499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5500 {
5501 arg1 = &temp1;
5502 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5503 }
5504 if (obj1) {
5505 ecode2 = SWIG_AsVal_int(obj1, &val2);
5506 if (!SWIG_IsOK(ecode2)) {
5507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5508 }
5509 arg2 = static_cast< int >(val2);
5510 }
5511 {
5512 if (!wxPyCheckForApp()) SWIG_fail;
5513 PyThreadState* __tstate = wxPyBeginAllowThreads();
5514 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5515 wxPyEndAllowThreads(__tstate);
5516 if (PyErr_Occurred()) SWIG_fail;
5517 }
5518 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5519 return resultobj;
5520 fail:
5521 return NULL;
5522 }
5523
5524
5525 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5526 PyObject *resultobj = 0;
5527 wxBitmap *arg1 = 0 ;
5528 wxBrush *result = 0 ;
5529 void *argp1 = 0 ;
5530 int res1 = 0 ;
5531 PyObject * obj0 = 0 ;
5532 char * kwnames[] = {
5533 (char *) "stippleBitmap", NULL
5534 };
5535
5536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5537 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5538 if (!SWIG_IsOK(res1)) {
5539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5540 }
5541 if (!argp1) {
5542 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5543 }
5544 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5545 {
5546 if (!wxPyCheckForApp()) SWIG_fail;
5547 PyThreadState* __tstate = wxPyBeginAllowThreads();
5548 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5549 wxPyEndAllowThreads(__tstate);
5550 if (PyErr_Occurred()) SWIG_fail;
5551 }
5552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5553 return resultobj;
5554 fail:
5555 return NULL;
5556 }
5557
5558
5559 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5560 PyObject *resultobj = 0;
5561 wxBrush *arg1 = (wxBrush *) 0 ;
5562 void *argp1 = 0 ;
5563 int res1 = 0 ;
5564 PyObject *swig_obj[1] ;
5565
5566 if (!args) SWIG_fail;
5567 swig_obj[0] = args;
5568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5569 if (!SWIG_IsOK(res1)) {
5570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5571 }
5572 arg1 = reinterpret_cast< wxBrush * >(argp1);
5573 {
5574 PyThreadState* __tstate = wxPyBeginAllowThreads();
5575 delete arg1;
5576
5577 wxPyEndAllowThreads(__tstate);
5578 if (PyErr_Occurred()) SWIG_fail;
5579 }
5580 resultobj = SWIG_Py_Void();
5581 return resultobj;
5582 fail:
5583 return NULL;
5584 }
5585
5586
5587 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5588 PyObject *resultobj = 0;
5589 wxBrush *arg1 = (wxBrush *) 0 ;
5590 wxColour *arg2 = 0 ;
5591 void *argp1 = 0 ;
5592 int res1 = 0 ;
5593 wxColour temp2 ;
5594 PyObject * obj0 = 0 ;
5595 PyObject * obj1 = 0 ;
5596 char * kwnames[] = {
5597 (char *) "self",(char *) "col", NULL
5598 };
5599
5600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5602 if (!SWIG_IsOK(res1)) {
5603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5604 }
5605 arg1 = reinterpret_cast< wxBrush * >(argp1);
5606 {
5607 arg2 = &temp2;
5608 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5609 }
5610 {
5611 PyThreadState* __tstate = wxPyBeginAllowThreads();
5612 (arg1)->SetColour((wxColour const &)*arg2);
5613 wxPyEndAllowThreads(__tstate);
5614 if (PyErr_Occurred()) SWIG_fail;
5615 }
5616 resultobj = SWIG_Py_Void();
5617 return resultobj;
5618 fail:
5619 return NULL;
5620 }
5621
5622
5623 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5624 PyObject *resultobj = 0;
5625 wxBrush *arg1 = (wxBrush *) 0 ;
5626 int arg2 ;
5627 void *argp1 = 0 ;
5628 int res1 = 0 ;
5629 int val2 ;
5630 int ecode2 = 0 ;
5631 PyObject * obj0 = 0 ;
5632 PyObject * obj1 = 0 ;
5633 char * kwnames[] = {
5634 (char *) "self",(char *) "style", NULL
5635 };
5636
5637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5639 if (!SWIG_IsOK(res1)) {
5640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5641 }
5642 arg1 = reinterpret_cast< wxBrush * >(argp1);
5643 ecode2 = SWIG_AsVal_int(obj1, &val2);
5644 if (!SWIG_IsOK(ecode2)) {
5645 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5646 }
5647 arg2 = static_cast< int >(val2);
5648 {
5649 PyThreadState* __tstate = wxPyBeginAllowThreads();
5650 (arg1)->SetStyle(arg2);
5651 wxPyEndAllowThreads(__tstate);
5652 if (PyErr_Occurred()) SWIG_fail;
5653 }
5654 resultobj = SWIG_Py_Void();
5655 return resultobj;
5656 fail:
5657 return NULL;
5658 }
5659
5660
5661 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5662 PyObject *resultobj = 0;
5663 wxBrush *arg1 = (wxBrush *) 0 ;
5664 wxBitmap *arg2 = 0 ;
5665 void *argp1 = 0 ;
5666 int res1 = 0 ;
5667 void *argp2 = 0 ;
5668 int res2 = 0 ;
5669 PyObject * obj0 = 0 ;
5670 PyObject * obj1 = 0 ;
5671 char * kwnames[] = {
5672 (char *) "self",(char *) "stipple", NULL
5673 };
5674
5675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5676 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5677 if (!SWIG_IsOK(res1)) {
5678 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5679 }
5680 arg1 = reinterpret_cast< wxBrush * >(argp1);
5681 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5682 if (!SWIG_IsOK(res2)) {
5683 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5684 }
5685 if (!argp2) {
5686 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5687 }
5688 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5689 {
5690 PyThreadState* __tstate = wxPyBeginAllowThreads();
5691 (arg1)->SetStipple((wxBitmap const &)*arg2);
5692 wxPyEndAllowThreads(__tstate);
5693 if (PyErr_Occurred()) SWIG_fail;
5694 }
5695 resultobj = SWIG_Py_Void();
5696 return resultobj;
5697 fail:
5698 return NULL;
5699 }
5700
5701
5702 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5703 PyObject *resultobj = 0;
5704 wxBrush *arg1 = (wxBrush *) 0 ;
5705 wxColour result;
5706 void *argp1 = 0 ;
5707 int res1 = 0 ;
5708 PyObject *swig_obj[1] ;
5709
5710 if (!args) SWIG_fail;
5711 swig_obj[0] = args;
5712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5713 if (!SWIG_IsOK(res1)) {
5714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5715 }
5716 arg1 = reinterpret_cast< wxBrush * >(argp1);
5717 {
5718 PyThreadState* __tstate = wxPyBeginAllowThreads();
5719 result = ((wxBrush const *)arg1)->GetColour();
5720 wxPyEndAllowThreads(__tstate);
5721 if (PyErr_Occurred()) SWIG_fail;
5722 }
5723 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5724 return resultobj;
5725 fail:
5726 return NULL;
5727 }
5728
5729
5730 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5731 PyObject *resultobj = 0;
5732 wxBrush *arg1 = (wxBrush *) 0 ;
5733 int result;
5734 void *argp1 = 0 ;
5735 int res1 = 0 ;
5736 PyObject *swig_obj[1] ;
5737
5738 if (!args) SWIG_fail;
5739 swig_obj[0] = args;
5740 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5741 if (!SWIG_IsOK(res1)) {
5742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5743 }
5744 arg1 = reinterpret_cast< wxBrush * >(argp1);
5745 {
5746 PyThreadState* __tstate = wxPyBeginAllowThreads();
5747 result = (int)((wxBrush const *)arg1)->GetStyle();
5748 wxPyEndAllowThreads(__tstate);
5749 if (PyErr_Occurred()) SWIG_fail;
5750 }
5751 resultobj = SWIG_From_int(static_cast< int >(result));
5752 return resultobj;
5753 fail:
5754 return NULL;
5755 }
5756
5757
5758 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5759 PyObject *resultobj = 0;
5760 wxBrush *arg1 = (wxBrush *) 0 ;
5761 wxBitmap *result = 0 ;
5762 void *argp1 = 0 ;
5763 int res1 = 0 ;
5764 PyObject *swig_obj[1] ;
5765
5766 if (!args) SWIG_fail;
5767 swig_obj[0] = args;
5768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5769 if (!SWIG_IsOK(res1)) {
5770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5771 }
5772 arg1 = reinterpret_cast< wxBrush * >(argp1);
5773 {
5774 PyThreadState* __tstate = wxPyBeginAllowThreads();
5775 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5776 wxPyEndAllowThreads(__tstate);
5777 if (PyErr_Occurred()) SWIG_fail;
5778 }
5779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5780 return resultobj;
5781 fail:
5782 return NULL;
5783 }
5784
5785
5786 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5787 PyObject *resultobj = 0;
5788 wxBrush *arg1 = (wxBrush *) 0 ;
5789 bool result;
5790 void *argp1 = 0 ;
5791 int res1 = 0 ;
5792 PyObject *swig_obj[1] ;
5793
5794 if (!args) SWIG_fail;
5795 swig_obj[0] = args;
5796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5797 if (!SWIG_IsOK(res1)) {
5798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5799 }
5800 arg1 = reinterpret_cast< wxBrush * >(argp1);
5801 {
5802 PyThreadState* __tstate = wxPyBeginAllowThreads();
5803 result = (bool)((wxBrush const *)arg1)->IsHatch();
5804 wxPyEndAllowThreads(__tstate);
5805 if (PyErr_Occurred()) SWIG_fail;
5806 }
5807 {
5808 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5809 }
5810 return resultobj;
5811 fail:
5812 return NULL;
5813 }
5814
5815
5816 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5817 PyObject *resultobj = 0;
5818 wxBrush *arg1 = (wxBrush *) 0 ;
5819 bool result;
5820 void *argp1 = 0 ;
5821 int res1 = 0 ;
5822 PyObject *swig_obj[1] ;
5823
5824 if (!args) SWIG_fail;
5825 swig_obj[0] = args;
5826 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5827 if (!SWIG_IsOK(res1)) {
5828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5829 }
5830 arg1 = reinterpret_cast< wxBrush * >(argp1);
5831 {
5832 PyThreadState* __tstate = wxPyBeginAllowThreads();
5833 result = (bool)(arg1)->IsOk();
5834 wxPyEndAllowThreads(__tstate);
5835 if (PyErr_Occurred()) SWIG_fail;
5836 }
5837 {
5838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5839 }
5840 return resultobj;
5841 fail:
5842 return NULL;
5843 }
5844
5845
5846 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5847 PyObject *obj;
5848 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5849 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5850 return SWIG_Py_Void();
5851 }
5852
5853 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5854 return SWIG_Python_InitShadowInstance(args);
5855 }
5856
5857 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5858 PyObject *resultobj = 0;
5859 wxString *arg1 = 0 ;
5860 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5861 wxBitmap *result = 0 ;
5862 bool temp1 = false ;
5863 int val2 ;
5864 int ecode2 = 0 ;
5865 PyObject * obj0 = 0 ;
5866 PyObject * obj1 = 0 ;
5867 char * kwnames[] = {
5868 (char *) "name",(char *) "type", NULL
5869 };
5870
5871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5872 {
5873 arg1 = wxString_in_helper(obj0);
5874 if (arg1 == NULL) SWIG_fail;
5875 temp1 = true;
5876 }
5877 if (obj1) {
5878 ecode2 = SWIG_AsVal_int(obj1, &val2);
5879 if (!SWIG_IsOK(ecode2)) {
5880 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5881 }
5882 arg2 = static_cast< wxBitmapType >(val2);
5883 }
5884 {
5885 if (!wxPyCheckForApp()) SWIG_fail;
5886 PyThreadState* __tstate = wxPyBeginAllowThreads();
5887 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5888 wxPyEndAllowThreads(__tstate);
5889 if (PyErr_Occurred()) SWIG_fail;
5890 }
5891 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5892 {
5893 if (temp1)
5894 delete arg1;
5895 }
5896 return resultobj;
5897 fail:
5898 {
5899 if (temp1)
5900 delete arg1;
5901 }
5902 return NULL;
5903 }
5904
5905
5906 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5907 PyObject *resultobj = 0;
5908 wxBitmap *arg1 = (wxBitmap *) 0 ;
5909 void *argp1 = 0 ;
5910 int res1 = 0 ;
5911 PyObject *swig_obj[1] ;
5912
5913 if (!args) SWIG_fail;
5914 swig_obj[0] = args;
5915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5916 if (!SWIG_IsOK(res1)) {
5917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5918 }
5919 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5920 {
5921 delete arg1;
5922
5923 if (PyErr_Occurred()) SWIG_fail;
5924 }
5925 resultobj = SWIG_Py_Void();
5926 return resultobj;
5927 fail:
5928 return NULL;
5929 }
5930
5931
5932 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5933 PyObject *resultobj = 0;
5934 int arg1 ;
5935 int arg2 ;
5936 int arg3 = (int) -1 ;
5937 wxBitmap *result = 0 ;
5938 int val1 ;
5939 int ecode1 = 0 ;
5940 int val2 ;
5941 int ecode2 = 0 ;
5942 int val3 ;
5943 int ecode3 = 0 ;
5944 PyObject * obj0 = 0 ;
5945 PyObject * obj1 = 0 ;
5946 PyObject * obj2 = 0 ;
5947 char * kwnames[] = {
5948 (char *) "width",(char *) "height",(char *) "depth", NULL
5949 };
5950
5951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5952 ecode1 = SWIG_AsVal_int(obj0, &val1);
5953 if (!SWIG_IsOK(ecode1)) {
5954 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5955 }
5956 arg1 = static_cast< int >(val1);
5957 ecode2 = SWIG_AsVal_int(obj1, &val2);
5958 if (!SWIG_IsOK(ecode2)) {
5959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5960 }
5961 arg2 = static_cast< int >(val2);
5962 if (obj2) {
5963 ecode3 = SWIG_AsVal_int(obj2, &val3);
5964 if (!SWIG_IsOK(ecode3)) {
5965 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5966 }
5967 arg3 = static_cast< int >(val3);
5968 }
5969 {
5970 if (!wxPyCheckForApp()) SWIG_fail;
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5977 return resultobj;
5978 fail:
5979 return NULL;
5980 }
5981
5982
5983 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5984 PyObject *resultobj = 0;
5985 wxIcon *arg1 = 0 ;
5986 wxBitmap *result = 0 ;
5987 void *argp1 = 0 ;
5988 int res1 = 0 ;
5989 PyObject * obj0 = 0 ;
5990 char * kwnames[] = {
5991 (char *) "icon", NULL
5992 };
5993
5994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5995 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5996 if (!SWIG_IsOK(res1)) {
5997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5998 }
5999 if (!argp1) {
6000 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6001 }
6002 arg1 = reinterpret_cast< wxIcon * >(argp1);
6003 {
6004 if (!wxPyCheckForApp()) SWIG_fail;
6005 PyThreadState* __tstate = wxPyBeginAllowThreads();
6006 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6007 wxPyEndAllowThreads(__tstate);
6008 if (PyErr_Occurred()) SWIG_fail;
6009 }
6010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6011 return resultobj;
6012 fail:
6013 return NULL;
6014 }
6015
6016
6017 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6018 PyObject *resultobj = 0;
6019 wxImage *arg1 = 0 ;
6020 int arg2 = (int) -1 ;
6021 wxBitmap *result = 0 ;
6022 void *argp1 = 0 ;
6023 int res1 = 0 ;
6024 int val2 ;
6025 int ecode2 = 0 ;
6026 PyObject * obj0 = 0 ;
6027 PyObject * obj1 = 0 ;
6028 char * kwnames[] = {
6029 (char *) "image",(char *) "depth", NULL
6030 };
6031
6032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6033 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6034 if (!SWIG_IsOK(res1)) {
6035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6036 }
6037 if (!argp1) {
6038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6039 }
6040 arg1 = reinterpret_cast< wxImage * >(argp1);
6041 if (obj1) {
6042 ecode2 = SWIG_AsVal_int(obj1, &val2);
6043 if (!SWIG_IsOK(ecode2)) {
6044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6045 }
6046 arg2 = static_cast< int >(val2);
6047 }
6048 {
6049 if (!wxPyCheckForApp()) SWIG_fail;
6050 PyThreadState* __tstate = wxPyBeginAllowThreads();
6051 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6052 wxPyEndAllowThreads(__tstate);
6053 if (PyErr_Occurred()) SWIG_fail;
6054 }
6055 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6056 return resultobj;
6057 fail:
6058 return NULL;
6059 }
6060
6061
6062 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj = 0;
6064 PyObject *arg1 = (PyObject *) 0 ;
6065 wxBitmap *result = 0 ;
6066 PyObject * obj0 = 0 ;
6067 char * kwnames[] = {
6068 (char *) "listOfStrings", NULL
6069 };
6070
6071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6072 arg1 = obj0;
6073 {
6074 if (!wxPyCheckForApp()) SWIG_fail;
6075 PyThreadState* __tstate = wxPyBeginAllowThreads();
6076 result = (wxBitmap *)new_wxBitmap(arg1);
6077 wxPyEndAllowThreads(__tstate);
6078 if (PyErr_Occurred()) SWIG_fail;
6079 }
6080 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6081 return resultobj;
6082 fail:
6083 return NULL;
6084 }
6085
6086
6087 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6088 PyObject *resultobj = 0;
6089 PyObject *arg1 = (PyObject *) 0 ;
6090 int arg2 ;
6091 int arg3 ;
6092 int arg4 = (int) 1 ;
6093 wxBitmap *result = 0 ;
6094 int val2 ;
6095 int ecode2 = 0 ;
6096 int val3 ;
6097 int ecode3 = 0 ;
6098 int val4 ;
6099 int ecode4 = 0 ;
6100 PyObject * obj0 = 0 ;
6101 PyObject * obj1 = 0 ;
6102 PyObject * obj2 = 0 ;
6103 PyObject * obj3 = 0 ;
6104 char * kwnames[] = {
6105 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6106 };
6107
6108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6109 arg1 = obj0;
6110 ecode2 = SWIG_AsVal_int(obj1, &val2);
6111 if (!SWIG_IsOK(ecode2)) {
6112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6113 }
6114 arg2 = static_cast< int >(val2);
6115 ecode3 = SWIG_AsVal_int(obj2, &val3);
6116 if (!SWIG_IsOK(ecode3)) {
6117 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6118 }
6119 arg3 = static_cast< int >(val3);
6120 if (obj3) {
6121 ecode4 = SWIG_AsVal_int(obj3, &val4);
6122 if (!SWIG_IsOK(ecode4)) {
6123 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6124 }
6125 arg4 = static_cast< int >(val4);
6126 }
6127 {
6128 if (!wxPyCheckForApp()) SWIG_fail;
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6142 PyObject *resultobj = 0;
6143 wxBitmap *arg1 = (wxBitmap *) 0 ;
6144 long result;
6145 void *argp1 = 0 ;
6146 int res1 = 0 ;
6147 PyObject *swig_obj[1] ;
6148
6149 if (!args) SWIG_fail;
6150 swig_obj[0] = args;
6151 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6152 if (!SWIG_IsOK(res1)) {
6153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6154 }
6155 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6156 {
6157 result = (long)(arg1)->GetHandle();
6158 if (PyErr_Occurred()) SWIG_fail;
6159 }
6160 resultobj = SWIG_From_long(static_cast< long >(result));
6161 return resultobj;
6162 fail:
6163 return NULL;
6164 }
6165
6166
6167 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6168 PyObject *resultobj = 0;
6169 wxBitmap *arg1 = (wxBitmap *) 0 ;
6170 long arg2 ;
6171 void *argp1 = 0 ;
6172 int res1 = 0 ;
6173 long val2 ;
6174 int ecode2 = 0 ;
6175 PyObject * obj0 = 0 ;
6176 PyObject * obj1 = 0 ;
6177 char * kwnames[] = {
6178 (char *) "self",(char *) "handle", NULL
6179 };
6180
6181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6183 if (!SWIG_IsOK(res1)) {
6184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6185 }
6186 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6187 ecode2 = SWIG_AsVal_long(obj1, &val2);
6188 if (!SWIG_IsOK(ecode2)) {
6189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6190 }
6191 arg2 = static_cast< long >(val2);
6192 {
6193 wxBitmap_SetHandle(arg1,arg2);
6194 if (PyErr_Occurred()) SWIG_fail;
6195 }
6196 resultobj = SWIG_Py_Void();
6197 return resultobj;
6198 fail:
6199 return NULL;
6200 }
6201
6202
6203 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6204 PyObject *resultobj = 0;
6205 wxBitmap *arg1 = (wxBitmap *) 0 ;
6206 bool result;
6207 void *argp1 = 0 ;
6208 int res1 = 0 ;
6209 PyObject *swig_obj[1] ;
6210
6211 if (!args) SWIG_fail;
6212 swig_obj[0] = args;
6213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6214 if (!SWIG_IsOK(res1)) {
6215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6216 }
6217 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6218 {
6219 result = (bool)(arg1)->IsOk();
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 {
6223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6224 }
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6232 PyObject *resultobj = 0;
6233 wxBitmap *arg1 = (wxBitmap *) 0 ;
6234 int result;
6235 void *argp1 = 0 ;
6236 int res1 = 0 ;
6237 PyObject *swig_obj[1] ;
6238
6239 if (!args) SWIG_fail;
6240 swig_obj[0] = args;
6241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6242 if (!SWIG_IsOK(res1)) {
6243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6244 }
6245 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6246 {
6247 result = (int)(arg1)->GetWidth();
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 resultobj = SWIG_From_int(static_cast< int >(result));
6251 return resultobj;
6252 fail:
6253 return NULL;
6254 }
6255
6256
6257 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6258 PyObject *resultobj = 0;
6259 wxBitmap *arg1 = (wxBitmap *) 0 ;
6260 int result;
6261 void *argp1 = 0 ;
6262 int res1 = 0 ;
6263 PyObject *swig_obj[1] ;
6264
6265 if (!args) SWIG_fail;
6266 swig_obj[0] = args;
6267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6268 if (!SWIG_IsOK(res1)) {
6269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6270 }
6271 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6272 {
6273 result = (int)(arg1)->GetHeight();
6274 if (PyErr_Occurred()) SWIG_fail;
6275 }
6276 resultobj = SWIG_From_int(static_cast< int >(result));
6277 return resultobj;
6278 fail:
6279 return NULL;
6280 }
6281
6282
6283 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6284 PyObject *resultobj = 0;
6285 wxBitmap *arg1 = (wxBitmap *) 0 ;
6286 int result;
6287 void *argp1 = 0 ;
6288 int res1 = 0 ;
6289 PyObject *swig_obj[1] ;
6290
6291 if (!args) SWIG_fail;
6292 swig_obj[0] = args;
6293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6294 if (!SWIG_IsOK(res1)) {
6295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6296 }
6297 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6298 {
6299 result = (int)(arg1)->GetDepth();
6300 if (PyErr_Occurred()) SWIG_fail;
6301 }
6302 resultobj = SWIG_From_int(static_cast< int >(result));
6303 return resultobj;
6304 fail:
6305 return NULL;
6306 }
6307
6308
6309 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6310 PyObject *resultobj = 0;
6311 wxBitmap *arg1 = (wxBitmap *) 0 ;
6312 wxSize result;
6313 void *argp1 = 0 ;
6314 int res1 = 0 ;
6315 PyObject *swig_obj[1] ;
6316
6317 if (!args) SWIG_fail;
6318 swig_obj[0] = args;
6319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6320 if (!SWIG_IsOK(res1)) {
6321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6322 }
6323 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6324 {
6325 result = wxBitmap_GetSize(arg1);
6326 if (PyErr_Occurred()) SWIG_fail;
6327 }
6328 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6329 return resultobj;
6330 fail:
6331 return NULL;
6332 }
6333
6334
6335 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6336 PyObject *resultobj = 0;
6337 wxBitmap *arg1 = (wxBitmap *) 0 ;
6338 SwigValueWrapper<wxImage > result;
6339 void *argp1 = 0 ;
6340 int res1 = 0 ;
6341 PyObject *swig_obj[1] ;
6342
6343 if (!args) SWIG_fail;
6344 swig_obj[0] = args;
6345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6346 if (!SWIG_IsOK(res1)) {
6347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6348 }
6349 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6350 {
6351 result = ((wxBitmap const *)arg1)->ConvertToImage();
6352 if (PyErr_Occurred()) SWIG_fail;
6353 }
6354 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6355 return resultobj;
6356 fail:
6357 return NULL;
6358 }
6359
6360
6361 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6362 PyObject *resultobj = 0;
6363 wxBitmap *arg1 = (wxBitmap *) 0 ;
6364 wxMask *result = 0 ;
6365 void *argp1 = 0 ;
6366 int res1 = 0 ;
6367 PyObject *swig_obj[1] ;
6368
6369 if (!args) SWIG_fail;
6370 swig_obj[0] = args;
6371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6372 if (!SWIG_IsOK(res1)) {
6373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6374 }
6375 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6376 {
6377 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6378 if (PyErr_Occurred()) SWIG_fail;
6379 }
6380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6381 return resultobj;
6382 fail:
6383 return NULL;
6384 }
6385
6386
6387 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6388 PyObject *resultobj = 0;
6389 wxBitmap *arg1 = (wxBitmap *) 0 ;
6390 wxMask *arg2 = (wxMask *) 0 ;
6391 void *argp1 = 0 ;
6392 int res1 = 0 ;
6393 int res2 = 0 ;
6394 PyObject * obj0 = 0 ;
6395 PyObject * obj1 = 0 ;
6396 char * kwnames[] = {
6397 (char *) "self",(char *) "mask", NULL
6398 };
6399
6400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6402 if (!SWIG_IsOK(res1)) {
6403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6404 }
6405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6406 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6407 if (!SWIG_IsOK(res2)) {
6408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6409 }
6410 {
6411 (arg1)->SetMask(arg2);
6412 if (PyErr_Occurred()) SWIG_fail;
6413 }
6414 resultobj = SWIG_Py_Void();
6415 return resultobj;
6416 fail:
6417 return NULL;
6418 }
6419
6420
6421 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6422 PyObject *resultobj = 0;
6423 wxBitmap *arg1 = (wxBitmap *) 0 ;
6424 wxColour *arg2 = 0 ;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 wxColour temp2 ;
6428 PyObject * obj0 = 0 ;
6429 PyObject * obj1 = 0 ;
6430 char * kwnames[] = {
6431 (char *) "self",(char *) "colour", NULL
6432 };
6433
6434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6436 if (!SWIG_IsOK(res1)) {
6437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6438 }
6439 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6440 {
6441 arg2 = &temp2;
6442 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6443 }
6444 {
6445 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6446 if (PyErr_Occurred()) SWIG_fail;
6447 }
6448 resultobj = SWIG_Py_Void();
6449 return resultobj;
6450 fail:
6451 return NULL;
6452 }
6453
6454
6455 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6456 PyObject *resultobj = 0;
6457 wxBitmap *arg1 = (wxBitmap *) 0 ;
6458 wxRect *arg2 = 0 ;
6459 SwigValueWrapper<wxBitmap > result;
6460 void *argp1 = 0 ;
6461 int res1 = 0 ;
6462 wxRect temp2 ;
6463 PyObject * obj0 = 0 ;
6464 PyObject * obj1 = 0 ;
6465 char * kwnames[] = {
6466 (char *) "self",(char *) "rect", NULL
6467 };
6468
6469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6471 if (!SWIG_IsOK(res1)) {
6472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6473 }
6474 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6475 {
6476 arg2 = &temp2;
6477 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6478 }
6479 {
6480 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6481 if (PyErr_Occurred()) SWIG_fail;
6482 }
6483 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6484 return resultobj;
6485 fail:
6486 return NULL;
6487 }
6488
6489
6490 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6491 PyObject *resultobj = 0;
6492 wxBitmap *arg1 = (wxBitmap *) 0 ;
6493 wxString *arg2 = 0 ;
6494 wxBitmapType arg3 ;
6495 wxPalette *arg4 = (wxPalette *) NULL ;
6496 bool result;
6497 void *argp1 = 0 ;
6498 int res1 = 0 ;
6499 bool temp2 = false ;
6500 int val3 ;
6501 int ecode3 = 0 ;
6502 void *argp4 = 0 ;
6503 int res4 = 0 ;
6504 PyObject * obj0 = 0 ;
6505 PyObject * obj1 = 0 ;
6506 PyObject * obj2 = 0 ;
6507 PyObject * obj3 = 0 ;
6508 char * kwnames[] = {
6509 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6510 };
6511
6512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6514 if (!SWIG_IsOK(res1)) {
6515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6516 }
6517 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6518 {
6519 arg2 = wxString_in_helper(obj1);
6520 if (arg2 == NULL) SWIG_fail;
6521 temp2 = true;
6522 }
6523 ecode3 = SWIG_AsVal_int(obj2, &val3);
6524 if (!SWIG_IsOK(ecode3)) {
6525 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6526 }
6527 arg3 = static_cast< wxBitmapType >(val3);
6528 if (obj3) {
6529 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6530 if (!SWIG_IsOK(res4)) {
6531 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6532 }
6533 arg4 = reinterpret_cast< wxPalette * >(argp4);
6534 }
6535 {
6536 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6537 if (PyErr_Occurred()) SWIG_fail;
6538 }
6539 {
6540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6541 }
6542 {
6543 if (temp2)
6544 delete arg2;
6545 }
6546 return resultobj;
6547 fail:
6548 {
6549 if (temp2)
6550 delete arg2;
6551 }
6552 return NULL;
6553 }
6554
6555
6556 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6557 PyObject *resultobj = 0;
6558 wxBitmap *arg1 = (wxBitmap *) 0 ;
6559 wxString *arg2 = 0 ;
6560 wxBitmapType arg3 ;
6561 bool result;
6562 void *argp1 = 0 ;
6563 int res1 = 0 ;
6564 bool temp2 = false ;
6565 int val3 ;
6566 int ecode3 = 0 ;
6567 PyObject * obj0 = 0 ;
6568 PyObject * obj1 = 0 ;
6569 PyObject * obj2 = 0 ;
6570 char * kwnames[] = {
6571 (char *) "self",(char *) "name",(char *) "type", NULL
6572 };
6573
6574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6576 if (!SWIG_IsOK(res1)) {
6577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6578 }
6579 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6580 {
6581 arg2 = wxString_in_helper(obj1);
6582 if (arg2 == NULL) SWIG_fail;
6583 temp2 = true;
6584 }
6585 ecode3 = SWIG_AsVal_int(obj2, &val3);
6586 if (!SWIG_IsOK(ecode3)) {
6587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6588 }
6589 arg3 = static_cast< wxBitmapType >(val3);
6590 {
6591 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6592 if (PyErr_Occurred()) SWIG_fail;
6593 }
6594 {
6595 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6596 }
6597 {
6598 if (temp2)
6599 delete arg2;
6600 }
6601 return resultobj;
6602 fail:
6603 {
6604 if (temp2)
6605 delete arg2;
6606 }
6607 return NULL;
6608 }
6609
6610
6611 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6612 PyObject *resultobj = 0;
6613 wxBitmap *arg1 = (wxBitmap *) 0 ;
6614 wxPalette *result = 0 ;
6615 void *argp1 = 0 ;
6616 int res1 = 0 ;
6617 PyObject *swig_obj[1] ;
6618
6619 if (!args) SWIG_fail;
6620 swig_obj[0] = args;
6621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6622 if (!SWIG_IsOK(res1)) {
6623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6624 }
6625 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6626 {
6627 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6628 if (PyErr_Occurred()) SWIG_fail;
6629 }
6630 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6631 return resultobj;
6632 fail:
6633 return NULL;
6634 }
6635
6636
6637 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6638 PyObject *resultobj = 0;
6639 wxBitmap *arg1 = (wxBitmap *) 0 ;
6640 wxPalette *arg2 = 0 ;
6641 void *argp1 = 0 ;
6642 int res1 = 0 ;
6643 void *argp2 = 0 ;
6644 int res2 = 0 ;
6645 PyObject * obj0 = 0 ;
6646 PyObject * obj1 = 0 ;
6647 char * kwnames[] = {
6648 (char *) "self",(char *) "palette", NULL
6649 };
6650
6651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6653 if (!SWIG_IsOK(res1)) {
6654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6655 }
6656 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6657 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6658 if (!SWIG_IsOK(res2)) {
6659 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6660 }
6661 if (!argp2) {
6662 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6663 }
6664 arg2 = reinterpret_cast< wxPalette * >(argp2);
6665 {
6666 (arg1)->SetPalette((wxPalette const &)*arg2);
6667 if (PyErr_Occurred()) SWIG_fail;
6668 }
6669 resultobj = SWIG_Py_Void();
6670 return resultobj;
6671 fail:
6672 return NULL;
6673 }
6674
6675
6676 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6677 PyObject *resultobj = 0;
6678 wxBitmap *arg1 = (wxBitmap *) 0 ;
6679 wxIcon *arg2 = 0 ;
6680 bool result;
6681 void *argp1 = 0 ;
6682 int res1 = 0 ;
6683 void *argp2 = 0 ;
6684 int res2 = 0 ;
6685 PyObject * obj0 = 0 ;
6686 PyObject * obj1 = 0 ;
6687 char * kwnames[] = {
6688 (char *) "self",(char *) "icon", NULL
6689 };
6690
6691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6693 if (!SWIG_IsOK(res1)) {
6694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6695 }
6696 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6697 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6698 if (!SWIG_IsOK(res2)) {
6699 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6700 }
6701 if (!argp2) {
6702 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6703 }
6704 arg2 = reinterpret_cast< wxIcon * >(argp2);
6705 {
6706 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6707 if (PyErr_Occurred()) SWIG_fail;
6708 }
6709 {
6710 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6711 }
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj = 0;
6720 wxBitmap *arg1 = (wxBitmap *) 0 ;
6721 int arg2 ;
6722 void *argp1 = 0 ;
6723 int res1 = 0 ;
6724 int val2 ;
6725 int ecode2 = 0 ;
6726 PyObject * obj0 = 0 ;
6727 PyObject * obj1 = 0 ;
6728 char * kwnames[] = {
6729 (char *) "self",(char *) "height", NULL
6730 };
6731
6732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6734 if (!SWIG_IsOK(res1)) {
6735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6736 }
6737 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6738 ecode2 = SWIG_AsVal_int(obj1, &val2);
6739 if (!SWIG_IsOK(ecode2)) {
6740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6741 }
6742 arg2 = static_cast< int >(val2);
6743 {
6744 (arg1)->SetHeight(arg2);
6745 if (PyErr_Occurred()) SWIG_fail;
6746 }
6747 resultobj = SWIG_Py_Void();
6748 return resultobj;
6749 fail:
6750 return NULL;
6751 }
6752
6753
6754 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6755 PyObject *resultobj = 0;
6756 wxBitmap *arg1 = (wxBitmap *) 0 ;
6757 int arg2 ;
6758 void *argp1 = 0 ;
6759 int res1 = 0 ;
6760 int val2 ;
6761 int ecode2 = 0 ;
6762 PyObject * obj0 = 0 ;
6763 PyObject * obj1 = 0 ;
6764 char * kwnames[] = {
6765 (char *) "self",(char *) "width", NULL
6766 };
6767
6768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6770 if (!SWIG_IsOK(res1)) {
6771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6772 }
6773 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6774 ecode2 = SWIG_AsVal_int(obj1, &val2);
6775 if (!SWIG_IsOK(ecode2)) {
6776 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6777 }
6778 arg2 = static_cast< int >(val2);
6779 {
6780 (arg1)->SetWidth(arg2);
6781 if (PyErr_Occurred()) SWIG_fail;
6782 }
6783 resultobj = SWIG_Py_Void();
6784 return resultobj;
6785 fail:
6786 return NULL;
6787 }
6788
6789
6790 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6791 PyObject *resultobj = 0;
6792 wxBitmap *arg1 = (wxBitmap *) 0 ;
6793 int arg2 ;
6794 void *argp1 = 0 ;
6795 int res1 = 0 ;
6796 int val2 ;
6797 int ecode2 = 0 ;
6798 PyObject * obj0 = 0 ;
6799 PyObject * obj1 = 0 ;
6800 char * kwnames[] = {
6801 (char *) "self",(char *) "depth", NULL
6802 };
6803
6804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6806 if (!SWIG_IsOK(res1)) {
6807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6808 }
6809 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6810 ecode2 = SWIG_AsVal_int(obj1, &val2);
6811 if (!SWIG_IsOK(ecode2)) {
6812 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6813 }
6814 arg2 = static_cast< int >(val2);
6815 {
6816 (arg1)->SetDepth(arg2);
6817 if (PyErr_Occurred()) SWIG_fail;
6818 }
6819 resultobj = SWIG_Py_Void();
6820 return resultobj;
6821 fail:
6822 return NULL;
6823 }
6824
6825
6826 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6827 PyObject *resultobj = 0;
6828 wxBitmap *arg1 = (wxBitmap *) 0 ;
6829 wxSize *arg2 = 0 ;
6830 void *argp1 = 0 ;
6831 int res1 = 0 ;
6832 wxSize temp2 ;
6833 PyObject * obj0 = 0 ;
6834 PyObject * obj1 = 0 ;
6835 char * kwnames[] = {
6836 (char *) "self",(char *) "size", NULL
6837 };
6838
6839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6841 if (!SWIG_IsOK(res1)) {
6842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6843 }
6844 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6845 {
6846 arg2 = &temp2;
6847 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6848 }
6849 {
6850 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6851 if (PyErr_Occurred()) SWIG_fail;
6852 }
6853 resultobj = SWIG_Py_Void();
6854 return resultobj;
6855 fail:
6856 return NULL;
6857 }
6858
6859
6860 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6861 PyObject *resultobj = 0;
6862 wxBitmap *arg1 = (wxBitmap *) 0 ;
6863 wxCursor *arg2 = 0 ;
6864 bool result;
6865 void *argp1 = 0 ;
6866 int res1 = 0 ;
6867 void *argp2 = 0 ;
6868 int res2 = 0 ;
6869 PyObject * obj0 = 0 ;
6870 PyObject * obj1 = 0 ;
6871 char * kwnames[] = {
6872 (char *) "self",(char *) "cursor", NULL
6873 };
6874
6875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6877 if (!SWIG_IsOK(res1)) {
6878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6879 }
6880 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6881 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6882 if (!SWIG_IsOK(res2)) {
6883 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6884 }
6885 if (!argp2) {
6886 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6887 }
6888 arg2 = reinterpret_cast< wxCursor * >(argp2);
6889 {
6890 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6891 if (PyErr_Occurred()) SWIG_fail;
6892 }
6893 {
6894 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6895 }
6896 return resultobj;
6897 fail:
6898 return NULL;
6899 }
6900
6901
6902 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6903 PyObject *resultobj = 0;
6904 wxBitmap *arg1 = (wxBitmap *) 0 ;
6905 wxBitmap *arg2 = (wxBitmap *) 0 ;
6906 bool result;
6907 void *argp1 = 0 ;
6908 int res1 = 0 ;
6909 void *argp2 = 0 ;
6910 int res2 = 0 ;
6911 PyObject * obj0 = 0 ;
6912 PyObject * obj1 = 0 ;
6913 char * kwnames[] = {
6914 (char *) "self",(char *) "other", NULL
6915 };
6916
6917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6919 if (!SWIG_IsOK(res1)) {
6920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6921 }
6922 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6923 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6924 if (!SWIG_IsOK(res2)) {
6925 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6926 }
6927 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6928 {
6929 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6930 if (PyErr_Occurred()) SWIG_fail;
6931 }
6932 {
6933 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6934 }
6935 return resultobj;
6936 fail:
6937 return NULL;
6938 }
6939
6940
6941 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6942 PyObject *resultobj = 0;
6943 wxBitmap *arg1 = (wxBitmap *) 0 ;
6944 wxBitmap *arg2 = (wxBitmap *) 0 ;
6945 bool result;
6946 void *argp1 = 0 ;
6947 int res1 = 0 ;
6948 void *argp2 = 0 ;
6949 int res2 = 0 ;
6950 PyObject * obj0 = 0 ;
6951 PyObject * obj1 = 0 ;
6952 char * kwnames[] = {
6953 (char *) "self",(char *) "other", NULL
6954 };
6955
6956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6958 if (!SWIG_IsOK(res1)) {
6959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6960 }
6961 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6962 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6963 if (!SWIG_IsOK(res2)) {
6964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6965 }
6966 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6967 {
6968 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6969 if (PyErr_Occurred()) SWIG_fail;
6970 }
6971 {
6972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6973 }
6974 return resultobj;
6975 fail:
6976 return NULL;
6977 }
6978
6979
6980 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6981 PyObject *obj;
6982 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6983 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6984 return SWIG_Py_Void();
6985 }
6986
6987 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6988 return SWIG_Python_InitShadowInstance(args);
6989 }
6990
6991 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6992 PyObject *resultobj = 0;
6993 int arg1 ;
6994 int arg2 ;
6995 buffer arg3 ;
6996 int arg4 ;
6997 buffer arg5 ;
6998 int arg6 ;
6999 wxBitmap *result = 0 ;
7000 int val1 ;
7001 int ecode1 = 0 ;
7002 int val2 ;
7003 int ecode2 = 0 ;
7004 Py_ssize_t temp3 ;
7005 Py_ssize_t temp5 ;
7006 PyObject * obj0 = 0 ;
7007 PyObject * obj1 = 0 ;
7008 PyObject * obj2 = 0 ;
7009 PyObject * obj3 = 0 ;
7010 char * kwnames[] = {
7011 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7012 };
7013
7014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7015 ecode1 = SWIG_AsVal_int(obj0, &val1);
7016 if (!SWIG_IsOK(ecode1)) {
7017 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7018 }
7019 arg1 = static_cast< int >(val1);
7020 ecode2 = SWIG_AsVal_int(obj1, &val2);
7021 if (!SWIG_IsOK(ecode2)) {
7022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7023 }
7024 arg2 = static_cast< int >(val2);
7025 {
7026 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7027 arg4 = (int)temp3;
7028 }
7029 {
7030 if (obj3 != Py_None) {
7031 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7032 arg6 = (int)temp5;
7033 }
7034 }
7035 {
7036 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7037 if (PyErr_Occurred()) SWIG_fail;
7038 }
7039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7040 return resultobj;
7041 fail:
7042 return NULL;
7043 }
7044
7045
7046 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7047 PyObject *resultobj = 0;
7048 int arg1 ;
7049 int arg2 ;
7050 buffer arg3 ;
7051 int arg4 ;
7052 wxBitmap *result = 0 ;
7053 int val1 ;
7054 int ecode1 = 0 ;
7055 int val2 ;
7056 int ecode2 = 0 ;
7057 Py_ssize_t temp3 ;
7058 PyObject * obj0 = 0 ;
7059 PyObject * obj1 = 0 ;
7060 PyObject * obj2 = 0 ;
7061 char * kwnames[] = {
7062 (char *) "width",(char *) "height",(char *) "data", NULL
7063 };
7064
7065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7066 ecode1 = SWIG_AsVal_int(obj0, &val1);
7067 if (!SWIG_IsOK(ecode1)) {
7068 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7069 }
7070 arg1 = static_cast< int >(val1);
7071 ecode2 = SWIG_AsVal_int(obj1, &val2);
7072 if (!SWIG_IsOK(ecode2)) {
7073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7074 }
7075 arg2 = static_cast< int >(val2);
7076 {
7077 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7078 arg4 = (int)temp3;
7079 }
7080 {
7081 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7082 if (PyErr_Occurred()) SWIG_fail;
7083 }
7084 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7085 return resultobj;
7086 fail:
7087 return NULL;
7088 }
7089
7090
7091 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7092 PyObject *resultobj = 0;
7093 int arg1 ;
7094 int arg2 ;
7095 buffer arg3 ;
7096 int arg4 ;
7097 wxBitmap *result = 0 ;
7098 int val1 ;
7099 int ecode1 = 0 ;
7100 int val2 ;
7101 int ecode2 = 0 ;
7102 Py_ssize_t temp3 ;
7103 PyObject * obj0 = 0 ;
7104 PyObject * obj1 = 0 ;
7105 PyObject * obj2 = 0 ;
7106 char * kwnames[] = {
7107 (char *) "width",(char *) "height",(char *) "data", NULL
7108 };
7109
7110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7111 ecode1 = SWIG_AsVal_int(obj0, &val1);
7112 if (!SWIG_IsOK(ecode1)) {
7113 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7114 }
7115 arg1 = static_cast< int >(val1);
7116 ecode2 = SWIG_AsVal_int(obj1, &val2);
7117 if (!SWIG_IsOK(ecode2)) {
7118 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7119 }
7120 arg2 = static_cast< int >(val2);
7121 {
7122 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7123 arg4 = (int)temp3;
7124 }
7125 {
7126 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7127 if (PyErr_Occurred()) SWIG_fail;
7128 }
7129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7130 return resultobj;
7131 fail:
7132 return NULL;
7133 }
7134
7135
7136 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7137 PyObject *resultobj = 0;
7138 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7139 wxPoint result;
7140 void *argp1 = 0 ;
7141 int res1 = 0 ;
7142 PyObject *swig_obj[1] ;
7143
7144 if (!args) SWIG_fail;
7145 swig_obj[0] = args;
7146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7147 if (!SWIG_IsOK(res1)) {
7148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7149 }
7150 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7151 {
7152 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7156 return resultobj;
7157 fail:
7158 return NULL;
7159 }
7160
7161
7162 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7163 PyObject *resultobj = 0;
7164 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7165 int result;
7166 void *argp1 = 0 ;
7167 int res1 = 0 ;
7168 PyObject *swig_obj[1] ;
7169
7170 if (!args) SWIG_fail;
7171 swig_obj[0] = args;
7172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7173 if (!SWIG_IsOK(res1)) {
7174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7175 }
7176 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7177 {
7178 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7179 if (PyErr_Occurred()) SWIG_fail;
7180 }
7181 resultobj = SWIG_From_int(static_cast< int >(result));
7182 return resultobj;
7183 fail:
7184 return NULL;
7185 }
7186
7187
7188 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7189 PyObject *resultobj = 0;
7190 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7191 int result;
7192 void *argp1 = 0 ;
7193 int res1 = 0 ;
7194 PyObject *swig_obj[1] ;
7195
7196 if (!args) SWIG_fail;
7197 swig_obj[0] = args;
7198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7199 if (!SWIG_IsOK(res1)) {
7200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7201 }
7202 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7203 {
7204 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7205 if (PyErr_Occurred()) SWIG_fail;
7206 }
7207 resultobj = SWIG_From_int(static_cast< int >(result));
7208 return resultobj;
7209 fail:
7210 return NULL;
7211 }
7212
7213
7214 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7215 PyObject *resultobj = 0;
7216 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7217 wxSize result;
7218 void *argp1 = 0 ;
7219 int res1 = 0 ;
7220 PyObject *swig_obj[1] ;
7221
7222 if (!args) SWIG_fail;
7223 swig_obj[0] = args;
7224 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7225 if (!SWIG_IsOK(res1)) {
7226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7227 }
7228 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7229 {
7230 result = ((wxPixelDataBase const *)arg1)->GetSize();
7231 if (PyErr_Occurred()) SWIG_fail;
7232 }
7233 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7234 return resultobj;
7235 fail:
7236 return NULL;
7237 }
7238
7239
7240 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7241 PyObject *resultobj = 0;
7242 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7243 int result;
7244 void *argp1 = 0 ;
7245 int res1 = 0 ;
7246 PyObject *swig_obj[1] ;
7247
7248 if (!args) SWIG_fail;
7249 swig_obj[0] = args;
7250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7251 if (!SWIG_IsOK(res1)) {
7252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7253 }
7254 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7255 {
7256 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7257 if (PyErr_Occurred()) SWIG_fail;
7258 }
7259 resultobj = SWIG_From_int(static_cast< int >(result));
7260 return resultobj;
7261 fail:
7262 return NULL;
7263 }
7264
7265
7266 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7267 PyObject *obj;
7268 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7269 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7270 return SWIG_Py_Void();
7271 }
7272
7273 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7274 PyObject *resultobj = 0;
7275 wxBitmap *arg1 = 0 ;
7276 wxNativePixelData *result = 0 ;
7277 void *argp1 = 0 ;
7278 int res1 = 0 ;
7279
7280 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7282 if (!SWIG_IsOK(res1)) {
7283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7284 }
7285 if (!argp1) {
7286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7287 }
7288 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7289 {
7290 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7294 return resultobj;
7295 fail:
7296 return NULL;
7297 }
7298
7299
7300 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7301 PyObject *resultobj = 0;
7302 wxBitmap *arg1 = 0 ;
7303 wxRect *arg2 = 0 ;
7304 wxNativePixelData *result = 0 ;
7305 void *argp1 = 0 ;
7306 int res1 = 0 ;
7307 wxRect temp2 ;
7308
7309 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7310 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7311 if (!SWIG_IsOK(res1)) {
7312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7313 }
7314 if (!argp1) {
7315 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7316 }
7317 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7318 {
7319 arg2 = &temp2;
7320 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7321 }
7322 {
7323 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7324 if (PyErr_Occurred()) SWIG_fail;
7325 }
7326 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7327 return resultobj;
7328 fail:
7329 return NULL;
7330 }
7331
7332
7333 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7334 PyObject *resultobj = 0;
7335 wxBitmap *arg1 = 0 ;
7336 wxPoint *arg2 = 0 ;
7337 wxSize *arg3 = 0 ;
7338 wxNativePixelData *result = 0 ;
7339 void *argp1 = 0 ;
7340 int res1 = 0 ;
7341 wxPoint temp2 ;
7342 wxSize temp3 ;
7343
7344 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7346 if (!SWIG_IsOK(res1)) {
7347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7348 }
7349 if (!argp1) {
7350 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7351 }
7352 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7353 {
7354 arg2 = &temp2;
7355 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7356 }
7357 {
7358 arg3 = &temp3;
7359 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7360 }
7361 {
7362 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7363 if (PyErr_Occurred()) SWIG_fail;
7364 }
7365 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7366 return resultobj;
7367 fail:
7368 return NULL;
7369 }
7370
7371
7372 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7373 int argc;
7374 PyObject *argv[4];
7375
7376 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7377 --argc;
7378 if (argc == 1) {
7379 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7380 }
7381 if (argc == 2) {
7382 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7383 }
7384 if (argc == 3) {
7385 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7386 }
7387
7388 fail:
7389 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7390 return NULL;
7391 }
7392
7393
7394 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7395 PyObject *resultobj = 0;
7396 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7397 void *argp1 = 0 ;
7398 int res1 = 0 ;
7399 PyObject *swig_obj[1] ;
7400
7401 if (!args) SWIG_fail;
7402 swig_obj[0] = args;
7403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7404 if (!SWIG_IsOK(res1)) {
7405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7406 }
7407 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7408 {
7409 delete arg1;
7410
7411 if (PyErr_Occurred()) SWIG_fail;
7412 }
7413 resultobj = SWIG_Py_Void();
7414 return resultobj;
7415 fail:
7416 return NULL;
7417 }
7418
7419
7420 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7421 PyObject *resultobj = 0;
7422 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7423 wxNativePixelData_Accessor result;
7424 void *argp1 = 0 ;
7425 int res1 = 0 ;
7426 PyObject *swig_obj[1] ;
7427
7428 if (!args) SWIG_fail;
7429 swig_obj[0] = args;
7430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7431 if (!SWIG_IsOK(res1)) {
7432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7433 }
7434 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7435 {
7436 result = ((wxNativePixelData const *)arg1)->GetPixels();
7437 if (PyErr_Occurred()) SWIG_fail;
7438 }
7439 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7440 return resultobj;
7441 fail:
7442 return NULL;
7443 }
7444
7445
7446 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7447 PyObject *resultobj = 0;
7448 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7449 void *argp1 = 0 ;
7450 int res1 = 0 ;
7451 PyObject *swig_obj[1] ;
7452
7453 if (!args) SWIG_fail;
7454 swig_obj[0] = args;
7455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7458 }
7459 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7460 {
7461 (arg1)->UseAlpha();
7462 if (PyErr_Occurred()) SWIG_fail;
7463 }
7464 resultobj = SWIG_Py_Void();
7465 return resultobj;
7466 fail:
7467 return NULL;
7468 }
7469
7470
7471 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7472 PyObject *resultobj = 0;
7473 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7474 bool result;
7475 void *argp1 = 0 ;
7476 int res1 = 0 ;
7477 PyObject *swig_obj[1] ;
7478
7479 if (!args) SWIG_fail;
7480 swig_obj[0] = args;
7481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7482 if (!SWIG_IsOK(res1)) {
7483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7484 }
7485 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7486 {
7487 result = (bool)wxNativePixelData___nonzero__(arg1);
7488 if (PyErr_Occurred()) SWIG_fail;
7489 }
7490 {
7491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7492 }
7493 return resultobj;
7494 fail:
7495 return NULL;
7496 }
7497
7498
7499 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7500 PyObject *obj;
7501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7502 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7503 return SWIG_Py_Void();
7504 }
7505
7506 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7507 return SWIG_Python_InitShadowInstance(args);
7508 }
7509
7510 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7511 PyObject *resultobj = 0;
7512 wxNativePixelData *arg1 = 0 ;
7513 wxNativePixelData_Accessor *result = 0 ;
7514 void *argp1 = 0 ;
7515 int res1 = 0 ;
7516
7517 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7519 if (!SWIG_IsOK(res1)) {
7520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7521 }
7522 if (!argp1) {
7523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7524 }
7525 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7526 {
7527 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7538 PyObject *resultobj = 0;
7539 wxBitmap *arg1 = 0 ;
7540 wxNativePixelData *arg2 = 0 ;
7541 wxNativePixelData_Accessor *result = 0 ;
7542 void *argp1 = 0 ;
7543 int res1 = 0 ;
7544 void *argp2 = 0 ;
7545 int res2 = 0 ;
7546
7547 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7549 if (!SWIG_IsOK(res1)) {
7550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7551 }
7552 if (!argp1) {
7553 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7554 }
7555 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7556 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7557 if (!SWIG_IsOK(res2)) {
7558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7559 }
7560 if (!argp2) {
7561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7562 }
7563 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7564 {
7565 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7566 if (PyErr_Occurred()) SWIG_fail;
7567 }
7568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7569 return resultobj;
7570 fail:
7571 return NULL;
7572 }
7573
7574
7575 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7576 PyObject *resultobj = 0;
7577 wxNativePixelData_Accessor *result = 0 ;
7578
7579 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7580 {
7581 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7582 if (PyErr_Occurred()) SWIG_fail;
7583 }
7584 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7585 return resultobj;
7586 fail:
7587 return NULL;
7588 }
7589
7590
7591 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7592 int argc;
7593 PyObject *argv[3];
7594
7595 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7596 --argc;
7597 if (argc == 0) {
7598 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7599 }
7600 if (argc == 1) {
7601 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7602 }
7603 if (argc == 2) {
7604 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7605 }
7606
7607 fail:
7608 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7609 return NULL;
7610 }
7611
7612
7613 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7614 PyObject *resultobj = 0;
7615 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7616 void *argp1 = 0 ;
7617 int res1 = 0 ;
7618 PyObject *swig_obj[1] ;
7619
7620 if (!args) SWIG_fail;
7621 swig_obj[0] = args;
7622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7623 if (!SWIG_IsOK(res1)) {
7624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7625 }
7626 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7627 {
7628 delete arg1;
7629
7630 if (PyErr_Occurred()) SWIG_fail;
7631 }
7632 resultobj = SWIG_Py_Void();
7633 return resultobj;
7634 fail:
7635 return NULL;
7636 }
7637
7638
7639 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7640 PyObject *resultobj = 0;
7641 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7642 wxNativePixelData *arg2 = 0 ;
7643 void *argp1 = 0 ;
7644 int res1 = 0 ;
7645 void *argp2 = 0 ;
7646 int res2 = 0 ;
7647 PyObject * obj0 = 0 ;
7648 PyObject * obj1 = 0 ;
7649 char * kwnames[] = {
7650 (char *) "self",(char *) "data", NULL
7651 };
7652
7653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7655 if (!SWIG_IsOK(res1)) {
7656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7657 }
7658 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7659 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7660 if (!SWIG_IsOK(res2)) {
7661 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7662 }
7663 if (!argp2) {
7664 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7665 }
7666 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7667 {
7668 (arg1)->Reset((wxNativePixelData const &)*arg2);
7669 if (PyErr_Occurred()) SWIG_fail;
7670 }
7671 resultobj = SWIG_Py_Void();
7672 return resultobj;
7673 fail:
7674 return NULL;
7675 }
7676
7677
7678 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7679 PyObject *resultobj = 0;
7680 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7681 bool result;
7682 void *argp1 = 0 ;
7683 int res1 = 0 ;
7684 PyObject *swig_obj[1] ;
7685
7686 if (!args) SWIG_fail;
7687 swig_obj[0] = args;
7688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7689 if (!SWIG_IsOK(res1)) {
7690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7691 }
7692 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7693 {
7694 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7695 if (PyErr_Occurred()) SWIG_fail;
7696 }
7697 {
7698 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7699 }
7700 return resultobj;
7701 fail:
7702 return NULL;
7703 }
7704
7705
7706 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7707 PyObject *resultobj = 0;
7708 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7709 void *argp1 = 0 ;
7710 int res1 = 0 ;
7711 PyObject *swig_obj[1] ;
7712
7713 if (!args) SWIG_fail;
7714 swig_obj[0] = args;
7715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7716 if (!SWIG_IsOK(res1)) {
7717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7718 }
7719 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7720 {
7721 wxNativePixelData_Accessor_nextPixel(arg1);
7722 if (PyErr_Occurred()) SWIG_fail;
7723 }
7724 resultobj = SWIG_Py_Void();
7725 return resultobj;
7726 fail:
7727 return NULL;
7728 }
7729
7730
7731 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7732 PyObject *resultobj = 0;
7733 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7734 wxNativePixelData *arg2 = 0 ;
7735 int arg3 ;
7736 int arg4 ;
7737 void *argp1 = 0 ;
7738 int res1 = 0 ;
7739 void *argp2 = 0 ;
7740 int res2 = 0 ;
7741 int val3 ;
7742 int ecode3 = 0 ;
7743 int val4 ;
7744 int ecode4 = 0 ;
7745 PyObject * obj0 = 0 ;
7746 PyObject * obj1 = 0 ;
7747 PyObject * obj2 = 0 ;
7748 PyObject * obj3 = 0 ;
7749 char * kwnames[] = {
7750 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7751 };
7752
7753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7755 if (!SWIG_IsOK(res1)) {
7756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7757 }
7758 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7759 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7760 if (!SWIG_IsOK(res2)) {
7761 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7762 }
7763 if (!argp2) {
7764 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7765 }
7766 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7767 ecode3 = SWIG_AsVal_int(obj2, &val3);
7768 if (!SWIG_IsOK(ecode3)) {
7769 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7770 }
7771 arg3 = static_cast< int >(val3);
7772 ecode4 = SWIG_AsVal_int(obj3, &val4);
7773 if (!SWIG_IsOK(ecode4)) {
7774 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7775 }
7776 arg4 = static_cast< int >(val4);
7777 {
7778 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7779 if (PyErr_Occurred()) SWIG_fail;
7780 }
7781 resultobj = SWIG_Py_Void();
7782 return resultobj;
7783 fail:
7784 return NULL;
7785 }
7786
7787
7788 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7789 PyObject *resultobj = 0;
7790 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7791 wxNativePixelData *arg2 = 0 ;
7792 int arg3 ;
7793 void *argp1 = 0 ;
7794 int res1 = 0 ;
7795 void *argp2 = 0 ;
7796 int res2 = 0 ;
7797 int val3 ;
7798 int ecode3 = 0 ;
7799 PyObject * obj0 = 0 ;
7800 PyObject * obj1 = 0 ;
7801 PyObject * obj2 = 0 ;
7802 char * kwnames[] = {
7803 (char *) "self",(char *) "data",(char *) "x", NULL
7804 };
7805
7806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7808 if (!SWIG_IsOK(res1)) {
7809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7810 }
7811 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7812 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7813 if (!SWIG_IsOK(res2)) {
7814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7815 }
7816 if (!argp2) {
7817 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7818 }
7819 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7820 ecode3 = SWIG_AsVal_int(obj2, &val3);
7821 if (!SWIG_IsOK(ecode3)) {
7822 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7823 }
7824 arg3 = static_cast< int >(val3);
7825 {
7826 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7827 if (PyErr_Occurred()) SWIG_fail;
7828 }
7829 resultobj = SWIG_Py_Void();
7830 return resultobj;
7831 fail:
7832 return NULL;
7833 }
7834
7835
7836 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7837 PyObject *resultobj = 0;
7838 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7839 wxNativePixelData *arg2 = 0 ;
7840 int arg3 ;
7841 void *argp1 = 0 ;
7842 int res1 = 0 ;
7843 void *argp2 = 0 ;
7844 int res2 = 0 ;
7845 int val3 ;
7846 int ecode3 = 0 ;
7847 PyObject * obj0 = 0 ;
7848 PyObject * obj1 = 0 ;
7849 PyObject * obj2 = 0 ;
7850 char * kwnames[] = {
7851 (char *) "self",(char *) "data",(char *) "y", NULL
7852 };
7853
7854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7856 if (!SWIG_IsOK(res1)) {
7857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7858 }
7859 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7860 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7861 if (!SWIG_IsOK(res2)) {
7862 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7863 }
7864 if (!argp2) {
7865 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7866 }
7867 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7868 ecode3 = SWIG_AsVal_int(obj2, &val3);
7869 if (!SWIG_IsOK(ecode3)) {
7870 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7871 }
7872 arg3 = static_cast< int >(val3);
7873 {
7874 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7875 if (PyErr_Occurred()) SWIG_fail;
7876 }
7877 resultobj = SWIG_Py_Void();
7878 return resultobj;
7879 fail:
7880 return NULL;
7881 }
7882
7883
7884 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7885 PyObject *resultobj = 0;
7886 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7887 wxNativePixelData *arg2 = 0 ;
7888 int arg3 ;
7889 int arg4 ;
7890 void *argp1 = 0 ;
7891 int res1 = 0 ;
7892 void *argp2 = 0 ;
7893 int res2 = 0 ;
7894 int val3 ;
7895 int ecode3 = 0 ;
7896 int val4 ;
7897 int ecode4 = 0 ;
7898 PyObject * obj0 = 0 ;
7899 PyObject * obj1 = 0 ;
7900 PyObject * obj2 = 0 ;
7901 PyObject * obj3 = 0 ;
7902 char * kwnames[] = {
7903 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7904 };
7905
7906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7908 if (!SWIG_IsOK(res1)) {
7909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7910 }
7911 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7913 if (!SWIG_IsOK(res2)) {
7914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7915 }
7916 if (!argp2) {
7917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7918 }
7919 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7920 ecode3 = SWIG_AsVal_int(obj2, &val3);
7921 if (!SWIG_IsOK(ecode3)) {
7922 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7923 }
7924 arg3 = static_cast< int >(val3);
7925 ecode4 = SWIG_AsVal_int(obj3, &val4);
7926 if (!SWIG_IsOK(ecode4)) {
7927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7928 }
7929 arg4 = static_cast< int >(val4);
7930 {
7931 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7932 if (PyErr_Occurred()) SWIG_fail;
7933 }
7934 resultobj = SWIG_Py_Void();
7935 return resultobj;
7936 fail:
7937 return NULL;
7938 }
7939
7940
7941 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7942 PyObject *resultobj = 0;
7943 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7944 byte arg2 ;
7945 byte arg3 ;
7946 byte arg4 ;
7947 void *argp1 = 0 ;
7948 int res1 = 0 ;
7949 unsigned char val2 ;
7950 int ecode2 = 0 ;
7951 unsigned char val3 ;
7952 int ecode3 = 0 ;
7953 unsigned char val4 ;
7954 int ecode4 = 0 ;
7955 PyObject * obj0 = 0 ;
7956 PyObject * obj1 = 0 ;
7957 PyObject * obj2 = 0 ;
7958 PyObject * obj3 = 0 ;
7959 char * kwnames[] = {
7960 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7961 };
7962
7963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7965 if (!SWIG_IsOK(res1)) {
7966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7967 }
7968 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7969 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7970 if (!SWIG_IsOK(ecode2)) {
7971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7972 }
7973 arg2 = static_cast< byte >(val2);
7974 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7975 if (!SWIG_IsOK(ecode3)) {
7976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7977 }
7978 arg3 = static_cast< byte >(val3);
7979 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7980 if (!SWIG_IsOK(ecode4)) {
7981 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7982 }
7983 arg4 = static_cast< byte >(val4);
7984 {
7985 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
7986 if (PyErr_Occurred()) SWIG_fail;
7987 }
7988 resultobj = SWIG_Py_Void();
7989 return resultobj;
7990 fail:
7991 return NULL;
7992 }
7993
7994
7995 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7996 PyObject *resultobj = 0;
7997 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7998 PyObject *result = 0 ;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 PyObject *swig_obj[1] ;
8002
8003 if (!args) SWIG_fail;
8004 swig_obj[0] = args;
8005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8008 }
8009 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8010 {
8011 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8012 if (PyErr_Occurred()) SWIG_fail;
8013 }
8014 resultobj = result;
8015 return resultobj;
8016 fail:
8017 return NULL;
8018 }
8019
8020
8021 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8022 PyObject *obj;
8023 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8024 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8025 return SWIG_Py_Void();
8026 }
8027
8028 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8029 return SWIG_Python_InitShadowInstance(args);
8030 }
8031
8032 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8033 PyObject *resultobj = 0;
8034 wxBitmap *arg1 = 0 ;
8035 wxAlphaPixelData *result = 0 ;
8036 void *argp1 = 0 ;
8037 int res1 = 0 ;
8038
8039 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8041 if (!SWIG_IsOK(res1)) {
8042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8043 }
8044 if (!argp1) {
8045 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8046 }
8047 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8048 {
8049 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8050 if (PyErr_Occurred()) SWIG_fail;
8051 }
8052 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8053 return resultobj;
8054 fail:
8055 return NULL;
8056 }
8057
8058
8059 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8060 PyObject *resultobj = 0;
8061 wxBitmap *arg1 = 0 ;
8062 wxRect *arg2 = 0 ;
8063 wxAlphaPixelData *result = 0 ;
8064 void *argp1 = 0 ;
8065 int res1 = 0 ;
8066 wxRect temp2 ;
8067
8068 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8070 if (!SWIG_IsOK(res1)) {
8071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8072 }
8073 if (!argp1) {
8074 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8075 }
8076 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8077 {
8078 arg2 = &temp2;
8079 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8080 }
8081 {
8082 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8083 if (PyErr_Occurred()) SWIG_fail;
8084 }
8085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8086 return resultobj;
8087 fail:
8088 return NULL;
8089 }
8090
8091
8092 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8093 PyObject *resultobj = 0;
8094 wxBitmap *arg1 = 0 ;
8095 wxPoint *arg2 = 0 ;
8096 wxSize *arg3 = 0 ;
8097 wxAlphaPixelData *result = 0 ;
8098 void *argp1 = 0 ;
8099 int res1 = 0 ;
8100 wxPoint temp2 ;
8101 wxSize temp3 ;
8102
8103 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8105 if (!SWIG_IsOK(res1)) {
8106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8107 }
8108 if (!argp1) {
8109 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8110 }
8111 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8112 {
8113 arg2 = &temp2;
8114 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8115 }
8116 {
8117 arg3 = &temp3;
8118 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8119 }
8120 {
8121 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8122 if (PyErr_Occurred()) SWIG_fail;
8123 }
8124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8125 return resultobj;
8126 fail:
8127 return NULL;
8128 }
8129
8130
8131 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8132 int argc;
8133 PyObject *argv[4];
8134
8135 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8136 --argc;
8137 if (argc == 1) {
8138 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8139 }
8140 if (argc == 2) {
8141 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8142 }
8143 if (argc == 3) {
8144 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8145 }
8146
8147 fail:
8148 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8149 return NULL;
8150 }
8151
8152
8153 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8154 PyObject *resultobj = 0;
8155 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8156 void *argp1 = 0 ;
8157 int res1 = 0 ;
8158 PyObject *swig_obj[1] ;
8159
8160 if (!args) SWIG_fail;
8161 swig_obj[0] = args;
8162 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8163 if (!SWIG_IsOK(res1)) {
8164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8165 }
8166 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8167 {
8168 delete arg1;
8169
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_Py_Void();
8173 return resultobj;
8174 fail:
8175 return NULL;
8176 }
8177
8178
8179 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8180 PyObject *resultobj = 0;
8181 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8182 wxAlphaPixelData_Accessor result;
8183 void *argp1 = 0 ;
8184 int res1 = 0 ;
8185 PyObject *swig_obj[1] ;
8186
8187 if (!args) SWIG_fail;
8188 swig_obj[0] = args;
8189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8190 if (!SWIG_IsOK(res1)) {
8191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8192 }
8193 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8194 {
8195 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8196 if (PyErr_Occurred()) SWIG_fail;
8197 }
8198 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8199 return resultobj;
8200 fail:
8201 return NULL;
8202 }
8203
8204
8205 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8206 PyObject *resultobj = 0;
8207 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8208 void *argp1 = 0 ;
8209 int res1 = 0 ;
8210 PyObject *swig_obj[1] ;
8211
8212 if (!args) SWIG_fail;
8213 swig_obj[0] = args;
8214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8215 if (!SWIG_IsOK(res1)) {
8216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8217 }
8218 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8219 {
8220 (arg1)->UseAlpha();
8221 if (PyErr_Occurred()) SWIG_fail;
8222 }
8223 resultobj = SWIG_Py_Void();
8224 return resultobj;
8225 fail:
8226 return NULL;
8227 }
8228
8229
8230 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8231 PyObject *resultobj = 0;
8232 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8233 bool result;
8234 void *argp1 = 0 ;
8235 int res1 = 0 ;
8236 PyObject *swig_obj[1] ;
8237
8238 if (!args) SWIG_fail;
8239 swig_obj[0] = args;
8240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8241 if (!SWIG_IsOK(res1)) {
8242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8243 }
8244 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8245 {
8246 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 {
8250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8251 }
8252 return resultobj;
8253 fail:
8254 return NULL;
8255 }
8256
8257
8258 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8259 PyObject *obj;
8260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8261 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8262 return SWIG_Py_Void();
8263 }
8264
8265 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8266 return SWIG_Python_InitShadowInstance(args);
8267 }
8268
8269 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8270 PyObject *resultobj = 0;
8271 wxAlphaPixelData *arg1 = 0 ;
8272 wxAlphaPixelData_Accessor *result = 0 ;
8273 void *argp1 = 0 ;
8274 int res1 = 0 ;
8275
8276 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8277 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8278 if (!SWIG_IsOK(res1)) {
8279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8280 }
8281 if (!argp1) {
8282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8283 }
8284 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8285 {
8286 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8287 if (PyErr_Occurred()) SWIG_fail;
8288 }
8289 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8290 return resultobj;
8291 fail:
8292 return NULL;
8293 }
8294
8295
8296 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8297 PyObject *resultobj = 0;
8298 wxBitmap *arg1 = 0 ;
8299 wxAlphaPixelData *arg2 = 0 ;
8300 wxAlphaPixelData_Accessor *result = 0 ;
8301 void *argp1 = 0 ;
8302 int res1 = 0 ;
8303 void *argp2 = 0 ;
8304 int res2 = 0 ;
8305
8306 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8307 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8308 if (!SWIG_IsOK(res1)) {
8309 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8310 }
8311 if (!argp1) {
8312 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8313 }
8314 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8315 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8316 if (!SWIG_IsOK(res2)) {
8317 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8318 }
8319 if (!argp2) {
8320 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8321 }
8322 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8323 {
8324 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8325 if (PyErr_Occurred()) SWIG_fail;
8326 }
8327 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8328 return resultobj;
8329 fail:
8330 return NULL;
8331 }
8332
8333
8334 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8335 PyObject *resultobj = 0;
8336 wxAlphaPixelData_Accessor *result = 0 ;
8337
8338 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8339 {
8340 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8341 if (PyErr_Occurred()) SWIG_fail;
8342 }
8343 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8344 return resultobj;
8345 fail:
8346 return NULL;
8347 }
8348
8349
8350 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8351 int argc;
8352 PyObject *argv[3];
8353
8354 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8355 --argc;
8356 if (argc == 0) {
8357 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8358 }
8359 if (argc == 1) {
8360 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8361 }
8362 if (argc == 2) {
8363 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8364 }
8365
8366 fail:
8367 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8368 return NULL;
8369 }
8370
8371
8372 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8373 PyObject *resultobj = 0;
8374 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8375 void *argp1 = 0 ;
8376 int res1 = 0 ;
8377 PyObject *swig_obj[1] ;
8378
8379 if (!args) SWIG_fail;
8380 swig_obj[0] = args;
8381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8382 if (!SWIG_IsOK(res1)) {
8383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8384 }
8385 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8386 {
8387 delete arg1;
8388
8389 if (PyErr_Occurred()) SWIG_fail;
8390 }
8391 resultobj = SWIG_Py_Void();
8392 return resultobj;
8393 fail:
8394 return NULL;
8395 }
8396
8397
8398 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8399 PyObject *resultobj = 0;
8400 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8401 wxAlphaPixelData *arg2 = 0 ;
8402 void *argp1 = 0 ;
8403 int res1 = 0 ;
8404 void *argp2 = 0 ;
8405 int res2 = 0 ;
8406 PyObject * obj0 = 0 ;
8407 PyObject * obj1 = 0 ;
8408 char * kwnames[] = {
8409 (char *) "self",(char *) "data", NULL
8410 };
8411
8412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8413 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8414 if (!SWIG_IsOK(res1)) {
8415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8416 }
8417 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8418 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8419 if (!SWIG_IsOK(res2)) {
8420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8421 }
8422 if (!argp2) {
8423 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8424 }
8425 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8426 {
8427 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8428 if (PyErr_Occurred()) SWIG_fail;
8429 }
8430 resultobj = SWIG_Py_Void();
8431 return resultobj;
8432 fail:
8433 return NULL;
8434 }
8435
8436
8437 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8438 PyObject *resultobj = 0;
8439 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8440 bool result;
8441 void *argp1 = 0 ;
8442 int res1 = 0 ;
8443 PyObject *swig_obj[1] ;
8444
8445 if (!args) SWIG_fail;
8446 swig_obj[0] = args;
8447 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8448 if (!SWIG_IsOK(res1)) {
8449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8450 }
8451 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8452 {
8453 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8454 if (PyErr_Occurred()) SWIG_fail;
8455 }
8456 {
8457 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8458 }
8459 return resultobj;
8460 fail:
8461 return NULL;
8462 }
8463
8464
8465 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8466 PyObject *resultobj = 0;
8467 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8468 void *argp1 = 0 ;
8469 int res1 = 0 ;
8470 PyObject *swig_obj[1] ;
8471
8472 if (!args) SWIG_fail;
8473 swig_obj[0] = args;
8474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8475 if (!SWIG_IsOK(res1)) {
8476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8477 }
8478 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8479 {
8480 wxAlphaPixelData_Accessor_nextPixel(arg1);
8481 if (PyErr_Occurred()) SWIG_fail;
8482 }
8483 resultobj = SWIG_Py_Void();
8484 return resultobj;
8485 fail:
8486 return NULL;
8487 }
8488
8489
8490 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8491 PyObject *resultobj = 0;
8492 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8493 wxAlphaPixelData *arg2 = 0 ;
8494 int arg3 ;
8495 int arg4 ;
8496 void *argp1 = 0 ;
8497 int res1 = 0 ;
8498 void *argp2 = 0 ;
8499 int res2 = 0 ;
8500 int val3 ;
8501 int ecode3 = 0 ;
8502 int val4 ;
8503 int ecode4 = 0 ;
8504 PyObject * obj0 = 0 ;
8505 PyObject * obj1 = 0 ;
8506 PyObject * obj2 = 0 ;
8507 PyObject * obj3 = 0 ;
8508 char * kwnames[] = {
8509 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8510 };
8511
8512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8514 if (!SWIG_IsOK(res1)) {
8515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8516 }
8517 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8519 if (!SWIG_IsOK(res2)) {
8520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8521 }
8522 if (!argp2) {
8523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8524 }
8525 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8526 ecode3 = SWIG_AsVal_int(obj2, &val3);
8527 if (!SWIG_IsOK(ecode3)) {
8528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8529 }
8530 arg3 = static_cast< int >(val3);
8531 ecode4 = SWIG_AsVal_int(obj3, &val4);
8532 if (!SWIG_IsOK(ecode4)) {
8533 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8534 }
8535 arg4 = static_cast< int >(val4);
8536 {
8537 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_Py_Void();
8541 return resultobj;
8542 fail:
8543 return NULL;
8544 }
8545
8546
8547 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj = 0;
8549 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8550 wxAlphaPixelData *arg2 = 0 ;
8551 int arg3 ;
8552 void *argp1 = 0 ;
8553 int res1 = 0 ;
8554 void *argp2 = 0 ;
8555 int res2 = 0 ;
8556 int val3 ;
8557 int ecode3 = 0 ;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 PyObject * obj2 = 0 ;
8561 char * kwnames[] = {
8562 (char *) "self",(char *) "data",(char *) "x", NULL
8563 };
8564
8565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8567 if (!SWIG_IsOK(res1)) {
8568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8569 }
8570 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8571 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8572 if (!SWIG_IsOK(res2)) {
8573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8574 }
8575 if (!argp2) {
8576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8577 }
8578 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8579 ecode3 = SWIG_AsVal_int(obj2, &val3);
8580 if (!SWIG_IsOK(ecode3)) {
8581 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8582 }
8583 arg3 = static_cast< int >(val3);
8584 {
8585 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 resultobj = SWIG_Py_Void();
8589 return resultobj;
8590 fail:
8591 return NULL;
8592 }
8593
8594
8595 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8596 PyObject *resultobj = 0;
8597 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8598 wxAlphaPixelData *arg2 = 0 ;
8599 int arg3 ;
8600 void *argp1 = 0 ;
8601 int res1 = 0 ;
8602 void *argp2 = 0 ;
8603 int res2 = 0 ;
8604 int val3 ;
8605 int ecode3 = 0 ;
8606 PyObject * obj0 = 0 ;
8607 PyObject * obj1 = 0 ;
8608 PyObject * obj2 = 0 ;
8609 char * kwnames[] = {
8610 (char *) "self",(char *) "data",(char *) "y", NULL
8611 };
8612
8613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8615 if (!SWIG_IsOK(res1)) {
8616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8617 }
8618 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8619 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8620 if (!SWIG_IsOK(res2)) {
8621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8622 }
8623 if (!argp2) {
8624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8625 }
8626 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8627 ecode3 = SWIG_AsVal_int(obj2, &val3);
8628 if (!SWIG_IsOK(ecode3)) {
8629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8630 }
8631 arg3 = static_cast< int >(val3);
8632 {
8633 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 resultobj = SWIG_Py_Void();
8637 return resultobj;
8638 fail:
8639 return NULL;
8640 }
8641
8642
8643 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8644 PyObject *resultobj = 0;
8645 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8646 wxAlphaPixelData *arg2 = 0 ;
8647 int arg3 ;
8648 int arg4 ;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 void *argp2 = 0 ;
8652 int res2 = 0 ;
8653 int val3 ;
8654 int ecode3 = 0 ;
8655 int val4 ;
8656 int ecode4 = 0 ;
8657 PyObject * obj0 = 0 ;
8658 PyObject * obj1 = 0 ;
8659 PyObject * obj2 = 0 ;
8660 PyObject * obj3 = 0 ;
8661 char * kwnames[] = {
8662 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8663 };
8664
8665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8667 if (!SWIG_IsOK(res1)) {
8668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8669 }
8670 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8672 if (!SWIG_IsOK(res2)) {
8673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8674 }
8675 if (!argp2) {
8676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8677 }
8678 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8679 ecode3 = SWIG_AsVal_int(obj2, &val3);
8680 if (!SWIG_IsOK(ecode3)) {
8681 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8682 }
8683 arg3 = static_cast< int >(val3);
8684 ecode4 = SWIG_AsVal_int(obj3, &val4);
8685 if (!SWIG_IsOK(ecode4)) {
8686 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8687 }
8688 arg4 = static_cast< int >(val4);
8689 {
8690 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8691 if (PyErr_Occurred()) SWIG_fail;
8692 }
8693 resultobj = SWIG_Py_Void();
8694 return resultobj;
8695 fail:
8696 return NULL;
8697 }
8698
8699
8700 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8701 PyObject *resultobj = 0;
8702 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8703 byte arg2 ;
8704 byte arg3 ;
8705 byte arg4 ;
8706 byte arg5 ;
8707 void *argp1 = 0 ;
8708 int res1 = 0 ;
8709 unsigned char val2 ;
8710 int ecode2 = 0 ;
8711 unsigned char val3 ;
8712 int ecode3 = 0 ;
8713 unsigned char val4 ;
8714 int ecode4 = 0 ;
8715 unsigned char val5 ;
8716 int ecode5 = 0 ;
8717 PyObject * obj0 = 0 ;
8718 PyObject * obj1 = 0 ;
8719 PyObject * obj2 = 0 ;
8720 PyObject * obj3 = 0 ;
8721 PyObject * obj4 = 0 ;
8722 char * kwnames[] = {
8723 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8724 };
8725
8726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8728 if (!SWIG_IsOK(res1)) {
8729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8730 }
8731 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8732 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8733 if (!SWIG_IsOK(ecode2)) {
8734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8735 }
8736 arg2 = static_cast< byte >(val2);
8737 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8738 if (!SWIG_IsOK(ecode3)) {
8739 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8740 }
8741 arg3 = static_cast< byte >(val3);
8742 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8743 if (!SWIG_IsOK(ecode4)) {
8744 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8745 }
8746 arg4 = static_cast< byte >(val4);
8747 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8748 if (!SWIG_IsOK(ecode5)) {
8749 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8750 }
8751 arg5 = static_cast< byte >(val5);
8752 {
8753 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8754 if (PyErr_Occurred()) SWIG_fail;
8755 }
8756 resultobj = SWIG_Py_Void();
8757 return resultobj;
8758 fail:
8759 return NULL;
8760 }
8761
8762
8763 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8764 PyObject *resultobj = 0;
8765 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8766 PyObject *result = 0 ;
8767 void *argp1 = 0 ;
8768 int res1 = 0 ;
8769 PyObject *swig_obj[1] ;
8770
8771 if (!args) SWIG_fail;
8772 swig_obj[0] = args;
8773 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8774 if (!SWIG_IsOK(res1)) {
8775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8776 }
8777 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8778 {
8779 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8780 if (PyErr_Occurred()) SWIG_fail;
8781 }
8782 resultobj = result;
8783 return resultobj;
8784 fail:
8785 return NULL;
8786 }
8787
8788
8789 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8790 PyObject *obj;
8791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8792 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8793 return SWIG_Py_Void();
8794 }
8795
8796 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8797 return SWIG_Python_InitShadowInstance(args);
8798 }
8799
8800 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8801 PyObject *resultobj = 0;
8802 wxBitmap *arg1 = 0 ;
8803 wxColour const &arg2_defvalue = wxNullColour ;
8804 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8805 wxMask *result = 0 ;
8806 void *argp1 = 0 ;
8807 int res1 = 0 ;
8808 wxColour temp2 ;
8809 PyObject * obj0 = 0 ;
8810 PyObject * obj1 = 0 ;
8811 char * kwnames[] = {
8812 (char *) "bitmap",(char *) "colour", NULL
8813 };
8814
8815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8816 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8817 if (!SWIG_IsOK(res1)) {
8818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8819 }
8820 if (!argp1) {
8821 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8822 }
8823 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8824 if (obj1) {
8825 {
8826 arg2 = &temp2;
8827 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8828 }
8829 }
8830 {
8831 if (!wxPyCheckForApp()) SWIG_fail;
8832 PyThreadState* __tstate = wxPyBeginAllowThreads();
8833 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8834 wxPyEndAllowThreads(__tstate);
8835 if (PyErr_Occurred()) SWIG_fail;
8836 }
8837 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8838 return resultobj;
8839 fail:
8840 return NULL;
8841 }
8842
8843
8844 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8845 PyObject *resultobj = 0;
8846 wxMask *arg1 = (wxMask *) 0 ;
8847 void *argp1 = 0 ;
8848 int res1 = 0 ;
8849 PyObject *swig_obj[1] ;
8850
8851 if (!args) SWIG_fail;
8852 swig_obj[0] = args;
8853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8854 if (!SWIG_IsOK(res1)) {
8855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8856 }
8857 arg1 = reinterpret_cast< wxMask * >(argp1);
8858 {
8859 delete arg1;
8860
8861 if (PyErr_Occurred()) SWIG_fail;
8862 }
8863 resultobj = SWIG_Py_Void();
8864 return resultobj;
8865 fail:
8866 return NULL;
8867 }
8868
8869
8870 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8871 PyObject *obj;
8872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8873 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8874 return SWIG_Py_Void();
8875 }
8876
8877 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8878 return SWIG_Python_InitShadowInstance(args);
8879 }
8880
8881 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj = 0;
8883 wxString *arg1 = 0 ;
8884 wxBitmapType arg2 ;
8885 int arg3 = (int) -1 ;
8886 int arg4 = (int) -1 ;
8887 wxIcon *result = 0 ;
8888 bool temp1 = false ;
8889 int val2 ;
8890 int ecode2 = 0 ;
8891 int val3 ;
8892 int ecode3 = 0 ;
8893 int val4 ;
8894 int ecode4 = 0 ;
8895 PyObject * obj0 = 0 ;
8896 PyObject * obj1 = 0 ;
8897 PyObject * obj2 = 0 ;
8898 PyObject * obj3 = 0 ;
8899 char * kwnames[] = {
8900 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8901 };
8902
8903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8904 {
8905 arg1 = wxString_in_helper(obj0);
8906 if (arg1 == NULL) SWIG_fail;
8907 temp1 = true;
8908 }
8909 ecode2 = SWIG_AsVal_int(obj1, &val2);
8910 if (!SWIG_IsOK(ecode2)) {
8911 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8912 }
8913 arg2 = static_cast< wxBitmapType >(val2);
8914 if (obj2) {
8915 ecode3 = SWIG_AsVal_int(obj2, &val3);
8916 if (!SWIG_IsOK(ecode3)) {
8917 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8918 }
8919 arg3 = static_cast< int >(val3);
8920 }
8921 if (obj3) {
8922 ecode4 = SWIG_AsVal_int(obj3, &val4);
8923 if (!SWIG_IsOK(ecode4)) {
8924 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8925 }
8926 arg4 = static_cast< int >(val4);
8927 }
8928 {
8929 if (!wxPyCheckForApp()) SWIG_fail;
8930 PyThreadState* __tstate = wxPyBeginAllowThreads();
8931 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8932 wxPyEndAllowThreads(__tstate);
8933 if (PyErr_Occurred()) SWIG_fail;
8934 }
8935 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8936 {
8937 if (temp1)
8938 delete arg1;
8939 }
8940 return resultobj;
8941 fail:
8942 {
8943 if (temp1)
8944 delete arg1;
8945 }
8946 return NULL;
8947 }
8948
8949
8950 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8951 PyObject *resultobj = 0;
8952 wxIcon *arg1 = (wxIcon *) 0 ;
8953 void *argp1 = 0 ;
8954 int res1 = 0 ;
8955 PyObject *swig_obj[1] ;
8956
8957 if (!args) SWIG_fail;
8958 swig_obj[0] = args;
8959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8960 if (!SWIG_IsOK(res1)) {
8961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8962 }
8963 arg1 = reinterpret_cast< wxIcon * >(argp1);
8964 {
8965 PyThreadState* __tstate = wxPyBeginAllowThreads();
8966 delete arg1;
8967
8968 wxPyEndAllowThreads(__tstate);
8969 if (PyErr_Occurred()) SWIG_fail;
8970 }
8971 resultobj = SWIG_Py_Void();
8972 return resultobj;
8973 fail:
8974 return NULL;
8975 }
8976
8977
8978 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8979 PyObject *resultobj = 0;
8980 wxIcon *result = 0 ;
8981
8982 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8983 {
8984 if (!wxPyCheckForApp()) SWIG_fail;
8985 PyThreadState* __tstate = wxPyBeginAllowThreads();
8986 result = (wxIcon *)new wxIcon();
8987 wxPyEndAllowThreads(__tstate);
8988 if (PyErr_Occurred()) SWIG_fail;
8989 }
8990 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
8991 return resultobj;
8992 fail:
8993 return NULL;
8994 }
8995
8996
8997 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8998 PyObject *resultobj = 0;
8999 wxIconLocation *arg1 = 0 ;
9000 wxIcon *result = 0 ;
9001 void *argp1 = 0 ;
9002 int res1 = 0 ;
9003 PyObject * obj0 = 0 ;
9004 char * kwnames[] = {
9005 (char *) "loc", NULL
9006 };
9007
9008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9009 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9010 if (!SWIG_IsOK(res1)) {
9011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9012 }
9013 if (!argp1) {
9014 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9015 }
9016 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9017 {
9018 if (!wxPyCheckForApp()) SWIG_fail;
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9025 return resultobj;
9026 fail:
9027 return NULL;
9028 }
9029
9030
9031 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9032 PyObject *resultobj = 0;
9033 wxBitmap *arg1 = 0 ;
9034 wxIcon *result = 0 ;
9035 void *argp1 = 0 ;
9036 int res1 = 0 ;
9037 PyObject * obj0 = 0 ;
9038 char * kwnames[] = {
9039 (char *) "bmp", NULL
9040 };
9041
9042 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9043 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9044 if (!SWIG_IsOK(res1)) {
9045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9046 }
9047 if (!argp1) {
9048 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9049 }
9050 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9051 {
9052 if (!wxPyCheckForApp()) SWIG_fail;
9053 PyThreadState* __tstate = wxPyBeginAllowThreads();
9054 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9055 wxPyEndAllowThreads(__tstate);
9056 if (PyErr_Occurred()) SWIG_fail;
9057 }
9058 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9059 return resultobj;
9060 fail:
9061 return NULL;
9062 }
9063
9064
9065 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9066 PyObject *resultobj = 0;
9067 PyObject *arg1 = (PyObject *) 0 ;
9068 wxIcon *result = 0 ;
9069 PyObject * obj0 = 0 ;
9070 char * kwnames[] = {
9071 (char *) "listOfStrings", NULL
9072 };
9073
9074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9075 arg1 = obj0;
9076 {
9077 if (!wxPyCheckForApp()) SWIG_fail;
9078 PyThreadState* __tstate = wxPyBeginAllowThreads();
9079 result = (wxIcon *)new_wxIcon(arg1);
9080 wxPyEndAllowThreads(__tstate);
9081 if (PyErr_Occurred()) SWIG_fail;
9082 }
9083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9084 return resultobj;
9085 fail:
9086 return NULL;
9087 }
9088
9089
9090 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9091 PyObject *resultobj = 0;
9092 wxIcon *arg1 = (wxIcon *) 0 ;
9093 wxString *arg2 = 0 ;
9094 wxBitmapType arg3 ;
9095 bool result;
9096 void *argp1 = 0 ;
9097 int res1 = 0 ;
9098 bool temp2 = false ;
9099 int val3 ;
9100 int ecode3 = 0 ;
9101 PyObject * obj0 = 0 ;
9102 PyObject * obj1 = 0 ;
9103 PyObject * obj2 = 0 ;
9104 char * kwnames[] = {
9105 (char *) "self",(char *) "name",(char *) "type", NULL
9106 };
9107
9108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9110 if (!SWIG_IsOK(res1)) {
9111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9112 }
9113 arg1 = reinterpret_cast< wxIcon * >(argp1);
9114 {
9115 arg2 = wxString_in_helper(obj1);
9116 if (arg2 == NULL) SWIG_fail;
9117 temp2 = true;
9118 }
9119 ecode3 = SWIG_AsVal_int(obj2, &val3);
9120 if (!SWIG_IsOK(ecode3)) {
9121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9122 }
9123 arg3 = static_cast< wxBitmapType >(val3);
9124 {
9125 PyThreadState* __tstate = wxPyBeginAllowThreads();
9126 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9127 wxPyEndAllowThreads(__tstate);
9128 if (PyErr_Occurred()) SWIG_fail;
9129 }
9130 {
9131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9132 }
9133 {
9134 if (temp2)
9135 delete arg2;
9136 }
9137 return resultobj;
9138 fail:
9139 {
9140 if (temp2)
9141 delete arg2;
9142 }
9143 return NULL;
9144 }
9145
9146
9147 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9148 PyObject *resultobj = 0;
9149 wxIcon *arg1 = (wxIcon *) 0 ;
9150 long result;
9151 void *argp1 = 0 ;
9152 int res1 = 0 ;
9153 PyObject *swig_obj[1] ;
9154
9155 if (!args) SWIG_fail;
9156 swig_obj[0] = args;
9157 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9158 if (!SWIG_IsOK(res1)) {
9159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9160 }
9161 arg1 = reinterpret_cast< wxIcon * >(argp1);
9162 {
9163 PyThreadState* __tstate = wxPyBeginAllowThreads();
9164 result = (long)(arg1)->GetHandle();
9165 wxPyEndAllowThreads(__tstate);
9166 if (PyErr_Occurred()) SWIG_fail;
9167 }
9168 resultobj = SWIG_From_long(static_cast< long >(result));
9169 return resultobj;
9170 fail:
9171 return NULL;
9172 }
9173
9174
9175 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9176 PyObject *resultobj = 0;
9177 wxIcon *arg1 = (wxIcon *) 0 ;
9178 long arg2 ;
9179 void *argp1 = 0 ;
9180 int res1 = 0 ;
9181 long val2 ;
9182 int ecode2 = 0 ;
9183 PyObject * obj0 = 0 ;
9184 PyObject * obj1 = 0 ;
9185 char * kwnames[] = {
9186 (char *) "self",(char *) "handle", NULL
9187 };
9188
9189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9191 if (!SWIG_IsOK(res1)) {
9192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9193 }
9194 arg1 = reinterpret_cast< wxIcon * >(argp1);
9195 ecode2 = SWIG_AsVal_long(obj1, &val2);
9196 if (!SWIG_IsOK(ecode2)) {
9197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9198 }
9199 arg2 = static_cast< long >(val2);
9200 {
9201 PyThreadState* __tstate = wxPyBeginAllowThreads();
9202 wxIcon_SetHandle(arg1,arg2);
9203 wxPyEndAllowThreads(__tstate);
9204 if (PyErr_Occurred()) SWIG_fail;
9205 }
9206 resultobj = SWIG_Py_Void();
9207 return resultobj;
9208 fail:
9209 return NULL;
9210 }
9211
9212
9213 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9214 PyObject *resultobj = 0;
9215 wxIcon *arg1 = (wxIcon *) 0 ;
9216 bool result;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 PyObject *swig_obj[1] ;
9220
9221 if (!args) SWIG_fail;
9222 swig_obj[0] = args;
9223 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9224 if (!SWIG_IsOK(res1)) {
9225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9226 }
9227 arg1 = reinterpret_cast< wxIcon * >(argp1);
9228 {
9229 PyThreadState* __tstate = wxPyBeginAllowThreads();
9230 result = (bool)(arg1)->IsOk();
9231 wxPyEndAllowThreads(__tstate);
9232 if (PyErr_Occurred()) SWIG_fail;
9233 }
9234 {
9235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9236 }
9237 return resultobj;
9238 fail:
9239 return NULL;
9240 }
9241
9242
9243 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9244 PyObject *resultobj = 0;
9245 wxIcon *arg1 = (wxIcon *) 0 ;
9246 int result;
9247 void *argp1 = 0 ;
9248 int res1 = 0 ;
9249 PyObject *swig_obj[1] ;
9250
9251 if (!args) SWIG_fail;
9252 swig_obj[0] = args;
9253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9254 if (!SWIG_IsOK(res1)) {
9255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9256 }
9257 arg1 = reinterpret_cast< wxIcon * >(argp1);
9258 {
9259 PyThreadState* __tstate = wxPyBeginAllowThreads();
9260 result = (int)(arg1)->GetWidth();
9261 wxPyEndAllowThreads(__tstate);
9262 if (PyErr_Occurred()) SWIG_fail;
9263 }
9264 resultobj = SWIG_From_int(static_cast< int >(result));
9265 return resultobj;
9266 fail:
9267 return NULL;
9268 }
9269
9270
9271 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9272 PyObject *resultobj = 0;
9273 wxIcon *arg1 = (wxIcon *) 0 ;
9274 int result;
9275 void *argp1 = 0 ;
9276 int res1 = 0 ;
9277 PyObject *swig_obj[1] ;
9278
9279 if (!args) SWIG_fail;
9280 swig_obj[0] = args;
9281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9282 if (!SWIG_IsOK(res1)) {
9283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9284 }
9285 arg1 = reinterpret_cast< wxIcon * >(argp1);
9286 {
9287 PyThreadState* __tstate = wxPyBeginAllowThreads();
9288 result = (int)(arg1)->GetHeight();
9289 wxPyEndAllowThreads(__tstate);
9290 if (PyErr_Occurred()) SWIG_fail;
9291 }
9292 resultobj = SWIG_From_int(static_cast< int >(result));
9293 return resultobj;
9294 fail:
9295 return NULL;
9296 }
9297
9298
9299 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9300 PyObject *resultobj = 0;
9301 wxIcon *arg1 = (wxIcon *) 0 ;
9302 int result;
9303 void *argp1 = 0 ;
9304 int res1 = 0 ;
9305 PyObject *swig_obj[1] ;
9306
9307 if (!args) SWIG_fail;
9308 swig_obj[0] = args;
9309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9310 if (!SWIG_IsOK(res1)) {
9311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9312 }
9313 arg1 = reinterpret_cast< wxIcon * >(argp1);
9314 {
9315 PyThreadState* __tstate = wxPyBeginAllowThreads();
9316 result = (int)(arg1)->GetDepth();
9317 wxPyEndAllowThreads(__tstate);
9318 if (PyErr_Occurred()) SWIG_fail;
9319 }
9320 resultobj = SWIG_From_int(static_cast< int >(result));
9321 return resultobj;
9322 fail:
9323 return NULL;
9324 }
9325
9326
9327 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9328 PyObject *resultobj = 0;
9329 wxIcon *arg1 = (wxIcon *) 0 ;
9330 int arg2 ;
9331 void *argp1 = 0 ;
9332 int res1 = 0 ;
9333 int val2 ;
9334 int ecode2 = 0 ;
9335 PyObject * obj0 = 0 ;
9336 PyObject * obj1 = 0 ;
9337 char * kwnames[] = {
9338 (char *) "self",(char *) "w", NULL
9339 };
9340
9341 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9342 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9343 if (!SWIG_IsOK(res1)) {
9344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9345 }
9346 arg1 = reinterpret_cast< wxIcon * >(argp1);
9347 ecode2 = SWIG_AsVal_int(obj1, &val2);
9348 if (!SWIG_IsOK(ecode2)) {
9349 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9350 }
9351 arg2 = static_cast< int >(val2);
9352 {
9353 PyThreadState* __tstate = wxPyBeginAllowThreads();
9354 (arg1)->SetWidth(arg2);
9355 wxPyEndAllowThreads(__tstate);
9356 if (PyErr_Occurred()) SWIG_fail;
9357 }
9358 resultobj = SWIG_Py_Void();
9359 return resultobj;
9360 fail:
9361 return NULL;
9362 }
9363
9364
9365 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9366 PyObject *resultobj = 0;
9367 wxIcon *arg1 = (wxIcon *) 0 ;
9368 int arg2 ;
9369 void *argp1 = 0 ;
9370 int res1 = 0 ;
9371 int val2 ;
9372 int ecode2 = 0 ;
9373 PyObject * obj0 = 0 ;
9374 PyObject * obj1 = 0 ;
9375 char * kwnames[] = {
9376 (char *) "self",(char *) "h", NULL
9377 };
9378
9379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9381 if (!SWIG_IsOK(res1)) {
9382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9383 }
9384 arg1 = reinterpret_cast< wxIcon * >(argp1);
9385 ecode2 = SWIG_AsVal_int(obj1, &val2);
9386 if (!SWIG_IsOK(ecode2)) {
9387 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9388 }
9389 arg2 = static_cast< int >(val2);
9390 {
9391 PyThreadState* __tstate = wxPyBeginAllowThreads();
9392 (arg1)->SetHeight(arg2);
9393 wxPyEndAllowThreads(__tstate);
9394 if (PyErr_Occurred()) SWIG_fail;
9395 }
9396 resultobj = SWIG_Py_Void();
9397 return resultobj;
9398 fail:
9399 return NULL;
9400 }
9401
9402
9403 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxIcon *arg1 = (wxIcon *) 0 ;
9406 int arg2 ;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 int val2 ;
9410 int ecode2 = 0 ;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 char * kwnames[] = {
9414 (char *) "self",(char *) "d", NULL
9415 };
9416
9417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9419 if (!SWIG_IsOK(res1)) {
9420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9421 }
9422 arg1 = reinterpret_cast< wxIcon * >(argp1);
9423 ecode2 = SWIG_AsVal_int(obj1, &val2);
9424 if (!SWIG_IsOK(ecode2)) {
9425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9426 }
9427 arg2 = static_cast< int >(val2);
9428 {
9429 PyThreadState* __tstate = wxPyBeginAllowThreads();
9430 (arg1)->SetDepth(arg2);
9431 wxPyEndAllowThreads(__tstate);
9432 if (PyErr_Occurred()) SWIG_fail;
9433 }
9434 resultobj = SWIG_Py_Void();
9435 return resultobj;
9436 fail:
9437 return NULL;
9438 }
9439
9440
9441 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9442 PyObject *resultobj = 0;
9443 wxIcon *arg1 = (wxIcon *) 0 ;
9444 wxSize *arg2 = 0 ;
9445 void *argp1 = 0 ;
9446 int res1 = 0 ;
9447 wxSize temp2 ;
9448 PyObject * obj0 = 0 ;
9449 PyObject * obj1 = 0 ;
9450 char * kwnames[] = {
9451 (char *) "self",(char *) "size", NULL
9452 };
9453
9454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9456 if (!SWIG_IsOK(res1)) {
9457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9458 }
9459 arg1 = reinterpret_cast< wxIcon * >(argp1);
9460 {
9461 arg2 = &temp2;
9462 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9463 }
9464 {
9465 PyThreadState* __tstate = wxPyBeginAllowThreads();
9466 (arg1)->SetSize((wxSize const &)*arg2);
9467 wxPyEndAllowThreads(__tstate);
9468 if (PyErr_Occurred()) SWIG_fail;
9469 }
9470 resultobj = SWIG_Py_Void();
9471 return resultobj;
9472 fail:
9473 return NULL;
9474 }
9475
9476
9477 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9478 PyObject *resultobj = 0;
9479 wxIcon *arg1 = (wxIcon *) 0 ;
9480 wxBitmap *arg2 = 0 ;
9481 void *argp1 = 0 ;
9482 int res1 = 0 ;
9483 void *argp2 = 0 ;
9484 int res2 = 0 ;
9485 PyObject * obj0 = 0 ;
9486 PyObject * obj1 = 0 ;
9487 char * kwnames[] = {
9488 (char *) "self",(char *) "bmp", NULL
9489 };
9490
9491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9493 if (!SWIG_IsOK(res1)) {
9494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9495 }
9496 arg1 = reinterpret_cast< wxIcon * >(argp1);
9497 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9498 if (!SWIG_IsOK(res2)) {
9499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9500 }
9501 if (!argp2) {
9502 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9503 }
9504 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9505 {
9506 PyThreadState* __tstate = wxPyBeginAllowThreads();
9507 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9508 wxPyEndAllowThreads(__tstate);
9509 if (PyErr_Occurred()) SWIG_fail;
9510 }
9511 resultobj = SWIG_Py_Void();
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9519 PyObject *obj;
9520 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9521 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9522 return SWIG_Py_Void();
9523 }
9524
9525 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9526 return SWIG_Python_InitShadowInstance(args);
9527 }
9528
9529 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9530 PyObject *resultobj = 0;
9531 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9532 int arg2 = (int) 0 ;
9533 wxIconLocation *result = 0 ;
9534 bool temp1 = false ;
9535 int val2 ;
9536 int ecode2 = 0 ;
9537 PyObject * obj0 = 0 ;
9538 PyObject * obj1 = 0 ;
9539 char * kwnames[] = {
9540 (char *) "filename",(char *) "num", NULL
9541 };
9542
9543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9544 if (obj0) {
9545 {
9546 arg1 = wxString_in_helper(obj0);
9547 if (arg1 == NULL) SWIG_fail;
9548 temp1 = true;
9549 }
9550 }
9551 if (obj1) {
9552 ecode2 = SWIG_AsVal_int(obj1, &val2);
9553 if (!SWIG_IsOK(ecode2)) {
9554 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9555 }
9556 arg2 = static_cast< int >(val2);
9557 }
9558 {
9559 PyThreadState* __tstate = wxPyBeginAllowThreads();
9560 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9561 wxPyEndAllowThreads(__tstate);
9562 if (PyErr_Occurred()) SWIG_fail;
9563 }
9564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9565 {
9566 if (temp1)
9567 delete arg1;
9568 }
9569 return resultobj;
9570 fail:
9571 {
9572 if (temp1)
9573 delete arg1;
9574 }
9575 return NULL;
9576 }
9577
9578
9579 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9580 PyObject *resultobj = 0;
9581 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9582 void *argp1 = 0 ;
9583 int res1 = 0 ;
9584 PyObject *swig_obj[1] ;
9585
9586 if (!args) SWIG_fail;
9587 swig_obj[0] = args;
9588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9589 if (!SWIG_IsOK(res1)) {
9590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9591 }
9592 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9593 {
9594 PyThreadState* __tstate = wxPyBeginAllowThreads();
9595 delete arg1;
9596
9597 wxPyEndAllowThreads(__tstate);
9598 if (PyErr_Occurred()) SWIG_fail;
9599 }
9600 resultobj = SWIG_Py_Void();
9601 return resultobj;
9602 fail:
9603 return NULL;
9604 }
9605
9606
9607 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9608 PyObject *resultobj = 0;
9609 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9610 bool result;
9611 void *argp1 = 0 ;
9612 int res1 = 0 ;
9613 PyObject *swig_obj[1] ;
9614
9615 if (!args) SWIG_fail;
9616 swig_obj[0] = args;
9617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9618 if (!SWIG_IsOK(res1)) {
9619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9620 }
9621 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9622 {
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 {
9629 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9630 }
9631 return resultobj;
9632 fail:
9633 return NULL;
9634 }
9635
9636
9637 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9638 PyObject *resultobj = 0;
9639 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9640 wxString *arg2 = 0 ;
9641 void *argp1 = 0 ;
9642 int res1 = 0 ;
9643 bool temp2 = false ;
9644 PyObject * obj0 = 0 ;
9645 PyObject * obj1 = 0 ;
9646 char * kwnames[] = {
9647 (char *) "self",(char *) "filename", NULL
9648 };
9649
9650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9652 if (!SWIG_IsOK(res1)) {
9653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9654 }
9655 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9656 {
9657 arg2 = wxString_in_helper(obj1);
9658 if (arg2 == NULL) SWIG_fail;
9659 temp2 = true;
9660 }
9661 {
9662 PyThreadState* __tstate = wxPyBeginAllowThreads();
9663 (arg1)->SetFileName((wxString const &)*arg2);
9664 wxPyEndAllowThreads(__tstate);
9665 if (PyErr_Occurred()) SWIG_fail;
9666 }
9667 resultobj = SWIG_Py_Void();
9668 {
9669 if (temp2)
9670 delete arg2;
9671 }
9672 return resultobj;
9673 fail:
9674 {
9675 if (temp2)
9676 delete arg2;
9677 }
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683 PyObject *resultobj = 0;
9684 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9685 wxString *result = 0 ;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 PyObject *swig_obj[1] ;
9689
9690 if (!args) SWIG_fail;
9691 swig_obj[0] = args;
9692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9693 if (!SWIG_IsOK(res1)) {
9694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9695 }
9696 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9697 {
9698 PyThreadState* __tstate = wxPyBeginAllowThreads();
9699 {
9700 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9701 result = (wxString *) &_result_ref;
9702 }
9703 wxPyEndAllowThreads(__tstate);
9704 if (PyErr_Occurred()) SWIG_fail;
9705 }
9706 {
9707 #if wxUSE_UNICODE
9708 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9709 #else
9710 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9711 #endif
9712 }
9713 return resultobj;
9714 fail:
9715 return NULL;
9716 }
9717
9718
9719 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9720 PyObject *resultobj = 0;
9721 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9722 int arg2 ;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 int val2 ;
9726 int ecode2 = 0 ;
9727 PyObject * obj0 = 0 ;
9728 PyObject * obj1 = 0 ;
9729 char * kwnames[] = {
9730 (char *) "self",(char *) "num", NULL
9731 };
9732
9733 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9734 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9735 if (!SWIG_IsOK(res1)) {
9736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9737 }
9738 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9739 ecode2 = SWIG_AsVal_int(obj1, &val2);
9740 if (!SWIG_IsOK(ecode2)) {
9741 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9742 }
9743 arg2 = static_cast< int >(val2);
9744 {
9745 PyThreadState* __tstate = wxPyBeginAllowThreads();
9746 wxIconLocation_SetIndex(arg1,arg2);
9747 wxPyEndAllowThreads(__tstate);
9748 if (PyErr_Occurred()) SWIG_fail;
9749 }
9750 resultobj = SWIG_Py_Void();
9751 return resultobj;
9752 fail:
9753 return NULL;
9754 }
9755
9756
9757 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9758 PyObject *resultobj = 0;
9759 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9760 int result;
9761 void *argp1 = 0 ;
9762 int res1 = 0 ;
9763 PyObject *swig_obj[1] ;
9764
9765 if (!args) SWIG_fail;
9766 swig_obj[0] = args;
9767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9768 if (!SWIG_IsOK(res1)) {
9769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9770 }
9771 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9772 {
9773 PyThreadState* __tstate = wxPyBeginAllowThreads();
9774 result = (int)wxIconLocation_GetIndex(arg1);
9775 wxPyEndAllowThreads(__tstate);
9776 if (PyErr_Occurred()) SWIG_fail;
9777 }
9778 resultobj = SWIG_From_int(static_cast< int >(result));
9779 return resultobj;
9780 fail:
9781 return NULL;
9782 }
9783
9784
9785 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9786 PyObject *obj;
9787 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9788 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9789 return SWIG_Py_Void();
9790 }
9791
9792 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9793 return SWIG_Python_InitShadowInstance(args);
9794 }
9795
9796 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9797 PyObject *resultobj = 0;
9798 wxIconBundle *result = 0 ;
9799
9800 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9801 {
9802 PyThreadState* __tstate = wxPyBeginAllowThreads();
9803 result = (wxIconBundle *)new wxIconBundle();
9804 wxPyEndAllowThreads(__tstate);
9805 if (PyErr_Occurred()) SWIG_fail;
9806 }
9807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9808 return resultobj;
9809 fail:
9810 return NULL;
9811 }
9812
9813
9814 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9815 PyObject *resultobj = 0;
9816 wxString *arg1 = 0 ;
9817 long arg2 ;
9818 wxIconBundle *result = 0 ;
9819 bool temp1 = false ;
9820 long val2 ;
9821 int ecode2 = 0 ;
9822 PyObject * obj0 = 0 ;
9823 PyObject * obj1 = 0 ;
9824 char * kwnames[] = {
9825 (char *) "file",(char *) "type", NULL
9826 };
9827
9828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9829 {
9830 arg1 = wxString_in_helper(obj0);
9831 if (arg1 == NULL) SWIG_fail;
9832 temp1 = true;
9833 }
9834 ecode2 = SWIG_AsVal_long(obj1, &val2);
9835 if (!SWIG_IsOK(ecode2)) {
9836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9837 }
9838 arg2 = static_cast< long >(val2);
9839 {
9840 PyThreadState* __tstate = wxPyBeginAllowThreads();
9841 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9842 wxPyEndAllowThreads(__tstate);
9843 if (PyErr_Occurred()) SWIG_fail;
9844 }
9845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9846 {
9847 if (temp1)
9848 delete arg1;
9849 }
9850 return resultobj;
9851 fail:
9852 {
9853 if (temp1)
9854 delete arg1;
9855 }
9856 return NULL;
9857 }
9858
9859
9860 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9861 PyObject *resultobj = 0;
9862 wxIcon *arg1 = 0 ;
9863 wxIconBundle *result = 0 ;
9864 void *argp1 = 0 ;
9865 int res1 = 0 ;
9866 PyObject * obj0 = 0 ;
9867 char * kwnames[] = {
9868 (char *) "icon", NULL
9869 };
9870
9871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9872 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9873 if (!SWIG_IsOK(res1)) {
9874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9875 }
9876 if (!argp1) {
9877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9878 }
9879 arg1 = reinterpret_cast< wxIcon * >(argp1);
9880 {
9881 PyThreadState* __tstate = wxPyBeginAllowThreads();
9882 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9883 wxPyEndAllowThreads(__tstate);
9884 if (PyErr_Occurred()) SWIG_fail;
9885 }
9886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9887 return resultobj;
9888 fail:
9889 return NULL;
9890 }
9891
9892
9893 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9894 PyObject *resultobj = 0;
9895 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9896 void *argp1 = 0 ;
9897 int res1 = 0 ;
9898 PyObject *swig_obj[1] ;
9899
9900 if (!args) SWIG_fail;
9901 swig_obj[0] = args;
9902 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9903 if (!SWIG_IsOK(res1)) {
9904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9905 }
9906 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9907 {
9908 PyThreadState* __tstate = wxPyBeginAllowThreads();
9909 delete arg1;
9910
9911 wxPyEndAllowThreads(__tstate);
9912 if (PyErr_Occurred()) SWIG_fail;
9913 }
9914 resultobj = SWIG_Py_Void();
9915 return resultobj;
9916 fail:
9917 return NULL;
9918 }
9919
9920
9921 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9922 PyObject *resultobj = 0;
9923 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9924 wxIcon *arg2 = 0 ;
9925 void *argp1 = 0 ;
9926 int res1 = 0 ;
9927 void *argp2 = 0 ;
9928 int res2 = 0 ;
9929 PyObject * obj0 = 0 ;
9930 PyObject * obj1 = 0 ;
9931 char * kwnames[] = {
9932 (char *) "self",(char *) "icon", NULL
9933 };
9934
9935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9937 if (!SWIG_IsOK(res1)) {
9938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9939 }
9940 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9942 if (!SWIG_IsOK(res2)) {
9943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9944 }
9945 if (!argp2) {
9946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9947 }
9948 arg2 = reinterpret_cast< wxIcon * >(argp2);
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 (arg1)->AddIcon((wxIcon const &)*arg2);
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 resultobj = SWIG_Py_Void();
9956 return resultobj;
9957 fail:
9958 return NULL;
9959 }
9960
9961
9962 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9963 PyObject *resultobj = 0;
9964 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9965 wxString *arg2 = 0 ;
9966 long arg3 ;
9967 void *argp1 = 0 ;
9968 int res1 = 0 ;
9969 bool temp2 = false ;
9970 long val3 ;
9971 int ecode3 = 0 ;
9972 PyObject * obj0 = 0 ;
9973 PyObject * obj1 = 0 ;
9974 PyObject * obj2 = 0 ;
9975 char * kwnames[] = {
9976 (char *) "self",(char *) "file",(char *) "type", NULL
9977 };
9978
9979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9981 if (!SWIG_IsOK(res1)) {
9982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9983 }
9984 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9985 {
9986 arg2 = wxString_in_helper(obj1);
9987 if (arg2 == NULL) SWIG_fail;
9988 temp2 = true;
9989 }
9990 ecode3 = SWIG_AsVal_long(obj2, &val3);
9991 if (!SWIG_IsOK(ecode3)) {
9992 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
9993 }
9994 arg3 = static_cast< long >(val3);
9995 {
9996 PyThreadState* __tstate = wxPyBeginAllowThreads();
9997 (arg1)->AddIcon((wxString const &)*arg2,arg3);
9998 wxPyEndAllowThreads(__tstate);
9999 if (PyErr_Occurred()) SWIG_fail;
10000 }
10001 resultobj = SWIG_Py_Void();
10002 {
10003 if (temp2)
10004 delete arg2;
10005 }
10006 return resultobj;
10007 fail:
10008 {
10009 if (temp2)
10010 delete arg2;
10011 }
10012 return NULL;
10013 }
10014
10015
10016 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10017 PyObject *resultobj = 0;
10018 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10019 wxSize *arg2 = 0 ;
10020 wxIcon *result = 0 ;
10021 void *argp1 = 0 ;
10022 int res1 = 0 ;
10023 wxSize temp2 ;
10024 PyObject * obj0 = 0 ;
10025 PyObject * obj1 = 0 ;
10026 char * kwnames[] = {
10027 (char *) "self",(char *) "size", NULL
10028 };
10029
10030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10032 if (!SWIG_IsOK(res1)) {
10033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10034 }
10035 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10036 {
10037 arg2 = &temp2;
10038 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10039 }
10040 {
10041 PyThreadState* __tstate = wxPyBeginAllowThreads();
10042 {
10043 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10044 result = (wxIcon *) &_result_ref;
10045 }
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 {
10050 wxIcon* resultptr = new wxIcon(*result);
10051 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10052 }
10053 return resultobj;
10054 fail:
10055 return NULL;
10056 }
10057
10058
10059 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10060 PyObject *obj;
10061 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10062 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10063 return SWIG_Py_Void();
10064 }
10065
10066 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10067 return SWIG_Python_InitShadowInstance(args);
10068 }
10069
10070 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10071 PyObject *resultobj = 0;
10072 wxString *arg1 = 0 ;
10073 long arg2 ;
10074 int arg3 = (int) 0 ;
10075 int arg4 = (int) 0 ;
10076 wxCursor *result = 0 ;
10077 bool temp1 = false ;
10078 long val2 ;
10079 int ecode2 = 0 ;
10080 int val3 ;
10081 int ecode3 = 0 ;
10082 int val4 ;
10083 int ecode4 = 0 ;
10084 PyObject * obj0 = 0 ;
10085 PyObject * obj1 = 0 ;
10086 PyObject * obj2 = 0 ;
10087 PyObject * obj3 = 0 ;
10088 char * kwnames[] = {
10089 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10090 };
10091
10092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10093 {
10094 arg1 = wxString_in_helper(obj0);
10095 if (arg1 == NULL) SWIG_fail;
10096 temp1 = true;
10097 }
10098 ecode2 = SWIG_AsVal_long(obj1, &val2);
10099 if (!SWIG_IsOK(ecode2)) {
10100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10101 }
10102 arg2 = static_cast< long >(val2);
10103 if (obj2) {
10104 ecode3 = SWIG_AsVal_int(obj2, &val3);
10105 if (!SWIG_IsOK(ecode3)) {
10106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10107 }
10108 arg3 = static_cast< int >(val3);
10109 }
10110 if (obj3) {
10111 ecode4 = SWIG_AsVal_int(obj3, &val4);
10112 if (!SWIG_IsOK(ecode4)) {
10113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10114 }
10115 arg4 = static_cast< int >(val4);
10116 }
10117 {
10118 if (!wxPyCheckForApp()) SWIG_fail;
10119 PyThreadState* __tstate = wxPyBeginAllowThreads();
10120 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10121 wxPyEndAllowThreads(__tstate);
10122 if (PyErr_Occurred()) SWIG_fail;
10123 }
10124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10125 {
10126 if (temp1)
10127 delete arg1;
10128 }
10129 return resultobj;
10130 fail:
10131 {
10132 if (temp1)
10133 delete arg1;
10134 }
10135 return NULL;
10136 }
10137
10138
10139 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10140 PyObject *resultobj = 0;
10141 wxCursor *arg1 = (wxCursor *) 0 ;
10142 void *argp1 = 0 ;
10143 int res1 = 0 ;
10144 PyObject *swig_obj[1] ;
10145
10146 if (!args) SWIG_fail;
10147 swig_obj[0] = args;
10148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10149 if (!SWIG_IsOK(res1)) {
10150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10151 }
10152 arg1 = reinterpret_cast< wxCursor * >(argp1);
10153 {
10154 PyThreadState* __tstate = wxPyBeginAllowThreads();
10155 delete arg1;
10156
10157 wxPyEndAllowThreads(__tstate);
10158 if (PyErr_Occurred()) SWIG_fail;
10159 }
10160 resultobj = SWIG_Py_Void();
10161 return resultobj;
10162 fail:
10163 return NULL;
10164 }
10165
10166
10167 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10168 PyObject *resultobj = 0;
10169 int arg1 ;
10170 wxCursor *result = 0 ;
10171 int val1 ;
10172 int ecode1 = 0 ;
10173 PyObject * obj0 = 0 ;
10174 char * kwnames[] = {
10175 (char *) "id", NULL
10176 };
10177
10178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10179 ecode1 = SWIG_AsVal_int(obj0, &val1);
10180 if (!SWIG_IsOK(ecode1)) {
10181 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10182 }
10183 arg1 = static_cast< int >(val1);
10184 {
10185 if (!wxPyCheckForApp()) SWIG_fail;
10186 PyThreadState* __tstate = wxPyBeginAllowThreads();
10187 result = (wxCursor *)new wxCursor(arg1);
10188 wxPyEndAllowThreads(__tstate);
10189 if (PyErr_Occurred()) SWIG_fail;
10190 }
10191 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10192 return resultobj;
10193 fail:
10194 return NULL;
10195 }
10196
10197
10198 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10199 PyObject *resultobj = 0;
10200 wxImage *arg1 = 0 ;
10201 wxCursor *result = 0 ;
10202 void *argp1 = 0 ;
10203 int res1 = 0 ;
10204 PyObject * obj0 = 0 ;
10205 char * kwnames[] = {
10206 (char *) "image", NULL
10207 };
10208
10209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10210 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10211 if (!SWIG_IsOK(res1)) {
10212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10213 }
10214 if (!argp1) {
10215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10216 }
10217 arg1 = reinterpret_cast< wxImage * >(argp1);
10218 {
10219 if (!wxPyCheckForApp()) SWIG_fail;
10220 PyThreadState* __tstate = wxPyBeginAllowThreads();
10221 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10222 wxPyEndAllowThreads(__tstate);
10223 if (PyErr_Occurred()) SWIG_fail;
10224 }
10225 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10226 return resultobj;
10227 fail:
10228 return NULL;
10229 }
10230
10231
10232 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10233 PyObject *resultobj = 0;
10234 wxCursor *arg1 = (wxCursor *) 0 ;
10235 long result;
10236 void *argp1 = 0 ;
10237 int res1 = 0 ;
10238 PyObject *swig_obj[1] ;
10239
10240 if (!args) SWIG_fail;
10241 swig_obj[0] = args;
10242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10243 if (!SWIG_IsOK(res1)) {
10244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10245 }
10246 arg1 = reinterpret_cast< wxCursor * >(argp1);
10247 {
10248 PyThreadState* __tstate = wxPyBeginAllowThreads();
10249 result = (long)(arg1)->GetHandle();
10250 wxPyEndAllowThreads(__tstate);
10251 if (PyErr_Occurred()) SWIG_fail;
10252 }
10253 resultobj = SWIG_From_long(static_cast< long >(result));
10254 return resultobj;
10255 fail:
10256 return NULL;
10257 }
10258
10259
10260 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10261 PyObject *resultobj = 0;
10262 wxCursor *arg1 = (wxCursor *) 0 ;
10263 long arg2 ;
10264 void *argp1 = 0 ;
10265 int res1 = 0 ;
10266 long val2 ;
10267 int ecode2 = 0 ;
10268 PyObject * obj0 = 0 ;
10269 PyObject * obj1 = 0 ;
10270 char * kwnames[] = {
10271 (char *) "self",(char *) "handle", NULL
10272 };
10273
10274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10276 if (!SWIG_IsOK(res1)) {
10277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10278 }
10279 arg1 = reinterpret_cast< wxCursor * >(argp1);
10280 ecode2 = SWIG_AsVal_long(obj1, &val2);
10281 if (!SWIG_IsOK(ecode2)) {
10282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10283 }
10284 arg2 = static_cast< long >(val2);
10285 {
10286 PyThreadState* __tstate = wxPyBeginAllowThreads();
10287 wxCursor_SetHandle(arg1,arg2);
10288 wxPyEndAllowThreads(__tstate);
10289 if (PyErr_Occurred()) SWIG_fail;
10290 }
10291 resultobj = SWIG_Py_Void();
10292 return resultobj;
10293 fail:
10294 return NULL;
10295 }
10296
10297
10298 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10299 PyObject *resultobj = 0;
10300 wxCursor *arg1 = (wxCursor *) 0 ;
10301 bool result;
10302 void *argp1 = 0 ;
10303 int res1 = 0 ;
10304 PyObject *swig_obj[1] ;
10305
10306 if (!args) SWIG_fail;
10307 swig_obj[0] = args;
10308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10309 if (!SWIG_IsOK(res1)) {
10310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10311 }
10312 arg1 = reinterpret_cast< wxCursor * >(argp1);
10313 {
10314 PyThreadState* __tstate = wxPyBeginAllowThreads();
10315 result = (bool)(arg1)->IsOk();
10316 wxPyEndAllowThreads(__tstate);
10317 if (PyErr_Occurred()) SWIG_fail;
10318 }
10319 {
10320 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10321 }
10322 return resultobj;
10323 fail:
10324 return NULL;
10325 }
10326
10327
10328 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10329 PyObject *resultobj = 0;
10330 wxCursor *arg1 = (wxCursor *) 0 ;
10331 int result;
10332 void *argp1 = 0 ;
10333 int res1 = 0 ;
10334 PyObject *swig_obj[1] ;
10335
10336 if (!args) SWIG_fail;
10337 swig_obj[0] = args;
10338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10339 if (!SWIG_IsOK(res1)) {
10340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10341 }
10342 arg1 = reinterpret_cast< wxCursor * >(argp1);
10343 {
10344 PyThreadState* __tstate = wxPyBeginAllowThreads();
10345 result = (int)(arg1)->GetWidth();
10346 wxPyEndAllowThreads(__tstate);
10347 if (PyErr_Occurred()) SWIG_fail;
10348 }
10349 resultobj = SWIG_From_int(static_cast< int >(result));
10350 return resultobj;
10351 fail:
10352 return NULL;
10353 }
10354
10355
10356 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10357 PyObject *resultobj = 0;
10358 wxCursor *arg1 = (wxCursor *) 0 ;
10359 int result;
10360 void *argp1 = 0 ;
10361 int res1 = 0 ;
10362 PyObject *swig_obj[1] ;
10363
10364 if (!args) SWIG_fail;
10365 swig_obj[0] = args;
10366 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10367 if (!SWIG_IsOK(res1)) {
10368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10369 }
10370 arg1 = reinterpret_cast< wxCursor * >(argp1);
10371 {
10372 PyThreadState* __tstate = wxPyBeginAllowThreads();
10373 result = (int)(arg1)->GetHeight();
10374 wxPyEndAllowThreads(__tstate);
10375 if (PyErr_Occurred()) SWIG_fail;
10376 }
10377 resultobj = SWIG_From_int(static_cast< int >(result));
10378 return resultobj;
10379 fail:
10380 return NULL;
10381 }
10382
10383
10384 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10385 PyObject *resultobj = 0;
10386 wxCursor *arg1 = (wxCursor *) 0 ;
10387 int result;
10388 void *argp1 = 0 ;
10389 int res1 = 0 ;
10390 PyObject *swig_obj[1] ;
10391
10392 if (!args) SWIG_fail;
10393 swig_obj[0] = args;
10394 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10395 if (!SWIG_IsOK(res1)) {
10396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10397 }
10398 arg1 = reinterpret_cast< wxCursor * >(argp1);
10399 {
10400 PyThreadState* __tstate = wxPyBeginAllowThreads();
10401 result = (int)(arg1)->GetDepth();
10402 wxPyEndAllowThreads(__tstate);
10403 if (PyErr_Occurred()) SWIG_fail;
10404 }
10405 resultobj = SWIG_From_int(static_cast< int >(result));
10406 return resultobj;
10407 fail:
10408 return NULL;
10409 }
10410
10411
10412 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10413 PyObject *resultobj = 0;
10414 wxCursor *arg1 = (wxCursor *) 0 ;
10415 int arg2 ;
10416 void *argp1 = 0 ;
10417 int res1 = 0 ;
10418 int val2 ;
10419 int ecode2 = 0 ;
10420 PyObject * obj0 = 0 ;
10421 PyObject * obj1 = 0 ;
10422 char * kwnames[] = {
10423 (char *) "self",(char *) "w", NULL
10424 };
10425
10426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10428 if (!SWIG_IsOK(res1)) {
10429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10430 }
10431 arg1 = reinterpret_cast< wxCursor * >(argp1);
10432 ecode2 = SWIG_AsVal_int(obj1, &val2);
10433 if (!SWIG_IsOK(ecode2)) {
10434 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10435 }
10436 arg2 = static_cast< int >(val2);
10437 {
10438 PyThreadState* __tstate = wxPyBeginAllowThreads();
10439 (arg1)->SetWidth(arg2);
10440 wxPyEndAllowThreads(__tstate);
10441 if (PyErr_Occurred()) SWIG_fail;
10442 }
10443 resultobj = SWIG_Py_Void();
10444 return resultobj;
10445 fail:
10446 return NULL;
10447 }
10448
10449
10450 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10451 PyObject *resultobj = 0;
10452 wxCursor *arg1 = (wxCursor *) 0 ;
10453 int arg2 ;
10454 void *argp1 = 0 ;
10455 int res1 = 0 ;
10456 int val2 ;
10457 int ecode2 = 0 ;
10458 PyObject * obj0 = 0 ;
10459 PyObject * obj1 = 0 ;
10460 char * kwnames[] = {
10461 (char *) "self",(char *) "h", NULL
10462 };
10463
10464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10466 if (!SWIG_IsOK(res1)) {
10467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10468 }
10469 arg1 = reinterpret_cast< wxCursor * >(argp1);
10470 ecode2 = SWIG_AsVal_int(obj1, &val2);
10471 if (!SWIG_IsOK(ecode2)) {
10472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10473 }
10474 arg2 = static_cast< int >(val2);
10475 {
10476 PyThreadState* __tstate = wxPyBeginAllowThreads();
10477 (arg1)->SetHeight(arg2);
10478 wxPyEndAllowThreads(__tstate);
10479 if (PyErr_Occurred()) SWIG_fail;
10480 }
10481 resultobj = SWIG_Py_Void();
10482 return resultobj;
10483 fail:
10484 return NULL;
10485 }
10486
10487
10488 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10489 PyObject *resultobj = 0;
10490 wxCursor *arg1 = (wxCursor *) 0 ;
10491 int arg2 ;
10492 void *argp1 = 0 ;
10493 int res1 = 0 ;
10494 int val2 ;
10495 int ecode2 = 0 ;
10496 PyObject * obj0 = 0 ;
10497 PyObject * obj1 = 0 ;
10498 char * kwnames[] = {
10499 (char *) "self",(char *) "d", NULL
10500 };
10501
10502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10504 if (!SWIG_IsOK(res1)) {
10505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10506 }
10507 arg1 = reinterpret_cast< wxCursor * >(argp1);
10508 ecode2 = SWIG_AsVal_int(obj1, &val2);
10509 if (!SWIG_IsOK(ecode2)) {
10510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10511 }
10512 arg2 = static_cast< int >(val2);
10513 {
10514 PyThreadState* __tstate = wxPyBeginAllowThreads();
10515 (arg1)->SetDepth(arg2);
10516 wxPyEndAllowThreads(__tstate);
10517 if (PyErr_Occurred()) SWIG_fail;
10518 }
10519 resultobj = SWIG_Py_Void();
10520 return resultobj;
10521 fail:
10522 return NULL;
10523 }
10524
10525
10526 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10527 PyObject *resultobj = 0;
10528 wxCursor *arg1 = (wxCursor *) 0 ;
10529 wxSize *arg2 = 0 ;
10530 void *argp1 = 0 ;
10531 int res1 = 0 ;
10532 wxSize temp2 ;
10533 PyObject * obj0 = 0 ;
10534 PyObject * obj1 = 0 ;
10535 char * kwnames[] = {
10536 (char *) "self",(char *) "size", NULL
10537 };
10538
10539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10541 if (!SWIG_IsOK(res1)) {
10542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10543 }
10544 arg1 = reinterpret_cast< wxCursor * >(argp1);
10545 {
10546 arg2 = &temp2;
10547 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10548 }
10549 {
10550 PyThreadState* __tstate = wxPyBeginAllowThreads();
10551 (arg1)->SetSize((wxSize const &)*arg2);
10552 wxPyEndAllowThreads(__tstate);
10553 if (PyErr_Occurred()) SWIG_fail;
10554 }
10555 resultobj = SWIG_Py_Void();
10556 return resultobj;
10557 fail:
10558 return NULL;
10559 }
10560
10561
10562 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10563 PyObject *obj;
10564 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10565 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10566 return SWIG_Py_Void();
10567 }
10568
10569 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10570 return SWIG_Python_InitShadowInstance(args);
10571 }
10572
10573 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10574 PyObject *resultobj = 0;
10575 int arg1 = (int) 0 ;
10576 int arg2 = (int) 0 ;
10577 int arg3 = (int) 0 ;
10578 int arg4 = (int) 0 ;
10579 wxRegion *result = 0 ;
10580 int val1 ;
10581 int ecode1 = 0 ;
10582 int val2 ;
10583 int ecode2 = 0 ;
10584 int val3 ;
10585 int ecode3 = 0 ;
10586 int val4 ;
10587 int ecode4 = 0 ;
10588 PyObject * obj0 = 0 ;
10589 PyObject * obj1 = 0 ;
10590 PyObject * obj2 = 0 ;
10591 PyObject * obj3 = 0 ;
10592 char * kwnames[] = {
10593 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10594 };
10595
10596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10597 if (obj0) {
10598 ecode1 = SWIG_AsVal_int(obj0, &val1);
10599 if (!SWIG_IsOK(ecode1)) {
10600 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10601 }
10602 arg1 = static_cast< int >(val1);
10603 }
10604 if (obj1) {
10605 ecode2 = SWIG_AsVal_int(obj1, &val2);
10606 if (!SWIG_IsOK(ecode2)) {
10607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10608 }
10609 arg2 = static_cast< int >(val2);
10610 }
10611 if (obj2) {
10612 ecode3 = SWIG_AsVal_int(obj2, &val3);
10613 if (!SWIG_IsOK(ecode3)) {
10614 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10615 }
10616 arg3 = static_cast< int >(val3);
10617 }
10618 if (obj3) {
10619 ecode4 = SWIG_AsVal_int(obj3, &val4);
10620 if (!SWIG_IsOK(ecode4)) {
10621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10622 }
10623 arg4 = static_cast< int >(val4);
10624 }
10625 {
10626 if (!wxPyCheckForApp()) SWIG_fail;
10627 PyThreadState* __tstate = wxPyBeginAllowThreads();
10628 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10629 wxPyEndAllowThreads(__tstate);
10630 if (PyErr_Occurred()) SWIG_fail;
10631 }
10632 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10633 return resultobj;
10634 fail:
10635 return NULL;
10636 }
10637
10638
10639 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10640 PyObject *resultobj = 0;
10641 wxBitmap *arg1 = 0 ;
10642 wxRegion *result = 0 ;
10643 void *argp1 = 0 ;
10644 int res1 = 0 ;
10645 PyObject * obj0 = 0 ;
10646 char * kwnames[] = {
10647 (char *) "bmp", NULL
10648 };
10649
10650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10651 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10652 if (!SWIG_IsOK(res1)) {
10653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10654 }
10655 if (!argp1) {
10656 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10657 }
10658 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10659 {
10660 if (!wxPyCheckForApp()) SWIG_fail;
10661 PyThreadState* __tstate = wxPyBeginAllowThreads();
10662 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10663 wxPyEndAllowThreads(__tstate);
10664 if (PyErr_Occurred()) SWIG_fail;
10665 }
10666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10667 return resultobj;
10668 fail:
10669 return NULL;
10670 }
10671
10672
10673 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10674 PyObject *resultobj = 0;
10675 wxBitmap *arg1 = 0 ;
10676 wxColour *arg2 = 0 ;
10677 int arg3 = (int) 0 ;
10678 wxRegion *result = 0 ;
10679 void *argp1 = 0 ;
10680 int res1 = 0 ;
10681 wxColour temp2 ;
10682 int val3 ;
10683 int ecode3 = 0 ;
10684 PyObject * obj0 = 0 ;
10685 PyObject * obj1 = 0 ;
10686 PyObject * obj2 = 0 ;
10687 char * kwnames[] = {
10688 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10689 };
10690
10691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10692 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10693 if (!SWIG_IsOK(res1)) {
10694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10695 }
10696 if (!argp1) {
10697 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10698 }
10699 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10700 {
10701 arg2 = &temp2;
10702 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10703 }
10704 if (obj2) {
10705 ecode3 = SWIG_AsVal_int(obj2, &val3);
10706 if (!SWIG_IsOK(ecode3)) {
10707 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10708 }
10709 arg3 = static_cast< int >(val3);
10710 }
10711 {
10712 if (!wxPyCheckForApp()) SWIG_fail;
10713 PyThreadState* __tstate = wxPyBeginAllowThreads();
10714 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10715 wxPyEndAllowThreads(__tstate);
10716 if (PyErr_Occurred()) SWIG_fail;
10717 }
10718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10719 return resultobj;
10720 fail:
10721 return NULL;
10722 }
10723
10724
10725 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10726 PyObject *resultobj = 0;
10727 int arg1 ;
10728 wxPoint *arg2 = (wxPoint *) 0 ;
10729 int arg3 = (int) wxWINDING_RULE ;
10730 wxRegion *result = 0 ;
10731 int val3 ;
10732 int ecode3 = 0 ;
10733 PyObject * obj0 = 0 ;
10734 PyObject * obj1 = 0 ;
10735 char * kwnames[] = {
10736 (char *) "points",(char *) "fillStyle", NULL
10737 };
10738
10739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10740 {
10741 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10742 if (arg2 == NULL) SWIG_fail;
10743 }
10744 if (obj1) {
10745 ecode3 = SWIG_AsVal_int(obj1, &val3);
10746 if (!SWIG_IsOK(ecode3)) {
10747 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10748 }
10749 arg3 = static_cast< int >(val3);
10750 }
10751 {
10752 if (!wxPyCheckForApp()) SWIG_fail;
10753 PyThreadState* __tstate = wxPyBeginAllowThreads();
10754 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10755 wxPyEndAllowThreads(__tstate);
10756 if (PyErr_Occurred()) SWIG_fail;
10757 }
10758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10759 {
10760 if (arg2) delete [] arg2;
10761 }
10762 return resultobj;
10763 fail:
10764 {
10765 if (arg2) delete [] arg2;
10766 }
10767 return NULL;
10768 }
10769
10770
10771 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10772 PyObject *resultobj = 0;
10773 wxRegion *arg1 = (wxRegion *) 0 ;
10774 void *argp1 = 0 ;
10775 int res1 = 0 ;
10776 PyObject *swig_obj[1] ;
10777
10778 if (!args) SWIG_fail;
10779 swig_obj[0] = args;
10780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10781 if (!SWIG_IsOK(res1)) {
10782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10783 }
10784 arg1 = reinterpret_cast< wxRegion * >(argp1);
10785 {
10786 PyThreadState* __tstate = wxPyBeginAllowThreads();
10787 delete arg1;
10788
10789 wxPyEndAllowThreads(__tstate);
10790 if (PyErr_Occurred()) SWIG_fail;
10791 }
10792 resultobj = SWIG_Py_Void();
10793 return resultobj;
10794 fail:
10795 return NULL;
10796 }
10797
10798
10799 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10800 PyObject *resultobj = 0;
10801 wxRegion *arg1 = (wxRegion *) 0 ;
10802 void *argp1 = 0 ;
10803 int res1 = 0 ;
10804 PyObject *swig_obj[1] ;
10805
10806 if (!args) SWIG_fail;
10807 swig_obj[0] = args;
10808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10809 if (!SWIG_IsOK(res1)) {
10810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10811 }
10812 arg1 = reinterpret_cast< wxRegion * >(argp1);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 (arg1)->Clear();
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 resultobj = SWIG_Py_Void();
10820 return resultobj;
10821 fail:
10822 return NULL;
10823 }
10824
10825
10826 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10827 PyObject *resultobj = 0;
10828 wxRegion *arg1 = (wxRegion *) 0 ;
10829 int arg2 ;
10830 int arg3 ;
10831 bool result;
10832 void *argp1 = 0 ;
10833 int res1 = 0 ;
10834 int val2 ;
10835 int ecode2 = 0 ;
10836 int val3 ;
10837 int ecode3 = 0 ;
10838 PyObject * obj0 = 0 ;
10839 PyObject * obj1 = 0 ;
10840 PyObject * obj2 = 0 ;
10841 char * kwnames[] = {
10842 (char *) "self",(char *) "x",(char *) "y", NULL
10843 };
10844
10845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10847 if (!SWIG_IsOK(res1)) {
10848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10849 }
10850 arg1 = reinterpret_cast< wxRegion * >(argp1);
10851 ecode2 = SWIG_AsVal_int(obj1, &val2);
10852 if (!SWIG_IsOK(ecode2)) {
10853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10854 }
10855 arg2 = static_cast< int >(val2);
10856 ecode3 = SWIG_AsVal_int(obj2, &val3);
10857 if (!SWIG_IsOK(ecode3)) {
10858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10859 }
10860 arg3 = static_cast< int >(val3);
10861 {
10862 PyThreadState* __tstate = wxPyBeginAllowThreads();
10863 result = (bool)(arg1)->Offset(arg2,arg3);
10864 wxPyEndAllowThreads(__tstate);
10865 if (PyErr_Occurred()) SWIG_fail;
10866 }
10867 {
10868 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10869 }
10870 return resultobj;
10871 fail:
10872 return NULL;
10873 }
10874
10875
10876 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10877 PyObject *resultobj = 0;
10878 wxRegion *arg1 = (wxRegion *) 0 ;
10879 int arg2 ;
10880 int arg3 ;
10881 wxRegionContain result;
10882 void *argp1 = 0 ;
10883 int res1 = 0 ;
10884 int val2 ;
10885 int ecode2 = 0 ;
10886 int val3 ;
10887 int ecode3 = 0 ;
10888 PyObject * obj0 = 0 ;
10889 PyObject * obj1 = 0 ;
10890 PyObject * obj2 = 0 ;
10891 char * kwnames[] = {
10892 (char *) "self",(char *) "x",(char *) "y", NULL
10893 };
10894
10895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10897 if (!SWIG_IsOK(res1)) {
10898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10899 }
10900 arg1 = reinterpret_cast< wxRegion * >(argp1);
10901 ecode2 = SWIG_AsVal_int(obj1, &val2);
10902 if (!SWIG_IsOK(ecode2)) {
10903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10904 }
10905 arg2 = static_cast< int >(val2);
10906 ecode3 = SWIG_AsVal_int(obj2, &val3);
10907 if (!SWIG_IsOK(ecode3)) {
10908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10909 }
10910 arg3 = static_cast< int >(val3);
10911 {
10912 PyThreadState* __tstate = wxPyBeginAllowThreads();
10913 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10914 wxPyEndAllowThreads(__tstate);
10915 if (PyErr_Occurred()) SWIG_fail;
10916 }
10917 resultobj = SWIG_From_int(static_cast< int >(result));
10918 return resultobj;
10919 fail:
10920 return NULL;
10921 }
10922
10923
10924 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10925 PyObject *resultobj = 0;
10926 wxRegion *arg1 = (wxRegion *) 0 ;
10927 wxPoint *arg2 = 0 ;
10928 wxRegionContain result;
10929 void *argp1 = 0 ;
10930 int res1 = 0 ;
10931 wxPoint temp2 ;
10932 PyObject * obj0 = 0 ;
10933 PyObject * obj1 = 0 ;
10934 char * kwnames[] = {
10935 (char *) "self",(char *) "pt", NULL
10936 };
10937
10938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10940 if (!SWIG_IsOK(res1)) {
10941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10942 }
10943 arg1 = reinterpret_cast< wxRegion * >(argp1);
10944 {
10945 arg2 = &temp2;
10946 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10947 }
10948 {
10949 PyThreadState* __tstate = wxPyBeginAllowThreads();
10950 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10951 wxPyEndAllowThreads(__tstate);
10952 if (PyErr_Occurred()) SWIG_fail;
10953 }
10954 resultobj = SWIG_From_int(static_cast< int >(result));
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10962 PyObject *resultobj = 0;
10963 wxRegion *arg1 = (wxRegion *) 0 ;
10964 wxRect *arg2 = 0 ;
10965 wxRegionContain result;
10966 void *argp1 = 0 ;
10967 int res1 = 0 ;
10968 wxRect temp2 ;
10969 PyObject * obj0 = 0 ;
10970 PyObject * obj1 = 0 ;
10971 char * kwnames[] = {
10972 (char *) "self",(char *) "rect", NULL
10973 };
10974
10975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10977 if (!SWIG_IsOK(res1)) {
10978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10979 }
10980 arg1 = reinterpret_cast< wxRegion * >(argp1);
10981 {
10982 arg2 = &temp2;
10983 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10984 }
10985 {
10986 PyThreadState* __tstate = wxPyBeginAllowThreads();
10987 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 resultobj = SWIG_From_int(static_cast< int >(result));
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj = 0;
11000 wxRegion *arg1 = (wxRegion *) 0 ;
11001 int arg2 ;
11002 int arg3 ;
11003 int arg4 ;
11004 int arg5 ;
11005 wxRegionContain result;
11006 void *argp1 = 0 ;
11007 int res1 = 0 ;
11008 int val2 ;
11009 int ecode2 = 0 ;
11010 int val3 ;
11011 int ecode3 = 0 ;
11012 int val4 ;
11013 int ecode4 = 0 ;
11014 int val5 ;
11015 int ecode5 = 0 ;
11016 PyObject * obj0 = 0 ;
11017 PyObject * obj1 = 0 ;
11018 PyObject * obj2 = 0 ;
11019 PyObject * obj3 = 0 ;
11020 PyObject * obj4 = 0 ;
11021 char * kwnames[] = {
11022 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11023 };
11024
11025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11027 if (!SWIG_IsOK(res1)) {
11028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11029 }
11030 arg1 = reinterpret_cast< wxRegion * >(argp1);
11031 ecode2 = SWIG_AsVal_int(obj1, &val2);
11032 if (!SWIG_IsOK(ecode2)) {
11033 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11034 }
11035 arg2 = static_cast< int >(val2);
11036 ecode3 = SWIG_AsVal_int(obj2, &val3);
11037 if (!SWIG_IsOK(ecode3)) {
11038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11039 }
11040 arg3 = static_cast< int >(val3);
11041 ecode4 = SWIG_AsVal_int(obj3, &val4);
11042 if (!SWIG_IsOK(ecode4)) {
11043 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11044 }
11045 arg4 = static_cast< int >(val4);
11046 ecode5 = SWIG_AsVal_int(obj4, &val5);
11047 if (!SWIG_IsOK(ecode5)) {
11048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11049 }
11050 arg5 = static_cast< int >(val5);
11051 {
11052 PyThreadState* __tstate = wxPyBeginAllowThreads();
11053 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11054 wxPyEndAllowThreads(__tstate);
11055 if (PyErr_Occurred()) SWIG_fail;
11056 }
11057 resultobj = SWIG_From_int(static_cast< int >(result));
11058 return resultobj;
11059 fail:
11060 return NULL;
11061 }
11062
11063
11064 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11065 PyObject *resultobj = 0;
11066 wxRegion *arg1 = (wxRegion *) 0 ;
11067 wxRect result;
11068 void *argp1 = 0 ;
11069 int res1 = 0 ;
11070 PyObject *swig_obj[1] ;
11071
11072 if (!args) SWIG_fail;
11073 swig_obj[0] = args;
11074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11075 if (!SWIG_IsOK(res1)) {
11076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11077 }
11078 arg1 = reinterpret_cast< wxRegion * >(argp1);
11079 {
11080 PyThreadState* __tstate = wxPyBeginAllowThreads();
11081 result = (arg1)->GetBox();
11082 wxPyEndAllowThreads(__tstate);
11083 if (PyErr_Occurred()) SWIG_fail;
11084 }
11085 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11086 return resultobj;
11087 fail:
11088 return NULL;
11089 }
11090
11091
11092 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11093 PyObject *resultobj = 0;
11094 wxRegion *arg1 = (wxRegion *) 0 ;
11095 int arg2 ;
11096 int arg3 ;
11097 int arg4 ;
11098 int arg5 ;
11099 bool result;
11100 void *argp1 = 0 ;
11101 int res1 = 0 ;
11102 int val2 ;
11103 int ecode2 = 0 ;
11104 int val3 ;
11105 int ecode3 = 0 ;
11106 int val4 ;
11107 int ecode4 = 0 ;
11108 int val5 ;
11109 int ecode5 = 0 ;
11110 PyObject * obj0 = 0 ;
11111 PyObject * obj1 = 0 ;
11112 PyObject * obj2 = 0 ;
11113 PyObject * obj3 = 0 ;
11114 PyObject * obj4 = 0 ;
11115 char * kwnames[] = {
11116 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11117 };
11118
11119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11121 if (!SWIG_IsOK(res1)) {
11122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11123 }
11124 arg1 = reinterpret_cast< wxRegion * >(argp1);
11125 ecode2 = SWIG_AsVal_int(obj1, &val2);
11126 if (!SWIG_IsOK(ecode2)) {
11127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11128 }
11129 arg2 = static_cast< int >(val2);
11130 ecode3 = SWIG_AsVal_int(obj2, &val3);
11131 if (!SWIG_IsOK(ecode3)) {
11132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11133 }
11134 arg3 = static_cast< int >(val3);
11135 ecode4 = SWIG_AsVal_int(obj3, &val4);
11136 if (!SWIG_IsOK(ecode4)) {
11137 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11138 }
11139 arg4 = static_cast< int >(val4);
11140 ecode5 = SWIG_AsVal_int(obj4, &val5);
11141 if (!SWIG_IsOK(ecode5)) {
11142 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11143 }
11144 arg5 = static_cast< int >(val5);
11145 {
11146 PyThreadState* __tstate = wxPyBeginAllowThreads();
11147 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11148 wxPyEndAllowThreads(__tstate);
11149 if (PyErr_Occurred()) SWIG_fail;
11150 }
11151 {
11152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11153 }
11154 return resultobj;
11155 fail:
11156 return NULL;
11157 }
11158
11159
11160 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11161 PyObject *resultobj = 0;
11162 wxRegion *arg1 = (wxRegion *) 0 ;
11163 wxRect *arg2 = 0 ;
11164 bool result;
11165 void *argp1 = 0 ;
11166 int res1 = 0 ;
11167 wxRect temp2 ;
11168 PyObject * obj0 = 0 ;
11169 PyObject * obj1 = 0 ;
11170 char * kwnames[] = {
11171 (char *) "self",(char *) "rect", NULL
11172 };
11173
11174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11176 if (!SWIG_IsOK(res1)) {
11177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11178 }
11179 arg1 = reinterpret_cast< wxRegion * >(argp1);
11180 {
11181 arg2 = &temp2;
11182 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11183 }
11184 {
11185 PyThreadState* __tstate = wxPyBeginAllowThreads();
11186 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11187 wxPyEndAllowThreads(__tstate);
11188 if (PyErr_Occurred()) SWIG_fail;
11189 }
11190 {
11191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11192 }
11193 return resultobj;
11194 fail:
11195 return NULL;
11196 }
11197
11198
11199 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11200 PyObject *resultobj = 0;
11201 wxRegion *arg1 = (wxRegion *) 0 ;
11202 wxRegion *arg2 = 0 ;
11203 bool result;
11204 void *argp1 = 0 ;
11205 int res1 = 0 ;
11206 void *argp2 = 0 ;
11207 int res2 = 0 ;
11208 PyObject * obj0 = 0 ;
11209 PyObject * obj1 = 0 ;
11210 char * kwnames[] = {
11211 (char *) "self",(char *) "region", NULL
11212 };
11213
11214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11216 if (!SWIG_IsOK(res1)) {
11217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11218 }
11219 arg1 = reinterpret_cast< wxRegion * >(argp1);
11220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11221 if (!SWIG_IsOK(res2)) {
11222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11223 }
11224 if (!argp2) {
11225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11226 }
11227 arg2 = reinterpret_cast< wxRegion * >(argp2);
11228 {
11229 PyThreadState* __tstate = wxPyBeginAllowThreads();
11230 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11231 wxPyEndAllowThreads(__tstate);
11232 if (PyErr_Occurred()) SWIG_fail;
11233 }
11234 {
11235 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11236 }
11237 return resultobj;
11238 fail:
11239 return NULL;
11240 }
11241
11242
11243 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11244 PyObject *resultobj = 0;
11245 wxRegion *arg1 = (wxRegion *) 0 ;
11246 bool result;
11247 void *argp1 = 0 ;
11248 int res1 = 0 ;
11249 PyObject *swig_obj[1] ;
11250
11251 if (!args) SWIG_fail;
11252 swig_obj[0] = args;
11253 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11254 if (!SWIG_IsOK(res1)) {
11255 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11256 }
11257 arg1 = reinterpret_cast< wxRegion * >(argp1);
11258 {
11259 PyThreadState* __tstate = wxPyBeginAllowThreads();
11260 result = (bool)(arg1)->IsEmpty();
11261 wxPyEndAllowThreads(__tstate);
11262 if (PyErr_Occurred()) SWIG_fail;
11263 }
11264 {
11265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11266 }
11267 return resultobj;
11268 fail:
11269 return NULL;
11270 }
11271
11272
11273 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11274 PyObject *resultobj = 0;
11275 wxRegion *arg1 = (wxRegion *) 0 ;
11276 wxRegion *arg2 = 0 ;
11277 bool result;
11278 void *argp1 = 0 ;
11279 int res1 = 0 ;
11280 void *argp2 = 0 ;
11281 int res2 = 0 ;
11282 PyObject * obj0 = 0 ;
11283 PyObject * obj1 = 0 ;
11284 char * kwnames[] = {
11285 (char *) "self",(char *) "region", NULL
11286 };
11287
11288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11290 if (!SWIG_IsOK(res1)) {
11291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11292 }
11293 arg1 = reinterpret_cast< wxRegion * >(argp1);
11294 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11295 if (!SWIG_IsOK(res2)) {
11296 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11297 }
11298 if (!argp2) {
11299 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11300 }
11301 arg2 = reinterpret_cast< wxRegion * >(argp2);
11302 {
11303 PyThreadState* __tstate = wxPyBeginAllowThreads();
11304 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11305 wxPyEndAllowThreads(__tstate);
11306 if (PyErr_Occurred()) SWIG_fail;
11307 }
11308 {
11309 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11310 }
11311 return resultobj;
11312 fail:
11313 return NULL;
11314 }
11315
11316
11317 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11318 PyObject *resultobj = 0;
11319 wxRegion *arg1 = (wxRegion *) 0 ;
11320 int arg2 ;
11321 int arg3 ;
11322 int arg4 ;
11323 int arg5 ;
11324 bool result;
11325 void *argp1 = 0 ;
11326 int res1 = 0 ;
11327 int val2 ;
11328 int ecode2 = 0 ;
11329 int val3 ;
11330 int ecode3 = 0 ;
11331 int val4 ;
11332 int ecode4 = 0 ;
11333 int val5 ;
11334 int ecode5 = 0 ;
11335 PyObject * obj0 = 0 ;
11336 PyObject * obj1 = 0 ;
11337 PyObject * obj2 = 0 ;
11338 PyObject * obj3 = 0 ;
11339 PyObject * obj4 = 0 ;
11340 char * kwnames[] = {
11341 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11342 };
11343
11344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11346 if (!SWIG_IsOK(res1)) {
11347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11348 }
11349 arg1 = reinterpret_cast< wxRegion * >(argp1);
11350 ecode2 = SWIG_AsVal_int(obj1, &val2);
11351 if (!SWIG_IsOK(ecode2)) {
11352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11353 }
11354 arg2 = static_cast< int >(val2);
11355 ecode3 = SWIG_AsVal_int(obj2, &val3);
11356 if (!SWIG_IsOK(ecode3)) {
11357 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11358 }
11359 arg3 = static_cast< int >(val3);
11360 ecode4 = SWIG_AsVal_int(obj3, &val4);
11361 if (!SWIG_IsOK(ecode4)) {
11362 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11363 }
11364 arg4 = static_cast< int >(val4);
11365 ecode5 = SWIG_AsVal_int(obj4, &val5);
11366 if (!SWIG_IsOK(ecode5)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11368 }
11369 arg5 = static_cast< int >(val5);
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11378 }
11379 return resultobj;
11380 fail:
11381 return NULL;
11382 }
11383
11384
11385 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11386 PyObject *resultobj = 0;
11387 wxRegion *arg1 = (wxRegion *) 0 ;
11388 wxRect *arg2 = 0 ;
11389 bool result;
11390 void *argp1 = 0 ;
11391 int res1 = 0 ;
11392 wxRect temp2 ;
11393 PyObject * obj0 = 0 ;
11394 PyObject * obj1 = 0 ;
11395 char * kwnames[] = {
11396 (char *) "self",(char *) "rect", NULL
11397 };
11398
11399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11401 if (!SWIG_IsOK(res1)) {
11402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11403 }
11404 arg1 = reinterpret_cast< wxRegion * >(argp1);
11405 {
11406 arg2 = &temp2;
11407 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11408 }
11409 {
11410 PyThreadState* __tstate = wxPyBeginAllowThreads();
11411 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11412 wxPyEndAllowThreads(__tstate);
11413 if (PyErr_Occurred()) SWIG_fail;
11414 }
11415 {
11416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11417 }
11418 return resultobj;
11419 fail:
11420 return NULL;
11421 }
11422
11423
11424 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11425 PyObject *resultobj = 0;
11426 wxRegion *arg1 = (wxRegion *) 0 ;
11427 wxRegion *arg2 = 0 ;
11428 bool result;
11429 void *argp1 = 0 ;
11430 int res1 = 0 ;
11431 void *argp2 = 0 ;
11432 int res2 = 0 ;
11433 PyObject * obj0 = 0 ;
11434 PyObject * obj1 = 0 ;
11435 char * kwnames[] = {
11436 (char *) "self",(char *) "region", NULL
11437 };
11438
11439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11441 if (!SWIG_IsOK(res1)) {
11442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11443 }
11444 arg1 = reinterpret_cast< wxRegion * >(argp1);
11445 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11446 if (!SWIG_IsOK(res2)) {
11447 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11448 }
11449 if (!argp2) {
11450 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11451 }
11452 arg2 = reinterpret_cast< wxRegion * >(argp2);
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11456 wxPyEndAllowThreads(__tstate);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 }
11459 {
11460 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11461 }
11462 return resultobj;
11463 fail:
11464 return NULL;
11465 }
11466
11467
11468 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11469 PyObject *resultobj = 0;
11470 wxRegion *arg1 = (wxRegion *) 0 ;
11471 int arg2 ;
11472 int arg3 ;
11473 int arg4 ;
11474 int arg5 ;
11475 bool result;
11476 void *argp1 = 0 ;
11477 int res1 = 0 ;
11478 int val2 ;
11479 int ecode2 = 0 ;
11480 int val3 ;
11481 int ecode3 = 0 ;
11482 int val4 ;
11483 int ecode4 = 0 ;
11484 int val5 ;
11485 int ecode5 = 0 ;
11486 PyObject * obj0 = 0 ;
11487 PyObject * obj1 = 0 ;
11488 PyObject * obj2 = 0 ;
11489 PyObject * obj3 = 0 ;
11490 PyObject * obj4 = 0 ;
11491 char * kwnames[] = {
11492 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11493 };
11494
11495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11497 if (!SWIG_IsOK(res1)) {
11498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11499 }
11500 arg1 = reinterpret_cast< wxRegion * >(argp1);
11501 ecode2 = SWIG_AsVal_int(obj1, &val2);
11502 if (!SWIG_IsOK(ecode2)) {
11503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11504 }
11505 arg2 = static_cast< int >(val2);
11506 ecode3 = SWIG_AsVal_int(obj2, &val3);
11507 if (!SWIG_IsOK(ecode3)) {
11508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11509 }
11510 arg3 = static_cast< int >(val3);
11511 ecode4 = SWIG_AsVal_int(obj3, &val4);
11512 if (!SWIG_IsOK(ecode4)) {
11513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11514 }
11515 arg4 = static_cast< int >(val4);
11516 ecode5 = SWIG_AsVal_int(obj4, &val5);
11517 if (!SWIG_IsOK(ecode5)) {
11518 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11519 }
11520 arg5 = static_cast< int >(val5);
11521 {
11522 PyThreadState* __tstate = wxPyBeginAllowThreads();
11523 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11524 wxPyEndAllowThreads(__tstate);
11525 if (PyErr_Occurred()) SWIG_fail;
11526 }
11527 {
11528 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11529 }
11530 return resultobj;
11531 fail:
11532 return NULL;
11533 }
11534
11535
11536 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11537 PyObject *resultobj = 0;
11538 wxRegion *arg1 = (wxRegion *) 0 ;
11539 wxRect *arg2 = 0 ;
11540 bool result;
11541 void *argp1 = 0 ;
11542 int res1 = 0 ;
11543 wxRect temp2 ;
11544 PyObject * obj0 = 0 ;
11545 PyObject * obj1 = 0 ;
11546 char * kwnames[] = {
11547 (char *) "self",(char *) "rect", NULL
11548 };
11549
11550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11552 if (!SWIG_IsOK(res1)) {
11553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11554 }
11555 arg1 = reinterpret_cast< wxRegion * >(argp1);
11556 {
11557 arg2 = &temp2;
11558 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11559 }
11560 {
11561 PyThreadState* __tstate = wxPyBeginAllowThreads();
11562 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11563 wxPyEndAllowThreads(__tstate);
11564 if (PyErr_Occurred()) SWIG_fail;
11565 }
11566 {
11567 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11568 }
11569 return resultobj;
11570 fail:
11571 return NULL;
11572 }
11573
11574
11575 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11576 PyObject *resultobj = 0;
11577 wxRegion *arg1 = (wxRegion *) 0 ;
11578 wxRegion *arg2 = 0 ;
11579 bool result;
11580 void *argp1 = 0 ;
11581 int res1 = 0 ;
11582 void *argp2 = 0 ;
11583 int res2 = 0 ;
11584 PyObject * obj0 = 0 ;
11585 PyObject * obj1 = 0 ;
11586 char * kwnames[] = {
11587 (char *) "self",(char *) "region", NULL
11588 };
11589
11590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11592 if (!SWIG_IsOK(res1)) {
11593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11594 }
11595 arg1 = reinterpret_cast< wxRegion * >(argp1);
11596 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11597 if (!SWIG_IsOK(res2)) {
11598 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11599 }
11600 if (!argp2) {
11601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11602 }
11603 arg2 = reinterpret_cast< wxRegion * >(argp2);
11604 {
11605 PyThreadState* __tstate = wxPyBeginAllowThreads();
11606 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11607 wxPyEndAllowThreads(__tstate);
11608 if (PyErr_Occurred()) SWIG_fail;
11609 }
11610 {
11611 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11612 }
11613 return resultobj;
11614 fail:
11615 return NULL;
11616 }
11617
11618
11619 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11620 PyObject *resultobj = 0;
11621 wxRegion *arg1 = (wxRegion *) 0 ;
11622 int arg2 ;
11623 int arg3 ;
11624 int arg4 ;
11625 int arg5 ;
11626 bool result;
11627 void *argp1 = 0 ;
11628 int res1 = 0 ;
11629 int val2 ;
11630 int ecode2 = 0 ;
11631 int val3 ;
11632 int ecode3 = 0 ;
11633 int val4 ;
11634 int ecode4 = 0 ;
11635 int val5 ;
11636 int ecode5 = 0 ;
11637 PyObject * obj0 = 0 ;
11638 PyObject * obj1 = 0 ;
11639 PyObject * obj2 = 0 ;
11640 PyObject * obj3 = 0 ;
11641 PyObject * obj4 = 0 ;
11642 char * kwnames[] = {
11643 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11644 };
11645
11646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11648 if (!SWIG_IsOK(res1)) {
11649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11650 }
11651 arg1 = reinterpret_cast< wxRegion * >(argp1);
11652 ecode2 = SWIG_AsVal_int(obj1, &val2);
11653 if (!SWIG_IsOK(ecode2)) {
11654 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11655 }
11656 arg2 = static_cast< int >(val2);
11657 ecode3 = SWIG_AsVal_int(obj2, &val3);
11658 if (!SWIG_IsOK(ecode3)) {
11659 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11660 }
11661 arg3 = static_cast< int >(val3);
11662 ecode4 = SWIG_AsVal_int(obj3, &val4);
11663 if (!SWIG_IsOK(ecode4)) {
11664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11665 }
11666 arg4 = static_cast< int >(val4);
11667 ecode5 = SWIG_AsVal_int(obj4, &val5);
11668 if (!SWIG_IsOK(ecode5)) {
11669 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11670 }
11671 arg5 = static_cast< int >(val5);
11672 {
11673 PyThreadState* __tstate = wxPyBeginAllowThreads();
11674 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11675 wxPyEndAllowThreads(__tstate);
11676 if (PyErr_Occurred()) SWIG_fail;
11677 }
11678 {
11679 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11680 }
11681 return resultobj;
11682 fail:
11683 return NULL;
11684 }
11685
11686
11687 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11688 PyObject *resultobj = 0;
11689 wxRegion *arg1 = (wxRegion *) 0 ;
11690 wxRect *arg2 = 0 ;
11691 bool result;
11692 void *argp1 = 0 ;
11693 int res1 = 0 ;
11694 wxRect temp2 ;
11695 PyObject * obj0 = 0 ;
11696 PyObject * obj1 = 0 ;
11697 char * kwnames[] = {
11698 (char *) "self",(char *) "rect", NULL
11699 };
11700
11701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11702 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11703 if (!SWIG_IsOK(res1)) {
11704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11705 }
11706 arg1 = reinterpret_cast< wxRegion * >(argp1);
11707 {
11708 arg2 = &temp2;
11709 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11710 }
11711 {
11712 PyThreadState* __tstate = wxPyBeginAllowThreads();
11713 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11714 wxPyEndAllowThreads(__tstate);
11715 if (PyErr_Occurred()) SWIG_fail;
11716 }
11717 {
11718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11719 }
11720 return resultobj;
11721 fail:
11722 return NULL;
11723 }
11724
11725
11726 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11727 PyObject *resultobj = 0;
11728 wxRegion *arg1 = (wxRegion *) 0 ;
11729 wxRegion *arg2 = 0 ;
11730 bool result;
11731 void *argp1 = 0 ;
11732 int res1 = 0 ;
11733 void *argp2 = 0 ;
11734 int res2 = 0 ;
11735 PyObject * obj0 = 0 ;
11736 PyObject * obj1 = 0 ;
11737 char * kwnames[] = {
11738 (char *) "self",(char *) "region", NULL
11739 };
11740
11741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11743 if (!SWIG_IsOK(res1)) {
11744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11745 }
11746 arg1 = reinterpret_cast< wxRegion * >(argp1);
11747 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11748 if (!SWIG_IsOK(res2)) {
11749 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11750 }
11751 if (!argp2) {
11752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11753 }
11754 arg2 = reinterpret_cast< wxRegion * >(argp2);
11755 {
11756 PyThreadState* __tstate = wxPyBeginAllowThreads();
11757 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11758 wxPyEndAllowThreads(__tstate);
11759 if (PyErr_Occurred()) SWIG_fail;
11760 }
11761 {
11762 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11763 }
11764 return resultobj;
11765 fail:
11766 return NULL;
11767 }
11768
11769
11770 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11771 PyObject *resultobj = 0;
11772 wxRegion *arg1 = (wxRegion *) 0 ;
11773 SwigValueWrapper<wxBitmap > result;
11774 void *argp1 = 0 ;
11775 int res1 = 0 ;
11776 PyObject *swig_obj[1] ;
11777
11778 if (!args) SWIG_fail;
11779 swig_obj[0] = args;
11780 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11781 if (!SWIG_IsOK(res1)) {
11782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11783 }
11784 arg1 = reinterpret_cast< wxRegion * >(argp1);
11785 {
11786 PyThreadState* __tstate = wxPyBeginAllowThreads();
11787 result = (arg1)->ConvertToBitmap();
11788 wxPyEndAllowThreads(__tstate);
11789 if (PyErr_Occurred()) SWIG_fail;
11790 }
11791 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11792 return resultobj;
11793 fail:
11794 return NULL;
11795 }
11796
11797
11798 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11799 PyObject *resultobj = 0;
11800 wxRegion *arg1 = (wxRegion *) 0 ;
11801 wxBitmap *arg2 = 0 ;
11802 bool result;
11803 void *argp1 = 0 ;
11804 int res1 = 0 ;
11805 void *argp2 = 0 ;
11806 int res2 = 0 ;
11807 PyObject * obj0 = 0 ;
11808 PyObject * obj1 = 0 ;
11809 char * kwnames[] = {
11810 (char *) "self",(char *) "bmp", NULL
11811 };
11812
11813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11815 if (!SWIG_IsOK(res1)) {
11816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11817 }
11818 arg1 = reinterpret_cast< wxRegion * >(argp1);
11819 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11820 if (!SWIG_IsOK(res2)) {
11821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11822 }
11823 if (!argp2) {
11824 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11825 }
11826 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11827 {
11828 PyThreadState* __tstate = wxPyBeginAllowThreads();
11829 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11830 wxPyEndAllowThreads(__tstate);
11831 if (PyErr_Occurred()) SWIG_fail;
11832 }
11833 {
11834 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11835 }
11836 return resultobj;
11837 fail:
11838 return NULL;
11839 }
11840
11841
11842 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11843 PyObject *resultobj = 0;
11844 wxRegion *arg1 = (wxRegion *) 0 ;
11845 wxBitmap *arg2 = 0 ;
11846 wxColour *arg3 = 0 ;
11847 int arg4 = (int) 0 ;
11848 bool result;
11849 void *argp1 = 0 ;
11850 int res1 = 0 ;
11851 void *argp2 = 0 ;
11852 int res2 = 0 ;
11853 wxColour temp3 ;
11854 int val4 ;
11855 int ecode4 = 0 ;
11856 PyObject * obj0 = 0 ;
11857 PyObject * obj1 = 0 ;
11858 PyObject * obj2 = 0 ;
11859 PyObject * obj3 = 0 ;
11860 char * kwnames[] = {
11861 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11862 };
11863
11864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11865 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11866 if (!SWIG_IsOK(res1)) {
11867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11868 }
11869 arg1 = reinterpret_cast< wxRegion * >(argp1);
11870 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11871 if (!SWIG_IsOK(res2)) {
11872 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11873 }
11874 if (!argp2) {
11875 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11876 }
11877 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11878 {
11879 arg3 = &temp3;
11880 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11881 }
11882 if (obj3) {
11883 ecode4 = SWIG_AsVal_int(obj3, &val4);
11884 if (!SWIG_IsOK(ecode4)) {
11885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11886 }
11887 arg4 = static_cast< int >(val4);
11888 }
11889 {
11890 PyThreadState* __tstate = wxPyBeginAllowThreads();
11891 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11892 wxPyEndAllowThreads(__tstate);
11893 if (PyErr_Occurred()) SWIG_fail;
11894 }
11895 {
11896 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11897 }
11898 return resultobj;
11899 fail:
11900 return NULL;
11901 }
11902
11903
11904 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11905 PyObject *obj;
11906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11907 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11908 return SWIG_Py_Void();
11909 }
11910
11911 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11912 return SWIG_Python_InitShadowInstance(args);
11913 }
11914
11915 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj = 0;
11917 wxRegion *arg1 = 0 ;
11918 wxRegionIterator *result = 0 ;
11919 void *argp1 = 0 ;
11920 int res1 = 0 ;
11921 PyObject * obj0 = 0 ;
11922 char * kwnames[] = {
11923 (char *) "region", NULL
11924 };
11925
11926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11927 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11928 if (!SWIG_IsOK(res1)) {
11929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11930 }
11931 if (!argp1) {
11932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11933 }
11934 arg1 = reinterpret_cast< wxRegion * >(argp1);
11935 {
11936 if (!wxPyCheckForApp()) SWIG_fail;
11937 PyThreadState* __tstate = wxPyBeginAllowThreads();
11938 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11939 wxPyEndAllowThreads(__tstate);
11940 if (PyErr_Occurred()) SWIG_fail;
11941 }
11942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11943 return resultobj;
11944 fail:
11945 return NULL;
11946 }
11947
11948
11949 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11950 PyObject *resultobj = 0;
11951 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11952 void *argp1 = 0 ;
11953 int res1 = 0 ;
11954 PyObject *swig_obj[1] ;
11955
11956 if (!args) SWIG_fail;
11957 swig_obj[0] = args;
11958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11959 if (!SWIG_IsOK(res1)) {
11960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11961 }
11962 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11963 {
11964 PyThreadState* __tstate = wxPyBeginAllowThreads();
11965 delete arg1;
11966
11967 wxPyEndAllowThreads(__tstate);
11968 if (PyErr_Occurred()) SWIG_fail;
11969 }
11970 resultobj = SWIG_Py_Void();
11971 return resultobj;
11972 fail:
11973 return NULL;
11974 }
11975
11976
11977 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11978 PyObject *resultobj = 0;
11979 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11980 int result;
11981 void *argp1 = 0 ;
11982 int res1 = 0 ;
11983 PyObject *swig_obj[1] ;
11984
11985 if (!args) SWIG_fail;
11986 swig_obj[0] = args;
11987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
11988 if (!SWIG_IsOK(res1)) {
11989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11990 }
11991 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11992 {
11993 PyThreadState* __tstate = wxPyBeginAllowThreads();
11994 result = (int)(arg1)->GetX();
11995 wxPyEndAllowThreads(__tstate);
11996 if (PyErr_Occurred()) SWIG_fail;
11997 }
11998 resultobj = SWIG_From_int(static_cast< int >(result));
11999 return resultobj;
12000 fail:
12001 return NULL;
12002 }
12003
12004
12005 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12006 PyObject *resultobj = 0;
12007 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12008 int result;
12009 void *argp1 = 0 ;
12010 int res1 = 0 ;
12011 PyObject *swig_obj[1] ;
12012
12013 if (!args) SWIG_fail;
12014 swig_obj[0] = args;
12015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12016 if (!SWIG_IsOK(res1)) {
12017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12018 }
12019 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 result = (int)(arg1)->GetY();
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_From_int(static_cast< int >(result));
12027 return resultobj;
12028 fail:
12029 return NULL;
12030 }
12031
12032
12033 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12034 PyObject *resultobj = 0;
12035 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12036 int result;
12037 void *argp1 = 0 ;
12038 int res1 = 0 ;
12039 PyObject *swig_obj[1] ;
12040
12041 if (!args) SWIG_fail;
12042 swig_obj[0] = args;
12043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12044 if (!SWIG_IsOK(res1)) {
12045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12046 }
12047 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12048 {
12049 PyThreadState* __tstate = wxPyBeginAllowThreads();
12050 result = (int)(arg1)->GetW();
12051 wxPyEndAllowThreads(__tstate);
12052 if (PyErr_Occurred()) SWIG_fail;
12053 }
12054 resultobj = SWIG_From_int(static_cast< int >(result));
12055 return resultobj;
12056 fail:
12057 return NULL;
12058 }
12059
12060
12061 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12062 PyObject *resultobj = 0;
12063 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12064 int result;
12065 void *argp1 = 0 ;
12066 int res1 = 0 ;
12067 PyObject *swig_obj[1] ;
12068
12069 if (!args) SWIG_fail;
12070 swig_obj[0] = args;
12071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12072 if (!SWIG_IsOK(res1)) {
12073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12074 }
12075 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12076 {
12077 PyThreadState* __tstate = wxPyBeginAllowThreads();
12078 result = (int)(arg1)->GetWidth();
12079 wxPyEndAllowThreads(__tstate);
12080 if (PyErr_Occurred()) SWIG_fail;
12081 }
12082 resultobj = SWIG_From_int(static_cast< int >(result));
12083 return resultobj;
12084 fail:
12085 return NULL;
12086 }
12087
12088
12089 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12090 PyObject *resultobj = 0;
12091 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12092 int result;
12093 void *argp1 = 0 ;
12094 int res1 = 0 ;
12095 PyObject *swig_obj[1] ;
12096
12097 if (!args) SWIG_fail;
12098 swig_obj[0] = args;
12099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12100 if (!SWIG_IsOK(res1)) {
12101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12102 }
12103 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12104 {
12105 PyThreadState* __tstate = wxPyBeginAllowThreads();
12106 result = (int)(arg1)->GetH();
12107 wxPyEndAllowThreads(__tstate);
12108 if (PyErr_Occurred()) SWIG_fail;
12109 }
12110 resultobj = SWIG_From_int(static_cast< int >(result));
12111 return resultobj;
12112 fail:
12113 return NULL;
12114 }
12115
12116
12117 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12118 PyObject *resultobj = 0;
12119 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12120 int result;
12121 void *argp1 = 0 ;
12122 int res1 = 0 ;
12123 PyObject *swig_obj[1] ;
12124
12125 if (!args) SWIG_fail;
12126 swig_obj[0] = args;
12127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12128 if (!SWIG_IsOK(res1)) {
12129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12130 }
12131 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 result = (int)(arg1)->GetHeight();
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = SWIG_From_int(static_cast< int >(result));
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12146 PyObject *resultobj = 0;
12147 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12148 wxRect result;
12149 void *argp1 = 0 ;
12150 int res1 = 0 ;
12151 PyObject *swig_obj[1] ;
12152
12153 if (!args) SWIG_fail;
12154 swig_obj[0] = args;
12155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12156 if (!SWIG_IsOK(res1)) {
12157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12158 }
12159 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12160 {
12161 PyThreadState* __tstate = wxPyBeginAllowThreads();
12162 result = (arg1)->GetRect();
12163 wxPyEndAllowThreads(__tstate);
12164 if (PyErr_Occurred()) SWIG_fail;
12165 }
12166 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12167 return resultobj;
12168 fail:
12169 return NULL;
12170 }
12171
12172
12173 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12174 PyObject *resultobj = 0;
12175 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12176 bool result;
12177 void *argp1 = 0 ;
12178 int res1 = 0 ;
12179 PyObject *swig_obj[1] ;
12180
12181 if (!args) SWIG_fail;
12182 swig_obj[0] = args;
12183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12184 if (!SWIG_IsOK(res1)) {
12185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12186 }
12187 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12188 {
12189 PyThreadState* __tstate = wxPyBeginAllowThreads();
12190 result = (bool)(arg1)->HaveRects();
12191 wxPyEndAllowThreads(__tstate);
12192 if (PyErr_Occurred()) SWIG_fail;
12193 }
12194 {
12195 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12196 }
12197 return resultobj;
12198 fail:
12199 return NULL;
12200 }
12201
12202
12203 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12204 PyObject *resultobj = 0;
12205 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12206 void *argp1 = 0 ;
12207 int res1 = 0 ;
12208 PyObject *swig_obj[1] ;
12209
12210 if (!args) SWIG_fail;
12211 swig_obj[0] = args;
12212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12213 if (!SWIG_IsOK(res1)) {
12214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12215 }
12216 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12217 {
12218 PyThreadState* __tstate = wxPyBeginAllowThreads();
12219 (arg1)->Reset();
12220 wxPyEndAllowThreads(__tstate);
12221 if (PyErr_Occurred()) SWIG_fail;
12222 }
12223 resultobj = SWIG_Py_Void();
12224 return resultobj;
12225 fail:
12226 return NULL;
12227 }
12228
12229
12230 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12231 PyObject *resultobj = 0;
12232 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12233 void *argp1 = 0 ;
12234 int res1 = 0 ;
12235 PyObject *swig_obj[1] ;
12236
12237 if (!args) SWIG_fail;
12238 swig_obj[0] = args;
12239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12240 if (!SWIG_IsOK(res1)) {
12241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12242 }
12243 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12244 {
12245 PyThreadState* __tstate = wxPyBeginAllowThreads();
12246 wxRegionIterator_Next(arg1);
12247 wxPyEndAllowThreads(__tstate);
12248 if (PyErr_Occurred()) SWIG_fail;
12249 }
12250 resultobj = SWIG_Py_Void();
12251 return resultobj;
12252 fail:
12253 return NULL;
12254 }
12255
12256
12257 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12258 PyObject *resultobj = 0;
12259 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12260 bool result;
12261 void *argp1 = 0 ;
12262 int res1 = 0 ;
12263 PyObject *swig_obj[1] ;
12264
12265 if (!args) SWIG_fail;
12266 swig_obj[0] = args;
12267 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12268 if (!SWIG_IsOK(res1)) {
12269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12270 }
12271 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12272 {
12273 PyThreadState* __tstate = wxPyBeginAllowThreads();
12274 result = (bool)wxRegionIterator___nonzero__(arg1);
12275 wxPyEndAllowThreads(__tstate);
12276 if (PyErr_Occurred()) SWIG_fail;
12277 }
12278 {
12279 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12280 }
12281 return resultobj;
12282 fail:
12283 return NULL;
12284 }
12285
12286
12287 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12288 PyObject *obj;
12289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12290 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12291 return SWIG_Py_Void();
12292 }
12293
12294 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12295 return SWIG_Python_InitShadowInstance(args);
12296 }
12297
12298 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12299 PyObject *resultobj = 0;
12300 wxNativeFontInfo *result = 0 ;
12301
12302 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12303 {
12304 PyThreadState* __tstate = wxPyBeginAllowThreads();
12305 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12306 wxPyEndAllowThreads(__tstate);
12307 if (PyErr_Occurred()) SWIG_fail;
12308 }
12309 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12310 return resultobj;
12311 fail:
12312 return NULL;
12313 }
12314
12315
12316 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12317 PyObject *resultobj = 0;
12318 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12319 void *argp1 = 0 ;
12320 int res1 = 0 ;
12321 PyObject *swig_obj[1] ;
12322
12323 if (!args) SWIG_fail;
12324 swig_obj[0] = args;
12325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12326 if (!SWIG_IsOK(res1)) {
12327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12328 }
12329 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12330 {
12331 PyThreadState* __tstate = wxPyBeginAllowThreads();
12332 delete arg1;
12333
12334 wxPyEndAllowThreads(__tstate);
12335 if (PyErr_Occurred()) SWIG_fail;
12336 }
12337 resultobj = SWIG_Py_Void();
12338 return resultobj;
12339 fail:
12340 return NULL;
12341 }
12342
12343
12344 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12345 PyObject *resultobj = 0;
12346 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12347 void *argp1 = 0 ;
12348 int res1 = 0 ;
12349 PyObject *swig_obj[1] ;
12350
12351 if (!args) SWIG_fail;
12352 swig_obj[0] = args;
12353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12354 if (!SWIG_IsOK(res1)) {
12355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12356 }
12357 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12358 {
12359 PyThreadState* __tstate = wxPyBeginAllowThreads();
12360 (arg1)->Init();
12361 wxPyEndAllowThreads(__tstate);
12362 if (PyErr_Occurred()) SWIG_fail;
12363 }
12364 resultobj = SWIG_Py_Void();
12365 return resultobj;
12366 fail:
12367 return NULL;
12368 }
12369
12370
12371 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12372 PyObject *resultobj = 0;
12373 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12374 wxFont *arg2 = 0 ;
12375 void *argp1 = 0 ;
12376 int res1 = 0 ;
12377 void *argp2 = 0 ;
12378 int res2 = 0 ;
12379 PyObject * obj0 = 0 ;
12380 PyObject * obj1 = 0 ;
12381 char * kwnames[] = {
12382 (char *) "self",(char *) "font", NULL
12383 };
12384
12385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12387 if (!SWIG_IsOK(res1)) {
12388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12389 }
12390 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12391 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12392 if (!SWIG_IsOK(res2)) {
12393 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12394 }
12395 if (!argp2) {
12396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12397 }
12398 arg2 = reinterpret_cast< wxFont * >(argp2);
12399 {
12400 PyThreadState* __tstate = wxPyBeginAllowThreads();
12401 (arg1)->InitFromFont((wxFont const &)*arg2);
12402 wxPyEndAllowThreads(__tstate);
12403 if (PyErr_Occurred()) SWIG_fail;
12404 }
12405 resultobj = SWIG_Py_Void();
12406 return resultobj;
12407 fail:
12408 return NULL;
12409 }
12410
12411
12412 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12413 PyObject *resultobj = 0;
12414 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12415 int result;
12416 void *argp1 = 0 ;
12417 int res1 = 0 ;
12418 PyObject *swig_obj[1] ;
12419
12420 if (!args) SWIG_fail;
12421 swig_obj[0] = args;
12422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12423 if (!SWIG_IsOK(res1)) {
12424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12425 }
12426 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12427 {
12428 PyThreadState* __tstate = wxPyBeginAllowThreads();
12429 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12430 wxPyEndAllowThreads(__tstate);
12431 if (PyErr_Occurred()) SWIG_fail;
12432 }
12433 resultobj = SWIG_From_int(static_cast< int >(result));
12434 return resultobj;
12435 fail:
12436 return NULL;
12437 }
12438
12439
12440 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12441 PyObject *resultobj = 0;
12442 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12443 wxSize result;
12444 void *argp1 = 0 ;
12445 int res1 = 0 ;
12446 PyObject *swig_obj[1] ;
12447
12448 if (!args) SWIG_fail;
12449 swig_obj[0] = args;
12450 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12451 if (!SWIG_IsOK(res1)) {
12452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12453 }
12454 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12455 {
12456 PyThreadState* __tstate = wxPyBeginAllowThreads();
12457 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12458 wxPyEndAllowThreads(__tstate);
12459 if (PyErr_Occurred()) SWIG_fail;
12460 }
12461 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12462 return resultobj;
12463 fail:
12464 return NULL;
12465 }
12466
12467
12468 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12469 PyObject *resultobj = 0;
12470 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12471 wxFontStyle result;
12472 void *argp1 = 0 ;
12473 int res1 = 0 ;
12474 PyObject *swig_obj[1] ;
12475
12476 if (!args) SWIG_fail;
12477 swig_obj[0] = args;
12478 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12479 if (!SWIG_IsOK(res1)) {
12480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12481 }
12482 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12483 {
12484 PyThreadState* __tstate = wxPyBeginAllowThreads();
12485 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12486 wxPyEndAllowThreads(__tstate);
12487 if (PyErr_Occurred()) SWIG_fail;
12488 }
12489 resultobj = SWIG_From_int(static_cast< int >(result));
12490 return resultobj;
12491 fail:
12492 return NULL;
12493 }
12494
12495
12496 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12497 PyObject *resultobj = 0;
12498 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12499 wxFontWeight result;
12500 void *argp1 = 0 ;
12501 int res1 = 0 ;
12502 PyObject *swig_obj[1] ;
12503
12504 if (!args) SWIG_fail;
12505 swig_obj[0] = args;
12506 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12507 if (!SWIG_IsOK(res1)) {
12508 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12509 }
12510 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12511 {
12512 PyThreadState* __tstate = wxPyBeginAllowThreads();
12513 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12514 wxPyEndAllowThreads(__tstate);
12515 if (PyErr_Occurred()) SWIG_fail;
12516 }
12517 resultobj = SWIG_From_int(static_cast< int >(result));
12518 return resultobj;
12519 fail:
12520 return NULL;
12521 }
12522
12523
12524 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12525 PyObject *resultobj = 0;
12526 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12527 bool result;
12528 void *argp1 = 0 ;
12529 int res1 = 0 ;
12530 PyObject *swig_obj[1] ;
12531
12532 if (!args) SWIG_fail;
12533 swig_obj[0] = args;
12534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12535 if (!SWIG_IsOK(res1)) {
12536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12537 }
12538 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 {
12546 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12547 }
12548 return resultobj;
12549 fail:
12550 return NULL;
12551 }
12552
12553
12554 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12555 PyObject *resultobj = 0;
12556 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12557 wxString result;
12558 void *argp1 = 0 ;
12559 int res1 = 0 ;
12560 PyObject *swig_obj[1] ;
12561
12562 if (!args) SWIG_fail;
12563 swig_obj[0] = args;
12564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12565 if (!SWIG_IsOK(res1)) {
12566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12567 }
12568 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12569 {
12570 PyThreadState* __tstate = wxPyBeginAllowThreads();
12571 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12572 wxPyEndAllowThreads(__tstate);
12573 if (PyErr_Occurred()) SWIG_fail;
12574 }
12575 {
12576 #if wxUSE_UNICODE
12577 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12578 #else
12579 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12580 #endif
12581 }
12582 return resultobj;
12583 fail:
12584 return NULL;
12585 }
12586
12587
12588 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12589 PyObject *resultobj = 0;
12590 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12591 wxFontFamily result;
12592 void *argp1 = 0 ;
12593 int res1 = 0 ;
12594 PyObject *swig_obj[1] ;
12595
12596 if (!args) SWIG_fail;
12597 swig_obj[0] = args;
12598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12599 if (!SWIG_IsOK(res1)) {
12600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12601 }
12602 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12603 {
12604 PyThreadState* __tstate = wxPyBeginAllowThreads();
12605 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12606 wxPyEndAllowThreads(__tstate);
12607 if (PyErr_Occurred()) SWIG_fail;
12608 }
12609 resultobj = SWIG_From_int(static_cast< int >(result));
12610 return resultobj;
12611 fail:
12612 return NULL;
12613 }
12614
12615
12616 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12617 PyObject *resultobj = 0;
12618 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12619 wxFontEncoding result;
12620 void *argp1 = 0 ;
12621 int res1 = 0 ;
12622 PyObject *swig_obj[1] ;
12623
12624 if (!args) SWIG_fail;
12625 swig_obj[0] = args;
12626 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12627 if (!SWIG_IsOK(res1)) {
12628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12629 }
12630 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12631 {
12632 PyThreadState* __tstate = wxPyBeginAllowThreads();
12633 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12634 wxPyEndAllowThreads(__tstate);
12635 if (PyErr_Occurred()) SWIG_fail;
12636 }
12637 resultobj = SWIG_From_int(static_cast< int >(result));
12638 return resultobj;
12639 fail:
12640 return NULL;
12641 }
12642
12643
12644 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12645 PyObject *resultobj = 0;
12646 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12647 int arg2 ;
12648 void *argp1 = 0 ;
12649 int res1 = 0 ;
12650 int val2 ;
12651 int ecode2 = 0 ;
12652 PyObject * obj0 = 0 ;
12653 PyObject * obj1 = 0 ;
12654 char * kwnames[] = {
12655 (char *) "self",(char *) "pointsize", NULL
12656 };
12657
12658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12660 if (!SWIG_IsOK(res1)) {
12661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12662 }
12663 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12664 ecode2 = SWIG_AsVal_int(obj1, &val2);
12665 if (!SWIG_IsOK(ecode2)) {
12666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12667 }
12668 arg2 = static_cast< int >(val2);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 (arg1)->SetPointSize(arg2);
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 resultobj = SWIG_Py_Void();
12676 return resultobj;
12677 fail:
12678 return NULL;
12679 }
12680
12681
12682 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12683 PyObject *resultobj = 0;
12684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12685 wxSize *arg2 = 0 ;
12686 void *argp1 = 0 ;
12687 int res1 = 0 ;
12688 wxSize temp2 ;
12689 PyObject * obj0 = 0 ;
12690 PyObject * obj1 = 0 ;
12691 char * kwnames[] = {
12692 (char *) "self",(char *) "pixelSize", NULL
12693 };
12694
12695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12697 if (!SWIG_IsOK(res1)) {
12698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12699 }
12700 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12701 {
12702 arg2 = &temp2;
12703 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12704 }
12705 {
12706 PyThreadState* __tstate = wxPyBeginAllowThreads();
12707 (arg1)->SetPixelSize((wxSize const &)*arg2);
12708 wxPyEndAllowThreads(__tstate);
12709 if (PyErr_Occurred()) SWIG_fail;
12710 }
12711 resultobj = SWIG_Py_Void();
12712 return resultobj;
12713 fail:
12714 return NULL;
12715 }
12716
12717
12718 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12719 PyObject *resultobj = 0;
12720 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12721 wxFontStyle arg2 ;
12722 void *argp1 = 0 ;
12723 int res1 = 0 ;
12724 int val2 ;
12725 int ecode2 = 0 ;
12726 PyObject * obj0 = 0 ;
12727 PyObject * obj1 = 0 ;
12728 char * kwnames[] = {
12729 (char *) "self",(char *) "style", NULL
12730 };
12731
12732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12734 if (!SWIG_IsOK(res1)) {
12735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12736 }
12737 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12738 ecode2 = SWIG_AsVal_int(obj1, &val2);
12739 if (!SWIG_IsOK(ecode2)) {
12740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12741 }
12742 arg2 = static_cast< wxFontStyle >(val2);
12743 {
12744 PyThreadState* __tstate = wxPyBeginAllowThreads();
12745 (arg1)->SetStyle(arg2);
12746 wxPyEndAllowThreads(__tstate);
12747 if (PyErr_Occurred()) SWIG_fail;
12748 }
12749 resultobj = SWIG_Py_Void();
12750 return resultobj;
12751 fail:
12752 return NULL;
12753 }
12754
12755
12756 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12757 PyObject *resultobj = 0;
12758 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12759 wxFontWeight arg2 ;
12760 void *argp1 = 0 ;
12761 int res1 = 0 ;
12762 int val2 ;
12763 int ecode2 = 0 ;
12764 PyObject * obj0 = 0 ;
12765 PyObject * obj1 = 0 ;
12766 char * kwnames[] = {
12767 (char *) "self",(char *) "weight", NULL
12768 };
12769
12770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12772 if (!SWIG_IsOK(res1)) {
12773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12774 }
12775 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12776 ecode2 = SWIG_AsVal_int(obj1, &val2);
12777 if (!SWIG_IsOK(ecode2)) {
12778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12779 }
12780 arg2 = static_cast< wxFontWeight >(val2);
12781 {
12782 PyThreadState* __tstate = wxPyBeginAllowThreads();
12783 (arg1)->SetWeight(arg2);
12784 wxPyEndAllowThreads(__tstate);
12785 if (PyErr_Occurred()) SWIG_fail;
12786 }
12787 resultobj = SWIG_Py_Void();
12788 return resultobj;
12789 fail:
12790 return NULL;
12791 }
12792
12793
12794 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12795 PyObject *resultobj = 0;
12796 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12797 bool arg2 ;
12798 void *argp1 = 0 ;
12799 int res1 = 0 ;
12800 bool val2 ;
12801 int ecode2 = 0 ;
12802 PyObject * obj0 = 0 ;
12803 PyObject * obj1 = 0 ;
12804 char * kwnames[] = {
12805 (char *) "self",(char *) "underlined", NULL
12806 };
12807
12808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12810 if (!SWIG_IsOK(res1)) {
12811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12812 }
12813 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12814 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12815 if (!SWIG_IsOK(ecode2)) {
12816 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12817 }
12818 arg2 = static_cast< bool >(val2);
12819 {
12820 PyThreadState* __tstate = wxPyBeginAllowThreads();
12821 (arg1)->SetUnderlined(arg2);
12822 wxPyEndAllowThreads(__tstate);
12823 if (PyErr_Occurred()) SWIG_fail;
12824 }
12825 resultobj = SWIG_Py_Void();
12826 return resultobj;
12827 fail:
12828 return NULL;
12829 }
12830
12831
12832 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12833 PyObject *resultobj = 0;
12834 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12835 wxString arg2 ;
12836 bool result;
12837 void *argp1 = 0 ;
12838 int res1 = 0 ;
12839 PyObject * obj0 = 0 ;
12840 PyObject * obj1 = 0 ;
12841 char * kwnames[] = {
12842 (char *) "self",(char *) "facename", NULL
12843 };
12844
12845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12847 if (!SWIG_IsOK(res1)) {
12848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12849 }
12850 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12851 {
12852 wxString* sptr = wxString_in_helper(obj1);
12853 if (sptr == NULL) SWIG_fail;
12854 arg2 = *sptr;
12855 delete sptr;
12856 }
12857 {
12858 PyThreadState* __tstate = wxPyBeginAllowThreads();
12859 result = (bool)(arg1)->SetFaceName(arg2);
12860 wxPyEndAllowThreads(__tstate);
12861 if (PyErr_Occurred()) SWIG_fail;
12862 }
12863 {
12864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12865 }
12866 return resultobj;
12867 fail:
12868 return NULL;
12869 }
12870
12871
12872 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12873 PyObject *resultobj = 0;
12874 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12875 wxFontFamily arg2 ;
12876 void *argp1 = 0 ;
12877 int res1 = 0 ;
12878 int val2 ;
12879 int ecode2 = 0 ;
12880 PyObject * obj0 = 0 ;
12881 PyObject * obj1 = 0 ;
12882 char * kwnames[] = {
12883 (char *) "self",(char *) "family", NULL
12884 };
12885
12886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12888 if (!SWIG_IsOK(res1)) {
12889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12890 }
12891 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12892 ecode2 = SWIG_AsVal_int(obj1, &val2);
12893 if (!SWIG_IsOK(ecode2)) {
12894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12895 }
12896 arg2 = static_cast< wxFontFamily >(val2);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 (arg1)->SetFamily(arg2);
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 resultobj = SWIG_Py_Void();
12904 return resultobj;
12905 fail:
12906 return NULL;
12907 }
12908
12909
12910 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12911 PyObject *resultobj = 0;
12912 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12913 wxFontEncoding arg2 ;
12914 void *argp1 = 0 ;
12915 int res1 = 0 ;
12916 int val2 ;
12917 int ecode2 = 0 ;
12918 PyObject * obj0 = 0 ;
12919 PyObject * obj1 = 0 ;
12920 char * kwnames[] = {
12921 (char *) "self",(char *) "encoding", NULL
12922 };
12923
12924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12926 if (!SWIG_IsOK(res1)) {
12927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12928 }
12929 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12930 ecode2 = SWIG_AsVal_int(obj1, &val2);
12931 if (!SWIG_IsOK(ecode2)) {
12932 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12933 }
12934 arg2 = static_cast< wxFontEncoding >(val2);
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 (arg1)->SetEncoding(arg2);
12938 wxPyEndAllowThreads(__tstate);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 resultobj = SWIG_Py_Void();
12942 return resultobj;
12943 fail:
12944 return NULL;
12945 }
12946
12947
12948 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj = 0;
12950 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12951 wxString *arg2 = 0 ;
12952 bool result;
12953 void *argp1 = 0 ;
12954 int res1 = 0 ;
12955 bool temp2 = false ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 char * kwnames[] = {
12959 (char *) "self",(char *) "s", NULL
12960 };
12961
12962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12964 if (!SWIG_IsOK(res1)) {
12965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12966 }
12967 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12968 {
12969 arg2 = wxString_in_helper(obj1);
12970 if (arg2 == NULL) SWIG_fail;
12971 temp2 = true;
12972 }
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 {
12980 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12981 }
12982 {
12983 if (temp2)
12984 delete arg2;
12985 }
12986 return resultobj;
12987 fail:
12988 {
12989 if (temp2)
12990 delete arg2;
12991 }
12992 return NULL;
12993 }
12994
12995
12996 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12997 PyObject *resultobj = 0;
12998 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12999 wxString result;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 PyObject *swig_obj[1] ;
13003
13004 if (!args) SWIG_fail;
13005 swig_obj[0] = args;
13006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13007 if (!SWIG_IsOK(res1)) {
13008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13009 }
13010 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13011 {
13012 PyThreadState* __tstate = wxPyBeginAllowThreads();
13013 result = ((wxNativeFontInfo const *)arg1)->ToString();
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 {
13018 #if wxUSE_UNICODE
13019 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13020 #else
13021 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13022 #endif
13023 }
13024 return resultobj;
13025 fail:
13026 return NULL;
13027 }
13028
13029
13030 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13031 PyObject *resultobj = 0;
13032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13033 wxString result;
13034 void *argp1 = 0 ;
13035 int res1 = 0 ;
13036 PyObject *swig_obj[1] ;
13037
13038 if (!args) SWIG_fail;
13039 swig_obj[0] = args;
13040 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13041 if (!SWIG_IsOK(res1)) {
13042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13043 }
13044 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13045 {
13046 PyThreadState* __tstate = wxPyBeginAllowThreads();
13047 result = wxNativeFontInfo___str__(arg1);
13048 wxPyEndAllowThreads(__tstate);
13049 if (PyErr_Occurred()) SWIG_fail;
13050 }
13051 {
13052 #if wxUSE_UNICODE
13053 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13054 #else
13055 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13056 #endif
13057 }
13058 return resultobj;
13059 fail:
13060 return NULL;
13061 }
13062
13063
13064 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13065 PyObject *resultobj = 0;
13066 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13067 wxString *arg2 = 0 ;
13068 bool result;
13069 void *argp1 = 0 ;
13070 int res1 = 0 ;
13071 bool temp2 = false ;
13072 PyObject * obj0 = 0 ;
13073 PyObject * obj1 = 0 ;
13074 char * kwnames[] = {
13075 (char *) "self",(char *) "s", NULL
13076 };
13077
13078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13080 if (!SWIG_IsOK(res1)) {
13081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13082 }
13083 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13084 {
13085 arg2 = wxString_in_helper(obj1);
13086 if (arg2 == NULL) SWIG_fail;
13087 temp2 = true;
13088 }
13089 {
13090 PyThreadState* __tstate = wxPyBeginAllowThreads();
13091 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13092 wxPyEndAllowThreads(__tstate);
13093 if (PyErr_Occurred()) SWIG_fail;
13094 }
13095 {
13096 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13097 }
13098 {
13099 if (temp2)
13100 delete arg2;
13101 }
13102 return resultobj;
13103 fail:
13104 {
13105 if (temp2)
13106 delete arg2;
13107 }
13108 return NULL;
13109 }
13110
13111
13112 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13113 PyObject *resultobj = 0;
13114 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13115 wxString result;
13116 void *argp1 = 0 ;
13117 int res1 = 0 ;
13118 PyObject *swig_obj[1] ;
13119
13120 if (!args) SWIG_fail;
13121 swig_obj[0] = args;
13122 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13123 if (!SWIG_IsOK(res1)) {
13124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13125 }
13126 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13127 {
13128 PyThreadState* __tstate = wxPyBeginAllowThreads();
13129 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13130 wxPyEndAllowThreads(__tstate);
13131 if (PyErr_Occurred()) SWIG_fail;
13132 }
13133 {
13134 #if wxUSE_UNICODE
13135 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13136 #else
13137 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13138 #endif
13139 }
13140 return resultobj;
13141 fail:
13142 return NULL;
13143 }
13144
13145
13146 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13147 PyObject *obj;
13148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13149 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13150 return SWIG_Py_Void();
13151 }
13152
13153 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13154 return SWIG_Python_InitShadowInstance(args);
13155 }
13156
13157 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13158 PyObject *resultobj = 0;
13159 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13160 wxString *arg2 = (wxString *) 0 ;
13161 void *argp1 = 0 ;
13162 int res1 = 0 ;
13163 bool temp2 = false ;
13164 PyObject *swig_obj[2] ;
13165
13166 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13168 if (!SWIG_IsOK(res1)) {
13169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13170 }
13171 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13172 {
13173 arg2 = wxString_in_helper(swig_obj[1]);
13174 if (arg2 == NULL) SWIG_fail;
13175 temp2 = true;
13176 }
13177 if (arg1) (arg1)->facename = *arg2;
13178
13179 resultobj = SWIG_Py_Void();
13180 {
13181 if (temp2)
13182 delete arg2;
13183 }
13184 return resultobj;
13185 fail:
13186 {
13187 if (temp2)
13188 delete arg2;
13189 }
13190 return NULL;
13191 }
13192
13193
13194 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13195 PyObject *resultobj = 0;
13196 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13197 wxString *result = 0 ;
13198 void *argp1 = 0 ;
13199 int res1 = 0 ;
13200 PyObject *swig_obj[1] ;
13201
13202 if (!args) SWIG_fail;
13203 swig_obj[0] = args;
13204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13205 if (!SWIG_IsOK(res1)) {
13206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13207 }
13208 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13209 result = (wxString *)& ((arg1)->facename);
13210 {
13211 #if wxUSE_UNICODE
13212 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13213 #else
13214 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13215 #endif
13216 }
13217 return resultobj;
13218 fail:
13219 return NULL;
13220 }
13221
13222
13223 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13224 PyObject *resultobj = 0;
13225 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13226 wxFontEncoding arg2 ;
13227 void *argp1 = 0 ;
13228 int res1 = 0 ;
13229 int val2 ;
13230 int ecode2 = 0 ;
13231 PyObject *swig_obj[2] ;
13232
13233 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13235 if (!SWIG_IsOK(res1)) {
13236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13237 }
13238 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13239 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13240 if (!SWIG_IsOK(ecode2)) {
13241 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13242 }
13243 arg2 = static_cast< wxFontEncoding >(val2);
13244 if (arg1) (arg1)->encoding = arg2;
13245
13246 resultobj = SWIG_Py_Void();
13247 return resultobj;
13248 fail:
13249 return NULL;
13250 }
13251
13252
13253 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13254 PyObject *resultobj = 0;
13255 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13256 wxFontEncoding result;
13257 void *argp1 = 0 ;
13258 int res1 = 0 ;
13259 PyObject *swig_obj[1] ;
13260
13261 if (!args) SWIG_fail;
13262 swig_obj[0] = args;
13263 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13264 if (!SWIG_IsOK(res1)) {
13265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13266 }
13267 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13268 result = (wxFontEncoding) ((arg1)->encoding);
13269 resultobj = SWIG_From_int(static_cast< int >(result));
13270 return resultobj;
13271 fail:
13272 return NULL;
13273 }
13274
13275
13276 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13277 PyObject *resultobj = 0;
13278 wxNativeEncodingInfo *result = 0 ;
13279
13280 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13281 {
13282 PyThreadState* __tstate = wxPyBeginAllowThreads();
13283 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13284 wxPyEndAllowThreads(__tstate);
13285 if (PyErr_Occurred()) SWIG_fail;
13286 }
13287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13288 return resultobj;
13289 fail:
13290 return NULL;
13291 }
13292
13293
13294 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13295 PyObject *resultobj = 0;
13296 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13297 void *argp1 = 0 ;
13298 int res1 = 0 ;
13299 PyObject *swig_obj[1] ;
13300
13301 if (!args) SWIG_fail;
13302 swig_obj[0] = args;
13303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13304 if (!SWIG_IsOK(res1)) {
13305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13306 }
13307 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13308 {
13309 PyThreadState* __tstate = wxPyBeginAllowThreads();
13310 delete arg1;
13311
13312 wxPyEndAllowThreads(__tstate);
13313 if (PyErr_Occurred()) SWIG_fail;
13314 }
13315 resultobj = SWIG_Py_Void();
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13323 PyObject *resultobj = 0;
13324 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13325 wxString *arg2 = 0 ;
13326 bool result;
13327 void *argp1 = 0 ;
13328 int res1 = 0 ;
13329 bool temp2 = false ;
13330 PyObject * obj0 = 0 ;
13331 PyObject * obj1 = 0 ;
13332 char * kwnames[] = {
13333 (char *) "self",(char *) "s", NULL
13334 };
13335
13336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13338 if (!SWIG_IsOK(res1)) {
13339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13340 }
13341 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13342 {
13343 arg2 = wxString_in_helper(obj1);
13344 if (arg2 == NULL) SWIG_fail;
13345 temp2 = true;
13346 }
13347 {
13348 PyThreadState* __tstate = wxPyBeginAllowThreads();
13349 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13350 wxPyEndAllowThreads(__tstate);
13351 if (PyErr_Occurred()) SWIG_fail;
13352 }
13353 {
13354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13355 }
13356 {
13357 if (temp2)
13358 delete arg2;
13359 }
13360 return resultobj;
13361 fail:
13362 {
13363 if (temp2)
13364 delete arg2;
13365 }
13366 return NULL;
13367 }
13368
13369
13370 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13371 PyObject *resultobj = 0;
13372 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13373 wxString result;
13374 void *argp1 = 0 ;
13375 int res1 = 0 ;
13376 PyObject *swig_obj[1] ;
13377
13378 if (!args) SWIG_fail;
13379 swig_obj[0] = args;
13380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13381 if (!SWIG_IsOK(res1)) {
13382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13383 }
13384 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13385 {
13386 PyThreadState* __tstate = wxPyBeginAllowThreads();
13387 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13388 wxPyEndAllowThreads(__tstate);
13389 if (PyErr_Occurred()) SWIG_fail;
13390 }
13391 {
13392 #if wxUSE_UNICODE
13393 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13394 #else
13395 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13396 #endif
13397 }
13398 return resultobj;
13399 fail:
13400 return NULL;
13401 }
13402
13403
13404 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13405 PyObject *obj;
13406 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13407 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13408 return SWIG_Py_Void();
13409 }
13410
13411 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13412 return SWIG_Python_InitShadowInstance(args);
13413 }
13414
13415 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13416 PyObject *resultobj = 0;
13417 wxFontEncoding arg1 ;
13418 wxNativeEncodingInfo *result = 0 ;
13419 int val1 ;
13420 int ecode1 = 0 ;
13421 PyObject * obj0 = 0 ;
13422 char * kwnames[] = {
13423 (char *) "encoding", NULL
13424 };
13425
13426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13427 ecode1 = SWIG_AsVal_int(obj0, &val1);
13428 if (!SWIG_IsOK(ecode1)) {
13429 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13430 }
13431 arg1 = static_cast< wxFontEncoding >(val1);
13432 {
13433 PyThreadState* __tstate = wxPyBeginAllowThreads();
13434 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13435 wxPyEndAllowThreads(__tstate);
13436 if (PyErr_Occurred()) SWIG_fail;
13437 }
13438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13439 return resultobj;
13440 fail:
13441 return NULL;
13442 }
13443
13444
13445 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13446 PyObject *resultobj = 0;
13447 wxNativeEncodingInfo *arg1 = 0 ;
13448 bool result;
13449 void *argp1 = 0 ;
13450 int res1 = 0 ;
13451 PyObject * obj0 = 0 ;
13452 char * kwnames[] = {
13453 (char *) "info", NULL
13454 };
13455
13456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13457 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13458 if (!SWIG_IsOK(res1)) {
13459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13460 }
13461 if (!argp1) {
13462 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13463 }
13464 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13465 {
13466 PyThreadState* __tstate = wxPyBeginAllowThreads();
13467 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13468 wxPyEndAllowThreads(__tstate);
13469 if (PyErr_Occurred()) SWIG_fail;
13470 }
13471 {
13472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13473 }
13474 return resultobj;
13475 fail:
13476 return NULL;
13477 }
13478
13479
13480 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13481 PyObject *resultobj = 0;
13482 wxFontMapper *result = 0 ;
13483
13484 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13485 {
13486 PyThreadState* __tstate = wxPyBeginAllowThreads();
13487 result = (wxFontMapper *)new wxFontMapper();
13488 wxPyEndAllowThreads(__tstate);
13489 if (PyErr_Occurred()) SWIG_fail;
13490 }
13491 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13492 return resultobj;
13493 fail:
13494 return NULL;
13495 }
13496
13497
13498 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13499 PyObject *resultobj = 0;
13500 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13501 void *argp1 = 0 ;
13502 int res1 = 0 ;
13503 PyObject *swig_obj[1] ;
13504
13505 if (!args) SWIG_fail;
13506 swig_obj[0] = args;
13507 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13508 if (!SWIG_IsOK(res1)) {
13509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13510 }
13511 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 delete arg1;
13515
13516 wxPyEndAllowThreads(__tstate);
13517 if (PyErr_Occurred()) SWIG_fail;
13518 }
13519 resultobj = SWIG_Py_Void();
13520 return resultobj;
13521 fail:
13522 return NULL;
13523 }
13524
13525
13526 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13527 PyObject *resultobj = 0;
13528 wxFontMapper *result = 0 ;
13529
13530 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13531 {
13532 PyThreadState* __tstate = wxPyBeginAllowThreads();
13533 result = (wxFontMapper *)wxFontMapper::Get();
13534 wxPyEndAllowThreads(__tstate);
13535 if (PyErr_Occurred()) SWIG_fail;
13536 }
13537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13538 return resultobj;
13539 fail:
13540 return NULL;
13541 }
13542
13543
13544 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13545 PyObject *resultobj = 0;
13546 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13547 wxFontMapper *result = 0 ;
13548 void *argp1 = 0 ;
13549 int res1 = 0 ;
13550 PyObject * obj0 = 0 ;
13551 char * kwnames[] = {
13552 (char *) "mapper", NULL
13553 };
13554
13555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13557 if (!SWIG_IsOK(res1)) {
13558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13559 }
13560 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13561 {
13562 PyThreadState* __tstate = wxPyBeginAllowThreads();
13563 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13564 wxPyEndAllowThreads(__tstate);
13565 if (PyErr_Occurred()) SWIG_fail;
13566 }
13567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13568 return resultobj;
13569 fail:
13570 return NULL;
13571 }
13572
13573
13574 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13575 PyObject *resultobj = 0;
13576 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13577 wxString *arg2 = 0 ;
13578 bool arg3 = (bool) true ;
13579 wxFontEncoding result;
13580 void *argp1 = 0 ;
13581 int res1 = 0 ;
13582 bool temp2 = false ;
13583 bool val3 ;
13584 int ecode3 = 0 ;
13585 PyObject * obj0 = 0 ;
13586 PyObject * obj1 = 0 ;
13587 PyObject * obj2 = 0 ;
13588 char * kwnames[] = {
13589 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13590 };
13591
13592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13594 if (!SWIG_IsOK(res1)) {
13595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13596 }
13597 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13598 {
13599 arg2 = wxString_in_helper(obj1);
13600 if (arg2 == NULL) SWIG_fail;
13601 temp2 = true;
13602 }
13603 if (obj2) {
13604 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13605 if (!SWIG_IsOK(ecode3)) {
13606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13607 }
13608 arg3 = static_cast< bool >(val3);
13609 }
13610 {
13611 PyThreadState* __tstate = wxPyBeginAllowThreads();
13612 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13613 wxPyEndAllowThreads(__tstate);
13614 if (PyErr_Occurred()) SWIG_fail;
13615 }
13616 resultobj = SWIG_From_int(static_cast< int >(result));
13617 {
13618 if (temp2)
13619 delete arg2;
13620 }
13621 return resultobj;
13622 fail:
13623 {
13624 if (temp2)
13625 delete arg2;
13626 }
13627 return NULL;
13628 }
13629
13630
13631 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13632 PyObject *resultobj = 0;
13633 size_t result;
13634
13635 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13643 return resultobj;
13644 fail:
13645 return NULL;
13646 }
13647
13648
13649 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13650 PyObject *resultobj = 0;
13651 size_t arg1 ;
13652 wxFontEncoding result;
13653 size_t val1 ;
13654 int ecode1 = 0 ;
13655 PyObject * obj0 = 0 ;
13656 char * kwnames[] = {
13657 (char *) "n", NULL
13658 };
13659
13660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13661 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13662 if (!SWIG_IsOK(ecode1)) {
13663 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13664 }
13665 arg1 = static_cast< size_t >(val1);
13666 {
13667 PyThreadState* __tstate = wxPyBeginAllowThreads();
13668 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13669 wxPyEndAllowThreads(__tstate);
13670 if (PyErr_Occurred()) SWIG_fail;
13671 }
13672 resultobj = SWIG_From_int(static_cast< int >(result));
13673 return resultobj;
13674 fail:
13675 return NULL;
13676 }
13677
13678
13679 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13680 PyObject *resultobj = 0;
13681 wxFontEncoding arg1 ;
13682 wxString result;
13683 int val1 ;
13684 int ecode1 = 0 ;
13685 PyObject * obj0 = 0 ;
13686 char * kwnames[] = {
13687 (char *) "encoding", NULL
13688 };
13689
13690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13691 ecode1 = SWIG_AsVal_int(obj0, &val1);
13692 if (!SWIG_IsOK(ecode1)) {
13693 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13694 }
13695 arg1 = static_cast< wxFontEncoding >(val1);
13696 {
13697 PyThreadState* __tstate = wxPyBeginAllowThreads();
13698 result = wxFontMapper::GetEncodingName(arg1);
13699 wxPyEndAllowThreads(__tstate);
13700 if (PyErr_Occurred()) SWIG_fail;
13701 }
13702 {
13703 #if wxUSE_UNICODE
13704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13705 #else
13706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13707 #endif
13708 }
13709 return resultobj;
13710 fail:
13711 return NULL;
13712 }
13713
13714
13715 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13716 PyObject *resultobj = 0;
13717 wxFontEncoding arg1 ;
13718 wxString result;
13719 int val1 ;
13720 int ecode1 = 0 ;
13721 PyObject * obj0 = 0 ;
13722 char * kwnames[] = {
13723 (char *) "encoding", NULL
13724 };
13725
13726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13727 ecode1 = SWIG_AsVal_int(obj0, &val1);
13728 if (!SWIG_IsOK(ecode1)) {
13729 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13730 }
13731 arg1 = static_cast< wxFontEncoding >(val1);
13732 {
13733 PyThreadState* __tstate = wxPyBeginAllowThreads();
13734 result = wxFontMapper::GetEncodingDescription(arg1);
13735 wxPyEndAllowThreads(__tstate);
13736 if (PyErr_Occurred()) SWIG_fail;
13737 }
13738 {
13739 #if wxUSE_UNICODE
13740 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13741 #else
13742 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13743 #endif
13744 }
13745 return resultobj;
13746 fail:
13747 return NULL;
13748 }
13749
13750
13751 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13752 PyObject *resultobj = 0;
13753 wxString *arg1 = 0 ;
13754 wxFontEncoding result;
13755 bool temp1 = false ;
13756 PyObject * obj0 = 0 ;
13757 char * kwnames[] = {
13758 (char *) "name", NULL
13759 };
13760
13761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13762 {
13763 arg1 = wxString_in_helper(obj0);
13764 if (arg1 == NULL) SWIG_fail;
13765 temp1 = true;
13766 }
13767 {
13768 PyThreadState* __tstate = wxPyBeginAllowThreads();
13769 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13770 wxPyEndAllowThreads(__tstate);
13771 if (PyErr_Occurred()) SWIG_fail;
13772 }
13773 resultobj = SWIG_From_int(static_cast< int >(result));
13774 {
13775 if (temp1)
13776 delete arg1;
13777 }
13778 return resultobj;
13779 fail:
13780 {
13781 if (temp1)
13782 delete arg1;
13783 }
13784 return NULL;
13785 }
13786
13787
13788 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13789 PyObject *resultobj = 0;
13790 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13791 wxString *arg2 = 0 ;
13792 void *argp1 = 0 ;
13793 int res1 = 0 ;
13794 bool temp2 = false ;
13795 PyObject * obj0 = 0 ;
13796 PyObject * obj1 = 0 ;
13797 char * kwnames[] = {
13798 (char *) "self",(char *) "prefix", NULL
13799 };
13800
13801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13802 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13803 if (!SWIG_IsOK(res1)) {
13804 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13805 }
13806 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13807 {
13808 arg2 = wxString_in_helper(obj1);
13809 if (arg2 == NULL) SWIG_fail;
13810 temp2 = true;
13811 }
13812 {
13813 PyThreadState* __tstate = wxPyBeginAllowThreads();
13814 (arg1)->SetConfigPath((wxString const &)*arg2);
13815 wxPyEndAllowThreads(__tstate);
13816 if (PyErr_Occurred()) SWIG_fail;
13817 }
13818 resultobj = SWIG_Py_Void();
13819 {
13820 if (temp2)
13821 delete arg2;
13822 }
13823 return resultobj;
13824 fail:
13825 {
13826 if (temp2)
13827 delete arg2;
13828 }
13829 return NULL;
13830 }
13831
13832
13833 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13834 PyObject *resultobj = 0;
13835 wxString result;
13836
13837 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13838 {
13839 PyThreadState* __tstate = wxPyBeginAllowThreads();
13840 result = wxFontMapper::GetDefaultConfigPath();
13841 wxPyEndAllowThreads(__tstate);
13842 if (PyErr_Occurred()) SWIG_fail;
13843 }
13844 {
13845 #if wxUSE_UNICODE
13846 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13847 #else
13848 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13849 #endif
13850 }
13851 return resultobj;
13852 fail:
13853 return NULL;
13854 }
13855
13856
13857 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13858 PyObject *resultobj = 0;
13859 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13860 wxFontEncoding arg2 ;
13861 wxString const &arg3_defvalue = wxPyEmptyString ;
13862 wxString *arg3 = (wxString *) &arg3_defvalue ;
13863 bool arg4 = (bool) true ;
13864 PyObject *result = 0 ;
13865 void *argp1 = 0 ;
13866 int res1 = 0 ;
13867 int val2 ;
13868 int ecode2 = 0 ;
13869 bool temp3 = false ;
13870 bool val4 ;
13871 int ecode4 = 0 ;
13872 PyObject * obj0 = 0 ;
13873 PyObject * obj1 = 0 ;
13874 PyObject * obj2 = 0 ;
13875 PyObject * obj3 = 0 ;
13876 char * kwnames[] = {
13877 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13878 };
13879
13880 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13881 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13882 if (!SWIG_IsOK(res1)) {
13883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13884 }
13885 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13886 ecode2 = SWIG_AsVal_int(obj1, &val2);
13887 if (!SWIG_IsOK(ecode2)) {
13888 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13889 }
13890 arg2 = static_cast< wxFontEncoding >(val2);
13891 if (obj2) {
13892 {
13893 arg3 = wxString_in_helper(obj2);
13894 if (arg3 == NULL) SWIG_fail;
13895 temp3 = true;
13896 }
13897 }
13898 if (obj3) {
13899 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13900 if (!SWIG_IsOK(ecode4)) {
13901 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13902 }
13903 arg4 = static_cast< bool >(val4);
13904 }
13905 {
13906 PyThreadState* __tstate = wxPyBeginAllowThreads();
13907 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13908 wxPyEndAllowThreads(__tstate);
13909 if (PyErr_Occurred()) SWIG_fail;
13910 }
13911 resultobj = result;
13912 {
13913 if (temp3)
13914 delete arg3;
13915 }
13916 return resultobj;
13917 fail:
13918 {
13919 if (temp3)
13920 delete arg3;
13921 }
13922 return NULL;
13923 }
13924
13925
13926 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13927 PyObject *resultobj = 0;
13928 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13929 wxFontEncoding arg2 ;
13930 wxString const &arg3_defvalue = wxPyEmptyString ;
13931 wxString *arg3 = (wxString *) &arg3_defvalue ;
13932 bool result;
13933 void *argp1 = 0 ;
13934 int res1 = 0 ;
13935 int val2 ;
13936 int ecode2 = 0 ;
13937 bool temp3 = false ;
13938 PyObject * obj0 = 0 ;
13939 PyObject * obj1 = 0 ;
13940 PyObject * obj2 = 0 ;
13941 char * kwnames[] = {
13942 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13943 };
13944
13945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13947 if (!SWIG_IsOK(res1)) {
13948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13949 }
13950 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13951 ecode2 = SWIG_AsVal_int(obj1, &val2);
13952 if (!SWIG_IsOK(ecode2)) {
13953 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13954 }
13955 arg2 = static_cast< wxFontEncoding >(val2);
13956 if (obj2) {
13957 {
13958 arg3 = wxString_in_helper(obj2);
13959 if (arg3 == NULL) SWIG_fail;
13960 temp3 = true;
13961 }
13962 }
13963 {
13964 PyThreadState* __tstate = wxPyBeginAllowThreads();
13965 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13966 wxPyEndAllowThreads(__tstate);
13967 if (PyErr_Occurred()) SWIG_fail;
13968 }
13969 {
13970 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13971 }
13972 {
13973 if (temp3)
13974 delete arg3;
13975 }
13976 return resultobj;
13977 fail:
13978 {
13979 if (temp3)
13980 delete arg3;
13981 }
13982 return NULL;
13983 }
13984
13985
13986 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13987 PyObject *resultobj = 0;
13988 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13989 wxWindow *arg2 = (wxWindow *) 0 ;
13990 void *argp1 = 0 ;
13991 int res1 = 0 ;
13992 void *argp2 = 0 ;
13993 int res2 = 0 ;
13994 PyObject * obj0 = 0 ;
13995 PyObject * obj1 = 0 ;
13996 char * kwnames[] = {
13997 (char *) "self",(char *) "parent", NULL
13998 };
13999
14000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14002 if (!SWIG_IsOK(res1)) {
14003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14004 }
14005 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14006 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14007 if (!SWIG_IsOK(res2)) {
14008 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14009 }
14010 arg2 = reinterpret_cast< wxWindow * >(argp2);
14011 {
14012 PyThreadState* __tstate = wxPyBeginAllowThreads();
14013 (arg1)->SetDialogParent(arg2);
14014 wxPyEndAllowThreads(__tstate);
14015 if (PyErr_Occurred()) SWIG_fail;
14016 }
14017 resultobj = SWIG_Py_Void();
14018 return resultobj;
14019 fail:
14020 return NULL;
14021 }
14022
14023
14024 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14025 PyObject *resultobj = 0;
14026 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14027 wxString *arg2 = 0 ;
14028 void *argp1 = 0 ;
14029 int res1 = 0 ;
14030 bool temp2 = false ;
14031 PyObject * obj0 = 0 ;
14032 PyObject * obj1 = 0 ;
14033 char * kwnames[] = {
14034 (char *) "self",(char *) "title", NULL
14035 };
14036
14037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14039 if (!SWIG_IsOK(res1)) {
14040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14041 }
14042 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14043 {
14044 arg2 = wxString_in_helper(obj1);
14045 if (arg2 == NULL) SWIG_fail;
14046 temp2 = true;
14047 }
14048 {
14049 PyThreadState* __tstate = wxPyBeginAllowThreads();
14050 (arg1)->SetDialogTitle((wxString const &)*arg2);
14051 wxPyEndAllowThreads(__tstate);
14052 if (PyErr_Occurred()) SWIG_fail;
14053 }
14054 resultobj = SWIG_Py_Void();
14055 {
14056 if (temp2)
14057 delete arg2;
14058 }
14059 return resultobj;
14060 fail:
14061 {
14062 if (temp2)
14063 delete arg2;
14064 }
14065 return NULL;
14066 }
14067
14068
14069 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14070 PyObject *obj;
14071 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14072 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14073 return SWIG_Py_Void();
14074 }
14075
14076 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14077 return SWIG_Python_InitShadowInstance(args);
14078 }
14079
14080 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14081 PyObject *resultobj = 0;
14082 int arg1 ;
14083 int arg2 ;
14084 int arg3 ;
14085 int arg4 ;
14086 bool arg5 = (bool) false ;
14087 wxString const &arg6_defvalue = wxPyEmptyString ;
14088 wxString *arg6 = (wxString *) &arg6_defvalue ;
14089 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14090 wxFont *result = 0 ;
14091 int val1 ;
14092 int ecode1 = 0 ;
14093 int val2 ;
14094 int ecode2 = 0 ;
14095 int val3 ;
14096 int ecode3 = 0 ;
14097 int val4 ;
14098 int ecode4 = 0 ;
14099 bool val5 ;
14100 int ecode5 = 0 ;
14101 bool temp6 = false ;
14102 int val7 ;
14103 int ecode7 = 0 ;
14104 PyObject * obj0 = 0 ;
14105 PyObject * obj1 = 0 ;
14106 PyObject * obj2 = 0 ;
14107 PyObject * obj3 = 0 ;
14108 PyObject * obj4 = 0 ;
14109 PyObject * obj5 = 0 ;
14110 PyObject * obj6 = 0 ;
14111 char * kwnames[] = {
14112 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14113 };
14114
14115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14116 ecode1 = SWIG_AsVal_int(obj0, &val1);
14117 if (!SWIG_IsOK(ecode1)) {
14118 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14119 }
14120 arg1 = static_cast< int >(val1);
14121 ecode2 = SWIG_AsVal_int(obj1, &val2);
14122 if (!SWIG_IsOK(ecode2)) {
14123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14124 }
14125 arg2 = static_cast< int >(val2);
14126 ecode3 = SWIG_AsVal_int(obj2, &val3);
14127 if (!SWIG_IsOK(ecode3)) {
14128 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14129 }
14130 arg3 = static_cast< int >(val3);
14131 ecode4 = SWIG_AsVal_int(obj3, &val4);
14132 if (!SWIG_IsOK(ecode4)) {
14133 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14134 }
14135 arg4 = static_cast< int >(val4);
14136 if (obj4) {
14137 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14138 if (!SWIG_IsOK(ecode5)) {
14139 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14140 }
14141 arg5 = static_cast< bool >(val5);
14142 }
14143 if (obj5) {
14144 {
14145 arg6 = wxString_in_helper(obj5);
14146 if (arg6 == NULL) SWIG_fail;
14147 temp6 = true;
14148 }
14149 }
14150 if (obj6) {
14151 ecode7 = SWIG_AsVal_int(obj6, &val7);
14152 if (!SWIG_IsOK(ecode7)) {
14153 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14154 }
14155 arg7 = static_cast< wxFontEncoding >(val7);
14156 }
14157 {
14158 if (!wxPyCheckForApp()) SWIG_fail;
14159 PyThreadState* __tstate = wxPyBeginAllowThreads();
14160 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14161 wxPyEndAllowThreads(__tstate);
14162 if (PyErr_Occurred()) SWIG_fail;
14163 }
14164 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14165 {
14166 if (temp6)
14167 delete arg6;
14168 }
14169 return resultobj;
14170 fail:
14171 {
14172 if (temp6)
14173 delete arg6;
14174 }
14175 return NULL;
14176 }
14177
14178
14179 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14180 PyObject *resultobj = 0;
14181 wxFont *arg1 = (wxFont *) 0 ;
14182 void *argp1 = 0 ;
14183 int res1 = 0 ;
14184 PyObject *swig_obj[1] ;
14185
14186 if (!args) SWIG_fail;
14187 swig_obj[0] = args;
14188 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14189 if (!SWIG_IsOK(res1)) {
14190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14191 }
14192 arg1 = reinterpret_cast< wxFont * >(argp1);
14193 {
14194 PyThreadState* __tstate = wxPyBeginAllowThreads();
14195 delete arg1;
14196
14197 wxPyEndAllowThreads(__tstate);
14198 if (PyErr_Occurred()) SWIG_fail;
14199 }
14200 resultobj = SWIG_Py_Void();
14201 return resultobj;
14202 fail:
14203 return NULL;
14204 }
14205
14206
14207 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14208 PyObject *resultobj = 0;
14209 wxNativeFontInfo *arg1 = 0 ;
14210 wxFont *result = 0 ;
14211 void *argp1 = 0 ;
14212 int res1 = 0 ;
14213 PyObject * obj0 = 0 ;
14214 char * kwnames[] = {
14215 (char *) "info", NULL
14216 };
14217
14218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14219 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14220 if (!SWIG_IsOK(res1)) {
14221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14222 }
14223 if (!argp1) {
14224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14225 }
14226 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14227 {
14228 if (!wxPyCheckForApp()) SWIG_fail;
14229 PyThreadState* __tstate = wxPyBeginAllowThreads();
14230 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14231 wxPyEndAllowThreads(__tstate);
14232 if (PyErr_Occurred()) SWIG_fail;
14233 }
14234 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14235 return resultobj;
14236 fail:
14237 return NULL;
14238 }
14239
14240
14241 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14242 PyObject *resultobj = 0;
14243 wxString *arg1 = 0 ;
14244 wxFont *result = 0 ;
14245 bool temp1 = false ;
14246 PyObject * obj0 = 0 ;
14247 char * kwnames[] = {
14248 (char *) "info", NULL
14249 };
14250
14251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14252 {
14253 arg1 = wxString_in_helper(obj0);
14254 if (arg1 == NULL) SWIG_fail;
14255 temp1 = true;
14256 }
14257 {
14258 if (!wxPyCheckForApp()) SWIG_fail;
14259 PyThreadState* __tstate = wxPyBeginAllowThreads();
14260 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14261 wxPyEndAllowThreads(__tstate);
14262 if (PyErr_Occurred()) SWIG_fail;
14263 }
14264 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14265 {
14266 if (temp1)
14267 delete arg1;
14268 }
14269 return resultobj;
14270 fail:
14271 {
14272 if (temp1)
14273 delete arg1;
14274 }
14275 return NULL;
14276 }
14277
14278
14279 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14280 PyObject *resultobj = 0;
14281 int arg1 ;
14282 wxFontFamily arg2 ;
14283 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14284 wxString const &arg4_defvalue = wxPyEmptyString ;
14285 wxString *arg4 = (wxString *) &arg4_defvalue ;
14286 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14287 wxFont *result = 0 ;
14288 int val1 ;
14289 int ecode1 = 0 ;
14290 int val2 ;
14291 int ecode2 = 0 ;
14292 int val3 ;
14293 int ecode3 = 0 ;
14294 bool temp4 = false ;
14295 int val5 ;
14296 int ecode5 = 0 ;
14297 PyObject * obj0 = 0 ;
14298 PyObject * obj1 = 0 ;
14299 PyObject * obj2 = 0 ;
14300 PyObject * obj3 = 0 ;
14301 PyObject * obj4 = 0 ;
14302 char * kwnames[] = {
14303 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14304 };
14305
14306 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14307 ecode1 = SWIG_AsVal_int(obj0, &val1);
14308 if (!SWIG_IsOK(ecode1)) {
14309 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14310 }
14311 arg1 = static_cast< int >(val1);
14312 ecode2 = SWIG_AsVal_int(obj1, &val2);
14313 if (!SWIG_IsOK(ecode2)) {
14314 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14315 }
14316 arg2 = static_cast< wxFontFamily >(val2);
14317 if (obj2) {
14318 ecode3 = SWIG_AsVal_int(obj2, &val3);
14319 if (!SWIG_IsOK(ecode3)) {
14320 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14321 }
14322 arg3 = static_cast< int >(val3);
14323 }
14324 if (obj3) {
14325 {
14326 arg4 = wxString_in_helper(obj3);
14327 if (arg4 == NULL) SWIG_fail;
14328 temp4 = true;
14329 }
14330 }
14331 if (obj4) {
14332 ecode5 = SWIG_AsVal_int(obj4, &val5);
14333 if (!SWIG_IsOK(ecode5)) {
14334 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14335 }
14336 arg5 = static_cast< wxFontEncoding >(val5);
14337 }
14338 {
14339 if (!wxPyCheckForApp()) SWIG_fail;
14340 PyThreadState* __tstate = wxPyBeginAllowThreads();
14341 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14342 wxPyEndAllowThreads(__tstate);
14343 if (PyErr_Occurred()) SWIG_fail;
14344 }
14345 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14346 {
14347 if (temp4)
14348 delete arg4;
14349 }
14350 return resultobj;
14351 fail:
14352 {
14353 if (temp4)
14354 delete arg4;
14355 }
14356 return NULL;
14357 }
14358
14359
14360 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14361 PyObject *resultobj = 0;
14362 wxSize *arg1 = 0 ;
14363 int arg2 ;
14364 int arg3 ;
14365 int arg4 ;
14366 bool arg5 = (bool) false ;
14367 wxString const &arg6_defvalue = wxEmptyString ;
14368 wxString *arg6 = (wxString *) &arg6_defvalue ;
14369 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14370 wxFont *result = 0 ;
14371 wxSize temp1 ;
14372 int val2 ;
14373 int ecode2 = 0 ;
14374 int val3 ;
14375 int ecode3 = 0 ;
14376 int val4 ;
14377 int ecode4 = 0 ;
14378 bool val5 ;
14379 int ecode5 = 0 ;
14380 bool temp6 = false ;
14381 int val7 ;
14382 int ecode7 = 0 ;
14383 PyObject * obj0 = 0 ;
14384 PyObject * obj1 = 0 ;
14385 PyObject * obj2 = 0 ;
14386 PyObject * obj3 = 0 ;
14387 PyObject * obj4 = 0 ;
14388 PyObject * obj5 = 0 ;
14389 PyObject * obj6 = 0 ;
14390 char * kwnames[] = {
14391 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14392 };
14393
14394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14395 {
14396 arg1 = &temp1;
14397 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14398 }
14399 ecode2 = SWIG_AsVal_int(obj1, &val2);
14400 if (!SWIG_IsOK(ecode2)) {
14401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14402 }
14403 arg2 = static_cast< int >(val2);
14404 ecode3 = SWIG_AsVal_int(obj2, &val3);
14405 if (!SWIG_IsOK(ecode3)) {
14406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14407 }
14408 arg3 = static_cast< int >(val3);
14409 ecode4 = SWIG_AsVal_int(obj3, &val4);
14410 if (!SWIG_IsOK(ecode4)) {
14411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14412 }
14413 arg4 = static_cast< int >(val4);
14414 if (obj4) {
14415 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14416 if (!SWIG_IsOK(ecode5)) {
14417 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14418 }
14419 arg5 = static_cast< bool >(val5);
14420 }
14421 if (obj5) {
14422 {
14423 arg6 = wxString_in_helper(obj5);
14424 if (arg6 == NULL) SWIG_fail;
14425 temp6 = true;
14426 }
14427 }
14428 if (obj6) {
14429 ecode7 = SWIG_AsVal_int(obj6, &val7);
14430 if (!SWIG_IsOK(ecode7)) {
14431 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14432 }
14433 arg7 = static_cast< wxFontEncoding >(val7);
14434 }
14435 {
14436 if (!wxPyCheckForApp()) SWIG_fail;
14437 PyThreadState* __tstate = wxPyBeginAllowThreads();
14438 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14439 wxPyEndAllowThreads(__tstate);
14440 if (PyErr_Occurred()) SWIG_fail;
14441 }
14442 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14443 {
14444 if (temp6)
14445 delete arg6;
14446 }
14447 return resultobj;
14448 fail:
14449 {
14450 if (temp6)
14451 delete arg6;
14452 }
14453 return NULL;
14454 }
14455
14456
14457 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14458 PyObject *resultobj = 0;
14459 wxSize *arg1 = 0 ;
14460 wxFontFamily arg2 ;
14461 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14462 wxString const &arg4_defvalue = wxEmptyString ;
14463 wxString *arg4 = (wxString *) &arg4_defvalue ;
14464 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14465 wxFont *result = 0 ;
14466 wxSize temp1 ;
14467 int val2 ;
14468 int ecode2 = 0 ;
14469 int val3 ;
14470 int ecode3 = 0 ;
14471 bool temp4 = false ;
14472 int val5 ;
14473 int ecode5 = 0 ;
14474 PyObject * obj0 = 0 ;
14475 PyObject * obj1 = 0 ;
14476 PyObject * obj2 = 0 ;
14477 PyObject * obj3 = 0 ;
14478 PyObject * obj4 = 0 ;
14479 char * kwnames[] = {
14480 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14481 };
14482
14483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14484 {
14485 arg1 = &temp1;
14486 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14487 }
14488 ecode2 = SWIG_AsVal_int(obj1, &val2);
14489 if (!SWIG_IsOK(ecode2)) {
14490 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14491 }
14492 arg2 = static_cast< wxFontFamily >(val2);
14493 if (obj2) {
14494 ecode3 = SWIG_AsVal_int(obj2, &val3);
14495 if (!SWIG_IsOK(ecode3)) {
14496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14497 }
14498 arg3 = static_cast< int >(val3);
14499 }
14500 if (obj3) {
14501 {
14502 arg4 = wxString_in_helper(obj3);
14503 if (arg4 == NULL) SWIG_fail;
14504 temp4 = true;
14505 }
14506 }
14507 if (obj4) {
14508 ecode5 = SWIG_AsVal_int(obj4, &val5);
14509 if (!SWIG_IsOK(ecode5)) {
14510 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14511 }
14512 arg5 = static_cast< wxFontEncoding >(val5);
14513 }
14514 {
14515 if (!wxPyCheckForApp()) SWIG_fail;
14516 PyThreadState* __tstate = wxPyBeginAllowThreads();
14517 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14518 wxPyEndAllowThreads(__tstate);
14519 if (PyErr_Occurred()) SWIG_fail;
14520 }
14521 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14522 {
14523 if (temp4)
14524 delete arg4;
14525 }
14526 return resultobj;
14527 fail:
14528 {
14529 if (temp4)
14530 delete arg4;
14531 }
14532 return NULL;
14533 }
14534
14535
14536 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14537 PyObject *resultobj = 0;
14538 wxFont *arg1 = (wxFont *) 0 ;
14539 bool result;
14540 void *argp1 = 0 ;
14541 int res1 = 0 ;
14542 PyObject *swig_obj[1] ;
14543
14544 if (!args) SWIG_fail;
14545 swig_obj[0] = args;
14546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14547 if (!SWIG_IsOK(res1)) {
14548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14549 }
14550 arg1 = reinterpret_cast< wxFont * >(argp1);
14551 {
14552 PyThreadState* __tstate = wxPyBeginAllowThreads();
14553 result = (bool)((wxFont const *)arg1)->IsOk();
14554 wxPyEndAllowThreads(__tstate);
14555 if (PyErr_Occurred()) SWIG_fail;
14556 }
14557 {
14558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14559 }
14560 return resultobj;
14561 fail:
14562 return NULL;
14563 }
14564
14565
14566 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14567 PyObject *resultobj = 0;
14568 wxFont *arg1 = (wxFont *) 0 ;
14569 wxFont *arg2 = (wxFont *) 0 ;
14570 bool result;
14571 void *argp1 = 0 ;
14572 int res1 = 0 ;
14573 void *argp2 = 0 ;
14574 int res2 = 0 ;
14575 PyObject * obj0 = 0 ;
14576 PyObject * obj1 = 0 ;
14577 char * kwnames[] = {
14578 (char *) "self",(char *) "other", NULL
14579 };
14580
14581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14583 if (!SWIG_IsOK(res1)) {
14584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14585 }
14586 arg1 = reinterpret_cast< wxFont * >(argp1);
14587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14588 if (!SWIG_IsOK(res2)) {
14589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14590 }
14591 arg2 = reinterpret_cast< wxFont * >(argp2);
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 {
14599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14600 }
14601 return resultobj;
14602 fail:
14603 return NULL;
14604 }
14605
14606
14607 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14608 PyObject *resultobj = 0;
14609 wxFont *arg1 = (wxFont *) 0 ;
14610 wxFont *arg2 = (wxFont *) 0 ;
14611 bool result;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 void *argp2 = 0 ;
14615 int res2 = 0 ;
14616 PyObject * obj0 = 0 ;
14617 PyObject * obj1 = 0 ;
14618 char * kwnames[] = {
14619 (char *) "self",(char *) "other", NULL
14620 };
14621
14622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14624 if (!SWIG_IsOK(res1)) {
14625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14626 }
14627 arg1 = reinterpret_cast< wxFont * >(argp1);
14628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14629 if (!SWIG_IsOK(res2)) {
14630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14631 }
14632 arg2 = reinterpret_cast< wxFont * >(argp2);
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 {
14640 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14641 }
14642 return resultobj;
14643 fail:
14644 return NULL;
14645 }
14646
14647
14648 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14649 PyObject *resultobj = 0;
14650 wxFont *arg1 = (wxFont *) 0 ;
14651 int result;
14652 void *argp1 = 0 ;
14653 int res1 = 0 ;
14654 PyObject *swig_obj[1] ;
14655
14656 if (!args) SWIG_fail;
14657 swig_obj[0] = args;
14658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14659 if (!SWIG_IsOK(res1)) {
14660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14661 }
14662 arg1 = reinterpret_cast< wxFont * >(argp1);
14663 {
14664 PyThreadState* __tstate = wxPyBeginAllowThreads();
14665 result = (int)((wxFont const *)arg1)->GetPointSize();
14666 wxPyEndAllowThreads(__tstate);
14667 if (PyErr_Occurred()) SWIG_fail;
14668 }
14669 resultobj = SWIG_From_int(static_cast< int >(result));
14670 return resultobj;
14671 fail:
14672 return NULL;
14673 }
14674
14675
14676 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14677 PyObject *resultobj = 0;
14678 wxFont *arg1 = (wxFont *) 0 ;
14679 wxSize result;
14680 void *argp1 = 0 ;
14681 int res1 = 0 ;
14682 PyObject *swig_obj[1] ;
14683
14684 if (!args) SWIG_fail;
14685 swig_obj[0] = args;
14686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14687 if (!SWIG_IsOK(res1)) {
14688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14689 }
14690 arg1 = reinterpret_cast< wxFont * >(argp1);
14691 {
14692 PyThreadState* __tstate = wxPyBeginAllowThreads();
14693 result = ((wxFont const *)arg1)->GetPixelSize();
14694 wxPyEndAllowThreads(__tstate);
14695 if (PyErr_Occurred()) SWIG_fail;
14696 }
14697 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14698 return resultobj;
14699 fail:
14700 return NULL;
14701 }
14702
14703
14704 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14705 PyObject *resultobj = 0;
14706 wxFont *arg1 = (wxFont *) 0 ;
14707 bool result;
14708 void *argp1 = 0 ;
14709 int res1 = 0 ;
14710 PyObject *swig_obj[1] ;
14711
14712 if (!args) SWIG_fail;
14713 swig_obj[0] = args;
14714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14715 if (!SWIG_IsOK(res1)) {
14716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14717 }
14718 arg1 = reinterpret_cast< wxFont * >(argp1);
14719 {
14720 PyThreadState* __tstate = wxPyBeginAllowThreads();
14721 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14722 wxPyEndAllowThreads(__tstate);
14723 if (PyErr_Occurred()) SWIG_fail;
14724 }
14725 {
14726 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14727 }
14728 return resultobj;
14729 fail:
14730 return NULL;
14731 }
14732
14733
14734 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14735 PyObject *resultobj = 0;
14736 wxFont *arg1 = (wxFont *) 0 ;
14737 int result;
14738 void *argp1 = 0 ;
14739 int res1 = 0 ;
14740 PyObject *swig_obj[1] ;
14741
14742 if (!args) SWIG_fail;
14743 swig_obj[0] = args;
14744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14745 if (!SWIG_IsOK(res1)) {
14746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14747 }
14748 arg1 = reinterpret_cast< wxFont * >(argp1);
14749 {
14750 PyThreadState* __tstate = wxPyBeginAllowThreads();
14751 result = (int)((wxFont const *)arg1)->GetFamily();
14752 wxPyEndAllowThreads(__tstate);
14753 if (PyErr_Occurred()) SWIG_fail;
14754 }
14755 resultobj = SWIG_From_int(static_cast< int >(result));
14756 return resultobj;
14757 fail:
14758 return NULL;
14759 }
14760
14761
14762 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14763 PyObject *resultobj = 0;
14764 wxFont *arg1 = (wxFont *) 0 ;
14765 int result;
14766 void *argp1 = 0 ;
14767 int res1 = 0 ;
14768 PyObject *swig_obj[1] ;
14769
14770 if (!args) SWIG_fail;
14771 swig_obj[0] = args;
14772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14773 if (!SWIG_IsOK(res1)) {
14774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14775 }
14776 arg1 = reinterpret_cast< wxFont * >(argp1);
14777 {
14778 PyThreadState* __tstate = wxPyBeginAllowThreads();
14779 result = (int)((wxFont const *)arg1)->GetStyle();
14780 wxPyEndAllowThreads(__tstate);
14781 if (PyErr_Occurred()) SWIG_fail;
14782 }
14783 resultobj = SWIG_From_int(static_cast< int >(result));
14784 return resultobj;
14785 fail:
14786 return NULL;
14787 }
14788
14789
14790 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14791 PyObject *resultobj = 0;
14792 wxFont *arg1 = (wxFont *) 0 ;
14793 int result;
14794 void *argp1 = 0 ;
14795 int res1 = 0 ;
14796 PyObject *swig_obj[1] ;
14797
14798 if (!args) SWIG_fail;
14799 swig_obj[0] = args;
14800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14801 if (!SWIG_IsOK(res1)) {
14802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14803 }
14804 arg1 = reinterpret_cast< wxFont * >(argp1);
14805 {
14806 PyThreadState* __tstate = wxPyBeginAllowThreads();
14807 result = (int)((wxFont const *)arg1)->GetWeight();
14808 wxPyEndAllowThreads(__tstate);
14809 if (PyErr_Occurred()) SWIG_fail;
14810 }
14811 resultobj = SWIG_From_int(static_cast< int >(result));
14812 return resultobj;
14813 fail:
14814 return NULL;
14815 }
14816
14817
14818 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14819 PyObject *resultobj = 0;
14820 wxFont *arg1 = (wxFont *) 0 ;
14821 bool result;
14822 void *argp1 = 0 ;
14823 int res1 = 0 ;
14824 PyObject *swig_obj[1] ;
14825
14826 if (!args) SWIG_fail;
14827 swig_obj[0] = args;
14828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14829 if (!SWIG_IsOK(res1)) {
14830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14831 }
14832 arg1 = reinterpret_cast< wxFont * >(argp1);
14833 {
14834 PyThreadState* __tstate = wxPyBeginAllowThreads();
14835 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14836 wxPyEndAllowThreads(__tstate);
14837 if (PyErr_Occurred()) SWIG_fail;
14838 }
14839 {
14840 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14841 }
14842 return resultobj;
14843 fail:
14844 return NULL;
14845 }
14846
14847
14848 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14849 PyObject *resultobj = 0;
14850 wxFont *arg1 = (wxFont *) 0 ;
14851 wxString result;
14852 void *argp1 = 0 ;
14853 int res1 = 0 ;
14854 PyObject *swig_obj[1] ;
14855
14856 if (!args) SWIG_fail;
14857 swig_obj[0] = args;
14858 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14859 if (!SWIG_IsOK(res1)) {
14860 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14861 }
14862 arg1 = reinterpret_cast< wxFont * >(argp1);
14863 {
14864 PyThreadState* __tstate = wxPyBeginAllowThreads();
14865 result = ((wxFont const *)arg1)->GetFaceName();
14866 wxPyEndAllowThreads(__tstate);
14867 if (PyErr_Occurred()) SWIG_fail;
14868 }
14869 {
14870 #if wxUSE_UNICODE
14871 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14872 #else
14873 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14874 #endif
14875 }
14876 return resultobj;
14877 fail:
14878 return NULL;
14879 }
14880
14881
14882 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14883 PyObject *resultobj = 0;
14884 wxFont *arg1 = (wxFont *) 0 ;
14885 wxFontEncoding result;
14886 void *argp1 = 0 ;
14887 int res1 = 0 ;
14888 PyObject *swig_obj[1] ;
14889
14890 if (!args) SWIG_fail;
14891 swig_obj[0] = args;
14892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14893 if (!SWIG_IsOK(res1)) {
14894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14895 }
14896 arg1 = reinterpret_cast< wxFont * >(argp1);
14897 {
14898 PyThreadState* __tstate = wxPyBeginAllowThreads();
14899 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14900 wxPyEndAllowThreads(__tstate);
14901 if (PyErr_Occurred()) SWIG_fail;
14902 }
14903 resultobj = SWIG_From_int(static_cast< int >(result));
14904 return resultobj;
14905 fail:
14906 return NULL;
14907 }
14908
14909
14910 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14911 PyObject *resultobj = 0;
14912 wxFont *arg1 = (wxFont *) 0 ;
14913 wxNativeFontInfo *result = 0 ;
14914 void *argp1 = 0 ;
14915 int res1 = 0 ;
14916 PyObject *swig_obj[1] ;
14917
14918 if (!args) SWIG_fail;
14919 swig_obj[0] = args;
14920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14921 if (!SWIG_IsOK(res1)) {
14922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14923 }
14924 arg1 = reinterpret_cast< wxFont * >(argp1);
14925 {
14926 PyThreadState* __tstate = wxPyBeginAllowThreads();
14927 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14928 wxPyEndAllowThreads(__tstate);
14929 if (PyErr_Occurred()) SWIG_fail;
14930 }
14931 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14932 return resultobj;
14933 fail:
14934 return NULL;
14935 }
14936
14937
14938 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14939 PyObject *resultobj = 0;
14940 wxFont *arg1 = (wxFont *) 0 ;
14941 bool result;
14942 void *argp1 = 0 ;
14943 int res1 = 0 ;
14944 PyObject *swig_obj[1] ;
14945
14946 if (!args) SWIG_fail;
14947 swig_obj[0] = args;
14948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14949 if (!SWIG_IsOK(res1)) {
14950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14951 }
14952 arg1 = reinterpret_cast< wxFont * >(argp1);
14953 {
14954 PyThreadState* __tstate = wxPyBeginAllowThreads();
14955 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14956 wxPyEndAllowThreads(__tstate);
14957 if (PyErr_Occurred()) SWIG_fail;
14958 }
14959 {
14960 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14961 }
14962 return resultobj;
14963 fail:
14964 return NULL;
14965 }
14966
14967
14968 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14969 PyObject *resultobj = 0;
14970 wxFont *arg1 = (wxFont *) 0 ;
14971 wxString result;
14972 void *argp1 = 0 ;
14973 int res1 = 0 ;
14974 PyObject *swig_obj[1] ;
14975
14976 if (!args) SWIG_fail;
14977 swig_obj[0] = args;
14978 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14979 if (!SWIG_IsOK(res1)) {
14980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14981 }
14982 arg1 = reinterpret_cast< wxFont * >(argp1);
14983 {
14984 PyThreadState* __tstate = wxPyBeginAllowThreads();
14985 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
14986 wxPyEndAllowThreads(__tstate);
14987 if (PyErr_Occurred()) SWIG_fail;
14988 }
14989 {
14990 #if wxUSE_UNICODE
14991 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14992 #else
14993 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14994 #endif
14995 }
14996 return resultobj;
14997 fail:
14998 return NULL;
14999 }
15000
15001
15002 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15003 PyObject *resultobj = 0;
15004 wxFont *arg1 = (wxFont *) 0 ;
15005 wxString result;
15006 void *argp1 = 0 ;
15007 int res1 = 0 ;
15008 PyObject *swig_obj[1] ;
15009
15010 if (!args) SWIG_fail;
15011 swig_obj[0] = args;
15012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15013 if (!SWIG_IsOK(res1)) {
15014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15015 }
15016 arg1 = reinterpret_cast< wxFont * >(argp1);
15017 {
15018 PyThreadState* __tstate = wxPyBeginAllowThreads();
15019 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15020 wxPyEndAllowThreads(__tstate);
15021 if (PyErr_Occurred()) SWIG_fail;
15022 }
15023 {
15024 #if wxUSE_UNICODE
15025 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15026 #else
15027 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15028 #endif
15029 }
15030 return resultobj;
15031 fail:
15032 return NULL;
15033 }
15034
15035
15036 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15037 PyObject *resultobj = 0;
15038 wxFont *arg1 = (wxFont *) 0 ;
15039 int arg2 ;
15040 void *argp1 = 0 ;
15041 int res1 = 0 ;
15042 int val2 ;
15043 int ecode2 = 0 ;
15044 PyObject * obj0 = 0 ;
15045 PyObject * obj1 = 0 ;
15046 char * kwnames[] = {
15047 (char *) "self",(char *) "pointSize", NULL
15048 };
15049
15050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15052 if (!SWIG_IsOK(res1)) {
15053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15054 }
15055 arg1 = reinterpret_cast< wxFont * >(argp1);
15056 ecode2 = SWIG_AsVal_int(obj1, &val2);
15057 if (!SWIG_IsOK(ecode2)) {
15058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15059 }
15060 arg2 = static_cast< int >(val2);
15061 {
15062 PyThreadState* __tstate = wxPyBeginAllowThreads();
15063 (arg1)->SetPointSize(arg2);
15064 wxPyEndAllowThreads(__tstate);
15065 if (PyErr_Occurred()) SWIG_fail;
15066 }
15067 resultobj = SWIG_Py_Void();
15068 return resultobj;
15069 fail:
15070 return NULL;
15071 }
15072
15073
15074 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15075 PyObject *resultobj = 0;
15076 wxFont *arg1 = (wxFont *) 0 ;
15077 wxSize *arg2 = 0 ;
15078 void *argp1 = 0 ;
15079 int res1 = 0 ;
15080 wxSize temp2 ;
15081 PyObject * obj0 = 0 ;
15082 PyObject * obj1 = 0 ;
15083 char * kwnames[] = {
15084 (char *) "self",(char *) "pixelSize", NULL
15085 };
15086
15087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15089 if (!SWIG_IsOK(res1)) {
15090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15091 }
15092 arg1 = reinterpret_cast< wxFont * >(argp1);
15093 {
15094 arg2 = &temp2;
15095 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15096 }
15097 {
15098 PyThreadState* __tstate = wxPyBeginAllowThreads();
15099 (arg1)->SetPixelSize((wxSize const &)*arg2);
15100 wxPyEndAllowThreads(__tstate);
15101 if (PyErr_Occurred()) SWIG_fail;
15102 }
15103 resultobj = SWIG_Py_Void();
15104 return resultobj;
15105 fail:
15106 return NULL;
15107 }
15108
15109
15110 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15111 PyObject *resultobj = 0;
15112 wxFont *arg1 = (wxFont *) 0 ;
15113 int arg2 ;
15114 void *argp1 = 0 ;
15115 int res1 = 0 ;
15116 int val2 ;
15117 int ecode2 = 0 ;
15118 PyObject * obj0 = 0 ;
15119 PyObject * obj1 = 0 ;
15120 char * kwnames[] = {
15121 (char *) "self",(char *) "family", NULL
15122 };
15123
15124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15126 if (!SWIG_IsOK(res1)) {
15127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15128 }
15129 arg1 = reinterpret_cast< wxFont * >(argp1);
15130 ecode2 = SWIG_AsVal_int(obj1, &val2);
15131 if (!SWIG_IsOK(ecode2)) {
15132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15133 }
15134 arg2 = static_cast< int >(val2);
15135 {
15136 PyThreadState* __tstate = wxPyBeginAllowThreads();
15137 (arg1)->SetFamily(arg2);
15138 wxPyEndAllowThreads(__tstate);
15139 if (PyErr_Occurred()) SWIG_fail;
15140 }
15141 resultobj = SWIG_Py_Void();
15142 return resultobj;
15143 fail:
15144 return NULL;
15145 }
15146
15147
15148 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15149 PyObject *resultobj = 0;
15150 wxFont *arg1 = (wxFont *) 0 ;
15151 int arg2 ;
15152 void *argp1 = 0 ;
15153 int res1 = 0 ;
15154 int val2 ;
15155 int ecode2 = 0 ;
15156 PyObject * obj0 = 0 ;
15157 PyObject * obj1 = 0 ;
15158 char * kwnames[] = {
15159 (char *) "self",(char *) "style", NULL
15160 };
15161
15162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15164 if (!SWIG_IsOK(res1)) {
15165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15166 }
15167 arg1 = reinterpret_cast< wxFont * >(argp1);
15168 ecode2 = SWIG_AsVal_int(obj1, &val2);
15169 if (!SWIG_IsOK(ecode2)) {
15170 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15171 }
15172 arg2 = static_cast< int >(val2);
15173 {
15174 PyThreadState* __tstate = wxPyBeginAllowThreads();
15175 (arg1)->SetStyle(arg2);
15176 wxPyEndAllowThreads(__tstate);
15177 if (PyErr_Occurred()) SWIG_fail;
15178 }
15179 resultobj = SWIG_Py_Void();
15180 return resultobj;
15181 fail:
15182 return NULL;
15183 }
15184
15185
15186 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15187 PyObject *resultobj = 0;
15188 wxFont *arg1 = (wxFont *) 0 ;
15189 int arg2 ;
15190 void *argp1 = 0 ;
15191 int res1 = 0 ;
15192 int val2 ;
15193 int ecode2 = 0 ;
15194 PyObject * obj0 = 0 ;
15195 PyObject * obj1 = 0 ;
15196 char * kwnames[] = {
15197 (char *) "self",(char *) "weight", NULL
15198 };
15199
15200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15202 if (!SWIG_IsOK(res1)) {
15203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15204 }
15205 arg1 = reinterpret_cast< wxFont * >(argp1);
15206 ecode2 = SWIG_AsVal_int(obj1, &val2);
15207 if (!SWIG_IsOK(ecode2)) {
15208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15209 }
15210 arg2 = static_cast< int >(val2);
15211 {
15212 PyThreadState* __tstate = wxPyBeginAllowThreads();
15213 (arg1)->SetWeight(arg2);
15214 wxPyEndAllowThreads(__tstate);
15215 if (PyErr_Occurred()) SWIG_fail;
15216 }
15217 resultobj = SWIG_Py_Void();
15218 return resultobj;
15219 fail:
15220 return NULL;
15221 }
15222
15223
15224 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15225 PyObject *resultobj = 0;
15226 wxFont *arg1 = (wxFont *) 0 ;
15227 wxString *arg2 = 0 ;
15228 bool result;
15229 void *argp1 = 0 ;
15230 int res1 = 0 ;
15231 bool temp2 = false ;
15232 PyObject * obj0 = 0 ;
15233 PyObject * obj1 = 0 ;
15234 char * kwnames[] = {
15235 (char *) "self",(char *) "faceName", NULL
15236 };
15237
15238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15240 if (!SWIG_IsOK(res1)) {
15241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15242 }
15243 arg1 = reinterpret_cast< wxFont * >(argp1);
15244 {
15245 arg2 = wxString_in_helper(obj1);
15246 if (arg2 == NULL) SWIG_fail;
15247 temp2 = true;
15248 }
15249 {
15250 PyThreadState* __tstate = wxPyBeginAllowThreads();
15251 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15252 wxPyEndAllowThreads(__tstate);
15253 if (PyErr_Occurred()) SWIG_fail;
15254 }
15255 {
15256 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15257 }
15258 {
15259 if (temp2)
15260 delete arg2;
15261 }
15262 return resultobj;
15263 fail:
15264 {
15265 if (temp2)
15266 delete arg2;
15267 }
15268 return NULL;
15269 }
15270
15271
15272 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15273 PyObject *resultobj = 0;
15274 wxFont *arg1 = (wxFont *) 0 ;
15275 bool arg2 ;
15276 void *argp1 = 0 ;
15277 int res1 = 0 ;
15278 bool val2 ;
15279 int ecode2 = 0 ;
15280 PyObject * obj0 = 0 ;
15281 PyObject * obj1 = 0 ;
15282 char * kwnames[] = {
15283 (char *) "self",(char *) "underlined", NULL
15284 };
15285
15286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15288 if (!SWIG_IsOK(res1)) {
15289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15290 }
15291 arg1 = reinterpret_cast< wxFont * >(argp1);
15292 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15293 if (!SWIG_IsOK(ecode2)) {
15294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15295 }
15296 arg2 = static_cast< bool >(val2);
15297 {
15298 PyThreadState* __tstate = wxPyBeginAllowThreads();
15299 (arg1)->SetUnderlined(arg2);
15300 wxPyEndAllowThreads(__tstate);
15301 if (PyErr_Occurred()) SWIG_fail;
15302 }
15303 resultobj = SWIG_Py_Void();
15304 return resultobj;
15305 fail:
15306 return NULL;
15307 }
15308
15309
15310 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15311 PyObject *resultobj = 0;
15312 wxFont *arg1 = (wxFont *) 0 ;
15313 wxFontEncoding arg2 ;
15314 void *argp1 = 0 ;
15315 int res1 = 0 ;
15316 int val2 ;
15317 int ecode2 = 0 ;
15318 PyObject * obj0 = 0 ;
15319 PyObject * obj1 = 0 ;
15320 char * kwnames[] = {
15321 (char *) "self",(char *) "encoding", NULL
15322 };
15323
15324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15326 if (!SWIG_IsOK(res1)) {
15327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15328 }
15329 arg1 = reinterpret_cast< wxFont * >(argp1);
15330 ecode2 = SWIG_AsVal_int(obj1, &val2);
15331 if (!SWIG_IsOK(ecode2)) {
15332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15333 }
15334 arg2 = static_cast< wxFontEncoding >(val2);
15335 {
15336 PyThreadState* __tstate = wxPyBeginAllowThreads();
15337 (arg1)->SetEncoding(arg2);
15338 wxPyEndAllowThreads(__tstate);
15339 if (PyErr_Occurred()) SWIG_fail;
15340 }
15341 resultobj = SWIG_Py_Void();
15342 return resultobj;
15343 fail:
15344 return NULL;
15345 }
15346
15347
15348 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15349 PyObject *resultobj = 0;
15350 wxFont *arg1 = (wxFont *) 0 ;
15351 wxNativeFontInfo *arg2 = 0 ;
15352 void *argp1 = 0 ;
15353 int res1 = 0 ;
15354 void *argp2 = 0 ;
15355 int res2 = 0 ;
15356 PyObject * obj0 = 0 ;
15357 PyObject * obj1 = 0 ;
15358 char * kwnames[] = {
15359 (char *) "self",(char *) "info", NULL
15360 };
15361
15362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15363 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15364 if (!SWIG_IsOK(res1)) {
15365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15366 }
15367 arg1 = reinterpret_cast< wxFont * >(argp1);
15368 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15369 if (!SWIG_IsOK(res2)) {
15370 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15371 }
15372 if (!argp2) {
15373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15374 }
15375 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15376 {
15377 PyThreadState* __tstate = wxPyBeginAllowThreads();
15378 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15379 wxPyEndAllowThreads(__tstate);
15380 if (PyErr_Occurred()) SWIG_fail;
15381 }
15382 resultobj = SWIG_Py_Void();
15383 return resultobj;
15384 fail:
15385 return NULL;
15386 }
15387
15388
15389 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15390 PyObject *resultobj = 0;
15391 wxFont *arg1 = (wxFont *) 0 ;
15392 wxString *arg2 = 0 ;
15393 bool result;
15394 void *argp1 = 0 ;
15395 int res1 = 0 ;
15396 bool temp2 = false ;
15397 PyObject * obj0 = 0 ;
15398 PyObject * obj1 = 0 ;
15399 char * kwnames[] = {
15400 (char *) "self",(char *) "info", NULL
15401 };
15402
15403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15405 if (!SWIG_IsOK(res1)) {
15406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15407 }
15408 arg1 = reinterpret_cast< wxFont * >(argp1);
15409 {
15410 arg2 = wxString_in_helper(obj1);
15411 if (arg2 == NULL) SWIG_fail;
15412 temp2 = true;
15413 }
15414 {
15415 PyThreadState* __tstate = wxPyBeginAllowThreads();
15416 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15417 wxPyEndAllowThreads(__tstate);
15418 if (PyErr_Occurred()) SWIG_fail;
15419 }
15420 {
15421 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15422 }
15423 {
15424 if (temp2)
15425 delete arg2;
15426 }
15427 return resultobj;
15428 fail:
15429 {
15430 if (temp2)
15431 delete arg2;
15432 }
15433 return NULL;
15434 }
15435
15436
15437 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15438 PyObject *resultobj = 0;
15439 wxFont *arg1 = (wxFont *) 0 ;
15440 wxString *arg2 = 0 ;
15441 bool result;
15442 void *argp1 = 0 ;
15443 int res1 = 0 ;
15444 bool temp2 = false ;
15445 PyObject * obj0 = 0 ;
15446 PyObject * obj1 = 0 ;
15447 char * kwnames[] = {
15448 (char *) "self",(char *) "info", NULL
15449 };
15450
15451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15453 if (!SWIG_IsOK(res1)) {
15454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15455 }
15456 arg1 = reinterpret_cast< wxFont * >(argp1);
15457 {
15458 arg2 = wxString_in_helper(obj1);
15459 if (arg2 == NULL) SWIG_fail;
15460 temp2 = true;
15461 }
15462 {
15463 PyThreadState* __tstate = wxPyBeginAllowThreads();
15464 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15465 wxPyEndAllowThreads(__tstate);
15466 if (PyErr_Occurred()) SWIG_fail;
15467 }
15468 {
15469 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15470 }
15471 {
15472 if (temp2)
15473 delete arg2;
15474 }
15475 return resultobj;
15476 fail:
15477 {
15478 if (temp2)
15479 delete arg2;
15480 }
15481 return NULL;
15482 }
15483
15484
15485 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15486 PyObject *resultobj = 0;
15487 wxFont *arg1 = (wxFont *) 0 ;
15488 wxString result;
15489 void *argp1 = 0 ;
15490 int res1 = 0 ;
15491 PyObject *swig_obj[1] ;
15492
15493 if (!args) SWIG_fail;
15494 swig_obj[0] = args;
15495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15496 if (!SWIG_IsOK(res1)) {
15497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15498 }
15499 arg1 = reinterpret_cast< wxFont * >(argp1);
15500 {
15501 PyThreadState* __tstate = wxPyBeginAllowThreads();
15502 result = ((wxFont const *)arg1)->GetFamilyString();
15503 wxPyEndAllowThreads(__tstate);
15504 if (PyErr_Occurred()) SWIG_fail;
15505 }
15506 {
15507 #if wxUSE_UNICODE
15508 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15509 #else
15510 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15511 #endif
15512 }
15513 return resultobj;
15514 fail:
15515 return NULL;
15516 }
15517
15518
15519 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15520 PyObject *resultobj = 0;
15521 wxFont *arg1 = (wxFont *) 0 ;
15522 wxString result;
15523 void *argp1 = 0 ;
15524 int res1 = 0 ;
15525 PyObject *swig_obj[1] ;
15526
15527 if (!args) SWIG_fail;
15528 swig_obj[0] = args;
15529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15530 if (!SWIG_IsOK(res1)) {
15531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15532 }
15533 arg1 = reinterpret_cast< wxFont * >(argp1);
15534 {
15535 PyThreadState* __tstate = wxPyBeginAllowThreads();
15536 result = ((wxFont const *)arg1)->GetStyleString();
15537 wxPyEndAllowThreads(__tstate);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
15540 {
15541 #if wxUSE_UNICODE
15542 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15543 #else
15544 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15545 #endif
15546 }
15547 return resultobj;
15548 fail:
15549 return NULL;
15550 }
15551
15552
15553 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15554 PyObject *resultobj = 0;
15555 wxFont *arg1 = (wxFont *) 0 ;
15556 wxString result;
15557 void *argp1 = 0 ;
15558 int res1 = 0 ;
15559 PyObject *swig_obj[1] ;
15560
15561 if (!args) SWIG_fail;
15562 swig_obj[0] = args;
15563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15564 if (!SWIG_IsOK(res1)) {
15565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15566 }
15567 arg1 = reinterpret_cast< wxFont * >(argp1);
15568 {
15569 PyThreadState* __tstate = wxPyBeginAllowThreads();
15570 result = ((wxFont const *)arg1)->GetWeightString();
15571 wxPyEndAllowThreads(__tstate);
15572 if (PyErr_Occurred()) SWIG_fail;
15573 }
15574 {
15575 #if wxUSE_UNICODE
15576 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15577 #else
15578 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15579 #endif
15580 }
15581 return resultobj;
15582 fail:
15583 return NULL;
15584 }
15585
15586
15587 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15588 PyObject *resultobj = 0;
15589 wxFont *arg1 = (wxFont *) 0 ;
15590 bool arg2 = (bool) true ;
15591 void *argp1 = 0 ;
15592 int res1 = 0 ;
15593 bool val2 ;
15594 int ecode2 = 0 ;
15595 PyObject * obj0 = 0 ;
15596 PyObject * obj1 = 0 ;
15597 char * kwnames[] = {
15598 (char *) "self",(char *) "no", NULL
15599 };
15600
15601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15603 if (!SWIG_IsOK(res1)) {
15604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15605 }
15606 arg1 = reinterpret_cast< wxFont * >(argp1);
15607 if (obj1) {
15608 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15609 if (!SWIG_IsOK(ecode2)) {
15610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15611 }
15612 arg2 = static_cast< bool >(val2);
15613 }
15614 {
15615 PyThreadState* __tstate = wxPyBeginAllowThreads();
15616 (arg1)->SetNoAntiAliasing(arg2);
15617 wxPyEndAllowThreads(__tstate);
15618 if (PyErr_Occurred()) SWIG_fail;
15619 }
15620 resultobj = SWIG_Py_Void();
15621 return resultobj;
15622 fail:
15623 return NULL;
15624 }
15625
15626
15627 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15628 PyObject *resultobj = 0;
15629 wxFont *arg1 = (wxFont *) 0 ;
15630 bool result;
15631 void *argp1 = 0 ;
15632 int res1 = 0 ;
15633 PyObject *swig_obj[1] ;
15634
15635 if (!args) SWIG_fail;
15636 swig_obj[0] = args;
15637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15638 if (!SWIG_IsOK(res1)) {
15639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15640 }
15641 arg1 = reinterpret_cast< wxFont * >(argp1);
15642 {
15643 PyThreadState* __tstate = wxPyBeginAllowThreads();
15644 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15645 wxPyEndAllowThreads(__tstate);
15646 if (PyErr_Occurred()) SWIG_fail;
15647 }
15648 {
15649 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15650 }
15651 return resultobj;
15652 fail:
15653 return NULL;
15654 }
15655
15656
15657 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15658 PyObject *resultobj = 0;
15659 wxFontEncoding result;
15660
15661 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15662 {
15663 if (!wxPyCheckForApp()) SWIG_fail;
15664 PyThreadState* __tstate = wxPyBeginAllowThreads();
15665 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15666 wxPyEndAllowThreads(__tstate);
15667 if (PyErr_Occurred()) SWIG_fail;
15668 }
15669 resultobj = SWIG_From_int(static_cast< int >(result));
15670 return resultobj;
15671 fail:
15672 return NULL;
15673 }
15674
15675
15676 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15677 PyObject *resultobj = 0;
15678 wxFontEncoding arg1 ;
15679 int val1 ;
15680 int ecode1 = 0 ;
15681 PyObject * obj0 = 0 ;
15682 char * kwnames[] = {
15683 (char *) "encoding", NULL
15684 };
15685
15686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15687 ecode1 = SWIG_AsVal_int(obj0, &val1);
15688 if (!SWIG_IsOK(ecode1)) {
15689 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15690 }
15691 arg1 = static_cast< wxFontEncoding >(val1);
15692 {
15693 if (!wxPyCheckForApp()) SWIG_fail;
15694 PyThreadState* __tstate = wxPyBeginAllowThreads();
15695 wxFont::SetDefaultEncoding(arg1);
15696 wxPyEndAllowThreads(__tstate);
15697 if (PyErr_Occurred()) SWIG_fail;
15698 }
15699 resultobj = SWIG_Py_Void();
15700 return resultobj;
15701 fail:
15702 return NULL;
15703 }
15704
15705
15706 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15707 PyObject *obj;
15708 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15709 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15710 return SWIG_Py_Void();
15711 }
15712
15713 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15714 return SWIG_Python_InitShadowInstance(args);
15715 }
15716
15717 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15718 PyObject *resultobj = 0;
15719 wxPyFontEnumerator *result = 0 ;
15720
15721 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15722 {
15723 if (!wxPyCheckForApp()) SWIG_fail;
15724 PyThreadState* __tstate = wxPyBeginAllowThreads();
15725 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15726 wxPyEndAllowThreads(__tstate);
15727 if (PyErr_Occurred()) SWIG_fail;
15728 }
15729 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15730 return resultobj;
15731 fail:
15732 return NULL;
15733 }
15734
15735
15736 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15737 PyObject *resultobj = 0;
15738 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15739 void *argp1 = 0 ;
15740 int res1 = 0 ;
15741 PyObject *swig_obj[1] ;
15742
15743 if (!args) SWIG_fail;
15744 swig_obj[0] = args;
15745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15746 if (!SWIG_IsOK(res1)) {
15747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15748 }
15749 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15750 {
15751 PyThreadState* __tstate = wxPyBeginAllowThreads();
15752 delete arg1;
15753
15754 wxPyEndAllowThreads(__tstate);
15755 if (PyErr_Occurred()) SWIG_fail;
15756 }
15757 resultobj = SWIG_Py_Void();
15758 return resultobj;
15759 fail:
15760 return NULL;
15761 }
15762
15763
15764 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15765 PyObject *resultobj = 0;
15766 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15767 PyObject *arg2 = (PyObject *) 0 ;
15768 PyObject *arg3 = (PyObject *) 0 ;
15769 bool arg4 ;
15770 void *argp1 = 0 ;
15771 int res1 = 0 ;
15772 bool val4 ;
15773 int ecode4 = 0 ;
15774 PyObject * obj0 = 0 ;
15775 PyObject * obj1 = 0 ;
15776 PyObject * obj2 = 0 ;
15777 PyObject * obj3 = 0 ;
15778 char * kwnames[] = {
15779 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15780 };
15781
15782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15784 if (!SWIG_IsOK(res1)) {
15785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15786 }
15787 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15788 arg2 = obj1;
15789 arg3 = obj2;
15790 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15791 if (!SWIG_IsOK(ecode4)) {
15792 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15793 }
15794 arg4 = static_cast< bool >(val4);
15795 {
15796 PyThreadState* __tstate = wxPyBeginAllowThreads();
15797 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15798 wxPyEndAllowThreads(__tstate);
15799 if (PyErr_Occurred()) SWIG_fail;
15800 }
15801 resultobj = SWIG_Py_Void();
15802 return resultobj;
15803 fail:
15804 return NULL;
15805 }
15806
15807
15808 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15809 PyObject *resultobj = 0;
15810 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15811 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15812 bool arg3 = (bool) false ;
15813 bool result;
15814 void *argp1 = 0 ;
15815 int res1 = 0 ;
15816 int val2 ;
15817 int ecode2 = 0 ;
15818 bool val3 ;
15819 int ecode3 = 0 ;
15820 PyObject * obj0 = 0 ;
15821 PyObject * obj1 = 0 ;
15822 PyObject * obj2 = 0 ;
15823 char * kwnames[] = {
15824 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15825 };
15826
15827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15829 if (!SWIG_IsOK(res1)) {
15830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15831 }
15832 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15833 if (obj1) {
15834 ecode2 = SWIG_AsVal_int(obj1, &val2);
15835 if (!SWIG_IsOK(ecode2)) {
15836 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15837 }
15838 arg2 = static_cast< wxFontEncoding >(val2);
15839 }
15840 if (obj2) {
15841 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15842 if (!SWIG_IsOK(ecode3)) {
15843 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15844 }
15845 arg3 = static_cast< bool >(val3);
15846 }
15847 {
15848 PyThreadState* __tstate = wxPyBeginAllowThreads();
15849 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15850 wxPyEndAllowThreads(__tstate);
15851 if (PyErr_Occurred()) SWIG_fail;
15852 }
15853 {
15854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15855 }
15856 return resultobj;
15857 fail:
15858 return NULL;
15859 }
15860
15861
15862 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15863 PyObject *resultobj = 0;
15864 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15865 wxString const &arg2_defvalue = wxPyEmptyString ;
15866 wxString *arg2 = (wxString *) &arg2_defvalue ;
15867 bool result;
15868 void *argp1 = 0 ;
15869 int res1 = 0 ;
15870 bool temp2 = false ;
15871 PyObject * obj0 = 0 ;
15872 PyObject * obj1 = 0 ;
15873 char * kwnames[] = {
15874 (char *) "self",(char *) "facename", NULL
15875 };
15876
15877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15879 if (!SWIG_IsOK(res1)) {
15880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15881 }
15882 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15883 if (obj1) {
15884 {
15885 arg2 = wxString_in_helper(obj1);
15886 if (arg2 == NULL) SWIG_fail;
15887 temp2 = true;
15888 }
15889 }
15890 {
15891 PyThreadState* __tstate = wxPyBeginAllowThreads();
15892 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15893 wxPyEndAllowThreads(__tstate);
15894 if (PyErr_Occurred()) SWIG_fail;
15895 }
15896 {
15897 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15898 }
15899 {
15900 if (temp2)
15901 delete arg2;
15902 }
15903 return resultobj;
15904 fail:
15905 {
15906 if (temp2)
15907 delete arg2;
15908 }
15909 return NULL;
15910 }
15911
15912
15913 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15914 PyObject *resultobj = 0;
15915 PyObject *result = 0 ;
15916
15917 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15918 {
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
15920 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15921 wxPyEndAllowThreads(__tstate);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 resultobj = result;
15925 return resultobj;
15926 fail:
15927 return NULL;
15928 }
15929
15930
15931 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15932 PyObject *resultobj = 0;
15933 PyObject *result = 0 ;
15934
15935 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15936 {
15937 PyThreadState* __tstate = wxPyBeginAllowThreads();
15938 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15939 wxPyEndAllowThreads(__tstate);
15940 if (PyErr_Occurred()) SWIG_fail;
15941 }
15942 resultobj = result;
15943 return resultobj;
15944 fail:
15945 return NULL;
15946 }
15947
15948
15949 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15950 PyObject *resultobj = 0;
15951 wxString *arg1 = 0 ;
15952 bool result;
15953 bool temp1 = false ;
15954 PyObject * obj0 = 0 ;
15955 char * kwnames[] = {
15956 (char *) "str", NULL
15957 };
15958
15959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15960 {
15961 arg1 = wxString_in_helper(obj0);
15962 if (arg1 == NULL) SWIG_fail;
15963 temp1 = true;
15964 }
15965 {
15966 PyThreadState* __tstate = wxPyBeginAllowThreads();
15967 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15968 wxPyEndAllowThreads(__tstate);
15969 if (PyErr_Occurred()) SWIG_fail;
15970 }
15971 {
15972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15973 }
15974 {
15975 if (temp1)
15976 delete arg1;
15977 }
15978 return resultobj;
15979 fail:
15980 {
15981 if (temp1)
15982 delete arg1;
15983 }
15984 return NULL;
15985 }
15986
15987
15988 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15989 PyObject *obj;
15990 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15991 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
15992 return SWIG_Py_Void();
15993 }
15994
15995 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15996 return SWIG_Python_InitShadowInstance(args);
15997 }
15998
15999 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16000 PyObject *resultobj = 0;
16001 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16002 int arg2 ;
16003 void *argp1 = 0 ;
16004 int res1 = 0 ;
16005 int val2 ;
16006 int ecode2 = 0 ;
16007 PyObject *swig_obj[2] ;
16008
16009 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16011 if (!SWIG_IsOK(res1)) {
16012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16013 }
16014 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16015 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16016 if (!SWIG_IsOK(ecode2)) {
16017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16018 }
16019 arg2 = static_cast< int >(val2);
16020 if (arg1) (arg1)->Language = arg2;
16021
16022 resultobj = SWIG_Py_Void();
16023 return resultobj;
16024 fail:
16025 return NULL;
16026 }
16027
16028
16029 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16030 PyObject *resultobj = 0;
16031 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16032 int result;
16033 void *argp1 = 0 ;
16034 int res1 = 0 ;
16035 PyObject *swig_obj[1] ;
16036
16037 if (!args) SWIG_fail;
16038 swig_obj[0] = args;
16039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16040 if (!SWIG_IsOK(res1)) {
16041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16042 }
16043 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16044 result = (int) ((arg1)->Language);
16045 resultobj = SWIG_From_int(static_cast< int >(result));
16046 return resultobj;
16047 fail:
16048 return NULL;
16049 }
16050
16051
16052 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16053 PyObject *resultobj = 0;
16054 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16055 wxString *arg2 = (wxString *) 0 ;
16056 void *argp1 = 0 ;
16057 int res1 = 0 ;
16058 bool temp2 = false ;
16059 PyObject *swig_obj[2] ;
16060
16061 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16063 if (!SWIG_IsOK(res1)) {
16064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16065 }
16066 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16067 {
16068 arg2 = wxString_in_helper(swig_obj[1]);
16069 if (arg2 == NULL) SWIG_fail;
16070 temp2 = true;
16071 }
16072 if (arg1) (arg1)->CanonicalName = *arg2;
16073
16074 resultobj = SWIG_Py_Void();
16075 {
16076 if (temp2)
16077 delete arg2;
16078 }
16079 return resultobj;
16080 fail:
16081 {
16082 if (temp2)
16083 delete arg2;
16084 }
16085 return NULL;
16086 }
16087
16088
16089 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16090 PyObject *resultobj = 0;
16091 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16092 wxString *result = 0 ;
16093 void *argp1 = 0 ;
16094 int res1 = 0 ;
16095 PyObject *swig_obj[1] ;
16096
16097 if (!args) SWIG_fail;
16098 swig_obj[0] = args;
16099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16100 if (!SWIG_IsOK(res1)) {
16101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16102 }
16103 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16104 result = (wxString *)& ((arg1)->CanonicalName);
16105 {
16106 #if wxUSE_UNICODE
16107 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16108 #else
16109 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16110 #endif
16111 }
16112 return resultobj;
16113 fail:
16114 return NULL;
16115 }
16116
16117
16118 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16119 PyObject *resultobj = 0;
16120 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16121 wxString *arg2 = (wxString *) 0 ;
16122 void *argp1 = 0 ;
16123 int res1 = 0 ;
16124 bool temp2 = false ;
16125 PyObject *swig_obj[2] ;
16126
16127 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16129 if (!SWIG_IsOK(res1)) {
16130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16131 }
16132 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16133 {
16134 arg2 = wxString_in_helper(swig_obj[1]);
16135 if (arg2 == NULL) SWIG_fail;
16136 temp2 = true;
16137 }
16138 if (arg1) (arg1)->Description = *arg2;
16139
16140 resultobj = SWIG_Py_Void();
16141 {
16142 if (temp2)
16143 delete arg2;
16144 }
16145 return resultobj;
16146 fail:
16147 {
16148 if (temp2)
16149 delete arg2;
16150 }
16151 return NULL;
16152 }
16153
16154
16155 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16156 PyObject *resultobj = 0;
16157 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16158 wxString *result = 0 ;
16159 void *argp1 = 0 ;
16160 int res1 = 0 ;
16161 PyObject *swig_obj[1] ;
16162
16163 if (!args) SWIG_fail;
16164 swig_obj[0] = args;
16165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16166 if (!SWIG_IsOK(res1)) {
16167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16168 }
16169 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16170 result = (wxString *)& ((arg1)->Description);
16171 {
16172 #if wxUSE_UNICODE
16173 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16174 #else
16175 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16176 #endif
16177 }
16178 return resultobj;
16179 fail:
16180 return NULL;
16181 }
16182
16183
16184 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16185 PyObject *obj;
16186 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16187 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16188 return SWIG_Py_Void();
16189 }
16190
16191 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16192 PyObject *resultobj = 0;
16193 int arg1 = (int) -1 ;
16194 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16195 wxLocale *result = 0 ;
16196 int val1 ;
16197 int ecode1 = 0 ;
16198 int val2 ;
16199 int ecode2 = 0 ;
16200 PyObject * obj0 = 0 ;
16201 PyObject * obj1 = 0 ;
16202 char * kwnames[] = {
16203 (char *) "language",(char *) "flags", NULL
16204 };
16205
16206 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16207 if (obj0) {
16208 ecode1 = SWIG_AsVal_int(obj0, &val1);
16209 if (!SWIG_IsOK(ecode1)) {
16210 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16211 }
16212 arg1 = static_cast< int >(val1);
16213 }
16214 if (obj1) {
16215 ecode2 = SWIG_AsVal_int(obj1, &val2);
16216 if (!SWIG_IsOK(ecode2)) {
16217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16218 }
16219 arg2 = static_cast< int >(val2);
16220 }
16221 {
16222 PyThreadState* __tstate = wxPyBeginAllowThreads();
16223 result = (wxLocale *)new_wxLocale(arg1,arg2);
16224 wxPyEndAllowThreads(__tstate);
16225 if (PyErr_Occurred()) SWIG_fail;
16226 }
16227 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16228 return resultobj;
16229 fail:
16230 return NULL;
16231 }
16232
16233
16234 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16235 PyObject *resultobj = 0;
16236 wxLocale *arg1 = (wxLocale *) 0 ;
16237 void *argp1 = 0 ;
16238 int res1 = 0 ;
16239 PyObject *swig_obj[1] ;
16240
16241 if (!args) SWIG_fail;
16242 swig_obj[0] = args;
16243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16244 if (!SWIG_IsOK(res1)) {
16245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16246 }
16247 arg1 = reinterpret_cast< wxLocale * >(argp1);
16248 {
16249 PyThreadState* __tstate = wxPyBeginAllowThreads();
16250 delete arg1;
16251
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 resultobj = SWIG_Py_Void();
16256 return resultobj;
16257 fail:
16258 return NULL;
16259 }
16260
16261
16262 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj = 0;
16264 wxLocale *arg1 = (wxLocale *) 0 ;
16265 wxString *arg2 = 0 ;
16266 wxString const &arg3_defvalue = wxPyEmptyString ;
16267 wxString *arg3 = (wxString *) &arg3_defvalue ;
16268 wxString const &arg4_defvalue = wxPyEmptyString ;
16269 wxString *arg4 = (wxString *) &arg4_defvalue ;
16270 bool arg5 = (bool) true ;
16271 bool arg6 = (bool) false ;
16272 bool result;
16273 void *argp1 = 0 ;
16274 int res1 = 0 ;
16275 bool temp2 = false ;
16276 bool temp3 = false ;
16277 bool temp4 = false ;
16278 bool val5 ;
16279 int ecode5 = 0 ;
16280 bool val6 ;
16281 int ecode6 = 0 ;
16282 PyObject * obj0 = 0 ;
16283 PyObject * obj1 = 0 ;
16284 PyObject * obj2 = 0 ;
16285 PyObject * obj3 = 0 ;
16286 PyObject * obj4 = 0 ;
16287 PyObject * obj5 = 0 ;
16288 char * kwnames[] = {
16289 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16290 };
16291
16292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16296 }
16297 arg1 = reinterpret_cast< wxLocale * >(argp1);
16298 {
16299 arg2 = wxString_in_helper(obj1);
16300 if (arg2 == NULL) SWIG_fail;
16301 temp2 = true;
16302 }
16303 if (obj2) {
16304 {
16305 arg3 = wxString_in_helper(obj2);
16306 if (arg3 == NULL) SWIG_fail;
16307 temp3 = true;
16308 }
16309 }
16310 if (obj3) {
16311 {
16312 arg4 = wxString_in_helper(obj3);
16313 if (arg4 == NULL) SWIG_fail;
16314 temp4 = true;
16315 }
16316 }
16317 if (obj4) {
16318 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16319 if (!SWIG_IsOK(ecode5)) {
16320 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16321 }
16322 arg5 = static_cast< bool >(val5);
16323 }
16324 if (obj5) {
16325 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16326 if (!SWIG_IsOK(ecode6)) {
16327 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16328 }
16329 arg6 = static_cast< bool >(val6);
16330 }
16331 {
16332 PyThreadState* __tstate = wxPyBeginAllowThreads();
16333 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16334 wxPyEndAllowThreads(__tstate);
16335 if (PyErr_Occurred()) SWIG_fail;
16336 }
16337 {
16338 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16339 }
16340 {
16341 if (temp2)
16342 delete arg2;
16343 }
16344 {
16345 if (temp3)
16346 delete arg3;
16347 }
16348 {
16349 if (temp4)
16350 delete arg4;
16351 }
16352 return resultobj;
16353 fail:
16354 {
16355 if (temp2)
16356 delete arg2;
16357 }
16358 {
16359 if (temp3)
16360 delete arg3;
16361 }
16362 {
16363 if (temp4)
16364 delete arg4;
16365 }
16366 return NULL;
16367 }
16368
16369
16370 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16371 PyObject *resultobj = 0;
16372 wxLocale *arg1 = (wxLocale *) 0 ;
16373 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16374 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16375 bool result;
16376 void *argp1 = 0 ;
16377 int res1 = 0 ;
16378 int val2 ;
16379 int ecode2 = 0 ;
16380 int val3 ;
16381 int ecode3 = 0 ;
16382 PyObject * obj0 = 0 ;
16383 PyObject * obj1 = 0 ;
16384 PyObject * obj2 = 0 ;
16385 char * kwnames[] = {
16386 (char *) "self",(char *) "language",(char *) "flags", NULL
16387 };
16388
16389 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16390 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16391 if (!SWIG_IsOK(res1)) {
16392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16393 }
16394 arg1 = reinterpret_cast< wxLocale * >(argp1);
16395 if (obj1) {
16396 ecode2 = SWIG_AsVal_int(obj1, &val2);
16397 if (!SWIG_IsOK(ecode2)) {
16398 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16399 }
16400 arg2 = static_cast< int >(val2);
16401 }
16402 if (obj2) {
16403 ecode3 = SWIG_AsVal_int(obj2, &val3);
16404 if (!SWIG_IsOK(ecode3)) {
16405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16406 }
16407 arg3 = static_cast< int >(val3);
16408 }
16409 {
16410 PyThreadState* __tstate = wxPyBeginAllowThreads();
16411 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16412 wxPyEndAllowThreads(__tstate);
16413 if (PyErr_Occurred()) SWIG_fail;
16414 }
16415 {
16416 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16417 }
16418 return resultobj;
16419 fail:
16420 return NULL;
16421 }
16422
16423
16424 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16425 PyObject *resultobj = 0;
16426 int result;
16427
16428 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16429 {
16430 PyThreadState* __tstate = wxPyBeginAllowThreads();
16431 result = (int)wxLocale::GetSystemLanguage();
16432 wxPyEndAllowThreads(__tstate);
16433 if (PyErr_Occurred()) SWIG_fail;
16434 }
16435 resultobj = SWIG_From_int(static_cast< int >(result));
16436 return resultobj;
16437 fail:
16438 return NULL;
16439 }
16440
16441
16442 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16443 PyObject *resultobj = 0;
16444 wxFontEncoding result;
16445
16446 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16447 {
16448 PyThreadState* __tstate = wxPyBeginAllowThreads();
16449 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16450 wxPyEndAllowThreads(__tstate);
16451 if (PyErr_Occurred()) SWIG_fail;
16452 }
16453 resultobj = SWIG_From_int(static_cast< int >(result));
16454 return resultobj;
16455 fail:
16456 return NULL;
16457 }
16458
16459
16460 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16461 PyObject *resultobj = 0;
16462 wxString result;
16463
16464 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16465 {
16466 PyThreadState* __tstate = wxPyBeginAllowThreads();
16467 result = wxLocale::GetSystemEncodingName();
16468 wxPyEndAllowThreads(__tstate);
16469 if (PyErr_Occurred()) SWIG_fail;
16470 }
16471 {
16472 #if wxUSE_UNICODE
16473 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16474 #else
16475 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16476 #endif
16477 }
16478 return resultobj;
16479 fail:
16480 return NULL;
16481 }
16482
16483
16484 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16485 PyObject *resultobj = 0;
16486 wxLocale *arg1 = (wxLocale *) 0 ;
16487 bool result;
16488 void *argp1 = 0 ;
16489 int res1 = 0 ;
16490 PyObject *swig_obj[1] ;
16491
16492 if (!args) SWIG_fail;
16493 swig_obj[0] = args;
16494 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16495 if (!SWIG_IsOK(res1)) {
16496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16497 }
16498 arg1 = reinterpret_cast< wxLocale * >(argp1);
16499 {
16500 PyThreadState* __tstate = wxPyBeginAllowThreads();
16501 result = (bool)((wxLocale const *)arg1)->IsOk();
16502 wxPyEndAllowThreads(__tstate);
16503 if (PyErr_Occurred()) SWIG_fail;
16504 }
16505 {
16506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16507 }
16508 return resultobj;
16509 fail:
16510 return NULL;
16511 }
16512
16513
16514 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16515 PyObject *resultobj = 0;
16516 wxLocale *arg1 = (wxLocale *) 0 ;
16517 wxString result;
16518 void *argp1 = 0 ;
16519 int res1 = 0 ;
16520 PyObject *swig_obj[1] ;
16521
16522 if (!args) SWIG_fail;
16523 swig_obj[0] = args;
16524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16525 if (!SWIG_IsOK(res1)) {
16526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16527 }
16528 arg1 = reinterpret_cast< wxLocale * >(argp1);
16529 {
16530 PyThreadState* __tstate = wxPyBeginAllowThreads();
16531 result = ((wxLocale const *)arg1)->GetLocale();
16532 wxPyEndAllowThreads(__tstate);
16533 if (PyErr_Occurred()) SWIG_fail;
16534 }
16535 {
16536 #if wxUSE_UNICODE
16537 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16538 #else
16539 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16540 #endif
16541 }
16542 return resultobj;
16543 fail:
16544 return NULL;
16545 }
16546
16547
16548 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16549 PyObject *resultobj = 0;
16550 wxLocale *arg1 = (wxLocale *) 0 ;
16551 int result;
16552 void *argp1 = 0 ;
16553 int res1 = 0 ;
16554 PyObject *swig_obj[1] ;
16555
16556 if (!args) SWIG_fail;
16557 swig_obj[0] = args;
16558 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16559 if (!SWIG_IsOK(res1)) {
16560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16561 }
16562 arg1 = reinterpret_cast< wxLocale * >(argp1);
16563 {
16564 PyThreadState* __tstate = wxPyBeginAllowThreads();
16565 result = (int)((wxLocale const *)arg1)->GetLanguage();
16566 wxPyEndAllowThreads(__tstate);
16567 if (PyErr_Occurred()) SWIG_fail;
16568 }
16569 resultobj = SWIG_From_int(static_cast< int >(result));
16570 return resultobj;
16571 fail:
16572 return NULL;
16573 }
16574
16575
16576 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16577 PyObject *resultobj = 0;
16578 wxLocale *arg1 = (wxLocale *) 0 ;
16579 wxString result;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 PyObject *swig_obj[1] ;
16583
16584 if (!args) SWIG_fail;
16585 swig_obj[0] = args;
16586 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16587 if (!SWIG_IsOK(res1)) {
16588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16589 }
16590 arg1 = reinterpret_cast< wxLocale * >(argp1);
16591 {
16592 PyThreadState* __tstate = wxPyBeginAllowThreads();
16593 result = ((wxLocale const *)arg1)->GetSysName();
16594 wxPyEndAllowThreads(__tstate);
16595 if (PyErr_Occurred()) SWIG_fail;
16596 }
16597 {
16598 #if wxUSE_UNICODE
16599 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16600 #else
16601 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16602 #endif
16603 }
16604 return resultobj;
16605 fail:
16606 return NULL;
16607 }
16608
16609
16610 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16611 PyObject *resultobj = 0;
16612 wxLocale *arg1 = (wxLocale *) 0 ;
16613 wxString result;
16614 void *argp1 = 0 ;
16615 int res1 = 0 ;
16616 PyObject *swig_obj[1] ;
16617
16618 if (!args) SWIG_fail;
16619 swig_obj[0] = args;
16620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16621 if (!SWIG_IsOK(res1)) {
16622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16623 }
16624 arg1 = reinterpret_cast< wxLocale * >(argp1);
16625 {
16626 PyThreadState* __tstate = wxPyBeginAllowThreads();
16627 result = ((wxLocale const *)arg1)->GetCanonicalName();
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
16631 {
16632 #if wxUSE_UNICODE
16633 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16634 #else
16635 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16636 #endif
16637 }
16638 return resultobj;
16639 fail:
16640 return NULL;
16641 }
16642
16643
16644 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16645 PyObject *resultobj = 0;
16646 wxString *arg1 = 0 ;
16647 bool temp1 = false ;
16648 PyObject * obj0 = 0 ;
16649 char * kwnames[] = {
16650 (char *) "prefix", NULL
16651 };
16652
16653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16654 {
16655 arg1 = wxString_in_helper(obj0);
16656 if (arg1 == NULL) SWIG_fail;
16657 temp1 = true;
16658 }
16659 {
16660 PyThreadState* __tstate = wxPyBeginAllowThreads();
16661 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16662 wxPyEndAllowThreads(__tstate);
16663 if (PyErr_Occurred()) SWIG_fail;
16664 }
16665 resultobj = SWIG_Py_Void();
16666 {
16667 if (temp1)
16668 delete arg1;
16669 }
16670 return resultobj;
16671 fail:
16672 {
16673 if (temp1)
16674 delete arg1;
16675 }
16676 return NULL;
16677 }
16678
16679
16680 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16681 PyObject *resultobj = 0;
16682 wxLocale *arg1 = (wxLocale *) 0 ;
16683 wxString *arg2 = 0 ;
16684 bool result;
16685 void *argp1 = 0 ;
16686 int res1 = 0 ;
16687 bool temp2 = false ;
16688 PyObject * obj0 = 0 ;
16689 PyObject * obj1 = 0 ;
16690 char * kwnames[] = {
16691 (char *) "self",(char *) "szDomain", NULL
16692 };
16693
16694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16696 if (!SWIG_IsOK(res1)) {
16697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16698 }
16699 arg1 = reinterpret_cast< wxLocale * >(argp1);
16700 {
16701 arg2 = wxString_in_helper(obj1);
16702 if (arg2 == NULL) SWIG_fail;
16703 temp2 = true;
16704 }
16705 {
16706 PyThreadState* __tstate = wxPyBeginAllowThreads();
16707 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 {
16712 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16713 }
16714 {
16715 if (temp2)
16716 delete arg2;
16717 }
16718 return resultobj;
16719 fail:
16720 {
16721 if (temp2)
16722 delete arg2;
16723 }
16724 return NULL;
16725 }
16726
16727
16728 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16729 PyObject *resultobj = 0;
16730 int arg1 ;
16731 bool result;
16732 int val1 ;
16733 int ecode1 = 0 ;
16734 PyObject * obj0 = 0 ;
16735 char * kwnames[] = {
16736 (char *) "lang", NULL
16737 };
16738
16739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16740 ecode1 = SWIG_AsVal_int(obj0, &val1);
16741 if (!SWIG_IsOK(ecode1)) {
16742 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16743 }
16744 arg1 = static_cast< int >(val1);
16745 {
16746 PyThreadState* __tstate = wxPyBeginAllowThreads();
16747 result = (bool)wxLocale::IsAvailable(arg1);
16748 wxPyEndAllowThreads(__tstate);
16749 if (PyErr_Occurred()) SWIG_fail;
16750 }
16751 {
16752 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16753 }
16754 return resultobj;
16755 fail:
16756 return NULL;
16757 }
16758
16759
16760 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16761 PyObject *resultobj = 0;
16762 wxLocale *arg1 = (wxLocale *) 0 ;
16763 wxString *arg2 = 0 ;
16764 bool result;
16765 void *argp1 = 0 ;
16766 int res1 = 0 ;
16767 bool temp2 = false ;
16768 PyObject * obj0 = 0 ;
16769 PyObject * obj1 = 0 ;
16770 char * kwnames[] = {
16771 (char *) "self",(char *) "szDomain", NULL
16772 };
16773
16774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16776 if (!SWIG_IsOK(res1)) {
16777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16778 }
16779 arg1 = reinterpret_cast< wxLocale * >(argp1);
16780 {
16781 arg2 = wxString_in_helper(obj1);
16782 if (arg2 == NULL) SWIG_fail;
16783 temp2 = true;
16784 }
16785 {
16786 PyThreadState* __tstate = wxPyBeginAllowThreads();
16787 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16788 wxPyEndAllowThreads(__tstate);
16789 if (PyErr_Occurred()) SWIG_fail;
16790 }
16791 {
16792 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16793 }
16794 {
16795 if (temp2)
16796 delete arg2;
16797 }
16798 return resultobj;
16799 fail:
16800 {
16801 if (temp2)
16802 delete arg2;
16803 }
16804 return NULL;
16805 }
16806
16807
16808 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16809 PyObject *resultobj = 0;
16810 int arg1 ;
16811 wxLanguageInfo *result = 0 ;
16812 int val1 ;
16813 int ecode1 = 0 ;
16814 PyObject * obj0 = 0 ;
16815 char * kwnames[] = {
16816 (char *) "lang", NULL
16817 };
16818
16819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16820 ecode1 = SWIG_AsVal_int(obj0, &val1);
16821 if (!SWIG_IsOK(ecode1)) {
16822 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16823 }
16824 arg1 = static_cast< int >(val1);
16825 {
16826 PyThreadState* __tstate = wxPyBeginAllowThreads();
16827 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16828 wxPyEndAllowThreads(__tstate);
16829 if (PyErr_Occurred()) SWIG_fail;
16830 }
16831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16832 return resultobj;
16833 fail:
16834 return NULL;
16835 }
16836
16837
16838 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16839 PyObject *resultobj = 0;
16840 int arg1 ;
16841 wxString result;
16842 int val1 ;
16843 int ecode1 = 0 ;
16844 PyObject * obj0 = 0 ;
16845 char * kwnames[] = {
16846 (char *) "lang", NULL
16847 };
16848
16849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16850 ecode1 = SWIG_AsVal_int(obj0, &val1);
16851 if (!SWIG_IsOK(ecode1)) {
16852 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16853 }
16854 arg1 = static_cast< int >(val1);
16855 {
16856 PyThreadState* __tstate = wxPyBeginAllowThreads();
16857 result = wxLocale::GetLanguageName(arg1);
16858 wxPyEndAllowThreads(__tstate);
16859 if (PyErr_Occurred()) SWIG_fail;
16860 }
16861 {
16862 #if wxUSE_UNICODE
16863 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16864 #else
16865 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16866 #endif
16867 }
16868 return resultobj;
16869 fail:
16870 return NULL;
16871 }
16872
16873
16874 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16875 PyObject *resultobj = 0;
16876 wxString *arg1 = 0 ;
16877 wxLanguageInfo *result = 0 ;
16878 bool temp1 = false ;
16879 PyObject * obj0 = 0 ;
16880 char * kwnames[] = {
16881 (char *) "locale", NULL
16882 };
16883
16884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16885 {
16886 arg1 = wxString_in_helper(obj0);
16887 if (arg1 == NULL) SWIG_fail;
16888 temp1 = true;
16889 }
16890 {
16891 PyThreadState* __tstate = wxPyBeginAllowThreads();
16892 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16893 wxPyEndAllowThreads(__tstate);
16894 if (PyErr_Occurred()) SWIG_fail;
16895 }
16896 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16897 {
16898 if (temp1)
16899 delete arg1;
16900 }
16901 return resultobj;
16902 fail:
16903 {
16904 if (temp1)
16905 delete arg1;
16906 }
16907 return NULL;
16908 }
16909
16910
16911 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16912 PyObject *resultobj = 0;
16913 wxLanguageInfo *arg1 = 0 ;
16914 void *argp1 = 0 ;
16915 int res1 = 0 ;
16916 PyObject * obj0 = 0 ;
16917 char * kwnames[] = {
16918 (char *) "info", NULL
16919 };
16920
16921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16922 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16923 if (!SWIG_IsOK(res1)) {
16924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16925 }
16926 if (!argp1) {
16927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16928 }
16929 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16930 {
16931 PyThreadState* __tstate = wxPyBeginAllowThreads();
16932 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16933 wxPyEndAllowThreads(__tstate);
16934 if (PyErr_Occurred()) SWIG_fail;
16935 }
16936 resultobj = SWIG_Py_Void();
16937 return resultobj;
16938 fail:
16939 return NULL;
16940 }
16941
16942
16943 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16944 PyObject *resultobj = 0;
16945 wxLocale *arg1 = (wxLocale *) 0 ;
16946 wxString *arg2 = 0 ;
16947 wxString const &arg3_defvalue = wxPyEmptyString ;
16948 wxString *arg3 = (wxString *) &arg3_defvalue ;
16949 wxString result;
16950 void *argp1 = 0 ;
16951 int res1 = 0 ;
16952 bool temp2 = false ;
16953 bool temp3 = false ;
16954 PyObject * obj0 = 0 ;
16955 PyObject * obj1 = 0 ;
16956 PyObject * obj2 = 0 ;
16957 char * kwnames[] = {
16958 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16959 };
16960
16961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16963 if (!SWIG_IsOK(res1)) {
16964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16965 }
16966 arg1 = reinterpret_cast< wxLocale * >(argp1);
16967 {
16968 arg2 = wxString_in_helper(obj1);
16969 if (arg2 == NULL) SWIG_fail;
16970 temp2 = true;
16971 }
16972 if (obj2) {
16973 {
16974 arg3 = wxString_in_helper(obj2);
16975 if (arg3 == NULL) SWIG_fail;
16976 temp3 = true;
16977 }
16978 }
16979 {
16980 PyThreadState* __tstate = wxPyBeginAllowThreads();
16981 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16982 wxPyEndAllowThreads(__tstate);
16983 if (PyErr_Occurred()) SWIG_fail;
16984 }
16985 {
16986 #if wxUSE_UNICODE
16987 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16988 #else
16989 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16990 #endif
16991 }
16992 {
16993 if (temp2)
16994 delete arg2;
16995 }
16996 {
16997 if (temp3)
16998 delete arg3;
16999 }
17000 return resultobj;
17001 fail:
17002 {
17003 if (temp2)
17004 delete arg2;
17005 }
17006 {
17007 if (temp3)
17008 delete arg3;
17009 }
17010 return NULL;
17011 }
17012
17013
17014 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17015 PyObject *resultobj = 0;
17016 wxLocale *arg1 = (wxLocale *) 0 ;
17017 wxString *result = 0 ;
17018 void *argp1 = 0 ;
17019 int res1 = 0 ;
17020 PyObject *swig_obj[1] ;
17021
17022 if (!args) SWIG_fail;
17023 swig_obj[0] = args;
17024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17025 if (!SWIG_IsOK(res1)) {
17026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17027 }
17028 arg1 = reinterpret_cast< wxLocale * >(argp1);
17029 {
17030 PyThreadState* __tstate = wxPyBeginAllowThreads();
17031 {
17032 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17033 result = (wxString *) &_result_ref;
17034 }
17035 wxPyEndAllowThreads(__tstate);
17036 if (PyErr_Occurred()) SWIG_fail;
17037 }
17038 {
17039 #if wxUSE_UNICODE
17040 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17041 #else
17042 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17043 #endif
17044 }
17045 return resultobj;
17046 fail:
17047 return NULL;
17048 }
17049
17050
17051 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17052 PyObject *obj;
17053 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17054 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17055 return SWIG_Py_Void();
17056 }
17057
17058 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17059 return SWIG_Python_InitShadowInstance(args);
17060 }
17061
17062 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17063 PyObject *resultobj = 0;
17064 int arg1 = (int) -1 ;
17065 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17066 wxPyLocale *result = 0 ;
17067 int val1 ;
17068 int ecode1 = 0 ;
17069 int val2 ;
17070 int ecode2 = 0 ;
17071 PyObject * obj0 = 0 ;
17072 PyObject * obj1 = 0 ;
17073 char * kwnames[] = {
17074 (char *) "language",(char *) "flags", NULL
17075 };
17076
17077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17078 if (obj0) {
17079 ecode1 = SWIG_AsVal_int(obj0, &val1);
17080 if (!SWIG_IsOK(ecode1)) {
17081 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17082 }
17083 arg1 = static_cast< int >(val1);
17084 }
17085 if (obj1) {
17086 ecode2 = SWIG_AsVal_int(obj1, &val2);
17087 if (!SWIG_IsOK(ecode2)) {
17088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17089 }
17090 arg2 = static_cast< int >(val2);
17091 }
17092 {
17093 PyThreadState* __tstate = wxPyBeginAllowThreads();
17094 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17095 wxPyEndAllowThreads(__tstate);
17096 if (PyErr_Occurred()) SWIG_fail;
17097 }
17098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17099 return resultobj;
17100 fail:
17101 return NULL;
17102 }
17103
17104
17105 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17106 PyObject *resultobj = 0;
17107 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17108 void *argp1 = 0 ;
17109 int res1 = 0 ;
17110 PyObject *swig_obj[1] ;
17111
17112 if (!args) SWIG_fail;
17113 swig_obj[0] = args;
17114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17115 if (!SWIG_IsOK(res1)) {
17116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17117 }
17118 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 delete arg1;
17122
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 resultobj = SWIG_Py_Void();
17127 return resultobj;
17128 fail:
17129 return NULL;
17130 }
17131
17132
17133 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17134 PyObject *resultobj = 0;
17135 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17136 PyObject *arg2 = (PyObject *) 0 ;
17137 PyObject *arg3 = (PyObject *) 0 ;
17138 void *argp1 = 0 ;
17139 int res1 = 0 ;
17140 PyObject * obj0 = 0 ;
17141 PyObject * obj1 = 0 ;
17142 PyObject * obj2 = 0 ;
17143 char * kwnames[] = {
17144 (char *) "self",(char *) "self",(char *) "_class", NULL
17145 };
17146
17147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17149 if (!SWIG_IsOK(res1)) {
17150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17151 }
17152 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17153 arg2 = obj1;
17154 arg3 = obj2;
17155 {
17156 PyThreadState* __tstate = wxPyBeginAllowThreads();
17157 (arg1)->_setCallbackInfo(arg2,arg3);
17158 wxPyEndAllowThreads(__tstate);
17159 if (PyErr_Occurred()) SWIG_fail;
17160 }
17161 resultobj = SWIG_Py_Void();
17162 return resultobj;
17163 fail:
17164 return NULL;
17165 }
17166
17167
17168 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17169 PyObject *resultobj = 0;
17170 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17171 wxChar *arg2 = (wxChar *) 0 ;
17172 wxChar *arg3 = (wxChar *) NULL ;
17173 wxChar *result = 0 ;
17174 void *argp1 = 0 ;
17175 int res1 = 0 ;
17176 void *argp2 = 0 ;
17177 int res2 = 0 ;
17178 void *argp3 = 0 ;
17179 int res3 = 0 ;
17180 PyObject * obj0 = 0 ;
17181 PyObject * obj1 = 0 ;
17182 PyObject * obj2 = 0 ;
17183 char * kwnames[] = {
17184 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17185 };
17186
17187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17189 if (!SWIG_IsOK(res1)) {
17190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17191 }
17192 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17193 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17194 if (!SWIG_IsOK(res2)) {
17195 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17196 }
17197 arg2 = reinterpret_cast< wxChar * >(argp2);
17198 if (obj2) {
17199 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17200 if (!SWIG_IsOK(res3)) {
17201 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17202 }
17203 arg3 = reinterpret_cast< wxChar * >(argp3);
17204 }
17205 {
17206 PyThreadState* __tstate = wxPyBeginAllowThreads();
17207 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17208 wxPyEndAllowThreads(__tstate);
17209 if (PyErr_Occurred()) SWIG_fail;
17210 }
17211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17212 return resultobj;
17213 fail:
17214 return NULL;
17215 }
17216
17217
17218 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17219 PyObject *resultobj = 0;
17220 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17221 wxChar *arg2 = (wxChar *) 0 ;
17222 wxChar *arg3 = (wxChar *) 0 ;
17223 size_t arg4 ;
17224 wxChar *arg5 = (wxChar *) NULL ;
17225 wxChar *result = 0 ;
17226 void *argp1 = 0 ;
17227 int res1 = 0 ;
17228 void *argp2 = 0 ;
17229 int res2 = 0 ;
17230 void *argp3 = 0 ;
17231 int res3 = 0 ;
17232 size_t val4 ;
17233 int ecode4 = 0 ;
17234 void *argp5 = 0 ;
17235 int res5 = 0 ;
17236 PyObject * obj0 = 0 ;
17237 PyObject * obj1 = 0 ;
17238 PyObject * obj2 = 0 ;
17239 PyObject * obj3 = 0 ;
17240 PyObject * obj4 = 0 ;
17241 char * kwnames[] = {
17242 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17243 };
17244
17245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17247 if (!SWIG_IsOK(res1)) {
17248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17249 }
17250 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17251 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17252 if (!SWIG_IsOK(res2)) {
17253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17254 }
17255 arg2 = reinterpret_cast< wxChar * >(argp2);
17256 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17257 if (!SWIG_IsOK(res3)) {
17258 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17259 }
17260 arg3 = reinterpret_cast< wxChar * >(argp3);
17261 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17262 if (!SWIG_IsOK(ecode4)) {
17263 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17264 }
17265 arg4 = static_cast< size_t >(val4);
17266 if (obj4) {
17267 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17268 if (!SWIG_IsOK(res5)) {
17269 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17270 }
17271 arg5 = reinterpret_cast< wxChar * >(argp5);
17272 }
17273 {
17274 PyThreadState* __tstate = wxPyBeginAllowThreads();
17275 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17276 wxPyEndAllowThreads(__tstate);
17277 if (PyErr_Occurred()) SWIG_fail;
17278 }
17279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17280 return resultobj;
17281 fail:
17282 return NULL;
17283 }
17284
17285
17286 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17287 PyObject *obj;
17288 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17289 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17290 return SWIG_Py_Void();
17291 }
17292
17293 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17294 return SWIG_Python_InitShadowInstance(args);
17295 }
17296
17297 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17298 PyObject *resultobj = 0;
17299 wxLocale *result = 0 ;
17300
17301 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17302 {
17303 PyThreadState* __tstate = wxPyBeginAllowThreads();
17304 result = (wxLocale *)wxGetLocale();
17305 wxPyEndAllowThreads(__tstate);
17306 if (PyErr_Occurred()) SWIG_fail;
17307 }
17308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17309 return resultobj;
17310 fail:
17311 return NULL;
17312 }
17313
17314
17315 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17316 PyObject *resultobj = 0;
17317 wxString *arg1 = 0 ;
17318 wxString result;
17319 bool temp1 = false ;
17320
17321 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17322 {
17323 arg1 = wxString_in_helper(swig_obj[0]);
17324 if (arg1 == NULL) SWIG_fail;
17325 temp1 = true;
17326 }
17327 {
17328 PyThreadState* __tstate = wxPyBeginAllowThreads();
17329 result = wxGetTranslation((wxString const &)*arg1);
17330 wxPyEndAllowThreads(__tstate);
17331 if (PyErr_Occurred()) SWIG_fail;
17332 }
17333 {
17334 #if wxUSE_UNICODE
17335 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17336 #else
17337 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17338 #endif
17339 }
17340 {
17341 if (temp1)
17342 delete arg1;
17343 }
17344 return resultobj;
17345 fail:
17346 {
17347 if (temp1)
17348 delete arg1;
17349 }
17350 return NULL;
17351 }
17352
17353
17354 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17355 PyObject *resultobj = 0;
17356 wxString *arg1 = 0 ;
17357 wxString *arg2 = 0 ;
17358 wxString result;
17359 bool temp1 = false ;
17360 bool temp2 = false ;
17361
17362 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17363 {
17364 arg1 = wxString_in_helper(swig_obj[0]);
17365 if (arg1 == NULL) SWIG_fail;
17366 temp1 = true;
17367 }
17368 {
17369 arg2 = wxString_in_helper(swig_obj[1]);
17370 if (arg2 == NULL) SWIG_fail;
17371 temp2 = true;
17372 }
17373 {
17374 PyThreadState* __tstate = wxPyBeginAllowThreads();
17375 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17376 wxPyEndAllowThreads(__tstate);
17377 if (PyErr_Occurred()) SWIG_fail;
17378 }
17379 {
17380 #if wxUSE_UNICODE
17381 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17382 #else
17383 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17384 #endif
17385 }
17386 {
17387 if (temp1)
17388 delete arg1;
17389 }
17390 {
17391 if (temp2)
17392 delete arg2;
17393 }
17394 return resultobj;
17395 fail:
17396 {
17397 if (temp1)
17398 delete arg1;
17399 }
17400 {
17401 if (temp2)
17402 delete arg2;
17403 }
17404 return NULL;
17405 }
17406
17407
17408 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17409 PyObject *resultobj = 0;
17410 wxString *arg1 = 0 ;
17411 wxString *arg2 = 0 ;
17412 size_t arg3 ;
17413 wxString result;
17414 bool temp1 = false ;
17415 bool temp2 = false ;
17416 size_t val3 ;
17417 int ecode3 = 0 ;
17418
17419 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17420 {
17421 arg1 = wxString_in_helper(swig_obj[0]);
17422 if (arg1 == NULL) SWIG_fail;
17423 temp1 = true;
17424 }
17425 {
17426 arg2 = wxString_in_helper(swig_obj[1]);
17427 if (arg2 == NULL) SWIG_fail;
17428 temp2 = true;
17429 }
17430 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17431 if (!SWIG_IsOK(ecode3)) {
17432 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17433 }
17434 arg3 = static_cast< size_t >(val3);
17435 {
17436 PyThreadState* __tstate = wxPyBeginAllowThreads();
17437 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17438 wxPyEndAllowThreads(__tstate);
17439 if (PyErr_Occurred()) SWIG_fail;
17440 }
17441 {
17442 #if wxUSE_UNICODE
17443 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17444 #else
17445 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17446 #endif
17447 }
17448 {
17449 if (temp1)
17450 delete arg1;
17451 }
17452 {
17453 if (temp2)
17454 delete arg2;
17455 }
17456 return resultobj;
17457 fail:
17458 {
17459 if (temp1)
17460 delete arg1;
17461 }
17462 {
17463 if (temp2)
17464 delete arg2;
17465 }
17466 return NULL;
17467 }
17468
17469
17470 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17471 PyObject *resultobj = 0;
17472 wxString *arg1 = 0 ;
17473 wxString *arg2 = 0 ;
17474 size_t arg3 ;
17475 wxString *arg4 = 0 ;
17476 wxString result;
17477 bool temp1 = false ;
17478 bool temp2 = false ;
17479 size_t val3 ;
17480 int ecode3 = 0 ;
17481 bool temp4 = false ;
17482
17483 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17484 {
17485 arg1 = wxString_in_helper(swig_obj[0]);
17486 if (arg1 == NULL) SWIG_fail;
17487 temp1 = true;
17488 }
17489 {
17490 arg2 = wxString_in_helper(swig_obj[1]);
17491 if (arg2 == NULL) SWIG_fail;
17492 temp2 = true;
17493 }
17494 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17495 if (!SWIG_IsOK(ecode3)) {
17496 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17497 }
17498 arg3 = static_cast< size_t >(val3);
17499 {
17500 arg4 = wxString_in_helper(swig_obj[3]);
17501 if (arg4 == NULL) SWIG_fail;
17502 temp4 = true;
17503 }
17504 {
17505 PyThreadState* __tstate = wxPyBeginAllowThreads();
17506 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17507 wxPyEndAllowThreads(__tstate);
17508 if (PyErr_Occurred()) SWIG_fail;
17509 }
17510 {
17511 #if wxUSE_UNICODE
17512 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17513 #else
17514 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17515 #endif
17516 }
17517 {
17518 if (temp1)
17519 delete arg1;
17520 }
17521 {
17522 if (temp2)
17523 delete arg2;
17524 }
17525 {
17526 if (temp4)
17527 delete arg4;
17528 }
17529 return resultobj;
17530 fail:
17531 {
17532 if (temp1)
17533 delete arg1;
17534 }
17535 {
17536 if (temp2)
17537 delete arg2;
17538 }
17539 {
17540 if (temp4)
17541 delete arg4;
17542 }
17543 return NULL;
17544 }
17545
17546
17547 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17548 int argc;
17549 PyObject *argv[5];
17550
17551 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17552 --argc;
17553 if (argc == 1) {
17554 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17555 }
17556 if (argc == 2) {
17557 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17558 }
17559 if (argc == 3) {
17560 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17561 }
17562 if (argc == 4) {
17563 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17564 }
17565
17566 fail:
17567 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17568 return NULL;
17569 }
17570
17571
17572 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17573 PyObject *resultobj = 0;
17574 wxEncodingConverter *result = 0 ;
17575
17576 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17577 {
17578 PyThreadState* __tstate = wxPyBeginAllowThreads();
17579 result = (wxEncodingConverter *)new wxEncodingConverter();
17580 wxPyEndAllowThreads(__tstate);
17581 if (PyErr_Occurred()) SWIG_fail;
17582 }
17583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17584 return resultobj;
17585 fail:
17586 return NULL;
17587 }
17588
17589
17590 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17591 PyObject *resultobj = 0;
17592 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17593 void *argp1 = 0 ;
17594 int res1 = 0 ;
17595 PyObject *swig_obj[1] ;
17596
17597 if (!args) SWIG_fail;
17598 swig_obj[0] = args;
17599 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17600 if (!SWIG_IsOK(res1)) {
17601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17602 }
17603 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17604 {
17605 PyThreadState* __tstate = wxPyBeginAllowThreads();
17606 delete arg1;
17607
17608 wxPyEndAllowThreads(__tstate);
17609 if (PyErr_Occurred()) SWIG_fail;
17610 }
17611 resultobj = SWIG_Py_Void();
17612 return resultobj;
17613 fail:
17614 return NULL;
17615 }
17616
17617
17618 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17619 PyObject *resultobj = 0;
17620 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17621 wxFontEncoding arg2 ;
17622 wxFontEncoding arg3 ;
17623 int arg4 = (int) wxCONVERT_STRICT ;
17624 bool result;
17625 void *argp1 = 0 ;
17626 int res1 = 0 ;
17627 int val2 ;
17628 int ecode2 = 0 ;
17629 int val3 ;
17630 int ecode3 = 0 ;
17631 int val4 ;
17632 int ecode4 = 0 ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 PyObject * obj3 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17645 }
17646 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17647 ecode2 = SWIG_AsVal_int(obj1, &val2);
17648 if (!SWIG_IsOK(ecode2)) {
17649 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17650 }
17651 arg2 = static_cast< wxFontEncoding >(val2);
17652 ecode3 = SWIG_AsVal_int(obj2, &val3);
17653 if (!SWIG_IsOK(ecode3)) {
17654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17655 }
17656 arg3 = static_cast< wxFontEncoding >(val3);
17657 if (obj3) {
17658 ecode4 = SWIG_AsVal_int(obj3, &val4);
17659 if (!SWIG_IsOK(ecode4)) {
17660 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17661 }
17662 arg4 = static_cast< int >(val4);
17663 }
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 {
17671 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17672 }
17673 return resultobj;
17674 fail:
17675 return NULL;
17676 }
17677
17678
17679 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17680 PyObject *resultobj = 0;
17681 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17682 wxString *arg2 = 0 ;
17683 wxString result;
17684 void *argp1 = 0 ;
17685 int res1 = 0 ;
17686 bool temp2 = false ;
17687 PyObject * obj0 = 0 ;
17688 PyObject * obj1 = 0 ;
17689 char * kwnames[] = {
17690 (char *) "self",(char *) "input", NULL
17691 };
17692
17693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17695 if (!SWIG_IsOK(res1)) {
17696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17697 }
17698 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17699 {
17700 arg2 = wxString_in_helper(obj1);
17701 if (arg2 == NULL) SWIG_fail;
17702 temp2 = true;
17703 }
17704 {
17705 PyThreadState* __tstate = wxPyBeginAllowThreads();
17706 result = (arg1)->Convert((wxString const &)*arg2);
17707 wxPyEndAllowThreads(__tstate);
17708 if (PyErr_Occurred()) SWIG_fail;
17709 }
17710 {
17711 #if wxUSE_UNICODE
17712 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17713 #else
17714 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17715 #endif
17716 }
17717 {
17718 if (temp2)
17719 delete arg2;
17720 }
17721 return resultobj;
17722 fail:
17723 {
17724 if (temp2)
17725 delete arg2;
17726 }
17727 return NULL;
17728 }
17729
17730
17731 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17732 PyObject *resultobj = 0;
17733 wxFontEncoding arg1 ;
17734 int arg2 = (int) wxPLATFORM_CURRENT ;
17735 wxFontEncodingArray result;
17736 int val1 ;
17737 int ecode1 = 0 ;
17738 int val2 ;
17739 int ecode2 = 0 ;
17740 PyObject * obj0 = 0 ;
17741 PyObject * obj1 = 0 ;
17742 char * kwnames[] = {
17743 (char *) "enc",(char *) "platform", NULL
17744 };
17745
17746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17747 ecode1 = SWIG_AsVal_int(obj0, &val1);
17748 if (!SWIG_IsOK(ecode1)) {
17749 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17750 }
17751 arg1 = static_cast< wxFontEncoding >(val1);
17752 if (obj1) {
17753 ecode2 = SWIG_AsVal_int(obj1, &val2);
17754 if (!SWIG_IsOK(ecode2)) {
17755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17756 }
17757 arg2 = static_cast< int >(val2);
17758 }
17759 {
17760 PyThreadState* __tstate = wxPyBeginAllowThreads();
17761 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17762 wxPyEndAllowThreads(__tstate);
17763 if (PyErr_Occurred()) SWIG_fail;
17764 }
17765 {
17766 resultobj = PyList_New(0);
17767 for (size_t i=0; i < (&result)->GetCount(); i++) {
17768 PyObject* number = PyInt_FromLong((&result)->Item(i));
17769 PyList_Append(resultobj, number);
17770 Py_DECREF(number);
17771 }
17772 }
17773 return resultobj;
17774 fail:
17775 return NULL;
17776 }
17777
17778
17779 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17780 PyObject *resultobj = 0;
17781 wxFontEncoding arg1 ;
17782 wxFontEncodingArray result;
17783 int val1 ;
17784 int ecode1 = 0 ;
17785 PyObject * obj0 = 0 ;
17786 char * kwnames[] = {
17787 (char *) "enc", NULL
17788 };
17789
17790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17791 ecode1 = SWIG_AsVal_int(obj0, &val1);
17792 if (!SWIG_IsOK(ecode1)) {
17793 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17794 }
17795 arg1 = static_cast< wxFontEncoding >(val1);
17796 {
17797 PyThreadState* __tstate = wxPyBeginAllowThreads();
17798 result = wxEncodingConverter::GetAllEquivalents(arg1);
17799 wxPyEndAllowThreads(__tstate);
17800 if (PyErr_Occurred()) SWIG_fail;
17801 }
17802 {
17803 resultobj = PyList_New(0);
17804 for (size_t i=0; i < (&result)->GetCount(); i++) {
17805 PyObject* number = PyInt_FromLong((&result)->Item(i));
17806 PyList_Append(resultobj, number);
17807 Py_DECREF(number);
17808 }
17809 }
17810 return resultobj;
17811 fail:
17812 return NULL;
17813 }
17814
17815
17816 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17817 PyObject *resultobj = 0;
17818 wxFontEncoding arg1 ;
17819 wxFontEncoding arg2 ;
17820 bool result;
17821 int val1 ;
17822 int ecode1 = 0 ;
17823 int val2 ;
17824 int ecode2 = 0 ;
17825 PyObject * obj0 = 0 ;
17826 PyObject * obj1 = 0 ;
17827 char * kwnames[] = {
17828 (char *) "encIn",(char *) "encOut", NULL
17829 };
17830
17831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17832 ecode1 = SWIG_AsVal_int(obj0, &val1);
17833 if (!SWIG_IsOK(ecode1)) {
17834 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17835 }
17836 arg1 = static_cast< wxFontEncoding >(val1);
17837 ecode2 = SWIG_AsVal_int(obj1, &val2);
17838 if (!SWIG_IsOK(ecode2)) {
17839 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17840 }
17841 arg2 = static_cast< wxFontEncoding >(val2);
17842 {
17843 PyThreadState* __tstate = wxPyBeginAllowThreads();
17844 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17845 wxPyEndAllowThreads(__tstate);
17846 if (PyErr_Occurred()) SWIG_fail;
17847 }
17848 {
17849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17850 }
17851 return resultobj;
17852 fail:
17853 return NULL;
17854 }
17855
17856
17857 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17858 PyObject *obj;
17859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17860 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17861 return SWIG_Py_Void();
17862 }
17863
17864 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17865 return SWIG_Python_InitShadowInstance(args);
17866 }
17867
17868 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17869 PyObject *resultobj = 0;
17870 wxDC *arg1 = (wxDC *) 0 ;
17871 void *argp1 = 0 ;
17872 int res1 = 0 ;
17873 PyObject *swig_obj[1] ;
17874
17875 if (!args) SWIG_fail;
17876 swig_obj[0] = args;
17877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17878 if (!SWIG_IsOK(res1)) {
17879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17880 }
17881 arg1 = reinterpret_cast< wxDC * >(argp1);
17882 {
17883 PyThreadState* __tstate = wxPyBeginAllowThreads();
17884 delete arg1;
17885
17886 wxPyEndAllowThreads(__tstate);
17887 if (PyErr_Occurred()) SWIG_fail;
17888 }
17889 resultobj = SWIG_Py_Void();
17890 return resultobj;
17891 fail:
17892 return NULL;
17893 }
17894
17895
17896 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17897 PyObject *resultobj = 0;
17898 wxDC *arg1 = (wxDC *) 0 ;
17899 int arg2 ;
17900 int arg3 ;
17901 wxColour *arg4 = 0 ;
17902 int arg5 = (int) wxFLOOD_SURFACE ;
17903 bool result;
17904 void *argp1 = 0 ;
17905 int res1 = 0 ;
17906 int val2 ;
17907 int ecode2 = 0 ;
17908 int val3 ;
17909 int ecode3 = 0 ;
17910 wxColour temp4 ;
17911 int val5 ;
17912 int ecode5 = 0 ;
17913 PyObject * obj0 = 0 ;
17914 PyObject * obj1 = 0 ;
17915 PyObject * obj2 = 0 ;
17916 PyObject * obj3 = 0 ;
17917 PyObject * obj4 = 0 ;
17918 char * kwnames[] = {
17919 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17920 };
17921
17922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17924 if (!SWIG_IsOK(res1)) {
17925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17926 }
17927 arg1 = reinterpret_cast< wxDC * >(argp1);
17928 ecode2 = SWIG_AsVal_int(obj1, &val2);
17929 if (!SWIG_IsOK(ecode2)) {
17930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17931 }
17932 arg2 = static_cast< int >(val2);
17933 ecode3 = SWIG_AsVal_int(obj2, &val3);
17934 if (!SWIG_IsOK(ecode3)) {
17935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17936 }
17937 arg3 = static_cast< int >(val3);
17938 {
17939 arg4 = &temp4;
17940 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17941 }
17942 if (obj4) {
17943 ecode5 = SWIG_AsVal_int(obj4, &val5);
17944 if (!SWIG_IsOK(ecode5)) {
17945 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17946 }
17947 arg5 = static_cast< int >(val5);
17948 }
17949 {
17950 PyThreadState* __tstate = wxPyBeginAllowThreads();
17951 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17952 wxPyEndAllowThreads(__tstate);
17953 if (PyErr_Occurred()) SWIG_fail;
17954 }
17955 {
17956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17957 }
17958 return resultobj;
17959 fail:
17960 return NULL;
17961 }
17962
17963
17964 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17965 PyObject *resultobj = 0;
17966 wxDC *arg1 = (wxDC *) 0 ;
17967 wxPoint *arg2 = 0 ;
17968 wxColour *arg3 = 0 ;
17969 int arg4 = (int) wxFLOOD_SURFACE ;
17970 bool result;
17971 void *argp1 = 0 ;
17972 int res1 = 0 ;
17973 wxPoint temp2 ;
17974 wxColour temp3 ;
17975 int val4 ;
17976 int ecode4 = 0 ;
17977 PyObject * obj0 = 0 ;
17978 PyObject * obj1 = 0 ;
17979 PyObject * obj2 = 0 ;
17980 PyObject * obj3 = 0 ;
17981 char * kwnames[] = {
17982 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17983 };
17984
17985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17987 if (!SWIG_IsOK(res1)) {
17988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17989 }
17990 arg1 = reinterpret_cast< wxDC * >(argp1);
17991 {
17992 arg2 = &temp2;
17993 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17994 }
17995 {
17996 arg3 = &temp3;
17997 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
17998 }
17999 if (obj3) {
18000 ecode4 = SWIG_AsVal_int(obj3, &val4);
18001 if (!SWIG_IsOK(ecode4)) {
18002 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18003 }
18004 arg4 = static_cast< int >(val4);
18005 }
18006 {
18007 PyThreadState* __tstate = wxPyBeginAllowThreads();
18008 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18009 wxPyEndAllowThreads(__tstate);
18010 if (PyErr_Occurred()) SWIG_fail;
18011 }
18012 {
18013 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18014 }
18015 return resultobj;
18016 fail:
18017 return NULL;
18018 }
18019
18020
18021 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18022 PyObject *resultobj = 0;
18023 wxDC *arg1 = (wxDC *) 0 ;
18024 wxRect *arg2 = 0 ;
18025 wxColour *arg3 = 0 ;
18026 wxColour *arg4 = 0 ;
18027 wxPoint *arg5 = 0 ;
18028 void *argp1 = 0 ;
18029 int res1 = 0 ;
18030 wxRect temp2 ;
18031 wxColour temp3 ;
18032 wxColour temp4 ;
18033 wxPoint temp5 ;
18034 PyObject * obj0 = 0 ;
18035 PyObject * obj1 = 0 ;
18036 PyObject * obj2 = 0 ;
18037 PyObject * obj3 = 0 ;
18038 PyObject * obj4 = 0 ;
18039 char * kwnames[] = {
18040 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18041 };
18042
18043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18045 if (!SWIG_IsOK(res1)) {
18046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18047 }
18048 arg1 = reinterpret_cast< wxDC * >(argp1);
18049 {
18050 arg2 = &temp2;
18051 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18052 }
18053 {
18054 arg3 = &temp3;
18055 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18056 }
18057 {
18058 arg4 = &temp4;
18059 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18060 }
18061 {
18062 arg5 = &temp5;
18063 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18064 }
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_Py_Void();
18072 return resultobj;
18073 fail:
18074 return NULL;
18075 }
18076
18077
18078 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxDC *arg1 = (wxDC *) 0 ;
18081 wxRect *arg2 = 0 ;
18082 wxColour *arg3 = 0 ;
18083 wxColour *arg4 = 0 ;
18084 wxDirection arg5 = (wxDirection) wxEAST ;
18085 void *argp1 = 0 ;
18086 int res1 = 0 ;
18087 wxRect temp2 ;
18088 wxColour temp3 ;
18089 wxColour temp4 ;
18090 int val5 ;
18091 int ecode5 = 0 ;
18092 PyObject * obj0 = 0 ;
18093 PyObject * obj1 = 0 ;
18094 PyObject * obj2 = 0 ;
18095 PyObject * obj3 = 0 ;
18096 PyObject * obj4 = 0 ;
18097 char * kwnames[] = {
18098 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18099 };
18100
18101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18103 if (!SWIG_IsOK(res1)) {
18104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18105 }
18106 arg1 = reinterpret_cast< wxDC * >(argp1);
18107 {
18108 arg2 = &temp2;
18109 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18110 }
18111 {
18112 arg3 = &temp3;
18113 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18114 }
18115 {
18116 arg4 = &temp4;
18117 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18118 }
18119 if (obj4) {
18120 ecode5 = SWIG_AsVal_int(obj4, &val5);
18121 if (!SWIG_IsOK(ecode5)) {
18122 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18123 }
18124 arg5 = static_cast< wxDirection >(val5);
18125 }
18126 {
18127 PyThreadState* __tstate = wxPyBeginAllowThreads();
18128 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18129 wxPyEndAllowThreads(__tstate);
18130 if (PyErr_Occurred()) SWIG_fail;
18131 }
18132 resultobj = SWIG_Py_Void();
18133 return resultobj;
18134 fail:
18135 return NULL;
18136 }
18137
18138
18139 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18140 PyObject *resultobj = 0;
18141 wxDC *arg1 = (wxDC *) 0 ;
18142 int arg2 ;
18143 int arg3 ;
18144 wxColour result;
18145 void *argp1 = 0 ;
18146 int res1 = 0 ;
18147 int val2 ;
18148 int ecode2 = 0 ;
18149 int val3 ;
18150 int ecode3 = 0 ;
18151 PyObject * obj0 = 0 ;
18152 PyObject * obj1 = 0 ;
18153 PyObject * obj2 = 0 ;
18154 char * kwnames[] = {
18155 (char *) "self",(char *) "x",(char *) "y", NULL
18156 };
18157
18158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18160 if (!SWIG_IsOK(res1)) {
18161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18162 }
18163 arg1 = reinterpret_cast< wxDC * >(argp1);
18164 ecode2 = SWIG_AsVal_int(obj1, &val2);
18165 if (!SWIG_IsOK(ecode2)) {
18166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18167 }
18168 arg2 = static_cast< int >(val2);
18169 ecode3 = SWIG_AsVal_int(obj2, &val3);
18170 if (!SWIG_IsOK(ecode3)) {
18171 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18172 }
18173 arg3 = static_cast< int >(val3);
18174 {
18175 PyThreadState* __tstate = wxPyBeginAllowThreads();
18176 result = wxDC_GetPixel(arg1,arg2,arg3);
18177 wxPyEndAllowThreads(__tstate);
18178 if (PyErr_Occurred()) SWIG_fail;
18179 }
18180 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18181 return resultobj;
18182 fail:
18183 return NULL;
18184 }
18185
18186
18187 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18188 PyObject *resultobj = 0;
18189 wxDC *arg1 = (wxDC *) 0 ;
18190 wxPoint *arg2 = 0 ;
18191 wxColour result;
18192 void *argp1 = 0 ;
18193 int res1 = 0 ;
18194 wxPoint temp2 ;
18195 PyObject * obj0 = 0 ;
18196 PyObject * obj1 = 0 ;
18197 char * kwnames[] = {
18198 (char *) "self",(char *) "pt", NULL
18199 };
18200
18201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18203 if (!SWIG_IsOK(res1)) {
18204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18205 }
18206 arg1 = reinterpret_cast< wxDC * >(argp1);
18207 {
18208 arg2 = &temp2;
18209 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18210 }
18211 {
18212 PyThreadState* __tstate = wxPyBeginAllowThreads();
18213 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18214 wxPyEndAllowThreads(__tstate);
18215 if (PyErr_Occurred()) SWIG_fail;
18216 }
18217 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18218 return resultobj;
18219 fail:
18220 return NULL;
18221 }
18222
18223
18224 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18225 PyObject *resultobj = 0;
18226 wxDC *arg1 = (wxDC *) 0 ;
18227 int arg2 ;
18228 int arg3 ;
18229 int arg4 ;
18230 int arg5 ;
18231 void *argp1 = 0 ;
18232 int res1 = 0 ;
18233 int val2 ;
18234 int ecode2 = 0 ;
18235 int val3 ;
18236 int ecode3 = 0 ;
18237 int val4 ;
18238 int ecode4 = 0 ;
18239 int val5 ;
18240 int ecode5 = 0 ;
18241 PyObject * obj0 = 0 ;
18242 PyObject * obj1 = 0 ;
18243 PyObject * obj2 = 0 ;
18244 PyObject * obj3 = 0 ;
18245 PyObject * obj4 = 0 ;
18246 char * kwnames[] = {
18247 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18248 };
18249
18250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18252 if (!SWIG_IsOK(res1)) {
18253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18254 }
18255 arg1 = reinterpret_cast< wxDC * >(argp1);
18256 ecode2 = SWIG_AsVal_int(obj1, &val2);
18257 if (!SWIG_IsOK(ecode2)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18259 }
18260 arg2 = static_cast< int >(val2);
18261 ecode3 = SWIG_AsVal_int(obj2, &val3);
18262 if (!SWIG_IsOK(ecode3)) {
18263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18264 }
18265 arg3 = static_cast< int >(val3);
18266 ecode4 = SWIG_AsVal_int(obj3, &val4);
18267 if (!SWIG_IsOK(ecode4)) {
18268 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18269 }
18270 arg4 = static_cast< int >(val4);
18271 ecode5 = SWIG_AsVal_int(obj4, &val5);
18272 if (!SWIG_IsOK(ecode5)) {
18273 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18274 }
18275 arg5 = static_cast< int >(val5);
18276 {
18277 PyThreadState* __tstate = wxPyBeginAllowThreads();
18278 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18279 wxPyEndAllowThreads(__tstate);
18280 if (PyErr_Occurred()) SWIG_fail;
18281 }
18282 resultobj = SWIG_Py_Void();
18283 return resultobj;
18284 fail:
18285 return NULL;
18286 }
18287
18288
18289 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18290 PyObject *resultobj = 0;
18291 wxDC *arg1 = (wxDC *) 0 ;
18292 wxPoint *arg2 = 0 ;
18293 wxPoint *arg3 = 0 ;
18294 void *argp1 = 0 ;
18295 int res1 = 0 ;
18296 wxPoint temp2 ;
18297 wxPoint temp3 ;
18298 PyObject * obj0 = 0 ;
18299 PyObject * obj1 = 0 ;
18300 PyObject * obj2 = 0 ;
18301 char * kwnames[] = {
18302 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18303 };
18304
18305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18307 if (!SWIG_IsOK(res1)) {
18308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18309 }
18310 arg1 = reinterpret_cast< wxDC * >(argp1);
18311 {
18312 arg2 = &temp2;
18313 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18314 }
18315 {
18316 arg3 = &temp3;
18317 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18318 }
18319 {
18320 PyThreadState* __tstate = wxPyBeginAllowThreads();
18321 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18322 wxPyEndAllowThreads(__tstate);
18323 if (PyErr_Occurred()) SWIG_fail;
18324 }
18325 resultobj = SWIG_Py_Void();
18326 return resultobj;
18327 fail:
18328 return NULL;
18329 }
18330
18331
18332 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18333 PyObject *resultobj = 0;
18334 wxDC *arg1 = (wxDC *) 0 ;
18335 int arg2 ;
18336 int arg3 ;
18337 void *argp1 = 0 ;
18338 int res1 = 0 ;
18339 int val2 ;
18340 int ecode2 = 0 ;
18341 int val3 ;
18342 int ecode3 = 0 ;
18343 PyObject * obj0 = 0 ;
18344 PyObject * obj1 = 0 ;
18345 PyObject * obj2 = 0 ;
18346 char * kwnames[] = {
18347 (char *) "self",(char *) "x",(char *) "y", NULL
18348 };
18349
18350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18351 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18352 if (!SWIG_IsOK(res1)) {
18353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18354 }
18355 arg1 = reinterpret_cast< wxDC * >(argp1);
18356 ecode2 = SWIG_AsVal_int(obj1, &val2);
18357 if (!SWIG_IsOK(ecode2)) {
18358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18359 }
18360 arg2 = static_cast< int >(val2);
18361 ecode3 = SWIG_AsVal_int(obj2, &val3);
18362 if (!SWIG_IsOK(ecode3)) {
18363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18364 }
18365 arg3 = static_cast< int >(val3);
18366 {
18367 PyThreadState* __tstate = wxPyBeginAllowThreads();
18368 (arg1)->CrossHair(arg2,arg3);
18369 wxPyEndAllowThreads(__tstate);
18370 if (PyErr_Occurred()) SWIG_fail;
18371 }
18372 resultobj = SWIG_Py_Void();
18373 return resultobj;
18374 fail:
18375 return NULL;
18376 }
18377
18378
18379 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18380 PyObject *resultobj = 0;
18381 wxDC *arg1 = (wxDC *) 0 ;
18382 wxPoint *arg2 = 0 ;
18383 void *argp1 = 0 ;
18384 int res1 = 0 ;
18385 wxPoint temp2 ;
18386 PyObject * obj0 = 0 ;
18387 PyObject * obj1 = 0 ;
18388 char * kwnames[] = {
18389 (char *) "self",(char *) "pt", NULL
18390 };
18391
18392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18394 if (!SWIG_IsOK(res1)) {
18395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18396 }
18397 arg1 = reinterpret_cast< wxDC * >(argp1);
18398 {
18399 arg2 = &temp2;
18400 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18401 }
18402 {
18403 PyThreadState* __tstate = wxPyBeginAllowThreads();
18404 (arg1)->CrossHair((wxPoint const &)*arg2);
18405 wxPyEndAllowThreads(__tstate);
18406 if (PyErr_Occurred()) SWIG_fail;
18407 }
18408 resultobj = SWIG_Py_Void();
18409 return resultobj;
18410 fail:
18411 return NULL;
18412 }
18413
18414
18415 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18416 PyObject *resultobj = 0;
18417 wxDC *arg1 = (wxDC *) 0 ;
18418 int arg2 ;
18419 int arg3 ;
18420 int arg4 ;
18421 int arg5 ;
18422 int arg6 ;
18423 int arg7 ;
18424 void *argp1 = 0 ;
18425 int res1 = 0 ;
18426 int val2 ;
18427 int ecode2 = 0 ;
18428 int val3 ;
18429 int ecode3 = 0 ;
18430 int val4 ;
18431 int ecode4 = 0 ;
18432 int val5 ;
18433 int ecode5 = 0 ;
18434 int val6 ;
18435 int ecode6 = 0 ;
18436 int val7 ;
18437 int ecode7 = 0 ;
18438 PyObject * obj0 = 0 ;
18439 PyObject * obj1 = 0 ;
18440 PyObject * obj2 = 0 ;
18441 PyObject * obj3 = 0 ;
18442 PyObject * obj4 = 0 ;
18443 PyObject * obj5 = 0 ;
18444 PyObject * obj6 = 0 ;
18445 char * kwnames[] = {
18446 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18447 };
18448
18449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18451 if (!SWIG_IsOK(res1)) {
18452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18453 }
18454 arg1 = reinterpret_cast< wxDC * >(argp1);
18455 ecode2 = SWIG_AsVal_int(obj1, &val2);
18456 if (!SWIG_IsOK(ecode2)) {
18457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18458 }
18459 arg2 = static_cast< int >(val2);
18460 ecode3 = SWIG_AsVal_int(obj2, &val3);
18461 if (!SWIG_IsOK(ecode3)) {
18462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18463 }
18464 arg3 = static_cast< int >(val3);
18465 ecode4 = SWIG_AsVal_int(obj3, &val4);
18466 if (!SWIG_IsOK(ecode4)) {
18467 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18468 }
18469 arg4 = static_cast< int >(val4);
18470 ecode5 = SWIG_AsVal_int(obj4, &val5);
18471 if (!SWIG_IsOK(ecode5)) {
18472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18473 }
18474 arg5 = static_cast< int >(val5);
18475 ecode6 = SWIG_AsVal_int(obj5, &val6);
18476 if (!SWIG_IsOK(ecode6)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18478 }
18479 arg6 = static_cast< int >(val6);
18480 ecode7 = SWIG_AsVal_int(obj6, &val7);
18481 if (!SWIG_IsOK(ecode7)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18483 }
18484 arg7 = static_cast< int >(val7);
18485 {
18486 PyThreadState* __tstate = wxPyBeginAllowThreads();
18487 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18488 wxPyEndAllowThreads(__tstate);
18489 if (PyErr_Occurred()) SWIG_fail;
18490 }
18491 resultobj = SWIG_Py_Void();
18492 return resultobj;
18493 fail:
18494 return NULL;
18495 }
18496
18497
18498 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18499 PyObject *resultobj = 0;
18500 wxDC *arg1 = (wxDC *) 0 ;
18501 wxPoint *arg2 = 0 ;
18502 wxPoint *arg3 = 0 ;
18503 wxPoint *arg4 = 0 ;
18504 void *argp1 = 0 ;
18505 int res1 = 0 ;
18506 wxPoint temp2 ;
18507 wxPoint temp3 ;
18508 wxPoint temp4 ;
18509 PyObject * obj0 = 0 ;
18510 PyObject * obj1 = 0 ;
18511 PyObject * obj2 = 0 ;
18512 PyObject * obj3 = 0 ;
18513 char * kwnames[] = {
18514 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18515 };
18516
18517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18519 if (!SWIG_IsOK(res1)) {
18520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18521 }
18522 arg1 = reinterpret_cast< wxDC * >(argp1);
18523 {
18524 arg2 = &temp2;
18525 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18526 }
18527 {
18528 arg3 = &temp3;
18529 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18530 }
18531 {
18532 arg4 = &temp4;
18533 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18534 }
18535 {
18536 PyThreadState* __tstate = wxPyBeginAllowThreads();
18537 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18538 wxPyEndAllowThreads(__tstate);
18539 if (PyErr_Occurred()) SWIG_fail;
18540 }
18541 resultobj = SWIG_Py_Void();
18542 return resultobj;
18543 fail:
18544 return NULL;
18545 }
18546
18547
18548 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18549 PyObject *resultobj = 0;
18550 wxDC *arg1 = (wxDC *) 0 ;
18551 int arg2 ;
18552 int arg3 ;
18553 int arg4 ;
18554 int arg5 ;
18555 void *argp1 = 0 ;
18556 int res1 = 0 ;
18557 int val2 ;
18558 int ecode2 = 0 ;
18559 int val3 ;
18560 int ecode3 = 0 ;
18561 int val4 ;
18562 int ecode4 = 0 ;
18563 int val5 ;
18564 int ecode5 = 0 ;
18565 PyObject * obj0 = 0 ;
18566 PyObject * obj1 = 0 ;
18567 PyObject * obj2 = 0 ;
18568 PyObject * obj3 = 0 ;
18569 PyObject * obj4 = 0 ;
18570 char * kwnames[] = {
18571 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18572 };
18573
18574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18576 if (!SWIG_IsOK(res1)) {
18577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18578 }
18579 arg1 = reinterpret_cast< wxDC * >(argp1);
18580 ecode2 = SWIG_AsVal_int(obj1, &val2);
18581 if (!SWIG_IsOK(ecode2)) {
18582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18583 }
18584 arg2 = static_cast< int >(val2);
18585 ecode3 = SWIG_AsVal_int(obj2, &val3);
18586 if (!SWIG_IsOK(ecode3)) {
18587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18588 }
18589 arg3 = static_cast< int >(val3);
18590 ecode4 = SWIG_AsVal_int(obj3, &val4);
18591 if (!SWIG_IsOK(ecode4)) {
18592 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18593 }
18594 arg4 = static_cast< int >(val4);
18595 ecode5 = SWIG_AsVal_int(obj4, &val5);
18596 if (!SWIG_IsOK(ecode5)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18598 }
18599 arg5 = static_cast< int >(val5);
18600 {
18601 PyThreadState* __tstate = wxPyBeginAllowThreads();
18602 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18603 wxPyEndAllowThreads(__tstate);
18604 if (PyErr_Occurred()) SWIG_fail;
18605 }
18606 resultobj = SWIG_Py_Void();
18607 return resultobj;
18608 fail:
18609 return NULL;
18610 }
18611
18612
18613 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18614 PyObject *resultobj = 0;
18615 wxDC *arg1 = (wxDC *) 0 ;
18616 wxRect *arg2 = 0 ;
18617 void *argp1 = 0 ;
18618 int res1 = 0 ;
18619 wxRect temp2 ;
18620 PyObject * obj0 = 0 ;
18621 PyObject * obj1 = 0 ;
18622 char * kwnames[] = {
18623 (char *) "self",(char *) "rect", NULL
18624 };
18625
18626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18628 if (!SWIG_IsOK(res1)) {
18629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18630 }
18631 arg1 = reinterpret_cast< wxDC * >(argp1);
18632 {
18633 arg2 = &temp2;
18634 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18635 }
18636 {
18637 PyThreadState* __tstate = wxPyBeginAllowThreads();
18638 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18639 wxPyEndAllowThreads(__tstate);
18640 if (PyErr_Occurred()) SWIG_fail;
18641 }
18642 resultobj = SWIG_Py_Void();
18643 return resultobj;
18644 fail:
18645 return NULL;
18646 }
18647
18648
18649 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18650 PyObject *resultobj = 0;
18651 wxDC *arg1 = (wxDC *) 0 ;
18652 int arg2 ;
18653 int arg3 ;
18654 int arg4 ;
18655 int arg5 ;
18656 double arg6 ;
18657 double arg7 ;
18658 void *argp1 = 0 ;
18659 int res1 = 0 ;
18660 int val2 ;
18661 int ecode2 = 0 ;
18662 int val3 ;
18663 int ecode3 = 0 ;
18664 int val4 ;
18665 int ecode4 = 0 ;
18666 int val5 ;
18667 int ecode5 = 0 ;
18668 double val6 ;
18669 int ecode6 = 0 ;
18670 double val7 ;
18671 int ecode7 = 0 ;
18672 PyObject * obj0 = 0 ;
18673 PyObject * obj1 = 0 ;
18674 PyObject * obj2 = 0 ;
18675 PyObject * obj3 = 0 ;
18676 PyObject * obj4 = 0 ;
18677 PyObject * obj5 = 0 ;
18678 PyObject * obj6 = 0 ;
18679 char * kwnames[] = {
18680 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18681 };
18682
18683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18685 if (!SWIG_IsOK(res1)) {
18686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18687 }
18688 arg1 = reinterpret_cast< wxDC * >(argp1);
18689 ecode2 = SWIG_AsVal_int(obj1, &val2);
18690 if (!SWIG_IsOK(ecode2)) {
18691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18692 }
18693 arg2 = static_cast< int >(val2);
18694 ecode3 = SWIG_AsVal_int(obj2, &val3);
18695 if (!SWIG_IsOK(ecode3)) {
18696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18697 }
18698 arg3 = static_cast< int >(val3);
18699 ecode4 = SWIG_AsVal_int(obj3, &val4);
18700 if (!SWIG_IsOK(ecode4)) {
18701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18702 }
18703 arg4 = static_cast< int >(val4);
18704 ecode5 = SWIG_AsVal_int(obj4, &val5);
18705 if (!SWIG_IsOK(ecode5)) {
18706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18707 }
18708 arg5 = static_cast< int >(val5);
18709 ecode6 = SWIG_AsVal_double(obj5, &val6);
18710 if (!SWIG_IsOK(ecode6)) {
18711 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18712 }
18713 arg6 = static_cast< double >(val6);
18714 ecode7 = SWIG_AsVal_double(obj6, &val7);
18715 if (!SWIG_IsOK(ecode7)) {
18716 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18717 }
18718 arg7 = static_cast< double >(val7);
18719 {
18720 PyThreadState* __tstate = wxPyBeginAllowThreads();
18721 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18722 wxPyEndAllowThreads(__tstate);
18723 if (PyErr_Occurred()) SWIG_fail;
18724 }
18725 resultobj = SWIG_Py_Void();
18726 return resultobj;
18727 fail:
18728 return NULL;
18729 }
18730
18731
18732 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18733 PyObject *resultobj = 0;
18734 wxDC *arg1 = (wxDC *) 0 ;
18735 wxPoint *arg2 = 0 ;
18736 wxSize *arg3 = 0 ;
18737 double arg4 ;
18738 double arg5 ;
18739 void *argp1 = 0 ;
18740 int res1 = 0 ;
18741 wxPoint temp2 ;
18742 wxSize temp3 ;
18743 double val4 ;
18744 int ecode4 = 0 ;
18745 double val5 ;
18746 int ecode5 = 0 ;
18747 PyObject * obj0 = 0 ;
18748 PyObject * obj1 = 0 ;
18749 PyObject * obj2 = 0 ;
18750 PyObject * obj3 = 0 ;
18751 PyObject * obj4 = 0 ;
18752 char * kwnames[] = {
18753 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18754 };
18755
18756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18758 if (!SWIG_IsOK(res1)) {
18759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18760 }
18761 arg1 = reinterpret_cast< wxDC * >(argp1);
18762 {
18763 arg2 = &temp2;
18764 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18765 }
18766 {
18767 arg3 = &temp3;
18768 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18769 }
18770 ecode4 = SWIG_AsVal_double(obj3, &val4);
18771 if (!SWIG_IsOK(ecode4)) {
18772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18773 }
18774 arg4 = static_cast< double >(val4);
18775 ecode5 = SWIG_AsVal_double(obj4, &val5);
18776 if (!SWIG_IsOK(ecode5)) {
18777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18778 }
18779 arg5 = static_cast< double >(val5);
18780 {
18781 PyThreadState* __tstate = wxPyBeginAllowThreads();
18782 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18783 wxPyEndAllowThreads(__tstate);
18784 if (PyErr_Occurred()) SWIG_fail;
18785 }
18786 resultobj = SWIG_Py_Void();
18787 return resultobj;
18788 fail:
18789 return NULL;
18790 }
18791
18792
18793 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18794 PyObject *resultobj = 0;
18795 wxDC *arg1 = (wxDC *) 0 ;
18796 int arg2 ;
18797 int arg3 ;
18798 void *argp1 = 0 ;
18799 int res1 = 0 ;
18800 int val2 ;
18801 int ecode2 = 0 ;
18802 int val3 ;
18803 int ecode3 = 0 ;
18804 PyObject * obj0 = 0 ;
18805 PyObject * obj1 = 0 ;
18806 PyObject * obj2 = 0 ;
18807 char * kwnames[] = {
18808 (char *) "self",(char *) "x",(char *) "y", NULL
18809 };
18810
18811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18813 if (!SWIG_IsOK(res1)) {
18814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18815 }
18816 arg1 = reinterpret_cast< wxDC * >(argp1);
18817 ecode2 = SWIG_AsVal_int(obj1, &val2);
18818 if (!SWIG_IsOK(ecode2)) {
18819 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18820 }
18821 arg2 = static_cast< int >(val2);
18822 ecode3 = SWIG_AsVal_int(obj2, &val3);
18823 if (!SWIG_IsOK(ecode3)) {
18824 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18825 }
18826 arg3 = static_cast< int >(val3);
18827 {
18828 PyThreadState* __tstate = wxPyBeginAllowThreads();
18829 (arg1)->DrawPoint(arg2,arg3);
18830 wxPyEndAllowThreads(__tstate);
18831 if (PyErr_Occurred()) SWIG_fail;
18832 }
18833 resultobj = SWIG_Py_Void();
18834 return resultobj;
18835 fail:
18836 return NULL;
18837 }
18838
18839
18840 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18841 PyObject *resultobj = 0;
18842 wxDC *arg1 = (wxDC *) 0 ;
18843 wxPoint *arg2 = 0 ;
18844 void *argp1 = 0 ;
18845 int res1 = 0 ;
18846 wxPoint temp2 ;
18847 PyObject * obj0 = 0 ;
18848 PyObject * obj1 = 0 ;
18849 char * kwnames[] = {
18850 (char *) "self",(char *) "pt", NULL
18851 };
18852
18853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18854 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18855 if (!SWIG_IsOK(res1)) {
18856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18857 }
18858 arg1 = reinterpret_cast< wxDC * >(argp1);
18859 {
18860 arg2 = &temp2;
18861 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18862 }
18863 {
18864 PyThreadState* __tstate = wxPyBeginAllowThreads();
18865 (arg1)->DrawPoint((wxPoint const &)*arg2);
18866 wxPyEndAllowThreads(__tstate);
18867 if (PyErr_Occurred()) SWIG_fail;
18868 }
18869 resultobj = SWIG_Py_Void();
18870 return resultobj;
18871 fail:
18872 return NULL;
18873 }
18874
18875
18876 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18877 PyObject *resultobj = 0;
18878 wxDC *arg1 = (wxDC *) 0 ;
18879 int arg2 ;
18880 int arg3 ;
18881 int arg4 ;
18882 int arg5 ;
18883 void *argp1 = 0 ;
18884 int res1 = 0 ;
18885 int val2 ;
18886 int ecode2 = 0 ;
18887 int val3 ;
18888 int ecode3 = 0 ;
18889 int val4 ;
18890 int ecode4 = 0 ;
18891 int val5 ;
18892 int ecode5 = 0 ;
18893 PyObject * obj0 = 0 ;
18894 PyObject * obj1 = 0 ;
18895 PyObject * obj2 = 0 ;
18896 PyObject * obj3 = 0 ;
18897 PyObject * obj4 = 0 ;
18898 char * kwnames[] = {
18899 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18900 };
18901
18902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18904 if (!SWIG_IsOK(res1)) {
18905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18906 }
18907 arg1 = reinterpret_cast< wxDC * >(argp1);
18908 ecode2 = SWIG_AsVal_int(obj1, &val2);
18909 if (!SWIG_IsOK(ecode2)) {
18910 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18911 }
18912 arg2 = static_cast< int >(val2);
18913 ecode3 = SWIG_AsVal_int(obj2, &val3);
18914 if (!SWIG_IsOK(ecode3)) {
18915 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18916 }
18917 arg3 = static_cast< int >(val3);
18918 ecode4 = SWIG_AsVal_int(obj3, &val4);
18919 if (!SWIG_IsOK(ecode4)) {
18920 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18921 }
18922 arg4 = static_cast< int >(val4);
18923 ecode5 = SWIG_AsVal_int(obj4, &val5);
18924 if (!SWIG_IsOK(ecode5)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18926 }
18927 arg5 = static_cast< int >(val5);
18928 {
18929 PyThreadState* __tstate = wxPyBeginAllowThreads();
18930 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18931 wxPyEndAllowThreads(__tstate);
18932 if (PyErr_Occurred()) SWIG_fail;
18933 }
18934 resultobj = SWIG_Py_Void();
18935 return resultobj;
18936 fail:
18937 return NULL;
18938 }
18939
18940
18941 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18942 PyObject *resultobj = 0;
18943 wxDC *arg1 = (wxDC *) 0 ;
18944 wxRect *arg2 = 0 ;
18945 void *argp1 = 0 ;
18946 int res1 = 0 ;
18947 wxRect temp2 ;
18948 PyObject * obj0 = 0 ;
18949 PyObject * obj1 = 0 ;
18950 char * kwnames[] = {
18951 (char *) "self",(char *) "rect", NULL
18952 };
18953
18954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18956 if (!SWIG_IsOK(res1)) {
18957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18958 }
18959 arg1 = reinterpret_cast< wxDC * >(argp1);
18960 {
18961 arg2 = &temp2;
18962 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18963 }
18964 {
18965 PyThreadState* __tstate = wxPyBeginAllowThreads();
18966 (arg1)->DrawRectangle((wxRect const &)*arg2);
18967 wxPyEndAllowThreads(__tstate);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 resultobj = SWIG_Py_Void();
18971 return resultobj;
18972 fail:
18973 return NULL;
18974 }
18975
18976
18977 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18978 PyObject *resultobj = 0;
18979 wxDC *arg1 = (wxDC *) 0 ;
18980 wxPoint *arg2 = 0 ;
18981 wxSize *arg3 = 0 ;
18982 void *argp1 = 0 ;
18983 int res1 = 0 ;
18984 wxPoint temp2 ;
18985 wxSize temp3 ;
18986 PyObject * obj0 = 0 ;
18987 PyObject * obj1 = 0 ;
18988 PyObject * obj2 = 0 ;
18989 char * kwnames[] = {
18990 (char *) "self",(char *) "pt",(char *) "sz", NULL
18991 };
18992
18993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18995 if (!SWIG_IsOK(res1)) {
18996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18997 }
18998 arg1 = reinterpret_cast< wxDC * >(argp1);
18999 {
19000 arg2 = &temp2;
19001 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19002 }
19003 {
19004 arg3 = &temp3;
19005 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19006 }
19007 {
19008 PyThreadState* __tstate = wxPyBeginAllowThreads();
19009 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19010 wxPyEndAllowThreads(__tstate);
19011 if (PyErr_Occurred()) SWIG_fail;
19012 }
19013 resultobj = SWIG_Py_Void();
19014 return resultobj;
19015 fail:
19016 return NULL;
19017 }
19018
19019
19020 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19021 PyObject *resultobj = 0;
19022 wxDC *arg1 = (wxDC *) 0 ;
19023 int arg2 ;
19024 int arg3 ;
19025 int arg4 ;
19026 int arg5 ;
19027 double arg6 ;
19028 void *argp1 = 0 ;
19029 int res1 = 0 ;
19030 int val2 ;
19031 int ecode2 = 0 ;
19032 int val3 ;
19033 int ecode3 = 0 ;
19034 int val4 ;
19035 int ecode4 = 0 ;
19036 int val5 ;
19037 int ecode5 = 0 ;
19038 double val6 ;
19039 int ecode6 = 0 ;
19040 PyObject * obj0 = 0 ;
19041 PyObject * obj1 = 0 ;
19042 PyObject * obj2 = 0 ;
19043 PyObject * obj3 = 0 ;
19044 PyObject * obj4 = 0 ;
19045 PyObject * obj5 = 0 ;
19046 char * kwnames[] = {
19047 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19048 };
19049
19050 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19051 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19052 if (!SWIG_IsOK(res1)) {
19053 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19054 }
19055 arg1 = reinterpret_cast< wxDC * >(argp1);
19056 ecode2 = SWIG_AsVal_int(obj1, &val2);
19057 if (!SWIG_IsOK(ecode2)) {
19058 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19059 }
19060 arg2 = static_cast< int >(val2);
19061 ecode3 = SWIG_AsVal_int(obj2, &val3);
19062 if (!SWIG_IsOK(ecode3)) {
19063 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19064 }
19065 arg3 = static_cast< int >(val3);
19066 ecode4 = SWIG_AsVal_int(obj3, &val4);
19067 if (!SWIG_IsOK(ecode4)) {
19068 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19069 }
19070 arg4 = static_cast< int >(val4);
19071 ecode5 = SWIG_AsVal_int(obj4, &val5);
19072 if (!SWIG_IsOK(ecode5)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19074 }
19075 arg5 = static_cast< int >(val5);
19076 ecode6 = SWIG_AsVal_double(obj5, &val6);
19077 if (!SWIG_IsOK(ecode6)) {
19078 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19079 }
19080 arg6 = static_cast< double >(val6);
19081 {
19082 PyThreadState* __tstate = wxPyBeginAllowThreads();
19083 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19084 wxPyEndAllowThreads(__tstate);
19085 if (PyErr_Occurred()) SWIG_fail;
19086 }
19087 resultobj = SWIG_Py_Void();
19088 return resultobj;
19089 fail:
19090 return NULL;
19091 }
19092
19093
19094 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19095 PyObject *resultobj = 0;
19096 wxDC *arg1 = (wxDC *) 0 ;
19097 wxRect *arg2 = 0 ;
19098 double arg3 ;
19099 void *argp1 = 0 ;
19100 int res1 = 0 ;
19101 wxRect temp2 ;
19102 double val3 ;
19103 int ecode3 = 0 ;
19104 PyObject * obj0 = 0 ;
19105 PyObject * obj1 = 0 ;
19106 PyObject * obj2 = 0 ;
19107 char * kwnames[] = {
19108 (char *) "self",(char *) "r",(char *) "radius", NULL
19109 };
19110
19111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19113 if (!SWIG_IsOK(res1)) {
19114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19115 }
19116 arg1 = reinterpret_cast< wxDC * >(argp1);
19117 {
19118 arg2 = &temp2;
19119 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19120 }
19121 ecode3 = SWIG_AsVal_double(obj2, &val3);
19122 if (!SWIG_IsOK(ecode3)) {
19123 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19124 }
19125 arg3 = static_cast< double >(val3);
19126 {
19127 PyThreadState* __tstate = wxPyBeginAllowThreads();
19128 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19129 wxPyEndAllowThreads(__tstate);
19130 if (PyErr_Occurred()) SWIG_fail;
19131 }
19132 resultobj = SWIG_Py_Void();
19133 return resultobj;
19134 fail:
19135 return NULL;
19136 }
19137
19138
19139 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19140 PyObject *resultobj = 0;
19141 wxDC *arg1 = (wxDC *) 0 ;
19142 wxPoint *arg2 = 0 ;
19143 wxSize *arg3 = 0 ;
19144 double arg4 ;
19145 void *argp1 = 0 ;
19146 int res1 = 0 ;
19147 wxPoint temp2 ;
19148 wxSize temp3 ;
19149 double val4 ;
19150 int ecode4 = 0 ;
19151 PyObject * obj0 = 0 ;
19152 PyObject * obj1 = 0 ;
19153 PyObject * obj2 = 0 ;
19154 PyObject * obj3 = 0 ;
19155 char * kwnames[] = {
19156 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19157 };
19158
19159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19161 if (!SWIG_IsOK(res1)) {
19162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19163 }
19164 arg1 = reinterpret_cast< wxDC * >(argp1);
19165 {
19166 arg2 = &temp2;
19167 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19168 }
19169 {
19170 arg3 = &temp3;
19171 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19172 }
19173 ecode4 = SWIG_AsVal_double(obj3, &val4);
19174 if (!SWIG_IsOK(ecode4)) {
19175 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19176 }
19177 arg4 = static_cast< double >(val4);
19178 {
19179 PyThreadState* __tstate = wxPyBeginAllowThreads();
19180 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19181 wxPyEndAllowThreads(__tstate);
19182 if (PyErr_Occurred()) SWIG_fail;
19183 }
19184 resultobj = SWIG_Py_Void();
19185 return resultobj;
19186 fail:
19187 return NULL;
19188 }
19189
19190
19191 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19192 PyObject *resultobj = 0;
19193 wxDC *arg1 = (wxDC *) 0 ;
19194 int arg2 ;
19195 int arg3 ;
19196 int arg4 ;
19197 void *argp1 = 0 ;
19198 int res1 = 0 ;
19199 int val2 ;
19200 int ecode2 = 0 ;
19201 int val3 ;
19202 int ecode3 = 0 ;
19203 int val4 ;
19204 int ecode4 = 0 ;
19205 PyObject * obj0 = 0 ;
19206 PyObject * obj1 = 0 ;
19207 PyObject * obj2 = 0 ;
19208 PyObject * obj3 = 0 ;
19209 char * kwnames[] = {
19210 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19211 };
19212
19213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19215 if (!SWIG_IsOK(res1)) {
19216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19217 }
19218 arg1 = reinterpret_cast< wxDC * >(argp1);
19219 ecode2 = SWIG_AsVal_int(obj1, &val2);
19220 if (!SWIG_IsOK(ecode2)) {
19221 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19222 }
19223 arg2 = static_cast< int >(val2);
19224 ecode3 = SWIG_AsVal_int(obj2, &val3);
19225 if (!SWIG_IsOK(ecode3)) {
19226 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19227 }
19228 arg3 = static_cast< int >(val3);
19229 ecode4 = SWIG_AsVal_int(obj3, &val4);
19230 if (!SWIG_IsOK(ecode4)) {
19231 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19232 }
19233 arg4 = static_cast< int >(val4);
19234 {
19235 PyThreadState* __tstate = wxPyBeginAllowThreads();
19236 (arg1)->DrawCircle(arg2,arg3,arg4);
19237 wxPyEndAllowThreads(__tstate);
19238 if (PyErr_Occurred()) SWIG_fail;
19239 }
19240 resultobj = SWIG_Py_Void();
19241 return resultobj;
19242 fail:
19243 return NULL;
19244 }
19245
19246
19247 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19248 PyObject *resultobj = 0;
19249 wxDC *arg1 = (wxDC *) 0 ;
19250 wxPoint *arg2 = 0 ;
19251 int arg3 ;
19252 void *argp1 = 0 ;
19253 int res1 = 0 ;
19254 wxPoint temp2 ;
19255 int val3 ;
19256 int ecode3 = 0 ;
19257 PyObject * obj0 = 0 ;
19258 PyObject * obj1 = 0 ;
19259 PyObject * obj2 = 0 ;
19260 char * kwnames[] = {
19261 (char *) "self",(char *) "pt",(char *) "radius", NULL
19262 };
19263
19264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19266 if (!SWIG_IsOK(res1)) {
19267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19268 }
19269 arg1 = reinterpret_cast< wxDC * >(argp1);
19270 {
19271 arg2 = &temp2;
19272 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19273 }
19274 ecode3 = SWIG_AsVal_int(obj2, &val3);
19275 if (!SWIG_IsOK(ecode3)) {
19276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19277 }
19278 arg3 = static_cast< int >(val3);
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 resultobj = SWIG_Py_Void();
19286 return resultobj;
19287 fail:
19288 return NULL;
19289 }
19290
19291
19292 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19293 PyObject *resultobj = 0;
19294 wxDC *arg1 = (wxDC *) 0 ;
19295 int arg2 ;
19296 int arg3 ;
19297 int arg4 ;
19298 int arg5 ;
19299 void *argp1 = 0 ;
19300 int res1 = 0 ;
19301 int val2 ;
19302 int ecode2 = 0 ;
19303 int val3 ;
19304 int ecode3 = 0 ;
19305 int val4 ;
19306 int ecode4 = 0 ;
19307 int val5 ;
19308 int ecode5 = 0 ;
19309 PyObject * obj0 = 0 ;
19310 PyObject * obj1 = 0 ;
19311 PyObject * obj2 = 0 ;
19312 PyObject * obj3 = 0 ;
19313 PyObject * obj4 = 0 ;
19314 char * kwnames[] = {
19315 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19316 };
19317
19318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19320 if (!SWIG_IsOK(res1)) {
19321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19322 }
19323 arg1 = reinterpret_cast< wxDC * >(argp1);
19324 ecode2 = SWIG_AsVal_int(obj1, &val2);
19325 if (!SWIG_IsOK(ecode2)) {
19326 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19327 }
19328 arg2 = static_cast< int >(val2);
19329 ecode3 = SWIG_AsVal_int(obj2, &val3);
19330 if (!SWIG_IsOK(ecode3)) {
19331 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19332 }
19333 arg3 = static_cast< int >(val3);
19334 ecode4 = SWIG_AsVal_int(obj3, &val4);
19335 if (!SWIG_IsOK(ecode4)) {
19336 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19337 }
19338 arg4 = static_cast< int >(val4);
19339 ecode5 = SWIG_AsVal_int(obj4, &val5);
19340 if (!SWIG_IsOK(ecode5)) {
19341 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19342 }
19343 arg5 = static_cast< int >(val5);
19344 {
19345 PyThreadState* __tstate = wxPyBeginAllowThreads();
19346 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19347 wxPyEndAllowThreads(__tstate);
19348 if (PyErr_Occurred()) SWIG_fail;
19349 }
19350 resultobj = SWIG_Py_Void();
19351 return resultobj;
19352 fail:
19353 return NULL;
19354 }
19355
19356
19357 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19358 PyObject *resultobj = 0;
19359 wxDC *arg1 = (wxDC *) 0 ;
19360 wxRect *arg2 = 0 ;
19361 void *argp1 = 0 ;
19362 int res1 = 0 ;
19363 wxRect temp2 ;
19364 PyObject * obj0 = 0 ;
19365 PyObject * obj1 = 0 ;
19366 char * kwnames[] = {
19367 (char *) "self",(char *) "rect", NULL
19368 };
19369
19370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19372 if (!SWIG_IsOK(res1)) {
19373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19374 }
19375 arg1 = reinterpret_cast< wxDC * >(argp1);
19376 {
19377 arg2 = &temp2;
19378 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19379 }
19380 {
19381 PyThreadState* __tstate = wxPyBeginAllowThreads();
19382 (arg1)->DrawEllipse((wxRect const &)*arg2);
19383 wxPyEndAllowThreads(__tstate);
19384 if (PyErr_Occurred()) SWIG_fail;
19385 }
19386 resultobj = SWIG_Py_Void();
19387 return resultobj;
19388 fail:
19389 return NULL;
19390 }
19391
19392
19393 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19394 PyObject *resultobj = 0;
19395 wxDC *arg1 = (wxDC *) 0 ;
19396 wxPoint *arg2 = 0 ;
19397 wxSize *arg3 = 0 ;
19398 void *argp1 = 0 ;
19399 int res1 = 0 ;
19400 wxPoint temp2 ;
19401 wxSize temp3 ;
19402 PyObject * obj0 = 0 ;
19403 PyObject * obj1 = 0 ;
19404 PyObject * obj2 = 0 ;
19405 char * kwnames[] = {
19406 (char *) "self",(char *) "pt",(char *) "sz", NULL
19407 };
19408
19409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19411 if (!SWIG_IsOK(res1)) {
19412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19413 }
19414 arg1 = reinterpret_cast< wxDC * >(argp1);
19415 {
19416 arg2 = &temp2;
19417 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19418 }
19419 {
19420 arg3 = &temp3;
19421 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19422 }
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_Py_Void();
19430 return resultobj;
19431 fail:
19432 return NULL;
19433 }
19434
19435
19436 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19437 PyObject *resultobj = 0;
19438 wxDC *arg1 = (wxDC *) 0 ;
19439 wxIcon *arg2 = 0 ;
19440 int arg3 ;
19441 int arg4 ;
19442 void *argp1 = 0 ;
19443 int res1 = 0 ;
19444 void *argp2 = 0 ;
19445 int res2 = 0 ;
19446 int val3 ;
19447 int ecode3 = 0 ;
19448 int val4 ;
19449 int ecode4 = 0 ;
19450 PyObject * obj0 = 0 ;
19451 PyObject * obj1 = 0 ;
19452 PyObject * obj2 = 0 ;
19453 PyObject * obj3 = 0 ;
19454 char * kwnames[] = {
19455 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19456 };
19457
19458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19460 if (!SWIG_IsOK(res1)) {
19461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19462 }
19463 arg1 = reinterpret_cast< wxDC * >(argp1);
19464 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19465 if (!SWIG_IsOK(res2)) {
19466 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19467 }
19468 if (!argp2) {
19469 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19470 }
19471 arg2 = reinterpret_cast< wxIcon * >(argp2);
19472 ecode3 = SWIG_AsVal_int(obj2, &val3);
19473 if (!SWIG_IsOK(ecode3)) {
19474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19475 }
19476 arg3 = static_cast< int >(val3);
19477 ecode4 = SWIG_AsVal_int(obj3, &val4);
19478 if (!SWIG_IsOK(ecode4)) {
19479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19480 }
19481 arg4 = static_cast< int >(val4);
19482 {
19483 PyThreadState* __tstate = wxPyBeginAllowThreads();
19484 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19485 wxPyEndAllowThreads(__tstate);
19486 if (PyErr_Occurred()) SWIG_fail;
19487 }
19488 resultobj = SWIG_Py_Void();
19489 return resultobj;
19490 fail:
19491 return NULL;
19492 }
19493
19494
19495 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19496 PyObject *resultobj = 0;
19497 wxDC *arg1 = (wxDC *) 0 ;
19498 wxIcon *arg2 = 0 ;
19499 wxPoint *arg3 = 0 ;
19500 void *argp1 = 0 ;
19501 int res1 = 0 ;
19502 void *argp2 = 0 ;
19503 int res2 = 0 ;
19504 wxPoint temp3 ;
19505 PyObject * obj0 = 0 ;
19506 PyObject * obj1 = 0 ;
19507 PyObject * obj2 = 0 ;
19508 char * kwnames[] = {
19509 (char *) "self",(char *) "icon",(char *) "pt", NULL
19510 };
19511
19512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19514 if (!SWIG_IsOK(res1)) {
19515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19516 }
19517 arg1 = reinterpret_cast< wxDC * >(argp1);
19518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19519 if (!SWIG_IsOK(res2)) {
19520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19521 }
19522 if (!argp2) {
19523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19524 }
19525 arg2 = reinterpret_cast< wxIcon * >(argp2);
19526 {
19527 arg3 = &temp3;
19528 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19529 }
19530 {
19531 PyThreadState* __tstate = wxPyBeginAllowThreads();
19532 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19533 wxPyEndAllowThreads(__tstate);
19534 if (PyErr_Occurred()) SWIG_fail;
19535 }
19536 resultobj = SWIG_Py_Void();
19537 return resultobj;
19538 fail:
19539 return NULL;
19540 }
19541
19542
19543 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19544 PyObject *resultobj = 0;
19545 wxDC *arg1 = (wxDC *) 0 ;
19546 wxBitmap *arg2 = 0 ;
19547 int arg3 ;
19548 int arg4 ;
19549 bool arg5 = (bool) false ;
19550 void *argp1 = 0 ;
19551 int res1 = 0 ;
19552 void *argp2 = 0 ;
19553 int res2 = 0 ;
19554 int val3 ;
19555 int ecode3 = 0 ;
19556 int val4 ;
19557 int ecode4 = 0 ;
19558 bool val5 ;
19559 int ecode5 = 0 ;
19560 PyObject * obj0 = 0 ;
19561 PyObject * obj1 = 0 ;
19562 PyObject * obj2 = 0 ;
19563 PyObject * obj3 = 0 ;
19564 PyObject * obj4 = 0 ;
19565 char * kwnames[] = {
19566 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19567 };
19568
19569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19571 if (!SWIG_IsOK(res1)) {
19572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19573 }
19574 arg1 = reinterpret_cast< wxDC * >(argp1);
19575 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19576 if (!SWIG_IsOK(res2)) {
19577 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19578 }
19579 if (!argp2) {
19580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19581 }
19582 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19583 ecode3 = SWIG_AsVal_int(obj2, &val3);
19584 if (!SWIG_IsOK(ecode3)) {
19585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19586 }
19587 arg3 = static_cast< int >(val3);
19588 ecode4 = SWIG_AsVal_int(obj3, &val4);
19589 if (!SWIG_IsOK(ecode4)) {
19590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19591 }
19592 arg4 = static_cast< int >(val4);
19593 if (obj4) {
19594 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19595 if (!SWIG_IsOK(ecode5)) {
19596 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19597 }
19598 arg5 = static_cast< bool >(val5);
19599 }
19600 {
19601 PyThreadState* __tstate = wxPyBeginAllowThreads();
19602 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19603 wxPyEndAllowThreads(__tstate);
19604 if (PyErr_Occurred()) SWIG_fail;
19605 }
19606 resultobj = SWIG_Py_Void();
19607 return resultobj;
19608 fail:
19609 return NULL;
19610 }
19611
19612
19613 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19614 PyObject *resultobj = 0;
19615 wxDC *arg1 = (wxDC *) 0 ;
19616 wxBitmap *arg2 = 0 ;
19617 wxPoint *arg3 = 0 ;
19618 bool arg4 = (bool) false ;
19619 void *argp1 = 0 ;
19620 int res1 = 0 ;
19621 void *argp2 = 0 ;
19622 int res2 = 0 ;
19623 wxPoint temp3 ;
19624 bool val4 ;
19625 int ecode4 = 0 ;
19626 PyObject * obj0 = 0 ;
19627 PyObject * obj1 = 0 ;
19628 PyObject * obj2 = 0 ;
19629 PyObject * obj3 = 0 ;
19630 char * kwnames[] = {
19631 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19632 };
19633
19634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19636 if (!SWIG_IsOK(res1)) {
19637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19638 }
19639 arg1 = reinterpret_cast< wxDC * >(argp1);
19640 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19641 if (!SWIG_IsOK(res2)) {
19642 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19643 }
19644 if (!argp2) {
19645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19646 }
19647 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19648 {
19649 arg3 = &temp3;
19650 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19651 }
19652 if (obj3) {
19653 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19654 if (!SWIG_IsOK(ecode4)) {
19655 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19656 }
19657 arg4 = static_cast< bool >(val4);
19658 }
19659 {
19660 PyThreadState* __tstate = wxPyBeginAllowThreads();
19661 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19662 wxPyEndAllowThreads(__tstate);
19663 if (PyErr_Occurred()) SWIG_fail;
19664 }
19665 resultobj = SWIG_Py_Void();
19666 return resultobj;
19667 fail:
19668 return NULL;
19669 }
19670
19671
19672 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19673 PyObject *resultobj = 0;
19674 wxDC *arg1 = (wxDC *) 0 ;
19675 wxString *arg2 = 0 ;
19676 int arg3 ;
19677 int arg4 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 bool temp2 = false ;
19681 int val3 ;
19682 int ecode3 = 0 ;
19683 int val4 ;
19684 int ecode4 = 0 ;
19685 PyObject * obj0 = 0 ;
19686 PyObject * obj1 = 0 ;
19687 PyObject * obj2 = 0 ;
19688 PyObject * obj3 = 0 ;
19689 char * kwnames[] = {
19690 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19691 };
19692
19693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19695 if (!SWIG_IsOK(res1)) {
19696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19697 }
19698 arg1 = reinterpret_cast< wxDC * >(argp1);
19699 {
19700 arg2 = wxString_in_helper(obj1);
19701 if (arg2 == NULL) SWIG_fail;
19702 temp2 = true;
19703 }
19704 ecode3 = SWIG_AsVal_int(obj2, &val3);
19705 if (!SWIG_IsOK(ecode3)) {
19706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19707 }
19708 arg3 = static_cast< int >(val3);
19709 ecode4 = SWIG_AsVal_int(obj3, &val4);
19710 if (!SWIG_IsOK(ecode4)) {
19711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19712 }
19713 arg4 = static_cast< int >(val4);
19714 {
19715 PyThreadState* __tstate = wxPyBeginAllowThreads();
19716 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19717 wxPyEndAllowThreads(__tstate);
19718 if (PyErr_Occurred()) SWIG_fail;
19719 }
19720 resultobj = SWIG_Py_Void();
19721 {
19722 if (temp2)
19723 delete arg2;
19724 }
19725 return resultobj;
19726 fail:
19727 {
19728 if (temp2)
19729 delete arg2;
19730 }
19731 return NULL;
19732 }
19733
19734
19735 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19736 PyObject *resultobj = 0;
19737 wxDC *arg1 = (wxDC *) 0 ;
19738 wxString *arg2 = 0 ;
19739 wxPoint *arg3 = 0 ;
19740 void *argp1 = 0 ;
19741 int res1 = 0 ;
19742 bool temp2 = false ;
19743 wxPoint temp3 ;
19744 PyObject * obj0 = 0 ;
19745 PyObject * obj1 = 0 ;
19746 PyObject * obj2 = 0 ;
19747 char * kwnames[] = {
19748 (char *) "self",(char *) "text",(char *) "pt", NULL
19749 };
19750
19751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19753 if (!SWIG_IsOK(res1)) {
19754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19755 }
19756 arg1 = reinterpret_cast< wxDC * >(argp1);
19757 {
19758 arg2 = wxString_in_helper(obj1);
19759 if (arg2 == NULL) SWIG_fail;
19760 temp2 = true;
19761 }
19762 {
19763 arg3 = &temp3;
19764 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19765 }
19766 {
19767 PyThreadState* __tstate = wxPyBeginAllowThreads();
19768 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19769 wxPyEndAllowThreads(__tstate);
19770 if (PyErr_Occurred()) SWIG_fail;
19771 }
19772 resultobj = SWIG_Py_Void();
19773 {
19774 if (temp2)
19775 delete arg2;
19776 }
19777 return resultobj;
19778 fail:
19779 {
19780 if (temp2)
19781 delete arg2;
19782 }
19783 return NULL;
19784 }
19785
19786
19787 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19788 PyObject *resultobj = 0;
19789 wxDC *arg1 = (wxDC *) 0 ;
19790 wxString *arg2 = 0 ;
19791 int arg3 ;
19792 int arg4 ;
19793 double arg5 ;
19794 void *argp1 = 0 ;
19795 int res1 = 0 ;
19796 bool temp2 = false ;
19797 int val3 ;
19798 int ecode3 = 0 ;
19799 int val4 ;
19800 int ecode4 = 0 ;
19801 double val5 ;
19802 int ecode5 = 0 ;
19803 PyObject * obj0 = 0 ;
19804 PyObject * obj1 = 0 ;
19805 PyObject * obj2 = 0 ;
19806 PyObject * obj3 = 0 ;
19807 PyObject * obj4 = 0 ;
19808 char * kwnames[] = {
19809 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19810 };
19811
19812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19814 if (!SWIG_IsOK(res1)) {
19815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19816 }
19817 arg1 = reinterpret_cast< wxDC * >(argp1);
19818 {
19819 arg2 = wxString_in_helper(obj1);
19820 if (arg2 == NULL) SWIG_fail;
19821 temp2 = true;
19822 }
19823 ecode3 = SWIG_AsVal_int(obj2, &val3);
19824 if (!SWIG_IsOK(ecode3)) {
19825 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19826 }
19827 arg3 = static_cast< int >(val3);
19828 ecode4 = SWIG_AsVal_int(obj3, &val4);
19829 if (!SWIG_IsOK(ecode4)) {
19830 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19831 }
19832 arg4 = static_cast< int >(val4);
19833 ecode5 = SWIG_AsVal_double(obj4, &val5);
19834 if (!SWIG_IsOK(ecode5)) {
19835 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19836 }
19837 arg5 = static_cast< double >(val5);
19838 {
19839 PyThreadState* __tstate = wxPyBeginAllowThreads();
19840 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19841 wxPyEndAllowThreads(__tstate);
19842 if (PyErr_Occurred()) SWIG_fail;
19843 }
19844 resultobj = SWIG_Py_Void();
19845 {
19846 if (temp2)
19847 delete arg2;
19848 }
19849 return resultobj;
19850 fail:
19851 {
19852 if (temp2)
19853 delete arg2;
19854 }
19855 return NULL;
19856 }
19857
19858
19859 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 wxString *arg2 = 0 ;
19863 wxPoint *arg3 = 0 ;
19864 double arg4 ;
19865 void *argp1 = 0 ;
19866 int res1 = 0 ;
19867 bool temp2 = false ;
19868 wxPoint temp3 ;
19869 double val4 ;
19870 int ecode4 = 0 ;
19871 PyObject * obj0 = 0 ;
19872 PyObject * obj1 = 0 ;
19873 PyObject * obj2 = 0 ;
19874 PyObject * obj3 = 0 ;
19875 char * kwnames[] = {
19876 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19877 };
19878
19879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19881 if (!SWIG_IsOK(res1)) {
19882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19883 }
19884 arg1 = reinterpret_cast< wxDC * >(argp1);
19885 {
19886 arg2 = wxString_in_helper(obj1);
19887 if (arg2 == NULL) SWIG_fail;
19888 temp2 = true;
19889 }
19890 {
19891 arg3 = &temp3;
19892 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19893 }
19894 ecode4 = SWIG_AsVal_double(obj3, &val4);
19895 if (!SWIG_IsOK(ecode4)) {
19896 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19897 }
19898 arg4 = static_cast< double >(val4);
19899 {
19900 PyThreadState* __tstate = wxPyBeginAllowThreads();
19901 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19902 wxPyEndAllowThreads(__tstate);
19903 if (PyErr_Occurred()) SWIG_fail;
19904 }
19905 resultobj = SWIG_Py_Void();
19906 {
19907 if (temp2)
19908 delete arg2;
19909 }
19910 return resultobj;
19911 fail:
19912 {
19913 if (temp2)
19914 delete arg2;
19915 }
19916 return NULL;
19917 }
19918
19919
19920 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19921 PyObject *resultobj = 0;
19922 wxDC *arg1 = (wxDC *) 0 ;
19923 int arg2 ;
19924 int arg3 ;
19925 int arg4 ;
19926 int arg5 ;
19927 wxDC *arg6 = (wxDC *) 0 ;
19928 int arg7 ;
19929 int arg8 ;
19930 int arg9 = (int) wxCOPY ;
19931 bool arg10 = (bool) false ;
19932 int arg11 = (int) -1 ;
19933 int arg12 = (int) -1 ;
19934 bool result;
19935 void *argp1 = 0 ;
19936 int res1 = 0 ;
19937 int val2 ;
19938 int ecode2 = 0 ;
19939 int val3 ;
19940 int ecode3 = 0 ;
19941 int val4 ;
19942 int ecode4 = 0 ;
19943 int val5 ;
19944 int ecode5 = 0 ;
19945 void *argp6 = 0 ;
19946 int res6 = 0 ;
19947 int val7 ;
19948 int ecode7 = 0 ;
19949 int val8 ;
19950 int ecode8 = 0 ;
19951 int val9 ;
19952 int ecode9 = 0 ;
19953 bool val10 ;
19954 int ecode10 = 0 ;
19955 int val11 ;
19956 int ecode11 = 0 ;
19957 int val12 ;
19958 int ecode12 = 0 ;
19959 PyObject * obj0 = 0 ;
19960 PyObject * obj1 = 0 ;
19961 PyObject * obj2 = 0 ;
19962 PyObject * obj3 = 0 ;
19963 PyObject * obj4 = 0 ;
19964 PyObject * obj5 = 0 ;
19965 PyObject * obj6 = 0 ;
19966 PyObject * obj7 = 0 ;
19967 PyObject * obj8 = 0 ;
19968 PyObject * obj9 = 0 ;
19969 PyObject * obj10 = 0 ;
19970 PyObject * obj11 = 0 ;
19971 char * kwnames[] = {
19972 (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
19973 };
19974
19975 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;
19976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19977 if (!SWIG_IsOK(res1)) {
19978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19979 }
19980 arg1 = reinterpret_cast< wxDC * >(argp1);
19981 ecode2 = SWIG_AsVal_int(obj1, &val2);
19982 if (!SWIG_IsOK(ecode2)) {
19983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19984 }
19985 arg2 = static_cast< int >(val2);
19986 ecode3 = SWIG_AsVal_int(obj2, &val3);
19987 if (!SWIG_IsOK(ecode3)) {
19988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
19989 }
19990 arg3 = static_cast< int >(val3);
19991 ecode4 = SWIG_AsVal_int(obj3, &val4);
19992 if (!SWIG_IsOK(ecode4)) {
19993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
19994 }
19995 arg4 = static_cast< int >(val4);
19996 ecode5 = SWIG_AsVal_int(obj4, &val5);
19997 if (!SWIG_IsOK(ecode5)) {
19998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
19999 }
20000 arg5 = static_cast< int >(val5);
20001 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20002 if (!SWIG_IsOK(res6)) {
20003 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20004 }
20005 arg6 = reinterpret_cast< wxDC * >(argp6);
20006 ecode7 = SWIG_AsVal_int(obj6, &val7);
20007 if (!SWIG_IsOK(ecode7)) {
20008 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20009 }
20010 arg7 = static_cast< int >(val7);
20011 ecode8 = SWIG_AsVal_int(obj7, &val8);
20012 if (!SWIG_IsOK(ecode8)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20014 }
20015 arg8 = static_cast< int >(val8);
20016 if (obj8) {
20017 ecode9 = SWIG_AsVal_int(obj8, &val9);
20018 if (!SWIG_IsOK(ecode9)) {
20019 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20020 }
20021 arg9 = static_cast< int >(val9);
20022 }
20023 if (obj9) {
20024 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20025 if (!SWIG_IsOK(ecode10)) {
20026 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20027 }
20028 arg10 = static_cast< bool >(val10);
20029 }
20030 if (obj10) {
20031 ecode11 = SWIG_AsVal_int(obj10, &val11);
20032 if (!SWIG_IsOK(ecode11)) {
20033 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20034 }
20035 arg11 = static_cast< int >(val11);
20036 }
20037 if (obj11) {
20038 ecode12 = SWIG_AsVal_int(obj11, &val12);
20039 if (!SWIG_IsOK(ecode12)) {
20040 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20041 }
20042 arg12 = static_cast< int >(val12);
20043 }
20044 {
20045 PyThreadState* __tstate = wxPyBeginAllowThreads();
20046 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20047 wxPyEndAllowThreads(__tstate);
20048 if (PyErr_Occurred()) SWIG_fail;
20049 }
20050 {
20051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20052 }
20053 return resultobj;
20054 fail:
20055 return NULL;
20056 }
20057
20058
20059 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20060 PyObject *resultobj = 0;
20061 wxDC *arg1 = (wxDC *) 0 ;
20062 wxPoint *arg2 = 0 ;
20063 wxSize *arg3 = 0 ;
20064 wxDC *arg4 = (wxDC *) 0 ;
20065 wxPoint *arg5 = 0 ;
20066 int arg6 = (int) wxCOPY ;
20067 bool arg7 = (bool) false ;
20068 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20069 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20070 bool result;
20071 void *argp1 = 0 ;
20072 int res1 = 0 ;
20073 wxPoint temp2 ;
20074 wxSize temp3 ;
20075 void *argp4 = 0 ;
20076 int res4 = 0 ;
20077 wxPoint temp5 ;
20078 int val6 ;
20079 int ecode6 = 0 ;
20080 bool val7 ;
20081 int ecode7 = 0 ;
20082 wxPoint temp8 ;
20083 PyObject * obj0 = 0 ;
20084 PyObject * obj1 = 0 ;
20085 PyObject * obj2 = 0 ;
20086 PyObject * obj3 = 0 ;
20087 PyObject * obj4 = 0 ;
20088 PyObject * obj5 = 0 ;
20089 PyObject * obj6 = 0 ;
20090 PyObject * obj7 = 0 ;
20091 char * kwnames[] = {
20092 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20093 };
20094
20095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20097 if (!SWIG_IsOK(res1)) {
20098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20099 }
20100 arg1 = reinterpret_cast< wxDC * >(argp1);
20101 {
20102 arg2 = &temp2;
20103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20104 }
20105 {
20106 arg3 = &temp3;
20107 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20108 }
20109 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20110 if (!SWIG_IsOK(res4)) {
20111 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20112 }
20113 arg4 = reinterpret_cast< wxDC * >(argp4);
20114 {
20115 arg5 = &temp5;
20116 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20117 }
20118 if (obj5) {
20119 ecode6 = SWIG_AsVal_int(obj5, &val6);
20120 if (!SWIG_IsOK(ecode6)) {
20121 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20122 }
20123 arg6 = static_cast< int >(val6);
20124 }
20125 if (obj6) {
20126 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20127 if (!SWIG_IsOK(ecode7)) {
20128 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20129 }
20130 arg7 = static_cast< bool >(val7);
20131 }
20132 if (obj7) {
20133 {
20134 arg8 = &temp8;
20135 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20136 }
20137 }
20138 {
20139 PyThreadState* __tstate = wxPyBeginAllowThreads();
20140 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20141 wxPyEndAllowThreads(__tstate);
20142 if (PyErr_Occurred()) SWIG_fail;
20143 }
20144 {
20145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20146 }
20147 return resultobj;
20148 fail:
20149 return NULL;
20150 }
20151
20152
20153 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20154 PyObject *resultobj = 0;
20155 wxDC *arg1 = (wxDC *) 0 ;
20156 int arg2 ;
20157 int arg3 ;
20158 int arg4 ;
20159 int arg5 ;
20160 void *argp1 = 0 ;
20161 int res1 = 0 ;
20162 int val2 ;
20163 int ecode2 = 0 ;
20164 int val3 ;
20165 int ecode3 = 0 ;
20166 int val4 ;
20167 int ecode4 = 0 ;
20168 int val5 ;
20169 int ecode5 = 0 ;
20170 PyObject * obj0 = 0 ;
20171 PyObject * obj1 = 0 ;
20172 PyObject * obj2 = 0 ;
20173 PyObject * obj3 = 0 ;
20174 PyObject * obj4 = 0 ;
20175 char * kwnames[] = {
20176 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20177 };
20178
20179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20181 if (!SWIG_IsOK(res1)) {
20182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20183 }
20184 arg1 = reinterpret_cast< wxDC * >(argp1);
20185 ecode2 = SWIG_AsVal_int(obj1, &val2);
20186 if (!SWIG_IsOK(ecode2)) {
20187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20188 }
20189 arg2 = static_cast< int >(val2);
20190 ecode3 = SWIG_AsVal_int(obj2, &val3);
20191 if (!SWIG_IsOK(ecode3)) {
20192 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20193 }
20194 arg3 = static_cast< int >(val3);
20195 ecode4 = SWIG_AsVal_int(obj3, &val4);
20196 if (!SWIG_IsOK(ecode4)) {
20197 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20198 }
20199 arg4 = static_cast< int >(val4);
20200 ecode5 = SWIG_AsVal_int(obj4, &val5);
20201 if (!SWIG_IsOK(ecode5)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20203 }
20204 arg5 = static_cast< int >(val5);
20205 {
20206 PyThreadState* __tstate = wxPyBeginAllowThreads();
20207 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20208 wxPyEndAllowThreads(__tstate);
20209 if (PyErr_Occurred()) SWIG_fail;
20210 }
20211 resultobj = SWIG_Py_Void();
20212 return resultobj;
20213 fail:
20214 return NULL;
20215 }
20216
20217
20218 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20219 PyObject *resultobj = 0;
20220 wxDC *arg1 = (wxDC *) 0 ;
20221 wxPoint *arg2 = 0 ;
20222 wxSize *arg3 = 0 ;
20223 void *argp1 = 0 ;
20224 int res1 = 0 ;
20225 wxPoint temp2 ;
20226 wxSize temp3 ;
20227 PyObject * obj0 = 0 ;
20228 PyObject * obj1 = 0 ;
20229 PyObject * obj2 = 0 ;
20230 char * kwnames[] = {
20231 (char *) "self",(char *) "pt",(char *) "sz", NULL
20232 };
20233
20234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20236 if (!SWIG_IsOK(res1)) {
20237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20238 }
20239 arg1 = reinterpret_cast< wxDC * >(argp1);
20240 {
20241 arg2 = &temp2;
20242 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20243 }
20244 {
20245 arg3 = &temp3;
20246 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20247 }
20248 {
20249 PyThreadState* __tstate = wxPyBeginAllowThreads();
20250 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20251 wxPyEndAllowThreads(__tstate);
20252 if (PyErr_Occurred()) SWIG_fail;
20253 }
20254 resultobj = SWIG_Py_Void();
20255 return resultobj;
20256 fail:
20257 return NULL;
20258 }
20259
20260
20261 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20262 PyObject *resultobj = 0;
20263 wxDC *arg1 = (wxDC *) 0 ;
20264 wxRegion *arg2 = 0 ;
20265 void *argp1 = 0 ;
20266 int res1 = 0 ;
20267 void *argp2 = 0 ;
20268 int res2 = 0 ;
20269 PyObject * obj0 = 0 ;
20270 PyObject * obj1 = 0 ;
20271 char * kwnames[] = {
20272 (char *) "self",(char *) "region", NULL
20273 };
20274
20275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20277 if (!SWIG_IsOK(res1)) {
20278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20279 }
20280 arg1 = reinterpret_cast< wxDC * >(argp1);
20281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20282 if (!SWIG_IsOK(res2)) {
20283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20284 }
20285 if (!argp2) {
20286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20287 }
20288 arg2 = reinterpret_cast< wxRegion * >(argp2);
20289 {
20290 PyThreadState* __tstate = wxPyBeginAllowThreads();
20291 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20292 wxPyEndAllowThreads(__tstate);
20293 if (PyErr_Occurred()) SWIG_fail;
20294 }
20295 resultobj = SWIG_Py_Void();
20296 return resultobj;
20297 fail:
20298 return NULL;
20299 }
20300
20301
20302 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20303 PyObject *resultobj = 0;
20304 wxDC *arg1 = (wxDC *) 0 ;
20305 wxRect *arg2 = 0 ;
20306 void *argp1 = 0 ;
20307 int res1 = 0 ;
20308 wxRect temp2 ;
20309 PyObject * obj0 = 0 ;
20310 PyObject * obj1 = 0 ;
20311 char * kwnames[] = {
20312 (char *) "self",(char *) "rect", NULL
20313 };
20314
20315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20317 if (!SWIG_IsOK(res1)) {
20318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20319 }
20320 arg1 = reinterpret_cast< wxDC * >(argp1);
20321 {
20322 arg2 = &temp2;
20323 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20324 }
20325 {
20326 PyThreadState* __tstate = wxPyBeginAllowThreads();
20327 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20328 wxPyEndAllowThreads(__tstate);
20329 if (PyErr_Occurred()) SWIG_fail;
20330 }
20331 resultobj = SWIG_Py_Void();
20332 return resultobj;
20333 fail:
20334 return NULL;
20335 }
20336
20337
20338 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20339 PyObject *resultobj = 0;
20340 wxDC *arg1 = (wxDC *) 0 ;
20341 int arg2 ;
20342 wxPoint *arg3 = (wxPoint *) 0 ;
20343 int arg4 = (int) 0 ;
20344 int arg5 = (int) 0 ;
20345 void *argp1 = 0 ;
20346 int res1 = 0 ;
20347 int val4 ;
20348 int ecode4 = 0 ;
20349 int val5 ;
20350 int ecode5 = 0 ;
20351 PyObject * obj0 = 0 ;
20352 PyObject * obj1 = 0 ;
20353 PyObject * obj2 = 0 ;
20354 PyObject * obj3 = 0 ;
20355 char * kwnames[] = {
20356 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20357 };
20358
20359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20361 if (!SWIG_IsOK(res1)) {
20362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20363 }
20364 arg1 = reinterpret_cast< wxDC * >(argp1);
20365 {
20366 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20367 if (arg3 == NULL) SWIG_fail;
20368 }
20369 if (obj2) {
20370 ecode4 = SWIG_AsVal_int(obj2, &val4);
20371 if (!SWIG_IsOK(ecode4)) {
20372 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20373 }
20374 arg4 = static_cast< int >(val4);
20375 }
20376 if (obj3) {
20377 ecode5 = SWIG_AsVal_int(obj3, &val5);
20378 if (!SWIG_IsOK(ecode5)) {
20379 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20380 }
20381 arg5 = static_cast< int >(val5);
20382 }
20383 {
20384 PyThreadState* __tstate = wxPyBeginAllowThreads();
20385 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20386 wxPyEndAllowThreads(__tstate);
20387 if (PyErr_Occurred()) SWIG_fail;
20388 }
20389 resultobj = SWIG_Py_Void();
20390 {
20391 if (arg3) delete [] arg3;
20392 }
20393 return resultobj;
20394 fail:
20395 {
20396 if (arg3) delete [] arg3;
20397 }
20398 return NULL;
20399 }
20400
20401
20402 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20403 PyObject *resultobj = 0;
20404 wxDC *arg1 = (wxDC *) 0 ;
20405 int arg2 ;
20406 wxPoint *arg3 = (wxPoint *) 0 ;
20407 int arg4 = (int) 0 ;
20408 int arg5 = (int) 0 ;
20409 int arg6 = (int) wxODDEVEN_RULE ;
20410 void *argp1 = 0 ;
20411 int res1 = 0 ;
20412 int val4 ;
20413 int ecode4 = 0 ;
20414 int val5 ;
20415 int ecode5 = 0 ;
20416 int val6 ;
20417 int ecode6 = 0 ;
20418 PyObject * obj0 = 0 ;
20419 PyObject * obj1 = 0 ;
20420 PyObject * obj2 = 0 ;
20421 PyObject * obj3 = 0 ;
20422 PyObject * obj4 = 0 ;
20423 char * kwnames[] = {
20424 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20425 };
20426
20427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20431 }
20432 arg1 = reinterpret_cast< wxDC * >(argp1);
20433 {
20434 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20435 if (arg3 == NULL) SWIG_fail;
20436 }
20437 if (obj2) {
20438 ecode4 = SWIG_AsVal_int(obj2, &val4);
20439 if (!SWIG_IsOK(ecode4)) {
20440 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20441 }
20442 arg4 = static_cast< int >(val4);
20443 }
20444 if (obj3) {
20445 ecode5 = SWIG_AsVal_int(obj3, &val5);
20446 if (!SWIG_IsOK(ecode5)) {
20447 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20448 }
20449 arg5 = static_cast< int >(val5);
20450 }
20451 if (obj4) {
20452 ecode6 = SWIG_AsVal_int(obj4, &val6);
20453 if (!SWIG_IsOK(ecode6)) {
20454 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20455 }
20456 arg6 = static_cast< int >(val6);
20457 }
20458 {
20459 PyThreadState* __tstate = wxPyBeginAllowThreads();
20460 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20461 wxPyEndAllowThreads(__tstate);
20462 if (PyErr_Occurred()) SWIG_fail;
20463 }
20464 resultobj = SWIG_Py_Void();
20465 {
20466 if (arg3) delete [] arg3;
20467 }
20468 return resultobj;
20469 fail:
20470 {
20471 if (arg3) delete [] arg3;
20472 }
20473 return NULL;
20474 }
20475
20476
20477 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20478 PyObject *resultobj = 0;
20479 wxDC *arg1 = (wxDC *) 0 ;
20480 wxString *arg2 = 0 ;
20481 wxRect *arg3 = 0 ;
20482 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20483 int arg5 = (int) -1 ;
20484 void *argp1 = 0 ;
20485 int res1 = 0 ;
20486 bool temp2 = false ;
20487 wxRect temp3 ;
20488 int val4 ;
20489 int ecode4 = 0 ;
20490 int val5 ;
20491 int ecode5 = 0 ;
20492 PyObject * obj0 = 0 ;
20493 PyObject * obj1 = 0 ;
20494 PyObject * obj2 = 0 ;
20495 PyObject * obj3 = 0 ;
20496 PyObject * obj4 = 0 ;
20497 char * kwnames[] = {
20498 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20499 };
20500
20501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20503 if (!SWIG_IsOK(res1)) {
20504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20505 }
20506 arg1 = reinterpret_cast< wxDC * >(argp1);
20507 {
20508 arg2 = wxString_in_helper(obj1);
20509 if (arg2 == NULL) SWIG_fail;
20510 temp2 = true;
20511 }
20512 {
20513 arg3 = &temp3;
20514 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20515 }
20516 if (obj3) {
20517 ecode4 = SWIG_AsVal_int(obj3, &val4);
20518 if (!SWIG_IsOK(ecode4)) {
20519 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20520 }
20521 arg4 = static_cast< int >(val4);
20522 }
20523 if (obj4) {
20524 ecode5 = SWIG_AsVal_int(obj4, &val5);
20525 if (!SWIG_IsOK(ecode5)) {
20526 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20527 }
20528 arg5 = static_cast< int >(val5);
20529 }
20530 {
20531 PyThreadState* __tstate = wxPyBeginAllowThreads();
20532 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20533 wxPyEndAllowThreads(__tstate);
20534 if (PyErr_Occurred()) SWIG_fail;
20535 }
20536 resultobj = SWIG_Py_Void();
20537 {
20538 if (temp2)
20539 delete arg2;
20540 }
20541 return resultobj;
20542 fail:
20543 {
20544 if (temp2)
20545 delete arg2;
20546 }
20547 return NULL;
20548 }
20549
20550
20551 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20552 PyObject *resultobj = 0;
20553 wxDC *arg1 = (wxDC *) 0 ;
20554 wxString *arg2 = 0 ;
20555 wxBitmap *arg3 = 0 ;
20556 wxRect *arg4 = 0 ;
20557 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20558 int arg6 = (int) -1 ;
20559 wxRect result;
20560 void *argp1 = 0 ;
20561 int res1 = 0 ;
20562 bool temp2 = false ;
20563 void *argp3 = 0 ;
20564 int res3 = 0 ;
20565 wxRect temp4 ;
20566 int val5 ;
20567 int ecode5 = 0 ;
20568 int val6 ;
20569 int ecode6 = 0 ;
20570 PyObject * obj0 = 0 ;
20571 PyObject * obj1 = 0 ;
20572 PyObject * obj2 = 0 ;
20573 PyObject * obj3 = 0 ;
20574 PyObject * obj4 = 0 ;
20575 PyObject * obj5 = 0 ;
20576 char * kwnames[] = {
20577 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20578 };
20579
20580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20582 if (!SWIG_IsOK(res1)) {
20583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20584 }
20585 arg1 = reinterpret_cast< wxDC * >(argp1);
20586 {
20587 arg2 = wxString_in_helper(obj1);
20588 if (arg2 == NULL) SWIG_fail;
20589 temp2 = true;
20590 }
20591 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20592 if (!SWIG_IsOK(res3)) {
20593 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20594 }
20595 if (!argp3) {
20596 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20597 }
20598 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20599 {
20600 arg4 = &temp4;
20601 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20602 }
20603 if (obj4) {
20604 ecode5 = SWIG_AsVal_int(obj4, &val5);
20605 if (!SWIG_IsOK(ecode5)) {
20606 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20607 }
20608 arg5 = static_cast< int >(val5);
20609 }
20610 if (obj5) {
20611 ecode6 = SWIG_AsVal_int(obj5, &val6);
20612 if (!SWIG_IsOK(ecode6)) {
20613 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20614 }
20615 arg6 = static_cast< int >(val6);
20616 }
20617 {
20618 PyThreadState* __tstate = wxPyBeginAllowThreads();
20619 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20620 wxPyEndAllowThreads(__tstate);
20621 if (PyErr_Occurred()) SWIG_fail;
20622 }
20623 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20624 {
20625 if (temp2)
20626 delete arg2;
20627 }
20628 return resultobj;
20629 fail:
20630 {
20631 if (temp2)
20632 delete arg2;
20633 }
20634 return NULL;
20635 }
20636
20637
20638 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20639 PyObject *resultobj = 0;
20640 wxDC *arg1 = (wxDC *) 0 ;
20641 int arg2 ;
20642 wxPoint *arg3 = (wxPoint *) 0 ;
20643 void *argp1 = 0 ;
20644 int res1 = 0 ;
20645 PyObject * obj0 = 0 ;
20646 PyObject * obj1 = 0 ;
20647 char * kwnames[] = {
20648 (char *) "self",(char *) "points", NULL
20649 };
20650
20651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20653 if (!SWIG_IsOK(res1)) {
20654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20655 }
20656 arg1 = reinterpret_cast< wxDC * >(argp1);
20657 {
20658 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20659 if (arg3 == NULL) SWIG_fail;
20660 }
20661 {
20662 PyThreadState* __tstate = wxPyBeginAllowThreads();
20663 (arg1)->DrawSpline(arg2,arg3);
20664 wxPyEndAllowThreads(__tstate);
20665 if (PyErr_Occurred()) SWIG_fail;
20666 }
20667 resultobj = SWIG_Py_Void();
20668 {
20669 if (arg3) delete [] arg3;
20670 }
20671 return resultobj;
20672 fail:
20673 {
20674 if (arg3) delete [] arg3;
20675 }
20676 return NULL;
20677 }
20678
20679
20680 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20681 PyObject *resultobj = 0;
20682 wxDC *arg1 = (wxDC *) 0 ;
20683 void *argp1 = 0 ;
20684 int res1 = 0 ;
20685 PyObject *swig_obj[1] ;
20686
20687 if (!args) SWIG_fail;
20688 swig_obj[0] = args;
20689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20690 if (!SWIG_IsOK(res1)) {
20691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20692 }
20693 arg1 = reinterpret_cast< wxDC * >(argp1);
20694 {
20695 PyThreadState* __tstate = wxPyBeginAllowThreads();
20696 (arg1)->Clear();
20697 wxPyEndAllowThreads(__tstate);
20698 if (PyErr_Occurred()) SWIG_fail;
20699 }
20700 resultobj = SWIG_Py_Void();
20701 return resultobj;
20702 fail:
20703 return NULL;
20704 }
20705
20706
20707 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20708 PyObject *resultobj = 0;
20709 wxDC *arg1 = (wxDC *) 0 ;
20710 wxString *arg2 = 0 ;
20711 bool result;
20712 void *argp1 = 0 ;
20713 int res1 = 0 ;
20714 bool temp2 = false ;
20715 PyObject * obj0 = 0 ;
20716 PyObject * obj1 = 0 ;
20717 char * kwnames[] = {
20718 (char *) "self",(char *) "message", NULL
20719 };
20720
20721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20723 if (!SWIG_IsOK(res1)) {
20724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20725 }
20726 arg1 = reinterpret_cast< wxDC * >(argp1);
20727 {
20728 arg2 = wxString_in_helper(obj1);
20729 if (arg2 == NULL) SWIG_fail;
20730 temp2 = true;
20731 }
20732 {
20733 PyThreadState* __tstate = wxPyBeginAllowThreads();
20734 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20735 wxPyEndAllowThreads(__tstate);
20736 if (PyErr_Occurred()) SWIG_fail;
20737 }
20738 {
20739 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20740 }
20741 {
20742 if (temp2)
20743 delete arg2;
20744 }
20745 return resultobj;
20746 fail:
20747 {
20748 if (temp2)
20749 delete arg2;
20750 }
20751 return NULL;
20752 }
20753
20754
20755 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20756 PyObject *resultobj = 0;
20757 wxDC *arg1 = (wxDC *) 0 ;
20758 void *argp1 = 0 ;
20759 int res1 = 0 ;
20760 PyObject *swig_obj[1] ;
20761
20762 if (!args) SWIG_fail;
20763 swig_obj[0] = args;
20764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20765 if (!SWIG_IsOK(res1)) {
20766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20767 }
20768 arg1 = reinterpret_cast< wxDC * >(argp1);
20769 {
20770 PyThreadState* __tstate = wxPyBeginAllowThreads();
20771 (arg1)->EndDoc();
20772 wxPyEndAllowThreads(__tstate);
20773 if (PyErr_Occurred()) SWIG_fail;
20774 }
20775 resultobj = SWIG_Py_Void();
20776 return resultobj;
20777 fail:
20778 return NULL;
20779 }
20780
20781
20782 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20783 PyObject *resultobj = 0;
20784 wxDC *arg1 = (wxDC *) 0 ;
20785 void *argp1 = 0 ;
20786 int res1 = 0 ;
20787 PyObject *swig_obj[1] ;
20788
20789 if (!args) SWIG_fail;
20790 swig_obj[0] = args;
20791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20794 }
20795 arg1 = reinterpret_cast< wxDC * >(argp1);
20796 {
20797 PyThreadState* __tstate = wxPyBeginAllowThreads();
20798 (arg1)->StartPage();
20799 wxPyEndAllowThreads(__tstate);
20800 if (PyErr_Occurred()) SWIG_fail;
20801 }
20802 resultobj = SWIG_Py_Void();
20803 return resultobj;
20804 fail:
20805 return NULL;
20806 }
20807
20808
20809 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20810 PyObject *resultobj = 0;
20811 wxDC *arg1 = (wxDC *) 0 ;
20812 void *argp1 = 0 ;
20813 int res1 = 0 ;
20814 PyObject *swig_obj[1] ;
20815
20816 if (!args) SWIG_fail;
20817 swig_obj[0] = args;
20818 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20819 if (!SWIG_IsOK(res1)) {
20820 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20821 }
20822 arg1 = reinterpret_cast< wxDC * >(argp1);
20823 {
20824 PyThreadState* __tstate = wxPyBeginAllowThreads();
20825 (arg1)->EndPage();
20826 wxPyEndAllowThreads(__tstate);
20827 if (PyErr_Occurred()) SWIG_fail;
20828 }
20829 resultobj = SWIG_Py_Void();
20830 return resultobj;
20831 fail:
20832 return NULL;
20833 }
20834
20835
20836 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20837 PyObject *resultobj = 0;
20838 wxDC *arg1 = (wxDC *) 0 ;
20839 wxFont *arg2 = 0 ;
20840 void *argp1 = 0 ;
20841 int res1 = 0 ;
20842 void *argp2 = 0 ;
20843 int res2 = 0 ;
20844 PyObject * obj0 = 0 ;
20845 PyObject * obj1 = 0 ;
20846 char * kwnames[] = {
20847 (char *) "self",(char *) "font", NULL
20848 };
20849
20850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20852 if (!SWIG_IsOK(res1)) {
20853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20854 }
20855 arg1 = reinterpret_cast< wxDC * >(argp1);
20856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20857 if (!SWIG_IsOK(res2)) {
20858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20859 }
20860 if (!argp2) {
20861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20862 }
20863 arg2 = reinterpret_cast< wxFont * >(argp2);
20864 {
20865 PyThreadState* __tstate = wxPyBeginAllowThreads();
20866 (arg1)->SetFont((wxFont const &)*arg2);
20867 wxPyEndAllowThreads(__tstate);
20868 if (PyErr_Occurred()) SWIG_fail;
20869 }
20870 resultobj = SWIG_Py_Void();
20871 return resultobj;
20872 fail:
20873 return NULL;
20874 }
20875
20876
20877 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20878 PyObject *resultobj = 0;
20879 wxDC *arg1 = (wxDC *) 0 ;
20880 wxPen *arg2 = 0 ;
20881 void *argp1 = 0 ;
20882 int res1 = 0 ;
20883 void *argp2 = 0 ;
20884 int res2 = 0 ;
20885 PyObject * obj0 = 0 ;
20886 PyObject * obj1 = 0 ;
20887 char * kwnames[] = {
20888 (char *) "self",(char *) "pen", NULL
20889 };
20890
20891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20893 if (!SWIG_IsOK(res1)) {
20894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20895 }
20896 arg1 = reinterpret_cast< wxDC * >(argp1);
20897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20898 if (!SWIG_IsOK(res2)) {
20899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20900 }
20901 if (!argp2) {
20902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20903 }
20904 arg2 = reinterpret_cast< wxPen * >(argp2);
20905 {
20906 PyThreadState* __tstate = wxPyBeginAllowThreads();
20907 (arg1)->SetPen((wxPen const &)*arg2);
20908 wxPyEndAllowThreads(__tstate);
20909 if (PyErr_Occurred()) SWIG_fail;
20910 }
20911 resultobj = SWIG_Py_Void();
20912 return resultobj;
20913 fail:
20914 return NULL;
20915 }
20916
20917
20918 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20919 PyObject *resultobj = 0;
20920 wxDC *arg1 = (wxDC *) 0 ;
20921 wxBrush *arg2 = 0 ;
20922 void *argp1 = 0 ;
20923 int res1 = 0 ;
20924 void *argp2 = 0 ;
20925 int res2 = 0 ;
20926 PyObject * obj0 = 0 ;
20927 PyObject * obj1 = 0 ;
20928 char * kwnames[] = {
20929 (char *) "self",(char *) "brush", NULL
20930 };
20931
20932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20934 if (!SWIG_IsOK(res1)) {
20935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20936 }
20937 arg1 = reinterpret_cast< wxDC * >(argp1);
20938 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20939 if (!SWIG_IsOK(res2)) {
20940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20941 }
20942 if (!argp2) {
20943 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20944 }
20945 arg2 = reinterpret_cast< wxBrush * >(argp2);
20946 {
20947 PyThreadState* __tstate = wxPyBeginAllowThreads();
20948 (arg1)->SetBrush((wxBrush const &)*arg2);
20949 wxPyEndAllowThreads(__tstate);
20950 if (PyErr_Occurred()) SWIG_fail;
20951 }
20952 resultobj = SWIG_Py_Void();
20953 return resultobj;
20954 fail:
20955 return NULL;
20956 }
20957
20958
20959 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20960 PyObject *resultobj = 0;
20961 wxDC *arg1 = (wxDC *) 0 ;
20962 wxBrush *arg2 = 0 ;
20963 void *argp1 = 0 ;
20964 int res1 = 0 ;
20965 void *argp2 = 0 ;
20966 int res2 = 0 ;
20967 PyObject * obj0 = 0 ;
20968 PyObject * obj1 = 0 ;
20969 char * kwnames[] = {
20970 (char *) "self",(char *) "brush", NULL
20971 };
20972
20973 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20974 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20975 if (!SWIG_IsOK(res1)) {
20976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20977 }
20978 arg1 = reinterpret_cast< wxDC * >(argp1);
20979 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20980 if (!SWIG_IsOK(res2)) {
20981 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20982 }
20983 if (!argp2) {
20984 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20985 }
20986 arg2 = reinterpret_cast< wxBrush * >(argp2);
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 (arg1)->SetBackground((wxBrush const &)*arg2);
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = SWIG_Py_Void();
20994 return resultobj;
20995 fail:
20996 return NULL;
20997 }
20998
20999
21000 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21001 PyObject *resultobj = 0;
21002 wxDC *arg1 = (wxDC *) 0 ;
21003 int arg2 ;
21004 void *argp1 = 0 ;
21005 int res1 = 0 ;
21006 int val2 ;
21007 int ecode2 = 0 ;
21008 PyObject * obj0 = 0 ;
21009 PyObject * obj1 = 0 ;
21010 char * kwnames[] = {
21011 (char *) "self",(char *) "mode", NULL
21012 };
21013
21014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21016 if (!SWIG_IsOK(res1)) {
21017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21018 }
21019 arg1 = reinterpret_cast< wxDC * >(argp1);
21020 ecode2 = SWIG_AsVal_int(obj1, &val2);
21021 if (!SWIG_IsOK(ecode2)) {
21022 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21023 }
21024 arg2 = static_cast< int >(val2);
21025 {
21026 PyThreadState* __tstate = wxPyBeginAllowThreads();
21027 (arg1)->SetBackgroundMode(arg2);
21028 wxPyEndAllowThreads(__tstate);
21029 if (PyErr_Occurred()) SWIG_fail;
21030 }
21031 resultobj = SWIG_Py_Void();
21032 return resultobj;
21033 fail:
21034 return NULL;
21035 }
21036
21037
21038 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21039 PyObject *resultobj = 0;
21040 wxDC *arg1 = (wxDC *) 0 ;
21041 wxPalette *arg2 = 0 ;
21042 void *argp1 = 0 ;
21043 int res1 = 0 ;
21044 void *argp2 = 0 ;
21045 int res2 = 0 ;
21046 PyObject * obj0 = 0 ;
21047 PyObject * obj1 = 0 ;
21048 char * kwnames[] = {
21049 (char *) "self",(char *) "palette", NULL
21050 };
21051
21052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21054 if (!SWIG_IsOK(res1)) {
21055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21056 }
21057 arg1 = reinterpret_cast< wxDC * >(argp1);
21058 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21059 if (!SWIG_IsOK(res2)) {
21060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21061 }
21062 if (!argp2) {
21063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21064 }
21065 arg2 = reinterpret_cast< wxPalette * >(argp2);
21066 {
21067 PyThreadState* __tstate = wxPyBeginAllowThreads();
21068 (arg1)->SetPalette((wxPalette const &)*arg2);
21069 wxPyEndAllowThreads(__tstate);
21070 if (PyErr_Occurred()) SWIG_fail;
21071 }
21072 resultobj = SWIG_Py_Void();
21073 return resultobj;
21074 fail:
21075 return NULL;
21076 }
21077
21078
21079 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21080 PyObject *resultobj = 0;
21081 wxDC *arg1 = (wxDC *) 0 ;
21082 void *argp1 = 0 ;
21083 int res1 = 0 ;
21084 PyObject *swig_obj[1] ;
21085
21086 if (!args) SWIG_fail;
21087 swig_obj[0] = args;
21088 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21089 if (!SWIG_IsOK(res1)) {
21090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21091 }
21092 arg1 = reinterpret_cast< wxDC * >(argp1);
21093 {
21094 PyThreadState* __tstate = wxPyBeginAllowThreads();
21095 (arg1)->DestroyClippingRegion();
21096 wxPyEndAllowThreads(__tstate);
21097 if (PyErr_Occurred()) SWIG_fail;
21098 }
21099 resultobj = SWIG_Py_Void();
21100 return resultobj;
21101 fail:
21102 return NULL;
21103 }
21104
21105
21106 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21107 PyObject *resultobj = 0;
21108 wxDC *arg1 = (wxDC *) 0 ;
21109 int *arg2 = (int *) 0 ;
21110 int *arg3 = (int *) 0 ;
21111 int *arg4 = (int *) 0 ;
21112 int *arg5 = (int *) 0 ;
21113 void *argp1 = 0 ;
21114 int res1 = 0 ;
21115 int temp2 ;
21116 int res2 = SWIG_TMPOBJ ;
21117 int temp3 ;
21118 int res3 = SWIG_TMPOBJ ;
21119 int temp4 ;
21120 int res4 = SWIG_TMPOBJ ;
21121 int temp5 ;
21122 int res5 = SWIG_TMPOBJ ;
21123 PyObject *swig_obj[1] ;
21124
21125 arg2 = &temp2;
21126 arg3 = &temp3;
21127 arg4 = &temp4;
21128 arg5 = &temp5;
21129 if (!args) SWIG_fail;
21130 swig_obj[0] = args;
21131 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21132 if (!SWIG_IsOK(res1)) {
21133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21134 }
21135 arg1 = reinterpret_cast< wxDC * >(argp1);
21136 {
21137 PyThreadState* __tstate = wxPyBeginAllowThreads();
21138 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21139 wxPyEndAllowThreads(__tstate);
21140 if (PyErr_Occurred()) SWIG_fail;
21141 }
21142 resultobj = SWIG_Py_Void();
21143 if (SWIG_IsTmpObj(res2)) {
21144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21145 } else {
21146 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21148 }
21149 if (SWIG_IsTmpObj(res3)) {
21150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21151 } else {
21152 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21154 }
21155 if (SWIG_IsTmpObj(res4)) {
21156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21157 } else {
21158 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21160 }
21161 if (SWIG_IsTmpObj(res5)) {
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21163 } else {
21164 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21166 }
21167 return resultobj;
21168 fail:
21169 return NULL;
21170 }
21171
21172
21173 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21174 PyObject *resultobj = 0;
21175 wxDC *arg1 = (wxDC *) 0 ;
21176 wxRect result;
21177 void *argp1 = 0 ;
21178 int res1 = 0 ;
21179 PyObject *swig_obj[1] ;
21180
21181 if (!args) SWIG_fail;
21182 swig_obj[0] = args;
21183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21184 if (!SWIG_IsOK(res1)) {
21185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21186 }
21187 arg1 = reinterpret_cast< wxDC * >(argp1);
21188 {
21189 PyThreadState* __tstate = wxPyBeginAllowThreads();
21190 result = wxDC_GetClippingRect(arg1);
21191 wxPyEndAllowThreads(__tstate);
21192 if (PyErr_Occurred()) SWIG_fail;
21193 }
21194 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21195 return resultobj;
21196 fail:
21197 return NULL;
21198 }
21199
21200
21201 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21202 PyObject *resultobj = 0;
21203 wxDC *arg1 = (wxDC *) 0 ;
21204 int result;
21205 void *argp1 = 0 ;
21206 int res1 = 0 ;
21207 PyObject *swig_obj[1] ;
21208
21209 if (!args) SWIG_fail;
21210 swig_obj[0] = args;
21211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21212 if (!SWIG_IsOK(res1)) {
21213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21214 }
21215 arg1 = reinterpret_cast< wxDC * >(argp1);
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 result = (int)((wxDC const *)arg1)->GetCharHeight();
21219 wxPyEndAllowThreads(__tstate);
21220 if (PyErr_Occurred()) SWIG_fail;
21221 }
21222 resultobj = SWIG_From_int(static_cast< int >(result));
21223 return resultobj;
21224 fail:
21225 return NULL;
21226 }
21227
21228
21229 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21230 PyObject *resultobj = 0;
21231 wxDC *arg1 = (wxDC *) 0 ;
21232 int result;
21233 void *argp1 = 0 ;
21234 int res1 = 0 ;
21235 PyObject *swig_obj[1] ;
21236
21237 if (!args) SWIG_fail;
21238 swig_obj[0] = args;
21239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21242 }
21243 arg1 = reinterpret_cast< wxDC * >(argp1);
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 result = (int)((wxDC const *)arg1)->GetCharWidth();
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 resultobj = SWIG_From_int(static_cast< int >(result));
21251 return resultobj;
21252 fail:
21253 return NULL;
21254 }
21255
21256
21257 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21258 PyObject *resultobj = 0;
21259 wxDC *arg1 = (wxDC *) 0 ;
21260 wxString *arg2 = 0 ;
21261 int *arg3 = (int *) 0 ;
21262 int *arg4 = (int *) 0 ;
21263 void *argp1 = 0 ;
21264 int res1 = 0 ;
21265 bool temp2 = false ;
21266 int temp3 ;
21267 int res3 = SWIG_TMPOBJ ;
21268 int temp4 ;
21269 int res4 = SWIG_TMPOBJ ;
21270 PyObject * obj0 = 0 ;
21271 PyObject * obj1 = 0 ;
21272 char * kwnames[] = {
21273 (char *) "self",(char *) "string", NULL
21274 };
21275
21276 arg3 = &temp3;
21277 arg4 = &temp4;
21278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21280 if (!SWIG_IsOK(res1)) {
21281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21282 }
21283 arg1 = reinterpret_cast< wxDC * >(argp1);
21284 {
21285 arg2 = wxString_in_helper(obj1);
21286 if (arg2 == NULL) SWIG_fail;
21287 temp2 = true;
21288 }
21289 {
21290 PyThreadState* __tstate = wxPyBeginAllowThreads();
21291 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21292 wxPyEndAllowThreads(__tstate);
21293 if (PyErr_Occurred()) SWIG_fail;
21294 }
21295 resultobj = SWIG_Py_Void();
21296 if (SWIG_IsTmpObj(res3)) {
21297 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21298 } else {
21299 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21300 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21301 }
21302 if (SWIG_IsTmpObj(res4)) {
21303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21304 } else {
21305 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21307 }
21308 {
21309 if (temp2)
21310 delete arg2;
21311 }
21312 return resultobj;
21313 fail:
21314 {
21315 if (temp2)
21316 delete arg2;
21317 }
21318 return NULL;
21319 }
21320
21321
21322 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21323 PyObject *resultobj = 0;
21324 wxDC *arg1 = (wxDC *) 0 ;
21325 wxString *arg2 = 0 ;
21326 int *arg3 = (int *) 0 ;
21327 int *arg4 = (int *) 0 ;
21328 int *arg5 = (int *) 0 ;
21329 int *arg6 = (int *) 0 ;
21330 wxFont *arg7 = (wxFont *) NULL ;
21331 void *argp1 = 0 ;
21332 int res1 = 0 ;
21333 bool temp2 = false ;
21334 int temp3 ;
21335 int res3 = SWIG_TMPOBJ ;
21336 int temp4 ;
21337 int res4 = SWIG_TMPOBJ ;
21338 int temp5 ;
21339 int res5 = SWIG_TMPOBJ ;
21340 int temp6 ;
21341 int res6 = SWIG_TMPOBJ ;
21342 void *argp7 = 0 ;
21343 int res7 = 0 ;
21344 PyObject * obj0 = 0 ;
21345 PyObject * obj1 = 0 ;
21346 PyObject * obj2 = 0 ;
21347 char * kwnames[] = {
21348 (char *) "self",(char *) "string",(char *) "font", NULL
21349 };
21350
21351 arg3 = &temp3;
21352 arg4 = &temp4;
21353 arg5 = &temp5;
21354 arg6 = &temp6;
21355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21357 if (!SWIG_IsOK(res1)) {
21358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21359 }
21360 arg1 = reinterpret_cast< wxDC * >(argp1);
21361 {
21362 arg2 = wxString_in_helper(obj1);
21363 if (arg2 == NULL) SWIG_fail;
21364 temp2 = true;
21365 }
21366 if (obj2) {
21367 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21368 if (!SWIG_IsOK(res7)) {
21369 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21370 }
21371 arg7 = reinterpret_cast< wxFont * >(argp7);
21372 }
21373 {
21374 PyThreadState* __tstate = wxPyBeginAllowThreads();
21375 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21376 wxPyEndAllowThreads(__tstate);
21377 if (PyErr_Occurred()) SWIG_fail;
21378 }
21379 resultobj = SWIG_Py_Void();
21380 if (SWIG_IsTmpObj(res3)) {
21381 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21382 } else {
21383 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21384 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21385 }
21386 if (SWIG_IsTmpObj(res4)) {
21387 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21388 } else {
21389 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21390 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21391 }
21392 if (SWIG_IsTmpObj(res5)) {
21393 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21394 } else {
21395 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21397 }
21398 if (SWIG_IsTmpObj(res6)) {
21399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21400 } else {
21401 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21403 }
21404 {
21405 if (temp2)
21406 delete arg2;
21407 }
21408 return resultobj;
21409 fail:
21410 {
21411 if (temp2)
21412 delete arg2;
21413 }
21414 return NULL;
21415 }
21416
21417
21418 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21419 PyObject *resultobj = 0;
21420 wxDC *arg1 = (wxDC *) 0 ;
21421 wxString *arg2 = 0 ;
21422 int *arg3 = (int *) 0 ;
21423 int *arg4 = (int *) 0 ;
21424 int *arg5 = (int *) 0 ;
21425 wxFont *arg6 = (wxFont *) NULL ;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 bool temp2 = false ;
21429 int temp3 ;
21430 int res3 = SWIG_TMPOBJ ;
21431 int temp4 ;
21432 int res4 = SWIG_TMPOBJ ;
21433 int temp5 ;
21434 int res5 = SWIG_TMPOBJ ;
21435 void *argp6 = 0 ;
21436 int res6 = 0 ;
21437 PyObject * obj0 = 0 ;
21438 PyObject * obj1 = 0 ;
21439 PyObject * obj2 = 0 ;
21440 char * kwnames[] = {
21441 (char *) "self",(char *) "text",(char *) "font", NULL
21442 };
21443
21444 arg3 = &temp3;
21445 arg4 = &temp4;
21446 arg5 = &temp5;
21447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21449 if (!SWIG_IsOK(res1)) {
21450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21451 }
21452 arg1 = reinterpret_cast< wxDC * >(argp1);
21453 {
21454 arg2 = wxString_in_helper(obj1);
21455 if (arg2 == NULL) SWIG_fail;
21456 temp2 = true;
21457 }
21458 if (obj2) {
21459 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21460 if (!SWIG_IsOK(res6)) {
21461 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21462 }
21463 arg6 = reinterpret_cast< wxFont * >(argp6);
21464 }
21465 {
21466 PyThreadState* __tstate = wxPyBeginAllowThreads();
21467 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21468 wxPyEndAllowThreads(__tstate);
21469 if (PyErr_Occurred()) SWIG_fail;
21470 }
21471 resultobj = SWIG_Py_Void();
21472 if (SWIG_IsTmpObj(res3)) {
21473 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21474 } else {
21475 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21476 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21477 }
21478 if (SWIG_IsTmpObj(res4)) {
21479 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21480 } else {
21481 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21482 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21483 }
21484 if (SWIG_IsTmpObj(res5)) {
21485 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21486 } else {
21487 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21489 }
21490 {
21491 if (temp2)
21492 delete arg2;
21493 }
21494 return resultobj;
21495 fail:
21496 {
21497 if (temp2)
21498 delete arg2;
21499 }
21500 return NULL;
21501 }
21502
21503
21504 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21505 PyObject *resultobj = 0;
21506 wxDC *arg1 = (wxDC *) 0 ;
21507 wxString *arg2 = 0 ;
21508 wxArrayInt result;
21509 void *argp1 = 0 ;
21510 int res1 = 0 ;
21511 bool temp2 = false ;
21512 PyObject * obj0 = 0 ;
21513 PyObject * obj1 = 0 ;
21514 char * kwnames[] = {
21515 (char *) "self",(char *) "text", NULL
21516 };
21517
21518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21520 if (!SWIG_IsOK(res1)) {
21521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21522 }
21523 arg1 = reinterpret_cast< wxDC * >(argp1);
21524 {
21525 arg2 = wxString_in_helper(obj1);
21526 if (arg2 == NULL) SWIG_fail;
21527 temp2 = true;
21528 }
21529 {
21530 PyThreadState* __tstate = wxPyBeginAllowThreads();
21531 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21532 wxPyEndAllowThreads(__tstate);
21533 if (PyErr_Occurred()) SWIG_fail;
21534 }
21535 {
21536 resultobj = wxArrayInt2PyList_helper(result);
21537 }
21538 {
21539 if (temp2)
21540 delete arg2;
21541 }
21542 return resultobj;
21543 fail:
21544 {
21545 if (temp2)
21546 delete arg2;
21547 }
21548 return NULL;
21549 }
21550
21551
21552 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21553 PyObject *resultobj = 0;
21554 wxDC *arg1 = (wxDC *) 0 ;
21555 wxSize result;
21556 void *argp1 = 0 ;
21557 int res1 = 0 ;
21558 PyObject *swig_obj[1] ;
21559
21560 if (!args) SWIG_fail;
21561 swig_obj[0] = args;
21562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21563 if (!SWIG_IsOK(res1)) {
21564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21565 }
21566 arg1 = reinterpret_cast< wxDC * >(argp1);
21567 {
21568 PyThreadState* __tstate = wxPyBeginAllowThreads();
21569 result = (arg1)->GetSize();
21570 wxPyEndAllowThreads(__tstate);
21571 if (PyErr_Occurred()) SWIG_fail;
21572 }
21573 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21574 return resultobj;
21575 fail:
21576 return NULL;
21577 }
21578
21579
21580 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21581 PyObject *resultobj = 0;
21582 wxDC *arg1 = (wxDC *) 0 ;
21583 int *arg2 = (int *) 0 ;
21584 int *arg3 = (int *) 0 ;
21585 void *argp1 = 0 ;
21586 int res1 = 0 ;
21587 int temp2 ;
21588 int res2 = SWIG_TMPOBJ ;
21589 int temp3 ;
21590 int res3 = SWIG_TMPOBJ ;
21591 PyObject *swig_obj[1] ;
21592
21593 arg2 = &temp2;
21594 arg3 = &temp3;
21595 if (!args) SWIG_fail;
21596 swig_obj[0] = args;
21597 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21598 if (!SWIG_IsOK(res1)) {
21599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21600 }
21601 arg1 = reinterpret_cast< wxDC * >(argp1);
21602 {
21603 PyThreadState* __tstate = wxPyBeginAllowThreads();
21604 (arg1)->GetSize(arg2,arg3);
21605 wxPyEndAllowThreads(__tstate);
21606 if (PyErr_Occurred()) SWIG_fail;
21607 }
21608 resultobj = SWIG_Py_Void();
21609 if (SWIG_IsTmpObj(res2)) {
21610 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21611 } else {
21612 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21613 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21614 }
21615 if (SWIG_IsTmpObj(res3)) {
21616 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21617 } else {
21618 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21619 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21620 }
21621 return resultobj;
21622 fail:
21623 return NULL;
21624 }
21625
21626
21627 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21628 PyObject *resultobj = 0;
21629 wxDC *arg1 = (wxDC *) 0 ;
21630 wxSize result;
21631 void *argp1 = 0 ;
21632 int res1 = 0 ;
21633 PyObject *swig_obj[1] ;
21634
21635 if (!args) SWIG_fail;
21636 swig_obj[0] = args;
21637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21638 if (!SWIG_IsOK(res1)) {
21639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21640 }
21641 arg1 = reinterpret_cast< wxDC * >(argp1);
21642 {
21643 PyThreadState* __tstate = wxPyBeginAllowThreads();
21644 result = ((wxDC const *)arg1)->GetSizeMM();
21645 wxPyEndAllowThreads(__tstate);
21646 if (PyErr_Occurred()) SWIG_fail;
21647 }
21648 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21649 return resultobj;
21650 fail:
21651 return NULL;
21652 }
21653
21654
21655 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21656 PyObject *resultobj = 0;
21657 wxDC *arg1 = (wxDC *) 0 ;
21658 int *arg2 = (int *) 0 ;
21659 int *arg3 = (int *) 0 ;
21660 void *argp1 = 0 ;
21661 int res1 = 0 ;
21662 int temp2 ;
21663 int res2 = SWIG_TMPOBJ ;
21664 int temp3 ;
21665 int res3 = SWIG_TMPOBJ ;
21666 PyObject *swig_obj[1] ;
21667
21668 arg2 = &temp2;
21669 arg3 = &temp3;
21670 if (!args) SWIG_fail;
21671 swig_obj[0] = args;
21672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21675 }
21676 arg1 = reinterpret_cast< wxDC * >(argp1);
21677 {
21678 PyThreadState* __tstate = wxPyBeginAllowThreads();
21679 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21680 wxPyEndAllowThreads(__tstate);
21681 if (PyErr_Occurred()) SWIG_fail;
21682 }
21683 resultobj = SWIG_Py_Void();
21684 if (SWIG_IsTmpObj(res2)) {
21685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21686 } else {
21687 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21689 }
21690 if (SWIG_IsTmpObj(res3)) {
21691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21692 } else {
21693 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21695 }
21696 return resultobj;
21697 fail:
21698 return NULL;
21699 }
21700
21701
21702 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21703 PyObject *resultobj = 0;
21704 wxDC *arg1 = (wxDC *) 0 ;
21705 int arg2 ;
21706 int result;
21707 void *argp1 = 0 ;
21708 int res1 = 0 ;
21709 int val2 ;
21710 int ecode2 = 0 ;
21711 PyObject * obj0 = 0 ;
21712 PyObject * obj1 = 0 ;
21713 char * kwnames[] = {
21714 (char *) "self",(char *) "x", NULL
21715 };
21716
21717 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21718 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21719 if (!SWIG_IsOK(res1)) {
21720 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21721 }
21722 arg1 = reinterpret_cast< wxDC * >(argp1);
21723 ecode2 = SWIG_AsVal_int(obj1, &val2);
21724 if (!SWIG_IsOK(ecode2)) {
21725 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21726 }
21727 arg2 = static_cast< int >(val2);
21728 {
21729 PyThreadState* __tstate = wxPyBeginAllowThreads();
21730 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21731 wxPyEndAllowThreads(__tstate);
21732 if (PyErr_Occurred()) SWIG_fail;
21733 }
21734 resultobj = SWIG_From_int(static_cast< int >(result));
21735 return resultobj;
21736 fail:
21737 return NULL;
21738 }
21739
21740
21741 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21742 PyObject *resultobj = 0;
21743 wxDC *arg1 = (wxDC *) 0 ;
21744 int arg2 ;
21745 int result;
21746 void *argp1 = 0 ;
21747 int res1 = 0 ;
21748 int val2 ;
21749 int ecode2 = 0 ;
21750 PyObject * obj0 = 0 ;
21751 PyObject * obj1 = 0 ;
21752 char * kwnames[] = {
21753 (char *) "self",(char *) "y", NULL
21754 };
21755
21756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21758 if (!SWIG_IsOK(res1)) {
21759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21760 }
21761 arg1 = reinterpret_cast< wxDC * >(argp1);
21762 ecode2 = SWIG_AsVal_int(obj1, &val2);
21763 if (!SWIG_IsOK(ecode2)) {
21764 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21765 }
21766 arg2 = static_cast< int >(val2);
21767 {
21768 PyThreadState* __tstate = wxPyBeginAllowThreads();
21769 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21770 wxPyEndAllowThreads(__tstate);
21771 if (PyErr_Occurred()) SWIG_fail;
21772 }
21773 resultobj = SWIG_From_int(static_cast< int >(result));
21774 return resultobj;
21775 fail:
21776 return NULL;
21777 }
21778
21779
21780 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21781 PyObject *resultobj = 0;
21782 wxDC *arg1 = (wxDC *) 0 ;
21783 int arg2 ;
21784 int result;
21785 void *argp1 = 0 ;
21786 int res1 = 0 ;
21787 int val2 ;
21788 int ecode2 = 0 ;
21789 PyObject * obj0 = 0 ;
21790 PyObject * obj1 = 0 ;
21791 char * kwnames[] = {
21792 (char *) "self",(char *) "x", NULL
21793 };
21794
21795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21796 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21797 if (!SWIG_IsOK(res1)) {
21798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21799 }
21800 arg1 = reinterpret_cast< wxDC * >(argp1);
21801 ecode2 = SWIG_AsVal_int(obj1, &val2);
21802 if (!SWIG_IsOK(ecode2)) {
21803 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21804 }
21805 arg2 = static_cast< int >(val2);
21806 {
21807 PyThreadState* __tstate = wxPyBeginAllowThreads();
21808 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21809 wxPyEndAllowThreads(__tstate);
21810 if (PyErr_Occurred()) SWIG_fail;
21811 }
21812 resultobj = SWIG_From_int(static_cast< int >(result));
21813 return resultobj;
21814 fail:
21815 return NULL;
21816 }
21817
21818
21819 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21820 PyObject *resultobj = 0;
21821 wxDC *arg1 = (wxDC *) 0 ;
21822 int arg2 ;
21823 int result;
21824 void *argp1 = 0 ;
21825 int res1 = 0 ;
21826 int val2 ;
21827 int ecode2 = 0 ;
21828 PyObject * obj0 = 0 ;
21829 PyObject * obj1 = 0 ;
21830 char * kwnames[] = {
21831 (char *) "self",(char *) "y", NULL
21832 };
21833
21834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21836 if (!SWIG_IsOK(res1)) {
21837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21838 }
21839 arg1 = reinterpret_cast< wxDC * >(argp1);
21840 ecode2 = SWIG_AsVal_int(obj1, &val2);
21841 if (!SWIG_IsOK(ecode2)) {
21842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21843 }
21844 arg2 = static_cast< int >(val2);
21845 {
21846 PyThreadState* __tstate = wxPyBeginAllowThreads();
21847 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21848 wxPyEndAllowThreads(__tstate);
21849 if (PyErr_Occurred()) SWIG_fail;
21850 }
21851 resultobj = SWIG_From_int(static_cast< int >(result));
21852 return resultobj;
21853 fail:
21854 return NULL;
21855 }
21856
21857
21858 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21859 PyObject *resultobj = 0;
21860 wxDC *arg1 = (wxDC *) 0 ;
21861 int arg2 ;
21862 int result;
21863 void *argp1 = 0 ;
21864 int res1 = 0 ;
21865 int val2 ;
21866 int ecode2 = 0 ;
21867 PyObject * obj0 = 0 ;
21868 PyObject * obj1 = 0 ;
21869 char * kwnames[] = {
21870 (char *) "self",(char *) "x", NULL
21871 };
21872
21873 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21874 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21877 }
21878 arg1 = reinterpret_cast< wxDC * >(argp1);
21879 ecode2 = SWIG_AsVal_int(obj1, &val2);
21880 if (!SWIG_IsOK(ecode2)) {
21881 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21882 }
21883 arg2 = static_cast< int >(val2);
21884 {
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_From_int(static_cast< int >(result));
21891 return resultobj;
21892 fail:
21893 return NULL;
21894 }
21895
21896
21897 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21898 PyObject *resultobj = 0;
21899 wxDC *arg1 = (wxDC *) 0 ;
21900 int arg2 ;
21901 int result;
21902 void *argp1 = 0 ;
21903 int res1 = 0 ;
21904 int val2 ;
21905 int ecode2 = 0 ;
21906 PyObject * obj0 = 0 ;
21907 PyObject * obj1 = 0 ;
21908 char * kwnames[] = {
21909 (char *) "self",(char *) "y", NULL
21910 };
21911
21912 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21913 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21914 if (!SWIG_IsOK(res1)) {
21915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21916 }
21917 arg1 = reinterpret_cast< wxDC * >(argp1);
21918 ecode2 = SWIG_AsVal_int(obj1, &val2);
21919 if (!SWIG_IsOK(ecode2)) {
21920 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21921 }
21922 arg2 = static_cast< int >(val2);
21923 {
21924 PyThreadState* __tstate = wxPyBeginAllowThreads();
21925 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21926 wxPyEndAllowThreads(__tstate);
21927 if (PyErr_Occurred()) SWIG_fail;
21928 }
21929 resultobj = SWIG_From_int(static_cast< int >(result));
21930 return resultobj;
21931 fail:
21932 return NULL;
21933 }
21934
21935
21936 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21937 PyObject *resultobj = 0;
21938 wxDC *arg1 = (wxDC *) 0 ;
21939 int arg2 ;
21940 int result;
21941 void *argp1 = 0 ;
21942 int res1 = 0 ;
21943 int val2 ;
21944 int ecode2 = 0 ;
21945 PyObject * obj0 = 0 ;
21946 PyObject * obj1 = 0 ;
21947 char * kwnames[] = {
21948 (char *) "self",(char *) "x", NULL
21949 };
21950
21951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21953 if (!SWIG_IsOK(res1)) {
21954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21955 }
21956 arg1 = reinterpret_cast< wxDC * >(argp1);
21957 ecode2 = SWIG_AsVal_int(obj1, &val2);
21958 if (!SWIG_IsOK(ecode2)) {
21959 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21960 }
21961 arg2 = static_cast< int >(val2);
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 resultobj = SWIG_From_int(static_cast< int >(result));
21969 return resultobj;
21970 fail:
21971 return NULL;
21972 }
21973
21974
21975 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21976 PyObject *resultobj = 0;
21977 wxDC *arg1 = (wxDC *) 0 ;
21978 int arg2 ;
21979 int result;
21980 void *argp1 = 0 ;
21981 int res1 = 0 ;
21982 int val2 ;
21983 int ecode2 = 0 ;
21984 PyObject * obj0 = 0 ;
21985 PyObject * obj1 = 0 ;
21986 char * kwnames[] = {
21987 (char *) "self",(char *) "y", NULL
21988 };
21989
21990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21992 if (!SWIG_IsOK(res1)) {
21993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21994 }
21995 arg1 = reinterpret_cast< wxDC * >(argp1);
21996 ecode2 = SWIG_AsVal_int(obj1, &val2);
21997 if (!SWIG_IsOK(ecode2)) {
21998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
21999 }
22000 arg2 = static_cast< int >(val2);
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 resultobj = SWIG_From_int(static_cast< int >(result));
22008 return resultobj;
22009 fail:
22010 return NULL;
22011 }
22012
22013
22014 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22015 PyObject *resultobj = 0;
22016 wxDC *arg1 = (wxDC *) 0 ;
22017 bool result;
22018 void *argp1 = 0 ;
22019 int res1 = 0 ;
22020 PyObject *swig_obj[1] ;
22021
22022 if (!args) SWIG_fail;
22023 swig_obj[0] = args;
22024 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22025 if (!SWIG_IsOK(res1)) {
22026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22027 }
22028 arg1 = reinterpret_cast< wxDC * >(argp1);
22029 {
22030 PyThreadState* __tstate = wxPyBeginAllowThreads();
22031 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22032 wxPyEndAllowThreads(__tstate);
22033 if (PyErr_Occurred()) SWIG_fail;
22034 }
22035 {
22036 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22037 }
22038 return resultobj;
22039 fail:
22040 return NULL;
22041 }
22042
22043
22044 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22045 PyObject *resultobj = 0;
22046 wxDC *arg1 = (wxDC *) 0 ;
22047 bool result;
22048 void *argp1 = 0 ;
22049 int res1 = 0 ;
22050 PyObject *swig_obj[1] ;
22051
22052 if (!args) SWIG_fail;
22053 swig_obj[0] = args;
22054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22055 if (!SWIG_IsOK(res1)) {
22056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22057 }
22058 arg1 = reinterpret_cast< wxDC * >(argp1);
22059 {
22060 PyThreadState* __tstate = wxPyBeginAllowThreads();
22061 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22062 wxPyEndAllowThreads(__tstate);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 }
22065 {
22066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22067 }
22068 return resultobj;
22069 fail:
22070 return NULL;
22071 }
22072
22073
22074 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22075 PyObject *resultobj = 0;
22076 wxDC *arg1 = (wxDC *) 0 ;
22077 int result;
22078 void *argp1 = 0 ;
22079 int res1 = 0 ;
22080 PyObject *swig_obj[1] ;
22081
22082 if (!args) SWIG_fail;
22083 swig_obj[0] = args;
22084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22085 if (!SWIG_IsOK(res1)) {
22086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22087 }
22088 arg1 = reinterpret_cast< wxDC * >(argp1);
22089 {
22090 PyThreadState* __tstate = wxPyBeginAllowThreads();
22091 result = (int)((wxDC const *)arg1)->GetDepth();
22092 wxPyEndAllowThreads(__tstate);
22093 if (PyErr_Occurred()) SWIG_fail;
22094 }
22095 resultobj = SWIG_From_int(static_cast< int >(result));
22096 return resultobj;
22097 fail:
22098 return NULL;
22099 }
22100
22101
22102 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22103 PyObject *resultobj = 0;
22104 wxDC *arg1 = (wxDC *) 0 ;
22105 wxSize result;
22106 void *argp1 = 0 ;
22107 int res1 = 0 ;
22108 PyObject *swig_obj[1] ;
22109
22110 if (!args) SWIG_fail;
22111 swig_obj[0] = args;
22112 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22113 if (!SWIG_IsOK(res1)) {
22114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22115 }
22116 arg1 = reinterpret_cast< wxDC * >(argp1);
22117 {
22118 PyThreadState* __tstate = wxPyBeginAllowThreads();
22119 result = ((wxDC const *)arg1)->GetPPI();
22120 wxPyEndAllowThreads(__tstate);
22121 if (PyErr_Occurred()) SWIG_fail;
22122 }
22123 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22124 return resultobj;
22125 fail:
22126 return NULL;
22127 }
22128
22129
22130 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22131 PyObject *resultobj = 0;
22132 wxDC *arg1 = (wxDC *) 0 ;
22133 bool result;
22134 void *argp1 = 0 ;
22135 int res1 = 0 ;
22136 PyObject *swig_obj[1] ;
22137
22138 if (!args) SWIG_fail;
22139 swig_obj[0] = args;
22140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22141 if (!SWIG_IsOK(res1)) {
22142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22143 }
22144 arg1 = reinterpret_cast< wxDC * >(argp1);
22145 {
22146 PyThreadState* __tstate = wxPyBeginAllowThreads();
22147 result = (bool)((wxDC const *)arg1)->IsOk();
22148 wxPyEndAllowThreads(__tstate);
22149 if (PyErr_Occurred()) SWIG_fail;
22150 }
22151 {
22152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22153 }
22154 return resultobj;
22155 fail:
22156 return NULL;
22157 }
22158
22159
22160 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22161 PyObject *resultobj = 0;
22162 wxDC *arg1 = (wxDC *) 0 ;
22163 int result;
22164 void *argp1 = 0 ;
22165 int res1 = 0 ;
22166 PyObject *swig_obj[1] ;
22167
22168 if (!args) SWIG_fail;
22169 swig_obj[0] = args;
22170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22171 if (!SWIG_IsOK(res1)) {
22172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22173 }
22174 arg1 = reinterpret_cast< wxDC * >(argp1);
22175 {
22176 PyThreadState* __tstate = wxPyBeginAllowThreads();
22177 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22178 wxPyEndAllowThreads(__tstate);
22179 if (PyErr_Occurred()) SWIG_fail;
22180 }
22181 resultobj = SWIG_From_int(static_cast< int >(result));
22182 return resultobj;
22183 fail:
22184 return NULL;
22185 }
22186
22187
22188 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22189 PyObject *resultobj = 0;
22190 wxDC *arg1 = (wxDC *) 0 ;
22191 wxBrush *result = 0 ;
22192 void *argp1 = 0 ;
22193 int res1 = 0 ;
22194 PyObject *swig_obj[1] ;
22195
22196 if (!args) SWIG_fail;
22197 swig_obj[0] = args;
22198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22199 if (!SWIG_IsOK(res1)) {
22200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22201 }
22202 arg1 = reinterpret_cast< wxDC * >(argp1);
22203 {
22204 PyThreadState* __tstate = wxPyBeginAllowThreads();
22205 {
22206 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22207 result = (wxBrush *) &_result_ref;
22208 }
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 {
22213 wxBrush* resultptr = new wxBrush(*result);
22214 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22215 }
22216 return resultobj;
22217 fail:
22218 return NULL;
22219 }
22220
22221
22222 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22223 PyObject *resultobj = 0;
22224 wxDC *arg1 = (wxDC *) 0 ;
22225 wxBrush *result = 0 ;
22226 void *argp1 = 0 ;
22227 int res1 = 0 ;
22228 PyObject *swig_obj[1] ;
22229
22230 if (!args) SWIG_fail;
22231 swig_obj[0] = args;
22232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22233 if (!SWIG_IsOK(res1)) {
22234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22235 }
22236 arg1 = reinterpret_cast< wxDC * >(argp1);
22237 {
22238 PyThreadState* __tstate = wxPyBeginAllowThreads();
22239 {
22240 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22241 result = (wxBrush *) &_result_ref;
22242 }
22243 wxPyEndAllowThreads(__tstate);
22244 if (PyErr_Occurred()) SWIG_fail;
22245 }
22246 {
22247 wxBrush* resultptr = new wxBrush(*result);
22248 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22249 }
22250 return resultobj;
22251 fail:
22252 return NULL;
22253 }
22254
22255
22256 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22257 PyObject *resultobj = 0;
22258 wxDC *arg1 = (wxDC *) 0 ;
22259 wxFont *result = 0 ;
22260 void *argp1 = 0 ;
22261 int res1 = 0 ;
22262 PyObject *swig_obj[1] ;
22263
22264 if (!args) SWIG_fail;
22265 swig_obj[0] = args;
22266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22267 if (!SWIG_IsOK(res1)) {
22268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22269 }
22270 arg1 = reinterpret_cast< wxDC * >(argp1);
22271 {
22272 PyThreadState* __tstate = wxPyBeginAllowThreads();
22273 {
22274 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22275 result = (wxFont *) &_result_ref;
22276 }
22277 wxPyEndAllowThreads(__tstate);
22278 if (PyErr_Occurred()) SWIG_fail;
22279 }
22280 {
22281 wxFont* resultptr = new wxFont(*result);
22282 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22283 }
22284 return resultobj;
22285 fail:
22286 return NULL;
22287 }
22288
22289
22290 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22291 PyObject *resultobj = 0;
22292 wxDC *arg1 = (wxDC *) 0 ;
22293 wxPen *result = 0 ;
22294 void *argp1 = 0 ;
22295 int res1 = 0 ;
22296 PyObject *swig_obj[1] ;
22297
22298 if (!args) SWIG_fail;
22299 swig_obj[0] = args;
22300 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22301 if (!SWIG_IsOK(res1)) {
22302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22303 }
22304 arg1 = reinterpret_cast< wxDC * >(argp1);
22305 {
22306 PyThreadState* __tstate = wxPyBeginAllowThreads();
22307 {
22308 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22309 result = (wxPen *) &_result_ref;
22310 }
22311 wxPyEndAllowThreads(__tstate);
22312 if (PyErr_Occurred()) SWIG_fail;
22313 }
22314 {
22315 wxPen* resultptr = new wxPen(*result);
22316 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22317 }
22318 return resultobj;
22319 fail:
22320 return NULL;
22321 }
22322
22323
22324 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22325 PyObject *resultobj = 0;
22326 wxDC *arg1 = (wxDC *) 0 ;
22327 wxColour *result = 0 ;
22328 void *argp1 = 0 ;
22329 int res1 = 0 ;
22330 PyObject *swig_obj[1] ;
22331
22332 if (!args) SWIG_fail;
22333 swig_obj[0] = args;
22334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22335 if (!SWIG_IsOK(res1)) {
22336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22337 }
22338 arg1 = reinterpret_cast< wxDC * >(argp1);
22339 {
22340 PyThreadState* __tstate = wxPyBeginAllowThreads();
22341 {
22342 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22343 result = (wxColour *) &_result_ref;
22344 }
22345 wxPyEndAllowThreads(__tstate);
22346 if (PyErr_Occurred()) SWIG_fail;
22347 }
22348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22349 return resultobj;
22350 fail:
22351 return NULL;
22352 }
22353
22354
22355 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22356 PyObject *resultobj = 0;
22357 wxDC *arg1 = (wxDC *) 0 ;
22358 wxColour *result = 0 ;
22359 void *argp1 = 0 ;
22360 int res1 = 0 ;
22361 PyObject *swig_obj[1] ;
22362
22363 if (!args) SWIG_fail;
22364 swig_obj[0] = args;
22365 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22366 if (!SWIG_IsOK(res1)) {
22367 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22368 }
22369 arg1 = reinterpret_cast< wxDC * >(argp1);
22370 {
22371 PyThreadState* __tstate = wxPyBeginAllowThreads();
22372 {
22373 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22374 result = (wxColour *) &_result_ref;
22375 }
22376 wxPyEndAllowThreads(__tstate);
22377 if (PyErr_Occurred()) SWIG_fail;
22378 }
22379 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22380 return resultobj;
22381 fail:
22382 return NULL;
22383 }
22384
22385
22386 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22387 PyObject *resultobj = 0;
22388 wxDC *arg1 = (wxDC *) 0 ;
22389 wxColour *arg2 = 0 ;
22390 void *argp1 = 0 ;
22391 int res1 = 0 ;
22392 wxColour temp2 ;
22393 PyObject * obj0 = 0 ;
22394 PyObject * obj1 = 0 ;
22395 char * kwnames[] = {
22396 (char *) "self",(char *) "colour", NULL
22397 };
22398
22399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22400 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22401 if (!SWIG_IsOK(res1)) {
22402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22403 }
22404 arg1 = reinterpret_cast< wxDC * >(argp1);
22405 {
22406 arg2 = &temp2;
22407 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22408 }
22409 {
22410 PyThreadState* __tstate = wxPyBeginAllowThreads();
22411 (arg1)->SetTextForeground((wxColour const &)*arg2);
22412 wxPyEndAllowThreads(__tstate);
22413 if (PyErr_Occurred()) SWIG_fail;
22414 }
22415 resultobj = SWIG_Py_Void();
22416 return resultobj;
22417 fail:
22418 return NULL;
22419 }
22420
22421
22422 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22423 PyObject *resultobj = 0;
22424 wxDC *arg1 = (wxDC *) 0 ;
22425 wxColour *arg2 = 0 ;
22426 void *argp1 = 0 ;
22427 int res1 = 0 ;
22428 wxColour temp2 ;
22429 PyObject * obj0 = 0 ;
22430 PyObject * obj1 = 0 ;
22431 char * kwnames[] = {
22432 (char *) "self",(char *) "colour", NULL
22433 };
22434
22435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22436 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22437 if (!SWIG_IsOK(res1)) {
22438 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22439 }
22440 arg1 = reinterpret_cast< wxDC * >(argp1);
22441 {
22442 arg2 = &temp2;
22443 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22444 }
22445 {
22446 PyThreadState* __tstate = wxPyBeginAllowThreads();
22447 (arg1)->SetTextBackground((wxColour const &)*arg2);
22448 wxPyEndAllowThreads(__tstate);
22449 if (PyErr_Occurred()) SWIG_fail;
22450 }
22451 resultobj = SWIG_Py_Void();
22452 return resultobj;
22453 fail:
22454 return NULL;
22455 }
22456
22457
22458 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22459 PyObject *resultobj = 0;
22460 wxDC *arg1 = (wxDC *) 0 ;
22461 int result;
22462 void *argp1 = 0 ;
22463 int res1 = 0 ;
22464 PyObject *swig_obj[1] ;
22465
22466 if (!args) SWIG_fail;
22467 swig_obj[0] = args;
22468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22469 if (!SWIG_IsOK(res1)) {
22470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22471 }
22472 arg1 = reinterpret_cast< wxDC * >(argp1);
22473 {
22474 PyThreadState* __tstate = wxPyBeginAllowThreads();
22475 result = (int)((wxDC const *)arg1)->GetMapMode();
22476 wxPyEndAllowThreads(__tstate);
22477 if (PyErr_Occurred()) SWIG_fail;
22478 }
22479 resultobj = SWIG_From_int(static_cast< int >(result));
22480 return resultobj;
22481 fail:
22482 return NULL;
22483 }
22484
22485
22486 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22487 PyObject *resultobj = 0;
22488 wxDC *arg1 = (wxDC *) 0 ;
22489 int arg2 ;
22490 void *argp1 = 0 ;
22491 int res1 = 0 ;
22492 int val2 ;
22493 int ecode2 = 0 ;
22494 PyObject * obj0 = 0 ;
22495 PyObject * obj1 = 0 ;
22496 char * kwnames[] = {
22497 (char *) "self",(char *) "mode", NULL
22498 };
22499
22500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22502 if (!SWIG_IsOK(res1)) {
22503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22504 }
22505 arg1 = reinterpret_cast< wxDC * >(argp1);
22506 ecode2 = SWIG_AsVal_int(obj1, &val2);
22507 if (!SWIG_IsOK(ecode2)) {
22508 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22509 }
22510 arg2 = static_cast< int >(val2);
22511 {
22512 PyThreadState* __tstate = wxPyBeginAllowThreads();
22513 (arg1)->SetMapMode(arg2);
22514 wxPyEndAllowThreads(__tstate);
22515 if (PyErr_Occurred()) SWIG_fail;
22516 }
22517 resultobj = SWIG_Py_Void();
22518 return resultobj;
22519 fail:
22520 return NULL;
22521 }
22522
22523
22524 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22525 PyObject *resultobj = 0;
22526 wxDC *arg1 = (wxDC *) 0 ;
22527 double *arg2 = (double *) 0 ;
22528 double *arg3 = (double *) 0 ;
22529 void *argp1 = 0 ;
22530 int res1 = 0 ;
22531 double temp2 ;
22532 int res2 = SWIG_TMPOBJ ;
22533 double temp3 ;
22534 int res3 = SWIG_TMPOBJ ;
22535 PyObject *swig_obj[1] ;
22536
22537 arg2 = &temp2;
22538 arg3 = &temp3;
22539 if (!args) SWIG_fail;
22540 swig_obj[0] = args;
22541 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22542 if (!SWIG_IsOK(res1)) {
22543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22544 }
22545 arg1 = reinterpret_cast< wxDC * >(argp1);
22546 {
22547 PyThreadState* __tstate = wxPyBeginAllowThreads();
22548 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22549 wxPyEndAllowThreads(__tstate);
22550 if (PyErr_Occurred()) SWIG_fail;
22551 }
22552 resultobj = SWIG_Py_Void();
22553 if (SWIG_IsTmpObj(res2)) {
22554 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22555 } else {
22556 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22557 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22558 }
22559 if (SWIG_IsTmpObj(res3)) {
22560 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22561 } else {
22562 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22563 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22564 }
22565 return resultobj;
22566 fail:
22567 return NULL;
22568 }
22569
22570
22571 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22572 PyObject *resultobj = 0;
22573 wxDC *arg1 = (wxDC *) 0 ;
22574 double arg2 ;
22575 double arg3 ;
22576 void *argp1 = 0 ;
22577 int res1 = 0 ;
22578 double val2 ;
22579 int ecode2 = 0 ;
22580 double val3 ;
22581 int ecode3 = 0 ;
22582 PyObject * obj0 = 0 ;
22583 PyObject * obj1 = 0 ;
22584 PyObject * obj2 = 0 ;
22585 char * kwnames[] = {
22586 (char *) "self",(char *) "x",(char *) "y", NULL
22587 };
22588
22589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22591 if (!SWIG_IsOK(res1)) {
22592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22593 }
22594 arg1 = reinterpret_cast< wxDC * >(argp1);
22595 ecode2 = SWIG_AsVal_double(obj1, &val2);
22596 if (!SWIG_IsOK(ecode2)) {
22597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22598 }
22599 arg2 = static_cast< double >(val2);
22600 ecode3 = SWIG_AsVal_double(obj2, &val3);
22601 if (!SWIG_IsOK(ecode3)) {
22602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22603 }
22604 arg3 = static_cast< double >(val3);
22605 {
22606 PyThreadState* __tstate = wxPyBeginAllowThreads();
22607 (arg1)->SetUserScale(arg2,arg3);
22608 wxPyEndAllowThreads(__tstate);
22609 if (PyErr_Occurred()) SWIG_fail;
22610 }
22611 resultobj = SWIG_Py_Void();
22612 return resultobj;
22613 fail:
22614 return NULL;
22615 }
22616
22617
22618 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22619 PyObject *resultobj = 0;
22620 wxDC *arg1 = (wxDC *) 0 ;
22621 double *arg2 = (double *) 0 ;
22622 double *arg3 = (double *) 0 ;
22623 void *argp1 = 0 ;
22624 int res1 = 0 ;
22625 double temp2 ;
22626 int res2 = SWIG_TMPOBJ ;
22627 double temp3 ;
22628 int res3 = SWIG_TMPOBJ ;
22629 PyObject *swig_obj[1] ;
22630
22631 arg2 = &temp2;
22632 arg3 = &temp3;
22633 if (!args) SWIG_fail;
22634 swig_obj[0] = args;
22635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22638 }
22639 arg1 = reinterpret_cast< wxDC * >(argp1);
22640 {
22641 PyThreadState* __tstate = wxPyBeginAllowThreads();
22642 (arg1)->GetLogicalScale(arg2,arg3);
22643 wxPyEndAllowThreads(__tstate);
22644 if (PyErr_Occurred()) SWIG_fail;
22645 }
22646 resultobj = SWIG_Py_Void();
22647 if (SWIG_IsTmpObj(res2)) {
22648 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22649 } else {
22650 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22651 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22652 }
22653 if (SWIG_IsTmpObj(res3)) {
22654 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22655 } else {
22656 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22657 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22658 }
22659 return resultobj;
22660 fail:
22661 return NULL;
22662 }
22663
22664
22665 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22666 PyObject *resultobj = 0;
22667 wxDC *arg1 = (wxDC *) 0 ;
22668 double arg2 ;
22669 double arg3 ;
22670 void *argp1 = 0 ;
22671 int res1 = 0 ;
22672 double val2 ;
22673 int ecode2 = 0 ;
22674 double val3 ;
22675 int ecode3 = 0 ;
22676 PyObject * obj0 = 0 ;
22677 PyObject * obj1 = 0 ;
22678 PyObject * obj2 = 0 ;
22679 char * kwnames[] = {
22680 (char *) "self",(char *) "x",(char *) "y", NULL
22681 };
22682
22683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22685 if (!SWIG_IsOK(res1)) {
22686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22687 }
22688 arg1 = reinterpret_cast< wxDC * >(argp1);
22689 ecode2 = SWIG_AsVal_double(obj1, &val2);
22690 if (!SWIG_IsOK(ecode2)) {
22691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22692 }
22693 arg2 = static_cast< double >(val2);
22694 ecode3 = SWIG_AsVal_double(obj2, &val3);
22695 if (!SWIG_IsOK(ecode3)) {
22696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22697 }
22698 arg3 = static_cast< double >(val3);
22699 {
22700 PyThreadState* __tstate = wxPyBeginAllowThreads();
22701 (arg1)->SetLogicalScale(arg2,arg3);
22702 wxPyEndAllowThreads(__tstate);
22703 if (PyErr_Occurred()) SWIG_fail;
22704 }
22705 resultobj = SWIG_Py_Void();
22706 return resultobj;
22707 fail:
22708 return NULL;
22709 }
22710
22711
22712 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22713 PyObject *resultobj = 0;
22714 wxDC *arg1 = (wxDC *) 0 ;
22715 wxPoint result;
22716 void *argp1 = 0 ;
22717 int res1 = 0 ;
22718 PyObject *swig_obj[1] ;
22719
22720 if (!args) SWIG_fail;
22721 swig_obj[0] = args;
22722 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22723 if (!SWIG_IsOK(res1)) {
22724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22725 }
22726 arg1 = reinterpret_cast< wxDC * >(argp1);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22734 return resultobj;
22735 fail:
22736 return NULL;
22737 }
22738
22739
22740 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22741 PyObject *resultobj = 0;
22742 wxDC *arg1 = (wxDC *) 0 ;
22743 int *arg2 = (int *) 0 ;
22744 int *arg3 = (int *) 0 ;
22745 void *argp1 = 0 ;
22746 int res1 = 0 ;
22747 int temp2 ;
22748 int res2 = SWIG_TMPOBJ ;
22749 int temp3 ;
22750 int res3 = SWIG_TMPOBJ ;
22751 PyObject *swig_obj[1] ;
22752
22753 arg2 = &temp2;
22754 arg3 = &temp3;
22755 if (!args) SWIG_fail;
22756 swig_obj[0] = args;
22757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22758 if (!SWIG_IsOK(res1)) {
22759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22760 }
22761 arg1 = reinterpret_cast< wxDC * >(argp1);
22762 {
22763 PyThreadState* __tstate = wxPyBeginAllowThreads();
22764 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22765 wxPyEndAllowThreads(__tstate);
22766 if (PyErr_Occurred()) SWIG_fail;
22767 }
22768 resultobj = SWIG_Py_Void();
22769 if (SWIG_IsTmpObj(res2)) {
22770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22771 } else {
22772 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22773 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22774 }
22775 if (SWIG_IsTmpObj(res3)) {
22776 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22777 } else {
22778 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22779 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22780 }
22781 return resultobj;
22782 fail:
22783 return NULL;
22784 }
22785
22786
22787 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22788 PyObject *resultobj = 0;
22789 wxDC *arg1 = (wxDC *) 0 ;
22790 int arg2 ;
22791 int arg3 ;
22792 void *argp1 = 0 ;
22793 int res1 = 0 ;
22794 int val2 ;
22795 int ecode2 = 0 ;
22796 int val3 ;
22797 int ecode3 = 0 ;
22798 PyObject * obj0 = 0 ;
22799 PyObject * obj1 = 0 ;
22800 PyObject * obj2 = 0 ;
22801 char * kwnames[] = {
22802 (char *) "self",(char *) "x",(char *) "y", NULL
22803 };
22804
22805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22807 if (!SWIG_IsOK(res1)) {
22808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22809 }
22810 arg1 = reinterpret_cast< wxDC * >(argp1);
22811 ecode2 = SWIG_AsVal_int(obj1, &val2);
22812 if (!SWIG_IsOK(ecode2)) {
22813 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22814 }
22815 arg2 = static_cast< int >(val2);
22816 ecode3 = SWIG_AsVal_int(obj2, &val3);
22817 if (!SWIG_IsOK(ecode3)) {
22818 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22819 }
22820 arg3 = static_cast< int >(val3);
22821 {
22822 PyThreadState* __tstate = wxPyBeginAllowThreads();
22823 (arg1)->SetLogicalOrigin(arg2,arg3);
22824 wxPyEndAllowThreads(__tstate);
22825 if (PyErr_Occurred()) SWIG_fail;
22826 }
22827 resultobj = SWIG_Py_Void();
22828 return resultobj;
22829 fail:
22830 return NULL;
22831 }
22832
22833
22834 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22835 PyObject *resultobj = 0;
22836 wxDC *arg1 = (wxDC *) 0 ;
22837 wxPoint *arg2 = 0 ;
22838 void *argp1 = 0 ;
22839 int res1 = 0 ;
22840 wxPoint temp2 ;
22841 PyObject * obj0 = 0 ;
22842 PyObject * obj1 = 0 ;
22843 char * kwnames[] = {
22844 (char *) "self",(char *) "point", NULL
22845 };
22846
22847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22849 if (!SWIG_IsOK(res1)) {
22850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22851 }
22852 arg1 = reinterpret_cast< wxDC * >(argp1);
22853 {
22854 arg2 = &temp2;
22855 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22856 }
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_Py_Void();
22864 return resultobj;
22865 fail:
22866 return NULL;
22867 }
22868
22869
22870 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22871 PyObject *resultobj = 0;
22872 wxDC *arg1 = (wxDC *) 0 ;
22873 wxPoint result;
22874 void *argp1 = 0 ;
22875 int res1 = 0 ;
22876 PyObject *swig_obj[1] ;
22877
22878 if (!args) SWIG_fail;
22879 swig_obj[0] = args;
22880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22881 if (!SWIG_IsOK(res1)) {
22882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22883 }
22884 arg1 = reinterpret_cast< wxDC * >(argp1);
22885 {
22886 PyThreadState* __tstate = wxPyBeginAllowThreads();
22887 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22888 wxPyEndAllowThreads(__tstate);
22889 if (PyErr_Occurred()) SWIG_fail;
22890 }
22891 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22892 return resultobj;
22893 fail:
22894 return NULL;
22895 }
22896
22897
22898 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22899 PyObject *resultobj = 0;
22900 wxDC *arg1 = (wxDC *) 0 ;
22901 int *arg2 = (int *) 0 ;
22902 int *arg3 = (int *) 0 ;
22903 void *argp1 = 0 ;
22904 int res1 = 0 ;
22905 int temp2 ;
22906 int res2 = SWIG_TMPOBJ ;
22907 int temp3 ;
22908 int res3 = SWIG_TMPOBJ ;
22909 PyObject *swig_obj[1] ;
22910
22911 arg2 = &temp2;
22912 arg3 = &temp3;
22913 if (!args) SWIG_fail;
22914 swig_obj[0] = args;
22915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22918 }
22919 arg1 = reinterpret_cast< wxDC * >(argp1);
22920 {
22921 PyThreadState* __tstate = wxPyBeginAllowThreads();
22922 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22923 wxPyEndAllowThreads(__tstate);
22924 if (PyErr_Occurred()) SWIG_fail;
22925 }
22926 resultobj = SWIG_Py_Void();
22927 if (SWIG_IsTmpObj(res2)) {
22928 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22929 } else {
22930 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22931 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22932 }
22933 if (SWIG_IsTmpObj(res3)) {
22934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22935 } else {
22936 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22938 }
22939 return resultobj;
22940 fail:
22941 return NULL;
22942 }
22943
22944
22945 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22946 PyObject *resultobj = 0;
22947 wxDC *arg1 = (wxDC *) 0 ;
22948 int arg2 ;
22949 int arg3 ;
22950 void *argp1 = 0 ;
22951 int res1 = 0 ;
22952 int val2 ;
22953 int ecode2 = 0 ;
22954 int val3 ;
22955 int ecode3 = 0 ;
22956 PyObject * obj0 = 0 ;
22957 PyObject * obj1 = 0 ;
22958 PyObject * obj2 = 0 ;
22959 char * kwnames[] = {
22960 (char *) "self",(char *) "x",(char *) "y", NULL
22961 };
22962
22963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22965 if (!SWIG_IsOK(res1)) {
22966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22967 }
22968 arg1 = reinterpret_cast< wxDC * >(argp1);
22969 ecode2 = SWIG_AsVal_int(obj1, &val2);
22970 if (!SWIG_IsOK(ecode2)) {
22971 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22972 }
22973 arg2 = static_cast< int >(val2);
22974 ecode3 = SWIG_AsVal_int(obj2, &val3);
22975 if (!SWIG_IsOK(ecode3)) {
22976 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22977 }
22978 arg3 = static_cast< int >(val3);
22979 {
22980 PyThreadState* __tstate = wxPyBeginAllowThreads();
22981 (arg1)->SetDeviceOrigin(arg2,arg3);
22982 wxPyEndAllowThreads(__tstate);
22983 if (PyErr_Occurred()) SWIG_fail;
22984 }
22985 resultobj = SWIG_Py_Void();
22986 return resultobj;
22987 fail:
22988 return NULL;
22989 }
22990
22991
22992 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22993 PyObject *resultobj = 0;
22994 wxDC *arg1 = (wxDC *) 0 ;
22995 wxPoint *arg2 = 0 ;
22996 void *argp1 = 0 ;
22997 int res1 = 0 ;
22998 wxPoint temp2 ;
22999 PyObject * obj0 = 0 ;
23000 PyObject * obj1 = 0 ;
23001 char * kwnames[] = {
23002 (char *) "self",(char *) "point", NULL
23003 };
23004
23005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23007 if (!SWIG_IsOK(res1)) {
23008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23009 }
23010 arg1 = reinterpret_cast< wxDC * >(argp1);
23011 {
23012 arg2 = &temp2;
23013 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23014 }
23015 {
23016 PyThreadState* __tstate = wxPyBeginAllowThreads();
23017 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23018 wxPyEndAllowThreads(__tstate);
23019 if (PyErr_Occurred()) SWIG_fail;
23020 }
23021 resultobj = SWIG_Py_Void();
23022 return resultobj;
23023 fail:
23024 return NULL;
23025 }
23026
23027
23028 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23029 PyObject *resultobj = 0;
23030 wxDC *arg1 = (wxDC *) 0 ;
23031 bool arg2 ;
23032 bool arg3 ;
23033 void *argp1 = 0 ;
23034 int res1 = 0 ;
23035 bool val2 ;
23036 int ecode2 = 0 ;
23037 bool val3 ;
23038 int ecode3 = 0 ;
23039 PyObject * obj0 = 0 ;
23040 PyObject * obj1 = 0 ;
23041 PyObject * obj2 = 0 ;
23042 char * kwnames[] = {
23043 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23044 };
23045
23046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23048 if (!SWIG_IsOK(res1)) {
23049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23050 }
23051 arg1 = reinterpret_cast< wxDC * >(argp1);
23052 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23053 if (!SWIG_IsOK(ecode2)) {
23054 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23055 }
23056 arg2 = static_cast< bool >(val2);
23057 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23058 if (!SWIG_IsOK(ecode3)) {
23059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23060 }
23061 arg3 = static_cast< bool >(val3);
23062 {
23063 PyThreadState* __tstate = wxPyBeginAllowThreads();
23064 (arg1)->SetAxisOrientation(arg2,arg3);
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 resultobj = SWIG_Py_Void();
23069 return resultobj;
23070 fail:
23071 return NULL;
23072 }
23073
23074
23075 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23076 PyObject *resultobj = 0;
23077 wxDC *arg1 = (wxDC *) 0 ;
23078 int result;
23079 void *argp1 = 0 ;
23080 int res1 = 0 ;
23081 PyObject *swig_obj[1] ;
23082
23083 if (!args) SWIG_fail;
23084 swig_obj[0] = args;
23085 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23086 if (!SWIG_IsOK(res1)) {
23087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23088 }
23089 arg1 = reinterpret_cast< wxDC * >(argp1);
23090 {
23091 PyThreadState* __tstate = wxPyBeginAllowThreads();
23092 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23093 wxPyEndAllowThreads(__tstate);
23094 if (PyErr_Occurred()) SWIG_fail;
23095 }
23096 resultobj = SWIG_From_int(static_cast< int >(result));
23097 return resultobj;
23098 fail:
23099 return NULL;
23100 }
23101
23102
23103 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23104 PyObject *resultobj = 0;
23105 wxDC *arg1 = (wxDC *) 0 ;
23106 int arg2 ;
23107 void *argp1 = 0 ;
23108 int res1 = 0 ;
23109 int val2 ;
23110 int ecode2 = 0 ;
23111 PyObject * obj0 = 0 ;
23112 PyObject * obj1 = 0 ;
23113 char * kwnames[] = {
23114 (char *) "self",(char *) "function", NULL
23115 };
23116
23117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23119 if (!SWIG_IsOK(res1)) {
23120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23121 }
23122 arg1 = reinterpret_cast< wxDC * >(argp1);
23123 ecode2 = SWIG_AsVal_int(obj1, &val2);
23124 if (!SWIG_IsOK(ecode2)) {
23125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23126 }
23127 arg2 = static_cast< int >(val2);
23128 {
23129 PyThreadState* __tstate = wxPyBeginAllowThreads();
23130 (arg1)->SetLogicalFunction(arg2);
23131 wxPyEndAllowThreads(__tstate);
23132 if (PyErr_Occurred()) SWIG_fail;
23133 }
23134 resultobj = SWIG_Py_Void();
23135 return resultobj;
23136 fail:
23137 return NULL;
23138 }
23139
23140
23141 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23142 PyObject *resultobj = 0;
23143 wxDC *arg1 = (wxDC *) 0 ;
23144 void *argp1 = 0 ;
23145 int res1 = 0 ;
23146 PyObject *swig_obj[1] ;
23147
23148 if (!args) SWIG_fail;
23149 swig_obj[0] = args;
23150 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23151 if (!SWIG_IsOK(res1)) {
23152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23153 }
23154 arg1 = reinterpret_cast< wxDC * >(argp1);
23155 {
23156 PyThreadState* __tstate = wxPyBeginAllowThreads();
23157 (arg1)->ComputeScaleAndOrigin();
23158 wxPyEndAllowThreads(__tstate);
23159 if (PyErr_Occurred()) SWIG_fail;
23160 }
23161 resultobj = SWIG_Py_Void();
23162 return resultobj;
23163 fail:
23164 return NULL;
23165 }
23166
23167
23168 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23169 PyObject *resultobj = 0;
23170 wxDC *arg1 = (wxDC *) 0 ;
23171 int arg2 ;
23172 int arg3 ;
23173 void *argp1 = 0 ;
23174 int res1 = 0 ;
23175 int val2 ;
23176 int ecode2 = 0 ;
23177 int val3 ;
23178 int ecode3 = 0 ;
23179 PyObject * obj0 = 0 ;
23180 PyObject * obj1 = 0 ;
23181 PyObject * obj2 = 0 ;
23182 char * kwnames[] = {
23183 (char *) "self",(char *) "x",(char *) "y", NULL
23184 };
23185
23186 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23187 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23188 if (!SWIG_IsOK(res1)) {
23189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23190 }
23191 arg1 = reinterpret_cast< wxDC * >(argp1);
23192 ecode2 = SWIG_AsVal_int(obj1, &val2);
23193 if (!SWIG_IsOK(ecode2)) {
23194 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23195 }
23196 arg2 = static_cast< int >(val2);
23197 ecode3 = SWIG_AsVal_int(obj2, &val3);
23198 if (!SWIG_IsOK(ecode3)) {
23199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23200 }
23201 arg3 = static_cast< int >(val3);
23202 {
23203 PyThreadState* __tstate = wxPyBeginAllowThreads();
23204 (arg1)->CalcBoundingBox(arg2,arg3);
23205 wxPyEndAllowThreads(__tstate);
23206 if (PyErr_Occurred()) SWIG_fail;
23207 }
23208 resultobj = SWIG_Py_Void();
23209 return resultobj;
23210 fail:
23211 return NULL;
23212 }
23213
23214
23215 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23216 PyObject *resultobj = 0;
23217 wxDC *arg1 = (wxDC *) 0 ;
23218 wxPoint *arg2 = 0 ;
23219 void *argp1 = 0 ;
23220 int res1 = 0 ;
23221 wxPoint temp2 ;
23222 PyObject * obj0 = 0 ;
23223 PyObject * obj1 = 0 ;
23224 char * kwnames[] = {
23225 (char *) "self",(char *) "point", NULL
23226 };
23227
23228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23230 if (!SWIG_IsOK(res1)) {
23231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23232 }
23233 arg1 = reinterpret_cast< wxDC * >(argp1);
23234 {
23235 arg2 = &temp2;
23236 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23237 }
23238 {
23239 PyThreadState* __tstate = wxPyBeginAllowThreads();
23240 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23241 wxPyEndAllowThreads(__tstate);
23242 if (PyErr_Occurred()) SWIG_fail;
23243 }
23244 resultobj = SWIG_Py_Void();
23245 return resultobj;
23246 fail:
23247 return NULL;
23248 }
23249
23250
23251 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23252 PyObject *resultobj = 0;
23253 wxDC *arg1 = (wxDC *) 0 ;
23254 void *argp1 = 0 ;
23255 int res1 = 0 ;
23256 PyObject *swig_obj[1] ;
23257
23258 if (!args) SWIG_fail;
23259 swig_obj[0] = args;
23260 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23261 if (!SWIG_IsOK(res1)) {
23262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23263 }
23264 arg1 = reinterpret_cast< wxDC * >(argp1);
23265 {
23266 PyThreadState* __tstate = wxPyBeginAllowThreads();
23267 (arg1)->ResetBoundingBox();
23268 wxPyEndAllowThreads(__tstate);
23269 if (PyErr_Occurred()) SWIG_fail;
23270 }
23271 resultobj = SWIG_Py_Void();
23272 return resultobj;
23273 fail:
23274 return NULL;
23275 }
23276
23277
23278 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23279 PyObject *resultobj = 0;
23280 wxDC *arg1 = (wxDC *) 0 ;
23281 int result;
23282 void *argp1 = 0 ;
23283 int res1 = 0 ;
23284 PyObject *swig_obj[1] ;
23285
23286 if (!args) SWIG_fail;
23287 swig_obj[0] = args;
23288 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23289 if (!SWIG_IsOK(res1)) {
23290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23291 }
23292 arg1 = reinterpret_cast< wxDC * >(argp1);
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (int)((wxDC const *)arg1)->MinX();
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 resultobj = SWIG_From_int(static_cast< int >(result));
23300 return resultobj;
23301 fail:
23302 return NULL;
23303 }
23304
23305
23306 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23307 PyObject *resultobj = 0;
23308 wxDC *arg1 = (wxDC *) 0 ;
23309 int result;
23310 void *argp1 = 0 ;
23311 int res1 = 0 ;
23312 PyObject *swig_obj[1] ;
23313
23314 if (!args) SWIG_fail;
23315 swig_obj[0] = args;
23316 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23317 if (!SWIG_IsOK(res1)) {
23318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23319 }
23320 arg1 = reinterpret_cast< wxDC * >(argp1);
23321 {
23322 PyThreadState* __tstate = wxPyBeginAllowThreads();
23323 result = (int)((wxDC const *)arg1)->MaxX();
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_From_int(static_cast< int >(result));
23328 return resultobj;
23329 fail:
23330 return NULL;
23331 }
23332
23333
23334 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23335 PyObject *resultobj = 0;
23336 wxDC *arg1 = (wxDC *) 0 ;
23337 int result;
23338 void *argp1 = 0 ;
23339 int res1 = 0 ;
23340 PyObject *swig_obj[1] ;
23341
23342 if (!args) SWIG_fail;
23343 swig_obj[0] = args;
23344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23345 if (!SWIG_IsOK(res1)) {
23346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23347 }
23348 arg1 = reinterpret_cast< wxDC * >(argp1);
23349 {
23350 PyThreadState* __tstate = wxPyBeginAllowThreads();
23351 result = (int)((wxDC const *)arg1)->MinY();
23352 wxPyEndAllowThreads(__tstate);
23353 if (PyErr_Occurred()) SWIG_fail;
23354 }
23355 resultobj = SWIG_From_int(static_cast< int >(result));
23356 return resultobj;
23357 fail:
23358 return NULL;
23359 }
23360
23361
23362 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23363 PyObject *resultobj = 0;
23364 wxDC *arg1 = (wxDC *) 0 ;
23365 int result;
23366 void *argp1 = 0 ;
23367 int res1 = 0 ;
23368 PyObject *swig_obj[1] ;
23369
23370 if (!args) SWIG_fail;
23371 swig_obj[0] = args;
23372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23373 if (!SWIG_IsOK(res1)) {
23374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23375 }
23376 arg1 = reinterpret_cast< wxDC * >(argp1);
23377 {
23378 PyThreadState* __tstate = wxPyBeginAllowThreads();
23379 result = (int)((wxDC const *)arg1)->MaxY();
23380 wxPyEndAllowThreads(__tstate);
23381 if (PyErr_Occurred()) SWIG_fail;
23382 }
23383 resultobj = SWIG_From_int(static_cast< int >(result));
23384 return resultobj;
23385 fail:
23386 return NULL;
23387 }
23388
23389
23390 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23391 PyObject *resultobj = 0;
23392 wxDC *arg1 = (wxDC *) 0 ;
23393 int *arg2 = (int *) 0 ;
23394 int *arg3 = (int *) 0 ;
23395 int *arg4 = (int *) 0 ;
23396 int *arg5 = (int *) 0 ;
23397 void *argp1 = 0 ;
23398 int res1 = 0 ;
23399 int temp2 ;
23400 int res2 = SWIG_TMPOBJ ;
23401 int temp3 ;
23402 int res3 = SWIG_TMPOBJ ;
23403 int temp4 ;
23404 int res4 = SWIG_TMPOBJ ;
23405 int temp5 ;
23406 int res5 = SWIG_TMPOBJ ;
23407 PyObject *swig_obj[1] ;
23408
23409 arg2 = &temp2;
23410 arg3 = &temp3;
23411 arg4 = &temp4;
23412 arg5 = &temp5;
23413 if (!args) SWIG_fail;
23414 swig_obj[0] = args;
23415 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23416 if (!SWIG_IsOK(res1)) {
23417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23418 }
23419 arg1 = reinterpret_cast< wxDC * >(argp1);
23420 {
23421 PyThreadState* __tstate = wxPyBeginAllowThreads();
23422 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23423 wxPyEndAllowThreads(__tstate);
23424 if (PyErr_Occurred()) SWIG_fail;
23425 }
23426 resultobj = SWIG_Py_Void();
23427 if (SWIG_IsTmpObj(res2)) {
23428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23429 } else {
23430 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23432 }
23433 if (SWIG_IsTmpObj(res3)) {
23434 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23435 } else {
23436 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23437 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23438 }
23439 if (SWIG_IsTmpObj(res4)) {
23440 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23441 } else {
23442 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23444 }
23445 if (SWIG_IsTmpObj(res5)) {
23446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23447 } else {
23448 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23450 }
23451 return resultobj;
23452 fail:
23453 return NULL;
23454 }
23455
23456
23457 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23458 PyObject *resultobj = 0;
23459 wxDC *arg1 = (wxDC *) 0 ;
23460 wxLayoutDirection result;
23461 void *argp1 = 0 ;
23462 int res1 = 0 ;
23463 PyObject *swig_obj[1] ;
23464
23465 if (!args) SWIG_fail;
23466 swig_obj[0] = args;
23467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23468 if (!SWIG_IsOK(res1)) {
23469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23470 }
23471 arg1 = reinterpret_cast< wxDC * >(argp1);
23472 {
23473 PyThreadState* __tstate = wxPyBeginAllowThreads();
23474 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23475 wxPyEndAllowThreads(__tstate);
23476 if (PyErr_Occurred()) SWIG_fail;
23477 }
23478 resultobj = SWIG_From_int(static_cast< int >(result));
23479 return resultobj;
23480 fail:
23481 return NULL;
23482 }
23483
23484
23485 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23486 PyObject *resultobj = 0;
23487 wxDC *arg1 = (wxDC *) 0 ;
23488 wxLayoutDirection arg2 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 int val2 ;
23492 int ecode2 = 0 ;
23493 PyObject * obj0 = 0 ;
23494 PyObject * obj1 = 0 ;
23495 char * kwnames[] = {
23496 (char *) "self",(char *) "dir", NULL
23497 };
23498
23499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23501 if (!SWIG_IsOK(res1)) {
23502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23503 }
23504 arg1 = reinterpret_cast< wxDC * >(argp1);
23505 ecode2 = SWIG_AsVal_int(obj1, &val2);
23506 if (!SWIG_IsOK(ecode2)) {
23507 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23508 }
23509 arg2 = static_cast< wxLayoutDirection >(val2);
23510 {
23511 PyThreadState* __tstate = wxPyBeginAllowThreads();
23512 (arg1)->SetLayoutDirection(arg2);
23513 wxPyEndAllowThreads(__tstate);
23514 if (PyErr_Occurred()) SWIG_fail;
23515 }
23516 resultobj = SWIG_Py_Void();
23517 return resultobj;
23518 fail:
23519 return NULL;
23520 }
23521
23522
23523 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23524 PyObject *resultobj = 0;
23525 wxDC *arg1 = (wxDC *) 0 ;
23526 long result;
23527 void *argp1 = 0 ;
23528 int res1 = 0 ;
23529 PyObject *swig_obj[1] ;
23530
23531 if (!args) SWIG_fail;
23532 swig_obj[0] = args;
23533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23534 if (!SWIG_IsOK(res1)) {
23535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23536 }
23537 arg1 = reinterpret_cast< wxDC * >(argp1);
23538 {
23539 PyThreadState* __tstate = wxPyBeginAllowThreads();
23540 result = (long)(arg1)->GetHDC();
23541 wxPyEndAllowThreads(__tstate);
23542 if (PyErr_Occurred()) SWIG_fail;
23543 }
23544 resultobj = SWIG_From_long(static_cast< long >(result));
23545 return resultobj;
23546 fail:
23547 return NULL;
23548 }
23549
23550
23551 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23552 PyObject *resultobj = 0;
23553 wxDC *arg1 = (wxDC *) 0 ;
23554 PyObject *arg2 = (PyObject *) 0 ;
23555 PyObject *arg3 = (PyObject *) 0 ;
23556 PyObject *arg4 = (PyObject *) 0 ;
23557 PyObject *result = 0 ;
23558 void *argp1 = 0 ;
23559 int res1 = 0 ;
23560 PyObject * obj0 = 0 ;
23561 PyObject * obj1 = 0 ;
23562 PyObject * obj2 = 0 ;
23563 PyObject * obj3 = 0 ;
23564 char * kwnames[] = {
23565 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23566 };
23567
23568 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23569 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23570 if (!SWIG_IsOK(res1)) {
23571 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23572 }
23573 arg1 = reinterpret_cast< wxDC * >(argp1);
23574 arg2 = obj1;
23575 arg3 = obj2;
23576 arg4 = obj3;
23577 {
23578 PyThreadState* __tstate = wxPyBeginAllowThreads();
23579 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23580 wxPyEndAllowThreads(__tstate);
23581 if (PyErr_Occurred()) SWIG_fail;
23582 }
23583 resultobj = result;
23584 return resultobj;
23585 fail:
23586 return NULL;
23587 }
23588
23589
23590 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23591 PyObject *resultobj = 0;
23592 wxDC *arg1 = (wxDC *) 0 ;
23593 PyObject *arg2 = (PyObject *) 0 ;
23594 PyObject *arg3 = (PyObject *) 0 ;
23595 PyObject *arg4 = (PyObject *) 0 ;
23596 PyObject *result = 0 ;
23597 void *argp1 = 0 ;
23598 int res1 = 0 ;
23599 PyObject * obj0 = 0 ;
23600 PyObject * obj1 = 0 ;
23601 PyObject * obj2 = 0 ;
23602 PyObject * obj3 = 0 ;
23603 char * kwnames[] = {
23604 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23605 };
23606
23607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23609 if (!SWIG_IsOK(res1)) {
23610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23611 }
23612 arg1 = reinterpret_cast< wxDC * >(argp1);
23613 arg2 = obj1;
23614 arg3 = obj2;
23615 arg4 = obj3;
23616 {
23617 PyThreadState* __tstate = wxPyBeginAllowThreads();
23618 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23619 wxPyEndAllowThreads(__tstate);
23620 if (PyErr_Occurred()) SWIG_fail;
23621 }
23622 resultobj = result;
23623 return resultobj;
23624 fail:
23625 return NULL;
23626 }
23627
23628
23629 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23630 PyObject *resultobj = 0;
23631 wxDC *arg1 = (wxDC *) 0 ;
23632 PyObject *arg2 = (PyObject *) 0 ;
23633 PyObject *arg3 = (PyObject *) 0 ;
23634 PyObject *arg4 = (PyObject *) 0 ;
23635 PyObject *result = 0 ;
23636 void *argp1 = 0 ;
23637 int res1 = 0 ;
23638 PyObject * obj0 = 0 ;
23639 PyObject * obj1 = 0 ;
23640 PyObject * obj2 = 0 ;
23641 PyObject * obj3 = 0 ;
23642 char * kwnames[] = {
23643 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23644 };
23645
23646 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23647 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23648 if (!SWIG_IsOK(res1)) {
23649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23650 }
23651 arg1 = reinterpret_cast< wxDC * >(argp1);
23652 arg2 = obj1;
23653 arg3 = obj2;
23654 arg4 = obj3;
23655 {
23656 PyThreadState* __tstate = wxPyBeginAllowThreads();
23657 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23658 wxPyEndAllowThreads(__tstate);
23659 if (PyErr_Occurred()) SWIG_fail;
23660 }
23661 resultobj = result;
23662 return resultobj;
23663 fail:
23664 return NULL;
23665 }
23666
23667
23668 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23669 PyObject *resultobj = 0;
23670 wxDC *arg1 = (wxDC *) 0 ;
23671 PyObject *arg2 = (PyObject *) 0 ;
23672 PyObject *arg3 = (PyObject *) 0 ;
23673 PyObject *arg4 = (PyObject *) 0 ;
23674 PyObject *result = 0 ;
23675 void *argp1 = 0 ;
23676 int res1 = 0 ;
23677 PyObject * obj0 = 0 ;
23678 PyObject * obj1 = 0 ;
23679 PyObject * obj2 = 0 ;
23680 PyObject * obj3 = 0 ;
23681 char * kwnames[] = {
23682 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23683 };
23684
23685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23687 if (!SWIG_IsOK(res1)) {
23688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23689 }
23690 arg1 = reinterpret_cast< wxDC * >(argp1);
23691 arg2 = obj1;
23692 arg3 = obj2;
23693 arg4 = obj3;
23694 {
23695 PyThreadState* __tstate = wxPyBeginAllowThreads();
23696 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23697 wxPyEndAllowThreads(__tstate);
23698 if (PyErr_Occurred()) SWIG_fail;
23699 }
23700 resultobj = result;
23701 return resultobj;
23702 fail:
23703 return NULL;
23704 }
23705
23706
23707 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23708 PyObject *resultobj = 0;
23709 wxDC *arg1 = (wxDC *) 0 ;
23710 PyObject *arg2 = (PyObject *) 0 ;
23711 PyObject *arg3 = (PyObject *) 0 ;
23712 PyObject *arg4 = (PyObject *) 0 ;
23713 PyObject *result = 0 ;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 PyObject * obj0 = 0 ;
23717 PyObject * obj1 = 0 ;
23718 PyObject * obj2 = 0 ;
23719 PyObject * obj3 = 0 ;
23720 char * kwnames[] = {
23721 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23722 };
23723
23724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23726 if (!SWIG_IsOK(res1)) {
23727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23728 }
23729 arg1 = reinterpret_cast< wxDC * >(argp1);
23730 arg2 = obj1;
23731 arg3 = obj2;
23732 arg4 = obj3;
23733 {
23734 PyThreadState* __tstate = wxPyBeginAllowThreads();
23735 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23736 wxPyEndAllowThreads(__tstate);
23737 if (PyErr_Occurred()) SWIG_fail;
23738 }
23739 resultobj = result;
23740 return resultobj;
23741 fail:
23742 return NULL;
23743 }
23744
23745
23746 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23747 PyObject *resultobj = 0;
23748 wxDC *arg1 = (wxDC *) 0 ;
23749 PyObject *arg2 = (PyObject *) 0 ;
23750 PyObject *arg3 = (PyObject *) 0 ;
23751 PyObject *arg4 = (PyObject *) 0 ;
23752 PyObject *arg5 = (PyObject *) 0 ;
23753 PyObject *result = 0 ;
23754 void *argp1 = 0 ;
23755 int res1 = 0 ;
23756 PyObject * obj0 = 0 ;
23757 PyObject * obj1 = 0 ;
23758 PyObject * obj2 = 0 ;
23759 PyObject * obj3 = 0 ;
23760 PyObject * obj4 = 0 ;
23761 char * kwnames[] = {
23762 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23763 };
23764
23765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23767 if (!SWIG_IsOK(res1)) {
23768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23769 }
23770 arg1 = reinterpret_cast< wxDC * >(argp1);
23771 arg2 = obj1;
23772 arg3 = obj2;
23773 arg4 = obj3;
23774 arg5 = obj4;
23775 {
23776 PyThreadState* __tstate = wxPyBeginAllowThreads();
23777 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23778 wxPyEndAllowThreads(__tstate);
23779 if (PyErr_Occurred()) SWIG_fail;
23780 }
23781 resultobj = result;
23782 return resultobj;
23783 fail:
23784 return NULL;
23785 }
23786
23787
23788 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23789 PyObject *obj;
23790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23791 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23792 return SWIG_Py_Void();
23793 }
23794
23795 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23796 PyObject *resultobj = 0;
23797 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23798 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23799 wxMemoryDC *result = 0 ;
23800 void *argp1 = 0 ;
23801 int res1 = 0 ;
23802 PyObject * obj0 = 0 ;
23803 char * kwnames[] = {
23804 (char *) "bitmap", NULL
23805 };
23806
23807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23808 if (obj0) {
23809 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23810 if (!SWIG_IsOK(res1)) {
23811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23812 }
23813 if (!argp1) {
23814 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23815 }
23816 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23817 }
23818 {
23819 if (!wxPyCheckForApp()) SWIG_fail;
23820 PyThreadState* __tstate = wxPyBeginAllowThreads();
23821 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23822 wxPyEndAllowThreads(__tstate);
23823 if (PyErr_Occurred()) SWIG_fail;
23824 }
23825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23826 return resultobj;
23827 fail:
23828 return NULL;
23829 }
23830
23831
23832 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23833 PyObject *resultobj = 0;
23834 wxDC *arg1 = (wxDC *) 0 ;
23835 wxMemoryDC *result = 0 ;
23836 void *argp1 = 0 ;
23837 int res1 = 0 ;
23838 PyObject * obj0 = 0 ;
23839 char * kwnames[] = {
23840 (char *) "oldDC", NULL
23841 };
23842
23843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23845 if (!SWIG_IsOK(res1)) {
23846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23847 }
23848 arg1 = reinterpret_cast< wxDC * >(argp1);
23849 {
23850 if (!wxPyCheckForApp()) SWIG_fail;
23851 PyThreadState* __tstate = wxPyBeginAllowThreads();
23852 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23857 return resultobj;
23858 fail:
23859 return NULL;
23860 }
23861
23862
23863 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23864 PyObject *resultobj = 0;
23865 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23866 wxBitmap *arg2 = 0 ;
23867 void *argp1 = 0 ;
23868 int res1 = 0 ;
23869 void *argp2 = 0 ;
23870 int res2 = 0 ;
23871 PyObject * obj0 = 0 ;
23872 PyObject * obj1 = 0 ;
23873 char * kwnames[] = {
23874 (char *) "self",(char *) "bitmap", NULL
23875 };
23876
23877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23879 if (!SWIG_IsOK(res1)) {
23880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23881 }
23882 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23883 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23884 if (!SWIG_IsOK(res2)) {
23885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23886 }
23887 if (!argp2) {
23888 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23889 }
23890 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23891 {
23892 PyThreadState* __tstate = wxPyBeginAllowThreads();
23893 (arg1)->SelectObject((wxBitmap const &)*arg2);
23894 wxPyEndAllowThreads(__tstate);
23895 if (PyErr_Occurred()) SWIG_fail;
23896 }
23897 resultobj = SWIG_Py_Void();
23898 return resultobj;
23899 fail:
23900 return NULL;
23901 }
23902
23903
23904 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23905 PyObject *obj;
23906 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23907 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23908 return SWIG_Py_Void();
23909 }
23910
23911 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23912 return SWIG_Python_InitShadowInstance(args);
23913 }
23914
23915 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23916 PyObject *resultobj = 0;
23917 wxScreenDC *result = 0 ;
23918
23919 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23920 {
23921 if (!wxPyCheckForApp()) SWIG_fail;
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 result = (wxScreenDC *)new wxScreenDC();
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23928 return resultobj;
23929 fail:
23930 return NULL;
23931 }
23932
23933
23934 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23935 PyObject *resultobj = 0;
23936 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23937 wxWindow *arg2 = (wxWindow *) 0 ;
23938 bool result;
23939 void *argp1 = 0 ;
23940 int res1 = 0 ;
23941 void *argp2 = 0 ;
23942 int res2 = 0 ;
23943 PyObject * obj0 = 0 ;
23944 PyObject * obj1 = 0 ;
23945 char * kwnames[] = {
23946 (char *) "self",(char *) "window", NULL
23947 };
23948
23949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23950 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23951 if (!SWIG_IsOK(res1)) {
23952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23953 }
23954 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23955 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23956 if (!SWIG_IsOK(res2)) {
23957 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23958 }
23959 arg2 = reinterpret_cast< wxWindow * >(argp2);
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 {
23967 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23968 }
23969 return resultobj;
23970 fail:
23971 return NULL;
23972 }
23973
23974
23975 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23976 PyObject *resultobj = 0;
23977 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23978 wxRect *arg2 = (wxRect *) NULL ;
23979 bool result;
23980 void *argp1 = 0 ;
23981 int res1 = 0 ;
23982 void *argp2 = 0 ;
23983 int res2 = 0 ;
23984 PyObject * obj0 = 0 ;
23985 PyObject * obj1 = 0 ;
23986 char * kwnames[] = {
23987 (char *) "self",(char *) "rect", NULL
23988 };
23989
23990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
23991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23992 if (!SWIG_IsOK(res1)) {
23993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23994 }
23995 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23996 if (obj1) {
23997 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
23998 if (!SWIG_IsOK(res2)) {
23999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24000 }
24001 arg2 = reinterpret_cast< wxRect * >(argp2);
24002 }
24003 {
24004 PyThreadState* __tstate = wxPyBeginAllowThreads();
24005 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24006 wxPyEndAllowThreads(__tstate);
24007 if (PyErr_Occurred()) SWIG_fail;
24008 }
24009 {
24010 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24011 }
24012 return resultobj;
24013 fail:
24014 return NULL;
24015 }
24016
24017
24018 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24019 PyObject *resultobj = 0;
24020 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24021 bool result;
24022 void *argp1 = 0 ;
24023 int res1 = 0 ;
24024 PyObject *swig_obj[1] ;
24025
24026 if (!args) SWIG_fail;
24027 swig_obj[0] = args;
24028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24029 if (!SWIG_IsOK(res1)) {
24030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24031 }
24032 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 result = (bool)(arg1)->EndDrawingOnTop();
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 {
24040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24041 }
24042 return resultobj;
24043 fail:
24044 return NULL;
24045 }
24046
24047
24048 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24049 PyObject *obj;
24050 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24051 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24052 return SWIG_Py_Void();
24053 }
24054
24055 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24056 return SWIG_Python_InitShadowInstance(args);
24057 }
24058
24059 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24060 PyObject *resultobj = 0;
24061 wxWindow *arg1 = (wxWindow *) 0 ;
24062 wxWindowDC *result = 0 ;
24063 void *argp1 = 0 ;
24064 int res1 = 0 ;
24065 PyObject * obj0 = 0 ;
24066 char * kwnames[] = {
24067 (char *) "win", NULL
24068 };
24069
24070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24072 if (!SWIG_IsOK(res1)) {
24073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24074 }
24075 arg1 = reinterpret_cast< wxWindow * >(argp1);
24076 {
24077 if (!wxPyCheckForApp()) SWIG_fail;
24078 PyThreadState* __tstate = wxPyBeginAllowThreads();
24079 result = (wxWindowDC *)new wxWindowDC(arg1);
24080 wxPyEndAllowThreads(__tstate);
24081 if (PyErr_Occurred()) SWIG_fail;
24082 }
24083 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24084 return resultobj;
24085 fail:
24086 return NULL;
24087 }
24088
24089
24090 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24091 PyObject *obj;
24092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24093 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24094 return SWIG_Py_Void();
24095 }
24096
24097 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24098 return SWIG_Python_InitShadowInstance(args);
24099 }
24100
24101 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24102 PyObject *resultobj = 0;
24103 wxWindow *arg1 = (wxWindow *) 0 ;
24104 wxClientDC *result = 0 ;
24105 void *argp1 = 0 ;
24106 int res1 = 0 ;
24107 PyObject * obj0 = 0 ;
24108 char * kwnames[] = {
24109 (char *) "win", NULL
24110 };
24111
24112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24114 if (!SWIG_IsOK(res1)) {
24115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24116 }
24117 arg1 = reinterpret_cast< wxWindow * >(argp1);
24118 {
24119 if (!wxPyCheckForApp()) SWIG_fail;
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 result = (wxClientDC *)new wxClientDC(arg1);
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24126 return resultobj;
24127 fail:
24128 return NULL;
24129 }
24130
24131
24132 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24133 PyObject *obj;
24134 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24135 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24136 return SWIG_Py_Void();
24137 }
24138
24139 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24140 return SWIG_Python_InitShadowInstance(args);
24141 }
24142
24143 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24144 PyObject *resultobj = 0;
24145 wxWindow *arg1 = (wxWindow *) 0 ;
24146 wxPaintDC *result = 0 ;
24147 void *argp1 = 0 ;
24148 int res1 = 0 ;
24149 PyObject * obj0 = 0 ;
24150 char * kwnames[] = {
24151 (char *) "win", NULL
24152 };
24153
24154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24156 if (!SWIG_IsOK(res1)) {
24157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24158 }
24159 arg1 = reinterpret_cast< wxWindow * >(argp1);
24160 {
24161 if (!wxPyCheckForApp()) SWIG_fail;
24162 PyThreadState* __tstate = wxPyBeginAllowThreads();
24163 result = (wxPaintDC *)new wxPaintDC(arg1);
24164 wxPyEndAllowThreads(__tstate);
24165 if (PyErr_Occurred()) SWIG_fail;
24166 }
24167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24168 return resultobj;
24169 fail:
24170 return NULL;
24171 }
24172
24173
24174 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24175 PyObject *obj;
24176 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24177 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24178 return SWIG_Py_Void();
24179 }
24180
24181 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24182 return SWIG_Python_InitShadowInstance(args);
24183 }
24184
24185 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24186 PyObject *resultobj = 0;
24187 wxDC *arg1 = (wxDC *) 0 ;
24188 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24189 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24190 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24191 wxBufferedDC *result = 0 ;
24192 void *argp1 = 0 ;
24193 int res1 = 0 ;
24194 void *argp2 = 0 ;
24195 int res2 = 0 ;
24196 int val3 ;
24197 int ecode3 = 0 ;
24198
24199 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24201 if (!SWIG_IsOK(res1)) {
24202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24203 }
24204 arg1 = reinterpret_cast< wxDC * >(argp1);
24205 if (swig_obj[1]) {
24206 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24207 if (!SWIG_IsOK(res2)) {
24208 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24209 }
24210 if (!argp2) {
24211 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24212 }
24213 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24214 }
24215 if (swig_obj[2]) {
24216 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24217 if (!SWIG_IsOK(ecode3)) {
24218 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24219 }
24220 arg3 = static_cast< int >(val3);
24221 }
24222 {
24223 if (!wxPyCheckForApp()) SWIG_fail;
24224 PyThreadState* __tstate = wxPyBeginAllowThreads();
24225 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24226 wxPyEndAllowThreads(__tstate);
24227 if (PyErr_Occurred()) SWIG_fail;
24228 }
24229 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24230 return resultobj;
24231 fail:
24232 return NULL;
24233 }
24234
24235
24236 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24237 PyObject *resultobj = 0;
24238 wxDC *arg1 = (wxDC *) 0 ;
24239 wxSize *arg2 = 0 ;
24240 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24241 wxBufferedDC *result = 0 ;
24242 void *argp1 = 0 ;
24243 int res1 = 0 ;
24244 wxSize temp2 ;
24245 int val3 ;
24246 int ecode3 = 0 ;
24247
24248 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24250 if (!SWIG_IsOK(res1)) {
24251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24252 }
24253 arg1 = reinterpret_cast< wxDC * >(argp1);
24254 {
24255 arg2 = &temp2;
24256 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24257 }
24258 if (swig_obj[2]) {
24259 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24260 if (!SWIG_IsOK(ecode3)) {
24261 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24262 }
24263 arg3 = static_cast< int >(val3);
24264 }
24265 {
24266 if (!wxPyCheckForApp()) SWIG_fail;
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24273 return resultobj;
24274 fail:
24275 return NULL;
24276 }
24277
24278
24279 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24280 int argc;
24281 PyObject *argv[4];
24282
24283 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24284 --argc;
24285 if ((argc >= 1) && (argc <= 3)) {
24286 int _v = 0;
24287 if (argc > 1) {
24288 {
24289 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24290 _v = SWIG_CheckState(res);
24291 }
24292 if (!_v) goto check_1;
24293 }
24294 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24295 }
24296 check_1:
24297
24298 if ((argc >= 2) && (argc <= 3)) {
24299 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24300 }
24301
24302 fail:
24303 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24304 return NULL;
24305 }
24306
24307
24308 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24309 PyObject *resultobj = 0;
24310 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24311 void *argp1 = 0 ;
24312 int res1 = 0 ;
24313 PyObject *swig_obj[1] ;
24314
24315 if (!args) SWIG_fail;
24316 swig_obj[0] = args;
24317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24318 if (!SWIG_IsOK(res1)) {
24319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24320 }
24321 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 delete arg1;
24325
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 resultobj = SWIG_Py_Void();
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24337 PyObject *resultobj = 0;
24338 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 PyObject *swig_obj[1] ;
24342
24343 if (!args) SWIG_fail;
24344 swig_obj[0] = args;
24345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24346 if (!SWIG_IsOK(res1)) {
24347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24348 }
24349 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24350 {
24351 PyThreadState* __tstate = wxPyBeginAllowThreads();
24352 (arg1)->UnMask();
24353 wxPyEndAllowThreads(__tstate);
24354 if (PyErr_Occurred()) SWIG_fail;
24355 }
24356 resultobj = SWIG_Py_Void();
24357 return resultobj;
24358 fail:
24359 return NULL;
24360 }
24361
24362
24363 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24364 PyObject *obj;
24365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24366 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24367 return SWIG_Py_Void();
24368 }
24369
24370 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24371 return SWIG_Python_InitShadowInstance(args);
24372 }
24373
24374 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24375 PyObject *resultobj = 0;
24376 wxWindow *arg1 = (wxWindow *) 0 ;
24377 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24378 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24379 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24380 wxBufferedPaintDC *result = 0 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 void *argp2 = 0 ;
24384 int res2 = 0 ;
24385 int val3 ;
24386 int ecode3 = 0 ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 PyObject * obj2 = 0 ;
24390 char * kwnames[] = {
24391 (char *) "window",(char *) "buffer",(char *) "style", NULL
24392 };
24393
24394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24398 }
24399 arg1 = reinterpret_cast< wxWindow * >(argp1);
24400 if (obj1) {
24401 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24402 if (!SWIG_IsOK(res2)) {
24403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24404 }
24405 if (!argp2) {
24406 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24407 }
24408 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24409 }
24410 if (obj2) {
24411 ecode3 = SWIG_AsVal_int(obj2, &val3);
24412 if (!SWIG_IsOK(ecode3)) {
24413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24414 }
24415 arg3 = static_cast< int >(val3);
24416 }
24417 {
24418 if (!wxPyCheckForApp()) SWIG_fail;
24419 PyThreadState* __tstate = wxPyBeginAllowThreads();
24420 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24421 wxPyEndAllowThreads(__tstate);
24422 if (PyErr_Occurred()) SWIG_fail;
24423 }
24424 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24425 return resultobj;
24426 fail:
24427 return NULL;
24428 }
24429
24430
24431 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24432 PyObject *obj;
24433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24434 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24435 return SWIG_Py_Void();
24436 }
24437
24438 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24439 return SWIG_Python_InitShadowInstance(args);
24440 }
24441
24442 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24443 PyObject *resultobj = 0;
24444 wxWindow *arg1 = (wxWindow *) 0 ;
24445 wxAutoBufferedPaintDC *result = 0 ;
24446 void *argp1 = 0 ;
24447 int res1 = 0 ;
24448 PyObject * obj0 = 0 ;
24449 char * kwnames[] = {
24450 (char *) "win", NULL
24451 };
24452
24453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24455 if (!SWIG_IsOK(res1)) {
24456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24457 }
24458 arg1 = reinterpret_cast< wxWindow * >(argp1);
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24466 return resultobj;
24467 fail:
24468 return NULL;
24469 }
24470
24471
24472 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24473 PyObject *obj;
24474 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24475 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24476 return SWIG_Py_Void();
24477 }
24478
24479 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24480 return SWIG_Python_InitShadowInstance(args);
24481 }
24482
24483 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24484 PyObject *resultobj = 0;
24485 wxWindow *arg1 = (wxWindow *) 0 ;
24486 wxDC *result = 0 ;
24487 void *argp1 = 0 ;
24488 int res1 = 0 ;
24489 PyObject * obj0 = 0 ;
24490 char * kwnames[] = {
24491 (char *) "window", NULL
24492 };
24493
24494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24496 if (!SWIG_IsOK(res1)) {
24497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24498 }
24499 arg1 = reinterpret_cast< wxWindow * >(argp1);
24500 {
24501 PyThreadState* __tstate = wxPyBeginAllowThreads();
24502 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24503 wxPyEndAllowThreads(__tstate);
24504 if (PyErr_Occurred()) SWIG_fail;
24505 }
24506 {
24507 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24508 }
24509 return resultobj;
24510 fail:
24511 return NULL;
24512 }
24513
24514
24515 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj = 0;
24517 wxDC *arg1 = 0 ;
24518 bool arg2 ;
24519 wxMirrorDC *result = 0 ;
24520 void *argp1 = 0 ;
24521 int res1 = 0 ;
24522 bool val2 ;
24523 int ecode2 = 0 ;
24524 PyObject * obj0 = 0 ;
24525 PyObject * obj1 = 0 ;
24526 char * kwnames[] = {
24527 (char *) "dc",(char *) "mirror", NULL
24528 };
24529
24530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24531 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24532 if (!SWIG_IsOK(res1)) {
24533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24534 }
24535 if (!argp1) {
24536 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24537 }
24538 arg1 = reinterpret_cast< wxDC * >(argp1);
24539 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24540 if (!SWIG_IsOK(ecode2)) {
24541 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24542 }
24543 arg2 = static_cast< bool >(val2);
24544 {
24545 if (!wxPyCheckForApp()) SWIG_fail;
24546 PyThreadState* __tstate = wxPyBeginAllowThreads();
24547 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24548 wxPyEndAllowThreads(__tstate);
24549 if (PyErr_Occurred()) SWIG_fail;
24550 }
24551 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24552 return resultobj;
24553 fail:
24554 return NULL;
24555 }
24556
24557
24558 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24559 PyObject *obj;
24560 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24561 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24562 return SWIG_Py_Void();
24563 }
24564
24565 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24566 return SWIG_Python_InitShadowInstance(args);
24567 }
24568
24569 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24570 PyObject *resultobj = 0;
24571 wxPrintData *arg1 = 0 ;
24572 wxPostScriptDC *result = 0 ;
24573 void *argp1 = 0 ;
24574 int res1 = 0 ;
24575 PyObject * obj0 = 0 ;
24576 char * kwnames[] = {
24577 (char *) "printData", NULL
24578 };
24579
24580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24581 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24582 if (!SWIG_IsOK(res1)) {
24583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24584 }
24585 if (!argp1) {
24586 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24587 }
24588 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24589 {
24590 if (!wxPyCheckForApp()) SWIG_fail;
24591 PyThreadState* __tstate = wxPyBeginAllowThreads();
24592 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24593 wxPyEndAllowThreads(__tstate);
24594 if (PyErr_Occurred()) SWIG_fail;
24595 }
24596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24597 return resultobj;
24598 fail:
24599 return NULL;
24600 }
24601
24602
24603 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24604 PyObject *resultobj = 0;
24605 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24606 wxPrintData *result = 0 ;
24607 void *argp1 = 0 ;
24608 int res1 = 0 ;
24609 PyObject *swig_obj[1] ;
24610
24611 if (!args) SWIG_fail;
24612 swig_obj[0] = args;
24613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24614 if (!SWIG_IsOK(res1)) {
24615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24616 }
24617 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24618 {
24619 PyThreadState* __tstate = wxPyBeginAllowThreads();
24620 {
24621 wxPrintData &_result_ref = (arg1)->GetPrintData();
24622 result = (wxPrintData *) &_result_ref;
24623 }
24624 wxPyEndAllowThreads(__tstate);
24625 if (PyErr_Occurred()) SWIG_fail;
24626 }
24627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24628 return resultobj;
24629 fail:
24630 return NULL;
24631 }
24632
24633
24634 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24635 PyObject *resultobj = 0;
24636 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24637 wxPrintData *arg2 = 0 ;
24638 void *argp1 = 0 ;
24639 int res1 = 0 ;
24640 void *argp2 = 0 ;
24641 int res2 = 0 ;
24642 PyObject * obj0 = 0 ;
24643 PyObject * obj1 = 0 ;
24644 char * kwnames[] = {
24645 (char *) "self",(char *) "data", NULL
24646 };
24647
24648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24650 if (!SWIG_IsOK(res1)) {
24651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24652 }
24653 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24654 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24655 if (!SWIG_IsOK(res2)) {
24656 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24657 }
24658 if (!argp2) {
24659 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24660 }
24661 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24662 {
24663 PyThreadState* __tstate = wxPyBeginAllowThreads();
24664 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24665 wxPyEndAllowThreads(__tstate);
24666 if (PyErr_Occurred()) SWIG_fail;
24667 }
24668 resultobj = SWIG_Py_Void();
24669 return resultobj;
24670 fail:
24671 return NULL;
24672 }
24673
24674
24675 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24676 PyObject *resultobj = 0;
24677 int arg1 ;
24678 int val1 ;
24679 int ecode1 = 0 ;
24680 PyObject * obj0 = 0 ;
24681 char * kwnames[] = {
24682 (char *) "ppi", NULL
24683 };
24684
24685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24686 ecode1 = SWIG_AsVal_int(obj0, &val1);
24687 if (!SWIG_IsOK(ecode1)) {
24688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24689 }
24690 arg1 = static_cast< int >(val1);
24691 {
24692 PyThreadState* __tstate = wxPyBeginAllowThreads();
24693 wxPostScriptDC::SetResolution(arg1);
24694 wxPyEndAllowThreads(__tstate);
24695 if (PyErr_Occurred()) SWIG_fail;
24696 }
24697 resultobj = SWIG_Py_Void();
24698 return resultobj;
24699 fail:
24700 return NULL;
24701 }
24702
24703
24704 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24705 PyObject *resultobj = 0;
24706 int result;
24707
24708 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24709 {
24710 PyThreadState* __tstate = wxPyBeginAllowThreads();
24711 result = (int)wxPostScriptDC::GetResolution();
24712 wxPyEndAllowThreads(__tstate);
24713 if (PyErr_Occurred()) SWIG_fail;
24714 }
24715 resultobj = SWIG_From_int(static_cast< int >(result));
24716 return resultobj;
24717 fail:
24718 return NULL;
24719 }
24720
24721
24722 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24723 PyObject *obj;
24724 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24725 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24726 return SWIG_Py_Void();
24727 }
24728
24729 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24730 return SWIG_Python_InitShadowInstance(args);
24731 }
24732
24733 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24734 PyObject *resultobj = 0;
24735 wxString const &arg1_defvalue = wxPyEmptyString ;
24736 wxString *arg1 = (wxString *) &arg1_defvalue ;
24737 wxMetaFile *result = 0 ;
24738 bool temp1 = false ;
24739 PyObject * obj0 = 0 ;
24740 char * kwnames[] = {
24741 (char *) "filename", NULL
24742 };
24743
24744 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24745 if (obj0) {
24746 {
24747 arg1 = wxString_in_helper(obj0);
24748 if (arg1 == NULL) SWIG_fail;
24749 temp1 = true;
24750 }
24751 }
24752 {
24753 if (!wxPyCheckForApp()) SWIG_fail;
24754 PyThreadState* __tstate = wxPyBeginAllowThreads();
24755 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24756 wxPyEndAllowThreads(__tstate);
24757 if (PyErr_Occurred()) SWIG_fail;
24758 }
24759 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24760 {
24761 if (temp1)
24762 delete arg1;
24763 }
24764 return resultobj;
24765 fail:
24766 {
24767 if (temp1)
24768 delete arg1;
24769 }
24770 return NULL;
24771 }
24772
24773
24774 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24775 PyObject *resultobj = 0;
24776 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24777 void *argp1 = 0 ;
24778 int res1 = 0 ;
24779 PyObject *swig_obj[1] ;
24780
24781 if (!args) SWIG_fail;
24782 swig_obj[0] = args;
24783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24784 if (!SWIG_IsOK(res1)) {
24785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24786 }
24787 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24788 {
24789 PyThreadState* __tstate = wxPyBeginAllowThreads();
24790 delete arg1;
24791
24792 wxPyEndAllowThreads(__tstate);
24793 if (PyErr_Occurred()) SWIG_fail;
24794 }
24795 resultobj = SWIG_Py_Void();
24796 return resultobj;
24797 fail:
24798 return NULL;
24799 }
24800
24801
24802 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24803 PyObject *resultobj = 0;
24804 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24805 bool result;
24806 void *argp1 = 0 ;
24807 int res1 = 0 ;
24808 PyObject *swig_obj[1] ;
24809
24810 if (!args) SWIG_fail;
24811 swig_obj[0] = args;
24812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24813 if (!SWIG_IsOK(res1)) {
24814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24815 }
24816 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24817 {
24818 PyThreadState* __tstate = wxPyBeginAllowThreads();
24819 result = (bool)(arg1)->IsOk();
24820 wxPyEndAllowThreads(__tstate);
24821 if (PyErr_Occurred()) SWIG_fail;
24822 }
24823 {
24824 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24825 }
24826 return resultobj;
24827 fail:
24828 return NULL;
24829 }
24830
24831
24832 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24833 PyObject *resultobj = 0;
24834 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24835 int arg2 = (int) 0 ;
24836 int arg3 = (int) 0 ;
24837 bool result;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 int val2 ;
24841 int ecode2 = 0 ;
24842 int val3 ;
24843 int ecode3 = 0 ;
24844 PyObject * obj0 = 0 ;
24845 PyObject * obj1 = 0 ;
24846 PyObject * obj2 = 0 ;
24847 char * kwnames[] = {
24848 (char *) "self",(char *) "width",(char *) "height", NULL
24849 };
24850
24851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24853 if (!SWIG_IsOK(res1)) {
24854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24855 }
24856 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24857 if (obj1) {
24858 ecode2 = SWIG_AsVal_int(obj1, &val2);
24859 if (!SWIG_IsOK(ecode2)) {
24860 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24861 }
24862 arg2 = static_cast< int >(val2);
24863 }
24864 if (obj2) {
24865 ecode3 = SWIG_AsVal_int(obj2, &val3);
24866 if (!SWIG_IsOK(ecode3)) {
24867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24868 }
24869 arg3 = static_cast< int >(val3);
24870 }
24871 {
24872 PyThreadState* __tstate = wxPyBeginAllowThreads();
24873 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24874 wxPyEndAllowThreads(__tstate);
24875 if (PyErr_Occurred()) SWIG_fail;
24876 }
24877 {
24878 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24879 }
24880 return resultobj;
24881 fail:
24882 return NULL;
24883 }
24884
24885
24886 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24887 PyObject *resultobj = 0;
24888 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24889 wxSize result;
24890 void *argp1 = 0 ;
24891 int res1 = 0 ;
24892 PyObject *swig_obj[1] ;
24893
24894 if (!args) SWIG_fail;
24895 swig_obj[0] = args;
24896 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24897 if (!SWIG_IsOK(res1)) {
24898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24899 }
24900 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24901 {
24902 PyThreadState* __tstate = wxPyBeginAllowThreads();
24903 result = (arg1)->GetSize();
24904 wxPyEndAllowThreads(__tstate);
24905 if (PyErr_Occurred()) SWIG_fail;
24906 }
24907 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24908 return resultobj;
24909 fail:
24910 return NULL;
24911 }
24912
24913
24914 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24915 PyObject *resultobj = 0;
24916 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24917 int result;
24918 void *argp1 = 0 ;
24919 int res1 = 0 ;
24920 PyObject *swig_obj[1] ;
24921
24922 if (!args) SWIG_fail;
24923 swig_obj[0] = args;
24924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24925 if (!SWIG_IsOK(res1)) {
24926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24927 }
24928 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24929 {
24930 PyThreadState* __tstate = wxPyBeginAllowThreads();
24931 result = (int)(arg1)->GetWidth();
24932 wxPyEndAllowThreads(__tstate);
24933 if (PyErr_Occurred()) SWIG_fail;
24934 }
24935 resultobj = SWIG_From_int(static_cast< int >(result));
24936 return resultobj;
24937 fail:
24938 return NULL;
24939 }
24940
24941
24942 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24943 PyObject *resultobj = 0;
24944 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24945 int result;
24946 void *argp1 = 0 ;
24947 int res1 = 0 ;
24948 PyObject *swig_obj[1] ;
24949
24950 if (!args) SWIG_fail;
24951 swig_obj[0] = args;
24952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24953 if (!SWIG_IsOK(res1)) {
24954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24955 }
24956 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24957 {
24958 PyThreadState* __tstate = wxPyBeginAllowThreads();
24959 result = (int)(arg1)->GetHeight();
24960 wxPyEndAllowThreads(__tstate);
24961 if (PyErr_Occurred()) SWIG_fail;
24962 }
24963 resultobj = SWIG_From_int(static_cast< int >(result));
24964 return resultobj;
24965 fail:
24966 return NULL;
24967 }
24968
24969
24970 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24971 PyObject *resultobj = 0;
24972 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24973 wxString *result = 0 ;
24974 void *argp1 = 0 ;
24975 int res1 = 0 ;
24976 PyObject *swig_obj[1] ;
24977
24978 if (!args) SWIG_fail;
24979 swig_obj[0] = args;
24980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24983 }
24984 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24985 {
24986 PyThreadState* __tstate = wxPyBeginAllowThreads();
24987 {
24988 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
24989 result = (wxString *) &_result_ref;
24990 }
24991 wxPyEndAllowThreads(__tstate);
24992 if (PyErr_Occurred()) SWIG_fail;
24993 }
24994 {
24995 #if wxUSE_UNICODE
24996 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
24997 #else
24998 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
24999 #endif
25000 }
25001 return resultobj;
25002 fail:
25003 return NULL;
25004 }
25005
25006
25007 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25008 PyObject *obj;
25009 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25010 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25011 return SWIG_Py_Void();
25012 }
25013
25014 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25015 return SWIG_Python_InitShadowInstance(args);
25016 }
25017
25018 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25019 PyObject *resultobj = 0;
25020 wxString const &arg1_defvalue = wxPyEmptyString ;
25021 wxString *arg1 = (wxString *) &arg1_defvalue ;
25022 int arg2 = (int) 0 ;
25023 int arg3 = (int) 0 ;
25024 wxString const &arg4_defvalue = wxPyEmptyString ;
25025 wxString *arg4 = (wxString *) &arg4_defvalue ;
25026 wxMetaFileDC *result = 0 ;
25027 bool temp1 = false ;
25028 int val2 ;
25029 int ecode2 = 0 ;
25030 int val3 ;
25031 int ecode3 = 0 ;
25032 bool temp4 = false ;
25033 PyObject * obj0 = 0 ;
25034 PyObject * obj1 = 0 ;
25035 PyObject * obj2 = 0 ;
25036 PyObject * obj3 = 0 ;
25037 char * kwnames[] = {
25038 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25039 };
25040
25041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25042 if (obj0) {
25043 {
25044 arg1 = wxString_in_helper(obj0);
25045 if (arg1 == NULL) SWIG_fail;
25046 temp1 = true;
25047 }
25048 }
25049 if (obj1) {
25050 ecode2 = SWIG_AsVal_int(obj1, &val2);
25051 if (!SWIG_IsOK(ecode2)) {
25052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25053 }
25054 arg2 = static_cast< int >(val2);
25055 }
25056 if (obj2) {
25057 ecode3 = SWIG_AsVal_int(obj2, &val3);
25058 if (!SWIG_IsOK(ecode3)) {
25059 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25060 }
25061 arg3 = static_cast< int >(val3);
25062 }
25063 if (obj3) {
25064 {
25065 arg4 = wxString_in_helper(obj3);
25066 if (arg4 == NULL) SWIG_fail;
25067 temp4 = true;
25068 }
25069 }
25070 {
25071 if (!wxPyCheckForApp()) SWIG_fail;
25072 PyThreadState* __tstate = wxPyBeginAllowThreads();
25073 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25074 wxPyEndAllowThreads(__tstate);
25075 if (PyErr_Occurred()) SWIG_fail;
25076 }
25077 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25078 {
25079 if (temp1)
25080 delete arg1;
25081 }
25082 {
25083 if (temp4)
25084 delete arg4;
25085 }
25086 return resultobj;
25087 fail:
25088 {
25089 if (temp1)
25090 delete arg1;
25091 }
25092 {
25093 if (temp4)
25094 delete arg4;
25095 }
25096 return NULL;
25097 }
25098
25099
25100 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25101 PyObject *resultobj = 0;
25102 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25103 wxMetaFile *result = 0 ;
25104 void *argp1 = 0 ;
25105 int res1 = 0 ;
25106 PyObject *swig_obj[1] ;
25107
25108 if (!args) SWIG_fail;
25109 swig_obj[0] = args;
25110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25111 if (!SWIG_IsOK(res1)) {
25112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25113 }
25114 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25115 {
25116 PyThreadState* __tstate = wxPyBeginAllowThreads();
25117 result = (wxMetaFile *)(arg1)->Close();
25118 wxPyEndAllowThreads(__tstate);
25119 if (PyErr_Occurred()) SWIG_fail;
25120 }
25121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25122 return resultobj;
25123 fail:
25124 return NULL;
25125 }
25126
25127
25128 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25129 PyObject *obj;
25130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25131 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25132 return SWIG_Py_Void();
25133 }
25134
25135 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25136 return SWIG_Python_InitShadowInstance(args);
25137 }
25138
25139 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25140 PyObject *resultobj = 0;
25141 wxPrintData *arg1 = 0 ;
25142 wxPrinterDC *result = 0 ;
25143 void *argp1 = 0 ;
25144 int res1 = 0 ;
25145 PyObject * obj0 = 0 ;
25146 char * kwnames[] = {
25147 (char *) "printData", NULL
25148 };
25149
25150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25151 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25152 if (!SWIG_IsOK(res1)) {
25153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25154 }
25155 if (!argp1) {
25156 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25157 }
25158 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25159 {
25160 if (!wxPyCheckForApp()) SWIG_fail;
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25167 return resultobj;
25168 fail:
25169 return NULL;
25170 }
25171
25172
25173 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25174 PyObject *obj;
25175 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25176 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25177 return SWIG_Py_Void();
25178 }
25179
25180 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25181 return SWIG_Python_InitShadowInstance(args);
25182 }
25183
25184 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25185 PyObject *resultobj = 0;
25186 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25187 void *argp1 = 0 ;
25188 int res1 = 0 ;
25189 PyObject *swig_obj[1] ;
25190
25191 if (!args) SWIG_fail;
25192 swig_obj[0] = args;
25193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25194 if (!SWIG_IsOK(res1)) {
25195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25196 }
25197 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25198 {
25199 delete arg1;
25200
25201 if (PyErr_Occurred()) SWIG_fail;
25202 }
25203 resultobj = SWIG_Py_Void();
25204 return resultobj;
25205 fail:
25206 return NULL;
25207 }
25208
25209
25210 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25211 PyObject *resultobj = 0;
25212 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25213 wxDouble arg2 ;
25214 wxDouble arg3 ;
25215 void *argp1 = 0 ;
25216 int res1 = 0 ;
25217 double val2 ;
25218 int ecode2 = 0 ;
25219 double val3 ;
25220 int ecode3 = 0 ;
25221 PyObject * obj0 = 0 ;
25222 PyObject * obj1 = 0 ;
25223 PyObject * obj2 = 0 ;
25224 char * kwnames[] = {
25225 (char *) "self",(char *) "x",(char *) "y", NULL
25226 };
25227
25228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25230 if (!SWIG_IsOK(res1)) {
25231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25232 }
25233 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25234 ecode2 = SWIG_AsVal_double(obj1, &val2);
25235 if (!SWIG_IsOK(ecode2)) {
25236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25237 }
25238 arg2 = static_cast< wxDouble >(val2);
25239 ecode3 = SWIG_AsVal_double(obj2, &val3);
25240 if (!SWIG_IsOK(ecode3)) {
25241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25242 }
25243 arg3 = static_cast< wxDouble >(val3);
25244 {
25245 (arg1)->MoveToPoint(arg2,arg3);
25246 if (PyErr_Occurred()) SWIG_fail;
25247 }
25248 resultobj = SWIG_Py_Void();
25249 return resultobj;
25250 fail:
25251 return NULL;
25252 }
25253
25254
25255 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25256 PyObject *resultobj = 0;
25257 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25258 wxDouble arg2 ;
25259 wxDouble arg3 ;
25260 void *argp1 = 0 ;
25261 int res1 = 0 ;
25262 double val2 ;
25263 int ecode2 = 0 ;
25264 double val3 ;
25265 int ecode3 = 0 ;
25266 PyObject * obj0 = 0 ;
25267 PyObject * obj1 = 0 ;
25268 PyObject * obj2 = 0 ;
25269 char * kwnames[] = {
25270 (char *) "self",(char *) "x",(char *) "y", NULL
25271 };
25272
25273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25275 if (!SWIG_IsOK(res1)) {
25276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25277 }
25278 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25279 ecode2 = SWIG_AsVal_double(obj1, &val2);
25280 if (!SWIG_IsOK(ecode2)) {
25281 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25282 }
25283 arg2 = static_cast< wxDouble >(val2);
25284 ecode3 = SWIG_AsVal_double(obj2, &val3);
25285 if (!SWIG_IsOK(ecode3)) {
25286 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25287 }
25288 arg3 = static_cast< wxDouble >(val3);
25289 {
25290 (arg1)->AddLineToPoint(arg2,arg3);
25291 if (PyErr_Occurred()) SWIG_fail;
25292 }
25293 resultobj = SWIG_Py_Void();
25294 return resultobj;
25295 fail:
25296 return NULL;
25297 }
25298
25299
25300 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25301 PyObject *resultobj = 0;
25302 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25303 wxDouble arg2 ;
25304 wxDouble arg3 ;
25305 wxDouble arg4 ;
25306 wxDouble arg5 ;
25307 wxDouble arg6 ;
25308 wxDouble arg7 ;
25309 void *argp1 = 0 ;
25310 int res1 = 0 ;
25311 double val2 ;
25312 int ecode2 = 0 ;
25313 double val3 ;
25314 int ecode3 = 0 ;
25315 double val4 ;
25316 int ecode4 = 0 ;
25317 double val5 ;
25318 int ecode5 = 0 ;
25319 double val6 ;
25320 int ecode6 = 0 ;
25321 double val7 ;
25322 int ecode7 = 0 ;
25323 PyObject * obj0 = 0 ;
25324 PyObject * obj1 = 0 ;
25325 PyObject * obj2 = 0 ;
25326 PyObject * obj3 = 0 ;
25327 PyObject * obj4 = 0 ;
25328 PyObject * obj5 = 0 ;
25329 PyObject * obj6 = 0 ;
25330 char * kwnames[] = {
25331 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25332 };
25333
25334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25336 if (!SWIG_IsOK(res1)) {
25337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25338 }
25339 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25340 ecode2 = SWIG_AsVal_double(obj1, &val2);
25341 if (!SWIG_IsOK(ecode2)) {
25342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25343 }
25344 arg2 = static_cast< wxDouble >(val2);
25345 ecode3 = SWIG_AsVal_double(obj2, &val3);
25346 if (!SWIG_IsOK(ecode3)) {
25347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25348 }
25349 arg3 = static_cast< wxDouble >(val3);
25350 ecode4 = SWIG_AsVal_double(obj3, &val4);
25351 if (!SWIG_IsOK(ecode4)) {
25352 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25353 }
25354 arg4 = static_cast< wxDouble >(val4);
25355 ecode5 = SWIG_AsVal_double(obj4, &val5);
25356 if (!SWIG_IsOK(ecode5)) {
25357 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25358 }
25359 arg5 = static_cast< wxDouble >(val5);
25360 ecode6 = SWIG_AsVal_double(obj5, &val6);
25361 if (!SWIG_IsOK(ecode6)) {
25362 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25363 }
25364 arg6 = static_cast< wxDouble >(val6);
25365 ecode7 = SWIG_AsVal_double(obj6, &val7);
25366 if (!SWIG_IsOK(ecode7)) {
25367 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25368 }
25369 arg7 = static_cast< wxDouble >(val7);
25370 {
25371 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25372 if (PyErr_Occurred()) SWIG_fail;
25373 }
25374 resultobj = SWIG_Py_Void();
25375 return resultobj;
25376 fail:
25377 return NULL;
25378 }
25379
25380
25381 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25382 PyObject *resultobj = 0;
25383 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25384 void *argp1 = 0 ;
25385 int res1 = 0 ;
25386 PyObject *swig_obj[1] ;
25387
25388 if (!args) SWIG_fail;
25389 swig_obj[0] = args;
25390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25391 if (!SWIG_IsOK(res1)) {
25392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25393 }
25394 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25395 {
25396 (arg1)->CloseSubpath();
25397 if (PyErr_Occurred()) SWIG_fail;
25398 }
25399 resultobj = SWIG_Py_Void();
25400 return resultobj;
25401 fail:
25402 return NULL;
25403 }
25404
25405
25406 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25407 PyObject *resultobj = 0;
25408 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25409 wxPoint2D result;
25410 void *argp1 = 0 ;
25411 int res1 = 0 ;
25412 PyObject *swig_obj[1] ;
25413
25414 if (!args) SWIG_fail;
25415 swig_obj[0] = args;
25416 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25417 if (!SWIG_IsOK(res1)) {
25418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25419 }
25420 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25421 {
25422 result = (arg1)->GetCurrentPoint();
25423 if (PyErr_Occurred()) SWIG_fail;
25424 }
25425 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25426 return resultobj;
25427 fail:
25428 return NULL;
25429 }
25430
25431
25432 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25433 PyObject *resultobj = 0;
25434 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25435 wxDouble arg2 ;
25436 wxDouble arg3 ;
25437 wxDouble arg4 ;
25438 wxDouble arg5 ;
25439 wxDouble arg6 ;
25440 bool arg7 ;
25441 void *argp1 = 0 ;
25442 int res1 = 0 ;
25443 double val2 ;
25444 int ecode2 = 0 ;
25445 double val3 ;
25446 int ecode3 = 0 ;
25447 double val4 ;
25448 int ecode4 = 0 ;
25449 double val5 ;
25450 int ecode5 = 0 ;
25451 double val6 ;
25452 int ecode6 = 0 ;
25453 bool val7 ;
25454 int ecode7 = 0 ;
25455 PyObject * obj0 = 0 ;
25456 PyObject * obj1 = 0 ;
25457 PyObject * obj2 = 0 ;
25458 PyObject * obj3 = 0 ;
25459 PyObject * obj4 = 0 ;
25460 PyObject * obj5 = 0 ;
25461 PyObject * obj6 = 0 ;
25462 char * kwnames[] = {
25463 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25464 };
25465
25466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25468 if (!SWIG_IsOK(res1)) {
25469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25470 }
25471 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25472 ecode2 = SWIG_AsVal_double(obj1, &val2);
25473 if (!SWIG_IsOK(ecode2)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25475 }
25476 arg2 = static_cast< wxDouble >(val2);
25477 ecode3 = SWIG_AsVal_double(obj2, &val3);
25478 if (!SWIG_IsOK(ecode3)) {
25479 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25480 }
25481 arg3 = static_cast< wxDouble >(val3);
25482 ecode4 = SWIG_AsVal_double(obj3, &val4);
25483 if (!SWIG_IsOK(ecode4)) {
25484 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25485 }
25486 arg4 = static_cast< wxDouble >(val4);
25487 ecode5 = SWIG_AsVal_double(obj4, &val5);
25488 if (!SWIG_IsOK(ecode5)) {
25489 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25490 }
25491 arg5 = static_cast< wxDouble >(val5);
25492 ecode6 = SWIG_AsVal_double(obj5, &val6);
25493 if (!SWIG_IsOK(ecode6)) {
25494 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25495 }
25496 arg6 = static_cast< wxDouble >(val6);
25497 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25498 if (!SWIG_IsOK(ecode7)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25500 }
25501 arg7 = static_cast< bool >(val7);
25502 {
25503 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25504 if (PyErr_Occurred()) SWIG_fail;
25505 }
25506 resultobj = SWIG_Py_Void();
25507 return resultobj;
25508 fail:
25509 return NULL;
25510 }
25511
25512
25513 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25514 PyObject *resultobj = 0;
25515 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25516 wxDouble arg2 ;
25517 wxDouble arg3 ;
25518 wxDouble arg4 ;
25519 wxDouble arg5 ;
25520 void *argp1 = 0 ;
25521 int res1 = 0 ;
25522 double val2 ;
25523 int ecode2 = 0 ;
25524 double val3 ;
25525 int ecode3 = 0 ;
25526 double val4 ;
25527 int ecode4 = 0 ;
25528 double val5 ;
25529 int ecode5 = 0 ;
25530 PyObject * obj0 = 0 ;
25531 PyObject * obj1 = 0 ;
25532 PyObject * obj2 = 0 ;
25533 PyObject * obj3 = 0 ;
25534 PyObject * obj4 = 0 ;
25535 char * kwnames[] = {
25536 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25537 };
25538
25539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25541 if (!SWIG_IsOK(res1)) {
25542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25543 }
25544 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25545 ecode2 = SWIG_AsVal_double(obj1, &val2);
25546 if (!SWIG_IsOK(ecode2)) {
25547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25548 }
25549 arg2 = static_cast< wxDouble >(val2);
25550 ecode3 = SWIG_AsVal_double(obj2, &val3);
25551 if (!SWIG_IsOK(ecode3)) {
25552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25553 }
25554 arg3 = static_cast< wxDouble >(val3);
25555 ecode4 = SWIG_AsVal_double(obj3, &val4);
25556 if (!SWIG_IsOK(ecode4)) {
25557 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25558 }
25559 arg4 = static_cast< wxDouble >(val4);
25560 ecode5 = SWIG_AsVal_double(obj4, &val5);
25561 if (!SWIG_IsOK(ecode5)) {
25562 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25563 }
25564 arg5 = static_cast< wxDouble >(val5);
25565 {
25566 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25567 if (PyErr_Occurred()) SWIG_fail;
25568 }
25569 resultobj = SWIG_Py_Void();
25570 return resultobj;
25571 fail:
25572 return NULL;
25573 }
25574
25575
25576 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25577 PyObject *resultobj = 0;
25578 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25579 wxDouble arg2 ;
25580 wxDouble arg3 ;
25581 wxDouble arg4 ;
25582 wxDouble arg5 ;
25583 void *argp1 = 0 ;
25584 int res1 = 0 ;
25585 double val2 ;
25586 int ecode2 = 0 ;
25587 double val3 ;
25588 int ecode3 = 0 ;
25589 double val4 ;
25590 int ecode4 = 0 ;
25591 double val5 ;
25592 int ecode5 = 0 ;
25593 PyObject * obj0 = 0 ;
25594 PyObject * obj1 = 0 ;
25595 PyObject * obj2 = 0 ;
25596 PyObject * obj3 = 0 ;
25597 PyObject * obj4 = 0 ;
25598 char * kwnames[] = {
25599 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25600 };
25601
25602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25603 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25604 if (!SWIG_IsOK(res1)) {
25605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25606 }
25607 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25608 ecode2 = SWIG_AsVal_double(obj1, &val2);
25609 if (!SWIG_IsOK(ecode2)) {
25610 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25611 }
25612 arg2 = static_cast< wxDouble >(val2);
25613 ecode3 = SWIG_AsVal_double(obj2, &val3);
25614 if (!SWIG_IsOK(ecode3)) {
25615 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25616 }
25617 arg3 = static_cast< wxDouble >(val3);
25618 ecode4 = SWIG_AsVal_double(obj3, &val4);
25619 if (!SWIG_IsOK(ecode4)) {
25620 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25621 }
25622 arg4 = static_cast< wxDouble >(val4);
25623 ecode5 = SWIG_AsVal_double(obj4, &val5);
25624 if (!SWIG_IsOK(ecode5)) {
25625 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25626 }
25627 arg5 = static_cast< wxDouble >(val5);
25628 {
25629 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25630 if (PyErr_Occurred()) SWIG_fail;
25631 }
25632 resultobj = SWIG_Py_Void();
25633 return resultobj;
25634 fail:
25635 return NULL;
25636 }
25637
25638
25639 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25640 PyObject *resultobj = 0;
25641 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25642 wxDouble arg2 ;
25643 wxDouble arg3 ;
25644 wxDouble arg4 ;
25645 void *argp1 = 0 ;
25646 int res1 = 0 ;
25647 double val2 ;
25648 int ecode2 = 0 ;
25649 double val3 ;
25650 int ecode3 = 0 ;
25651 double val4 ;
25652 int ecode4 = 0 ;
25653 PyObject * obj0 = 0 ;
25654 PyObject * obj1 = 0 ;
25655 PyObject * obj2 = 0 ;
25656 PyObject * obj3 = 0 ;
25657 char * kwnames[] = {
25658 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25659 };
25660
25661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25663 if (!SWIG_IsOK(res1)) {
25664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25665 }
25666 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25667 ecode2 = SWIG_AsVal_double(obj1, &val2);
25668 if (!SWIG_IsOK(ecode2)) {
25669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25670 }
25671 arg2 = static_cast< wxDouble >(val2);
25672 ecode3 = SWIG_AsVal_double(obj2, &val3);
25673 if (!SWIG_IsOK(ecode3)) {
25674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25675 }
25676 arg3 = static_cast< wxDouble >(val3);
25677 ecode4 = SWIG_AsVal_double(obj3, &val4);
25678 if (!SWIG_IsOK(ecode4)) {
25679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25680 }
25681 arg4 = static_cast< wxDouble >(val4);
25682 {
25683 (arg1)->AddCircle(arg2,arg3,arg4);
25684 if (PyErr_Occurred()) SWIG_fail;
25685 }
25686 resultobj = SWIG_Py_Void();
25687 return resultobj;
25688 fail:
25689 return NULL;
25690 }
25691
25692
25693 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25694 PyObject *resultobj = 0;
25695 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25696 wxDouble arg2 ;
25697 wxDouble arg3 ;
25698 wxDouble arg4 ;
25699 wxDouble arg5 ;
25700 wxDouble arg6 ;
25701 void *argp1 = 0 ;
25702 int res1 = 0 ;
25703 double val2 ;
25704 int ecode2 = 0 ;
25705 double val3 ;
25706 int ecode3 = 0 ;
25707 double val4 ;
25708 int ecode4 = 0 ;
25709 double val5 ;
25710 int ecode5 = 0 ;
25711 double val6 ;
25712 int ecode6 = 0 ;
25713 PyObject * obj0 = 0 ;
25714 PyObject * obj1 = 0 ;
25715 PyObject * obj2 = 0 ;
25716 PyObject * obj3 = 0 ;
25717 PyObject * obj4 = 0 ;
25718 PyObject * obj5 = 0 ;
25719 char * kwnames[] = {
25720 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25721 };
25722
25723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25725 if (!SWIG_IsOK(res1)) {
25726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25727 }
25728 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25729 ecode2 = SWIG_AsVal_double(obj1, &val2);
25730 if (!SWIG_IsOK(ecode2)) {
25731 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25732 }
25733 arg2 = static_cast< wxDouble >(val2);
25734 ecode3 = SWIG_AsVal_double(obj2, &val3);
25735 if (!SWIG_IsOK(ecode3)) {
25736 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25737 }
25738 arg3 = static_cast< wxDouble >(val3);
25739 ecode4 = SWIG_AsVal_double(obj3, &val4);
25740 if (!SWIG_IsOK(ecode4)) {
25741 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25742 }
25743 arg4 = static_cast< wxDouble >(val4);
25744 ecode5 = SWIG_AsVal_double(obj4, &val5);
25745 if (!SWIG_IsOK(ecode5)) {
25746 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25747 }
25748 arg5 = static_cast< wxDouble >(val5);
25749 ecode6 = SWIG_AsVal_double(obj5, &val6);
25750 if (!SWIG_IsOK(ecode6)) {
25751 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25752 }
25753 arg6 = static_cast< wxDouble >(val6);
25754 {
25755 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25756 if (PyErr_Occurred()) SWIG_fail;
25757 }
25758 resultobj = SWIG_Py_Void();
25759 return resultobj;
25760 fail:
25761 return NULL;
25762 }
25763
25764
25765 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25766 PyObject *obj;
25767 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25768 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25769 return SWIG_Py_Void();
25770 }
25771
25772 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25773 PyObject *resultobj = 0;
25774 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25775 void *argp1 = 0 ;
25776 int res1 = 0 ;
25777 PyObject *swig_obj[1] ;
25778
25779 if (!args) SWIG_fail;
25780 swig_obj[0] = args;
25781 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25782 if (!SWIG_IsOK(res1)) {
25783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25784 }
25785 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25786 {
25787 delete arg1;
25788
25789 if (PyErr_Occurred()) SWIG_fail;
25790 }
25791 resultobj = SWIG_Py_Void();
25792 return resultobj;
25793 fail:
25794 return NULL;
25795 }
25796
25797
25798 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25799 PyObject *resultobj = 0;
25800 wxWindowDC *arg1 = 0 ;
25801 wxGraphicsContext *result = 0 ;
25802 void *argp1 = 0 ;
25803 int res1 = 0 ;
25804
25805 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25807 if (!SWIG_IsOK(res1)) {
25808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25809 }
25810 if (!argp1) {
25811 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25812 }
25813 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25814 {
25815 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25816 if (PyErr_Occurred()) SWIG_fail;
25817 }
25818 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25819 return resultobj;
25820 fail:
25821 return NULL;
25822 }
25823
25824
25825 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25826 PyObject *resultobj = 0;
25827 wxWindow *arg1 = (wxWindow *) 0 ;
25828 wxGraphicsContext *result = 0 ;
25829 void *argp1 = 0 ;
25830 int res1 = 0 ;
25831
25832 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25834 if (!SWIG_IsOK(res1)) {
25835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25836 }
25837 arg1 = reinterpret_cast< wxWindow * >(argp1);
25838 {
25839 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25840 if (PyErr_Occurred()) SWIG_fail;
25841 }
25842 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25843 return resultobj;
25844 fail:
25845 return NULL;
25846 }
25847
25848
25849 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25850 int argc;
25851 PyObject *argv[2];
25852
25853 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25854 --argc;
25855 if (argc == 1) {
25856 int _v = 0;
25857 {
25858 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25859 _v = SWIG_CheckState(res);
25860 }
25861 if (!_v) goto check_1;
25862 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25863 }
25864 check_1:
25865
25866 if (argc == 1) {
25867 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25868 }
25869
25870 fail:
25871 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25872 return NULL;
25873 }
25874
25875
25876 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25877 PyObject *resultobj = 0;
25878 void *arg1 = (void *) 0 ;
25879 wxGraphicsContext *result = 0 ;
25880 int res1 ;
25881 PyObject * obj0 = 0 ;
25882 char * kwnames[] = {
25883 (char *) "context", NULL
25884 };
25885
25886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25887 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25888 if (!SWIG_IsOK(res1)) {
25889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25890 }
25891 {
25892 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25893 if (PyErr_Occurred()) SWIG_fail;
25894 }
25895 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25896 return resultobj;
25897 fail:
25898 return NULL;
25899 }
25900
25901
25902 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25903 PyObject *resultobj = 0;
25904 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25905 wxGraphicsPath *result = 0 ;
25906 void *argp1 = 0 ;
25907 int res1 = 0 ;
25908 PyObject *swig_obj[1] ;
25909
25910 if (!args) SWIG_fail;
25911 swig_obj[0] = args;
25912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25913 if (!SWIG_IsOK(res1)) {
25914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25915 }
25916 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25917 {
25918 result = (wxGraphicsPath *)(arg1)->CreatePath();
25919 if (PyErr_Occurred()) SWIG_fail;
25920 }
25921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25922 return resultobj;
25923 fail:
25924 return NULL;
25925 }
25926
25927
25928 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25929 PyObject *resultobj = 0;
25930 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25931 void *argp1 = 0 ;
25932 int res1 = 0 ;
25933 PyObject *swig_obj[1] ;
25934
25935 if (!args) SWIG_fail;
25936 swig_obj[0] = args;
25937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25938 if (!SWIG_IsOK(res1)) {
25939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25940 }
25941 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25942 {
25943 (arg1)->PushState();
25944 if (PyErr_Occurred()) SWIG_fail;
25945 }
25946 resultobj = SWIG_Py_Void();
25947 return resultobj;
25948 fail:
25949 return NULL;
25950 }
25951
25952
25953 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25954 PyObject *resultobj = 0;
25955 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25956 void *argp1 = 0 ;
25957 int res1 = 0 ;
25958 PyObject *swig_obj[1] ;
25959
25960 if (!args) SWIG_fail;
25961 swig_obj[0] = args;
25962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25963 if (!SWIG_IsOK(res1)) {
25964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25965 }
25966 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25967 {
25968 (arg1)->PopState();
25969 if (PyErr_Occurred()) SWIG_fail;
25970 }
25971 resultobj = SWIG_Py_Void();
25972 return resultobj;
25973 fail:
25974 return NULL;
25975 }
25976
25977
25978 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25979 PyObject *resultobj = 0;
25980 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25981 wxRegion *arg2 = 0 ;
25982 void *argp1 = 0 ;
25983 int res1 = 0 ;
25984 void *argp2 = 0 ;
25985 int res2 = 0 ;
25986 PyObject * obj0 = 0 ;
25987 PyObject * obj1 = 0 ;
25988 char * kwnames[] = {
25989 (char *) "self",(char *) "region", NULL
25990 };
25991
25992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
25993 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25994 if (!SWIG_IsOK(res1)) {
25995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25996 }
25997 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25998 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
25999 if (!SWIG_IsOK(res2)) {
26000 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
26001 }
26002 if (!argp2) {
26003 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
26004 }
26005 arg2 = reinterpret_cast< wxRegion * >(argp2);
26006 {
26007 (arg1)->Clip((wxRegion const &)*arg2);
26008 if (PyErr_Occurred()) SWIG_fail;
26009 }
26010 resultobj = SWIG_Py_Void();
26011 return resultobj;
26012 fail:
26013 return NULL;
26014 }
26015
26016
26017 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26018 PyObject *resultobj = 0;
26019 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26020 wxDouble arg2 ;
26021 wxDouble arg3 ;
26022 wxDouble arg4 ;
26023 wxDouble arg5 ;
26024 void *argp1 = 0 ;
26025 int res1 = 0 ;
26026 double val2 ;
26027 int ecode2 = 0 ;
26028 double val3 ;
26029 int ecode3 = 0 ;
26030 double val4 ;
26031 int ecode4 = 0 ;
26032 double val5 ;
26033 int ecode5 = 0 ;
26034 PyObject * obj0 = 0 ;
26035 PyObject * obj1 = 0 ;
26036 PyObject * obj2 = 0 ;
26037 PyObject * obj3 = 0 ;
26038 PyObject * obj4 = 0 ;
26039 char * kwnames[] = {
26040 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26041 };
26042
26043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26045 if (!SWIG_IsOK(res1)) {
26046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26047 }
26048 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26049 ecode2 = SWIG_AsVal_double(obj1, &val2);
26050 if (!SWIG_IsOK(ecode2)) {
26051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
26052 }
26053 arg2 = static_cast< wxDouble >(val2);
26054 ecode3 = SWIG_AsVal_double(obj2, &val3);
26055 if (!SWIG_IsOK(ecode3)) {
26056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
26057 }
26058 arg3 = static_cast< wxDouble >(val3);
26059 ecode4 = SWIG_AsVal_double(obj3, &val4);
26060 if (!SWIG_IsOK(ecode4)) {
26061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
26062 }
26063 arg4 = static_cast< wxDouble >(val4);
26064 ecode5 = SWIG_AsVal_double(obj4, &val5);
26065 if (!SWIG_IsOK(ecode5)) {
26066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
26067 }
26068 arg5 = static_cast< wxDouble >(val5);
26069 {
26070 (arg1)->Clip(arg2,arg3,arg4,arg5);
26071 if (PyErr_Occurred()) SWIG_fail;
26072 }
26073 resultobj = SWIG_Py_Void();
26074 return resultobj;
26075 fail:
26076 return NULL;
26077 }
26078
26079
26080 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26081 PyObject *resultobj = 0;
26082 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26083 void *argp1 = 0 ;
26084 int res1 = 0 ;
26085 PyObject *swig_obj[1] ;
26086
26087 if (!args) SWIG_fail;
26088 swig_obj[0] = args;
26089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26090 if (!SWIG_IsOK(res1)) {
26091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26092 }
26093 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26094 {
26095 (arg1)->ResetClip();
26096 if (PyErr_Occurred()) SWIG_fail;
26097 }
26098 resultobj = SWIG_Py_Void();
26099 return resultobj;
26100 fail:
26101 return NULL;
26102 }
26103
26104
26105 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26106 PyObject *resultobj = 0;
26107 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26108 void *result = 0 ;
26109 void *argp1 = 0 ;
26110 int res1 = 0 ;
26111 PyObject *swig_obj[1] ;
26112
26113 if (!args) SWIG_fail;
26114 swig_obj[0] = args;
26115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26116 if (!SWIG_IsOK(res1)) {
26117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26118 }
26119 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26120 {
26121 result = (void *)(arg1)->GetNativeContext();
26122 if (PyErr_Occurred()) SWIG_fail;
26123 }
26124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26125 return resultobj;
26126 fail:
26127 return NULL;
26128 }
26129
26130
26131 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26132 PyObject *resultobj = 0;
26133 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26134 wxDouble arg2 ;
26135 wxDouble arg3 ;
26136 void *argp1 = 0 ;
26137 int res1 = 0 ;
26138 double val2 ;
26139 int ecode2 = 0 ;
26140 double val3 ;
26141 int ecode3 = 0 ;
26142 PyObject * obj0 = 0 ;
26143 PyObject * obj1 = 0 ;
26144 PyObject * obj2 = 0 ;
26145 char * kwnames[] = {
26146 (char *) "self",(char *) "dx",(char *) "dy", NULL
26147 };
26148
26149 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26150 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26151 if (!SWIG_IsOK(res1)) {
26152 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26153 }
26154 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26155 ecode2 = SWIG_AsVal_double(obj1, &val2);
26156 if (!SWIG_IsOK(ecode2)) {
26157 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26158 }
26159 arg2 = static_cast< wxDouble >(val2);
26160 ecode3 = SWIG_AsVal_double(obj2, &val3);
26161 if (!SWIG_IsOK(ecode3)) {
26162 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26163 }
26164 arg3 = static_cast< wxDouble >(val3);
26165 {
26166 (arg1)->Translate(arg2,arg3);
26167 if (PyErr_Occurred()) SWIG_fail;
26168 }
26169 resultobj = SWIG_Py_Void();
26170 return resultobj;
26171 fail:
26172 return NULL;
26173 }
26174
26175
26176 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26177 PyObject *resultobj = 0;
26178 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26179 wxDouble arg2 ;
26180 wxDouble arg3 ;
26181 void *argp1 = 0 ;
26182 int res1 = 0 ;
26183 double val2 ;
26184 int ecode2 = 0 ;
26185 double val3 ;
26186 int ecode3 = 0 ;
26187 PyObject * obj0 = 0 ;
26188 PyObject * obj1 = 0 ;
26189 PyObject * obj2 = 0 ;
26190 char * kwnames[] = {
26191 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26192 };
26193
26194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26196 if (!SWIG_IsOK(res1)) {
26197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26198 }
26199 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26200 ecode2 = SWIG_AsVal_double(obj1, &val2);
26201 if (!SWIG_IsOK(ecode2)) {
26202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26203 }
26204 arg2 = static_cast< wxDouble >(val2);
26205 ecode3 = SWIG_AsVal_double(obj2, &val3);
26206 if (!SWIG_IsOK(ecode3)) {
26207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26208 }
26209 arg3 = static_cast< wxDouble >(val3);
26210 {
26211 (arg1)->Scale(arg2,arg3);
26212 if (PyErr_Occurred()) SWIG_fail;
26213 }
26214 resultobj = SWIG_Py_Void();
26215 return resultobj;
26216 fail:
26217 return NULL;
26218 }
26219
26220
26221 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26222 PyObject *resultobj = 0;
26223 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26224 wxDouble arg2 ;
26225 void *argp1 = 0 ;
26226 int res1 = 0 ;
26227 double val2 ;
26228 int ecode2 = 0 ;
26229 PyObject * obj0 = 0 ;
26230 PyObject * obj1 = 0 ;
26231 char * kwnames[] = {
26232 (char *) "self",(char *) "angle", NULL
26233 };
26234
26235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26237 if (!SWIG_IsOK(res1)) {
26238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26239 }
26240 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26241 ecode2 = SWIG_AsVal_double(obj1, &val2);
26242 if (!SWIG_IsOK(ecode2)) {
26243 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26244 }
26245 arg2 = static_cast< wxDouble >(val2);
26246 {
26247 (arg1)->Rotate(arg2);
26248 if (PyErr_Occurred()) SWIG_fail;
26249 }
26250 resultobj = SWIG_Py_Void();
26251 return resultobj;
26252 fail:
26253 return NULL;
26254 }
26255
26256
26257 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26258 PyObject *resultobj = 0;
26259 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26260 wxPen *arg2 = 0 ;
26261 void *argp1 = 0 ;
26262 int res1 = 0 ;
26263 void *argp2 = 0 ;
26264 int res2 = 0 ;
26265 PyObject * obj0 = 0 ;
26266 PyObject * obj1 = 0 ;
26267 char * kwnames[] = {
26268 (char *) "self",(char *) "pen", NULL
26269 };
26270
26271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26272 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26273 if (!SWIG_IsOK(res1)) {
26274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26275 }
26276 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26277 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26278 if (!SWIG_IsOK(res2)) {
26279 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26280 }
26281 if (!argp2) {
26282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26283 }
26284 arg2 = reinterpret_cast< wxPen * >(argp2);
26285 {
26286 (arg1)->SetPen((wxPen const &)*arg2);
26287 if (PyErr_Occurred()) SWIG_fail;
26288 }
26289 resultobj = SWIG_Py_Void();
26290 return resultobj;
26291 fail:
26292 return NULL;
26293 }
26294
26295
26296 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26297 PyObject *resultobj = 0;
26298 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26299 wxBrush *arg2 = 0 ;
26300 void *argp1 = 0 ;
26301 int res1 = 0 ;
26302 void *argp2 = 0 ;
26303 int res2 = 0 ;
26304 PyObject * obj0 = 0 ;
26305 PyObject * obj1 = 0 ;
26306 char * kwnames[] = {
26307 (char *) "self",(char *) "brush", NULL
26308 };
26309
26310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26312 if (!SWIG_IsOK(res1)) {
26313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26314 }
26315 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26316 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26317 if (!SWIG_IsOK(res2)) {
26318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26319 }
26320 if (!argp2) {
26321 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26322 }
26323 arg2 = reinterpret_cast< wxBrush * >(argp2);
26324 {
26325 (arg1)->SetBrush((wxBrush const &)*arg2);
26326 if (PyErr_Occurred()) SWIG_fail;
26327 }
26328 resultobj = SWIG_Py_Void();
26329 return resultobj;
26330 fail:
26331 return NULL;
26332 }
26333
26334
26335 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26336 PyObject *resultobj = 0;
26337 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26338 wxDouble arg2 ;
26339 wxDouble arg3 ;
26340 wxDouble arg4 ;
26341 wxDouble arg5 ;
26342 wxColour *arg6 = 0 ;
26343 wxColour *arg7 = 0 ;
26344 void *argp1 = 0 ;
26345 int res1 = 0 ;
26346 double val2 ;
26347 int ecode2 = 0 ;
26348 double val3 ;
26349 int ecode3 = 0 ;
26350 double val4 ;
26351 int ecode4 = 0 ;
26352 double val5 ;
26353 int ecode5 = 0 ;
26354 wxColour temp6 ;
26355 wxColour temp7 ;
26356 PyObject * obj0 = 0 ;
26357 PyObject * obj1 = 0 ;
26358 PyObject * obj2 = 0 ;
26359 PyObject * obj3 = 0 ;
26360 PyObject * obj4 = 0 ;
26361 PyObject * obj5 = 0 ;
26362 PyObject * obj6 = 0 ;
26363 char * kwnames[] = {
26364 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26365 };
26366
26367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26369 if (!SWIG_IsOK(res1)) {
26370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26371 }
26372 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26373 ecode2 = SWIG_AsVal_double(obj1, &val2);
26374 if (!SWIG_IsOK(ecode2)) {
26375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26376 }
26377 arg2 = static_cast< wxDouble >(val2);
26378 ecode3 = SWIG_AsVal_double(obj2, &val3);
26379 if (!SWIG_IsOK(ecode3)) {
26380 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26381 }
26382 arg3 = static_cast< wxDouble >(val3);
26383 ecode4 = SWIG_AsVal_double(obj3, &val4);
26384 if (!SWIG_IsOK(ecode4)) {
26385 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26386 }
26387 arg4 = static_cast< wxDouble >(val4);
26388 ecode5 = SWIG_AsVal_double(obj4, &val5);
26389 if (!SWIG_IsOK(ecode5)) {
26390 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26391 }
26392 arg5 = static_cast< wxDouble >(val5);
26393 {
26394 arg6 = &temp6;
26395 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26396 }
26397 {
26398 arg7 = &temp7;
26399 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26400 }
26401 {
26402 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
26403 if (PyErr_Occurred()) SWIG_fail;
26404 }
26405 resultobj = SWIG_Py_Void();
26406 return resultobj;
26407 fail:
26408 return NULL;
26409 }
26410
26411
26412 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26413 PyObject *resultobj = 0;
26414 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26415 wxDouble arg2 ;
26416 wxDouble arg3 ;
26417 wxDouble arg4 ;
26418 wxDouble arg5 ;
26419 wxDouble arg6 ;
26420 wxColour *arg7 = 0 ;
26421 wxColour *arg8 = 0 ;
26422 void *argp1 = 0 ;
26423 int res1 = 0 ;
26424 double val2 ;
26425 int ecode2 = 0 ;
26426 double val3 ;
26427 int ecode3 = 0 ;
26428 double val4 ;
26429 int ecode4 = 0 ;
26430 double val5 ;
26431 int ecode5 = 0 ;
26432 double val6 ;
26433 int ecode6 = 0 ;
26434 wxColour temp7 ;
26435 wxColour temp8 ;
26436 PyObject * obj0 = 0 ;
26437 PyObject * obj1 = 0 ;
26438 PyObject * obj2 = 0 ;
26439 PyObject * obj3 = 0 ;
26440 PyObject * obj4 = 0 ;
26441 PyObject * obj5 = 0 ;
26442 PyObject * obj6 = 0 ;
26443 PyObject * obj7 = 0 ;
26444 char * kwnames[] = {
26445 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26446 };
26447
26448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26450 if (!SWIG_IsOK(res1)) {
26451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26452 }
26453 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26454 ecode2 = SWIG_AsVal_double(obj1, &val2);
26455 if (!SWIG_IsOK(ecode2)) {
26456 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26457 }
26458 arg2 = static_cast< wxDouble >(val2);
26459 ecode3 = SWIG_AsVal_double(obj2, &val3);
26460 if (!SWIG_IsOK(ecode3)) {
26461 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26462 }
26463 arg3 = static_cast< wxDouble >(val3);
26464 ecode4 = SWIG_AsVal_double(obj3, &val4);
26465 if (!SWIG_IsOK(ecode4)) {
26466 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26467 }
26468 arg4 = static_cast< wxDouble >(val4);
26469 ecode5 = SWIG_AsVal_double(obj4, &val5);
26470 if (!SWIG_IsOK(ecode5)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26472 }
26473 arg5 = static_cast< wxDouble >(val5);
26474 ecode6 = SWIG_AsVal_double(obj5, &val6);
26475 if (!SWIG_IsOK(ecode6)) {
26476 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26477 }
26478 arg6 = static_cast< wxDouble >(val6);
26479 {
26480 arg7 = &temp7;
26481 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26482 }
26483 {
26484 arg8 = &temp8;
26485 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26486 }
26487 {
26488 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26489 if (PyErr_Occurred()) SWIG_fail;
26490 }
26491 resultobj = SWIG_Py_Void();
26492 return resultobj;
26493 fail:
26494 return NULL;
26495 }
26496
26497
26498 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26499 PyObject *resultobj = 0;
26500 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26501 wxFont *arg2 = 0 ;
26502 void *argp1 = 0 ;
26503 int res1 = 0 ;
26504 void *argp2 = 0 ;
26505 int res2 = 0 ;
26506 PyObject * obj0 = 0 ;
26507 PyObject * obj1 = 0 ;
26508 char * kwnames[] = {
26509 (char *) "self",(char *) "font", NULL
26510 };
26511
26512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26516 }
26517 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26518 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26519 if (!SWIG_IsOK(res2)) {
26520 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26521 }
26522 if (!argp2) {
26523 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26524 }
26525 arg2 = reinterpret_cast< wxFont * >(argp2);
26526 {
26527 (arg1)->SetFont((wxFont const &)*arg2);
26528 if (PyErr_Occurred()) SWIG_fail;
26529 }
26530 resultobj = SWIG_Py_Void();
26531 return resultobj;
26532 fail:
26533 return NULL;
26534 }
26535
26536
26537 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26538 PyObject *resultobj = 0;
26539 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26540 wxColour *arg2 = 0 ;
26541 void *argp1 = 0 ;
26542 int res1 = 0 ;
26543 wxColour temp2 ;
26544 PyObject * obj0 = 0 ;
26545 PyObject * obj1 = 0 ;
26546 char * kwnames[] = {
26547 (char *) "self",(char *) "col", NULL
26548 };
26549
26550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26552 if (!SWIG_IsOK(res1)) {
26553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26554 }
26555 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26556 {
26557 arg2 = &temp2;
26558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26559 }
26560 {
26561 (arg1)->SetTextColor((wxColour const &)*arg2);
26562 if (PyErr_Occurred()) SWIG_fail;
26563 }
26564 resultobj = SWIG_Py_Void();
26565 return resultobj;
26566 fail:
26567 return NULL;
26568 }
26569
26570
26571 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26572 PyObject *resultobj = 0;
26573 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26574 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26575 void *argp1 = 0 ;
26576 int res1 = 0 ;
26577 void *argp2 = 0 ;
26578 int res2 = 0 ;
26579 PyObject * obj0 = 0 ;
26580 PyObject * obj1 = 0 ;
26581 char * kwnames[] = {
26582 (char *) "self",(char *) "path", NULL
26583 };
26584
26585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26587 if (!SWIG_IsOK(res1)) {
26588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26589 }
26590 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26592 if (!SWIG_IsOK(res2)) {
26593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26594 }
26595 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26596 {
26597 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26598 if (PyErr_Occurred()) SWIG_fail;
26599 }
26600 resultobj = SWIG_Py_Void();
26601 return resultobj;
26602 fail:
26603 return NULL;
26604 }
26605
26606
26607 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26608 PyObject *resultobj = 0;
26609 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26610 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26611 int arg3 = (int) wxWINDING_RULE ;
26612 void *argp1 = 0 ;
26613 int res1 = 0 ;
26614 void *argp2 = 0 ;
26615 int res2 = 0 ;
26616 int val3 ;
26617 int ecode3 = 0 ;
26618 PyObject * obj0 = 0 ;
26619 PyObject * obj1 = 0 ;
26620 PyObject * obj2 = 0 ;
26621 char * kwnames[] = {
26622 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26623 };
26624
26625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26627 if (!SWIG_IsOK(res1)) {
26628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26629 }
26630 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26631 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26632 if (!SWIG_IsOK(res2)) {
26633 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26634 }
26635 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26636 if (obj2) {
26637 ecode3 = SWIG_AsVal_int(obj2, &val3);
26638 if (!SWIG_IsOK(ecode3)) {
26639 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26640 }
26641 arg3 = static_cast< int >(val3);
26642 }
26643 {
26644 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26645 if (PyErr_Occurred()) SWIG_fail;
26646 }
26647 resultobj = SWIG_Py_Void();
26648 return resultobj;
26649 fail:
26650 return NULL;
26651 }
26652
26653
26654 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26655 PyObject *resultobj = 0;
26656 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26657 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26658 int arg3 = (int) wxWINDING_RULE ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 void *argp2 = 0 ;
26662 int res2 = 0 ;
26663 int val3 ;
26664 int ecode3 = 0 ;
26665 PyObject * obj0 = 0 ;
26666 PyObject * obj1 = 0 ;
26667 PyObject * obj2 = 0 ;
26668 char * kwnames[] = {
26669 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26670 };
26671
26672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26674 if (!SWIG_IsOK(res1)) {
26675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26676 }
26677 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26679 if (!SWIG_IsOK(res2)) {
26680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26681 }
26682 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26683 if (obj2) {
26684 ecode3 = SWIG_AsVal_int(obj2, &val3);
26685 if (!SWIG_IsOK(ecode3)) {
26686 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26687 }
26688 arg3 = static_cast< int >(val3);
26689 }
26690 {
26691 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
26694 resultobj = SWIG_Py_Void();
26695 return resultobj;
26696 fail:
26697 return NULL;
26698 }
26699
26700
26701 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26702 PyObject *resultobj = 0;
26703 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26704 wxString *arg2 = 0 ;
26705 wxDouble arg3 ;
26706 wxDouble arg4 ;
26707 void *argp1 = 0 ;
26708 int res1 = 0 ;
26709 bool temp2 = false ;
26710 double val3 ;
26711 int ecode3 = 0 ;
26712 double val4 ;
26713 int ecode4 = 0 ;
26714 PyObject * obj0 = 0 ;
26715 PyObject * obj1 = 0 ;
26716 PyObject * obj2 = 0 ;
26717 PyObject * obj3 = 0 ;
26718 char * kwnames[] = {
26719 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26720 };
26721
26722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26724 if (!SWIG_IsOK(res1)) {
26725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26726 }
26727 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26728 {
26729 arg2 = wxString_in_helper(obj1);
26730 if (arg2 == NULL) SWIG_fail;
26731 temp2 = true;
26732 }
26733 ecode3 = SWIG_AsVal_double(obj2, &val3);
26734 if (!SWIG_IsOK(ecode3)) {
26735 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26736 }
26737 arg3 = static_cast< wxDouble >(val3);
26738 ecode4 = SWIG_AsVal_double(obj3, &val4);
26739 if (!SWIG_IsOK(ecode4)) {
26740 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26741 }
26742 arg4 = static_cast< wxDouble >(val4);
26743 {
26744 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26745 if (PyErr_Occurred()) SWIG_fail;
26746 }
26747 resultobj = SWIG_Py_Void();
26748 {
26749 if (temp2)
26750 delete arg2;
26751 }
26752 return resultobj;
26753 fail:
26754 {
26755 if (temp2)
26756 delete arg2;
26757 }
26758 return NULL;
26759 }
26760
26761
26762 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26763 PyObject *resultobj = 0;
26764 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26765 wxString *arg2 = 0 ;
26766 wxDouble arg3 ;
26767 wxDouble arg4 ;
26768 wxDouble arg5 ;
26769 void *argp1 = 0 ;
26770 int res1 = 0 ;
26771 bool temp2 = false ;
26772 double val3 ;
26773 int ecode3 = 0 ;
26774 double val4 ;
26775 int ecode4 = 0 ;
26776 double val5 ;
26777 int ecode5 = 0 ;
26778 PyObject * obj0 = 0 ;
26779 PyObject * obj1 = 0 ;
26780 PyObject * obj2 = 0 ;
26781 PyObject * obj3 = 0 ;
26782 PyObject * obj4 = 0 ;
26783 char * kwnames[] = {
26784 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26785 };
26786
26787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26789 if (!SWIG_IsOK(res1)) {
26790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26791 }
26792 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26793 {
26794 arg2 = wxString_in_helper(obj1);
26795 if (arg2 == NULL) SWIG_fail;
26796 temp2 = true;
26797 }
26798 ecode3 = SWIG_AsVal_double(obj2, &val3);
26799 if (!SWIG_IsOK(ecode3)) {
26800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26801 }
26802 arg3 = static_cast< wxDouble >(val3);
26803 ecode4 = SWIG_AsVal_double(obj3, &val4);
26804 if (!SWIG_IsOK(ecode4)) {
26805 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26806 }
26807 arg4 = static_cast< wxDouble >(val4);
26808 ecode5 = SWIG_AsVal_double(obj4, &val5);
26809 if (!SWIG_IsOK(ecode5)) {
26810 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26811 }
26812 arg5 = static_cast< wxDouble >(val5);
26813 {
26814 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26815 if (PyErr_Occurred()) SWIG_fail;
26816 }
26817 resultobj = SWIG_Py_Void();
26818 {
26819 if (temp2)
26820 delete arg2;
26821 }
26822 return resultobj;
26823 fail:
26824 {
26825 if (temp2)
26826 delete arg2;
26827 }
26828 return NULL;
26829 }
26830
26831
26832 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26833 PyObject *resultobj = 0;
26834 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26835 wxString *arg2 = 0 ;
26836 wxDouble *arg3 = (wxDouble *) 0 ;
26837 wxDouble *arg4 = (wxDouble *) 0 ;
26838 wxDouble *arg5 = (wxDouble *) 0 ;
26839 wxDouble *arg6 = (wxDouble *) 0 ;
26840 void *argp1 = 0 ;
26841 int res1 = 0 ;
26842 bool temp2 = false ;
26843 wxDouble temp3 ;
26844 int res3 = SWIG_TMPOBJ ;
26845 wxDouble temp4 ;
26846 int res4 = SWIG_TMPOBJ ;
26847 wxDouble temp5 ;
26848 int res5 = SWIG_TMPOBJ ;
26849 wxDouble temp6 ;
26850 int res6 = SWIG_TMPOBJ ;
26851 PyObject * obj0 = 0 ;
26852 PyObject * obj1 = 0 ;
26853 char * kwnames[] = {
26854 (char *) "self",(char *) "text", NULL
26855 };
26856
26857 arg3 = &temp3;
26858 arg4 = &temp4;
26859 arg5 = &temp5;
26860 arg6 = &temp6;
26861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26863 if (!SWIG_IsOK(res1)) {
26864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26865 }
26866 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26867 {
26868 arg2 = wxString_in_helper(obj1);
26869 if (arg2 == NULL) SWIG_fail;
26870 temp2 = true;
26871 }
26872 {
26873 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26874 if (PyErr_Occurred()) SWIG_fail;
26875 }
26876 resultobj = SWIG_Py_Void();
26877 if (SWIG_IsTmpObj(res3)) {
26878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26879 } else {
26880 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26882 }
26883 if (SWIG_IsTmpObj(res4)) {
26884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26885 } else {
26886 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26887 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26888 }
26889 if (SWIG_IsTmpObj(res5)) {
26890 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26891 } else {
26892 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26894 }
26895 if (SWIG_IsTmpObj(res6)) {
26896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26897 } else {
26898 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26900 }
26901 {
26902 if (temp2)
26903 delete arg2;
26904 }
26905 return resultobj;
26906 fail:
26907 {
26908 if (temp2)
26909 delete arg2;
26910 }
26911 return NULL;
26912 }
26913
26914
26915 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26916 PyObject *resultobj = 0;
26917 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26918 wxString *arg2 = 0 ;
26919 wxArrayDouble result;
26920 void *argp1 = 0 ;
26921 int res1 = 0 ;
26922 bool temp2 = false ;
26923 PyObject * obj0 = 0 ;
26924 PyObject * obj1 = 0 ;
26925 char * kwnames[] = {
26926 (char *) "self",(char *) "text", NULL
26927 };
26928
26929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26930 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26931 if (!SWIG_IsOK(res1)) {
26932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26933 }
26934 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26935 {
26936 arg2 = wxString_in_helper(obj1);
26937 if (arg2 == NULL) SWIG_fail;
26938 temp2 = true;
26939 }
26940 {
26941 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26942 if (PyErr_Occurred()) SWIG_fail;
26943 }
26944 {
26945 resultobj = wxArrayDouble2PyList_helper(result);
26946 }
26947 {
26948 if (temp2)
26949 delete arg2;
26950 }
26951 return resultobj;
26952 fail:
26953 {
26954 if (temp2)
26955 delete arg2;
26956 }
26957 return NULL;
26958 }
26959
26960
26961 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26962 PyObject *resultobj = 0;
26963 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26964 wxBitmap *arg2 = 0 ;
26965 wxDouble arg3 ;
26966 wxDouble arg4 ;
26967 wxDouble arg5 ;
26968 wxDouble arg6 ;
26969 void *argp1 = 0 ;
26970 int res1 = 0 ;
26971 void *argp2 = 0 ;
26972 int res2 = 0 ;
26973 double val3 ;
26974 int ecode3 = 0 ;
26975 double val4 ;
26976 int ecode4 = 0 ;
26977 double val5 ;
26978 int ecode5 = 0 ;
26979 double val6 ;
26980 int ecode6 = 0 ;
26981 PyObject * obj0 = 0 ;
26982 PyObject * obj1 = 0 ;
26983 PyObject * obj2 = 0 ;
26984 PyObject * obj3 = 0 ;
26985 PyObject * obj4 = 0 ;
26986 PyObject * obj5 = 0 ;
26987 char * kwnames[] = {
26988 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26989 };
26990
26991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
26992 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26993 if (!SWIG_IsOK(res1)) {
26994 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26995 }
26996 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26997 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
26998 if (!SWIG_IsOK(res2)) {
26999 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27000 }
27001 if (!argp2) {
27002 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27003 }
27004 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27005 ecode3 = SWIG_AsVal_double(obj2, &val3);
27006 if (!SWIG_IsOK(ecode3)) {
27007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
27008 }
27009 arg3 = static_cast< wxDouble >(val3);
27010 ecode4 = SWIG_AsVal_double(obj3, &val4);
27011 if (!SWIG_IsOK(ecode4)) {
27012 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
27013 }
27014 arg4 = static_cast< wxDouble >(val4);
27015 ecode5 = SWIG_AsVal_double(obj4, &val5);
27016 if (!SWIG_IsOK(ecode5)) {
27017 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
27018 }
27019 arg5 = static_cast< wxDouble >(val5);
27020 ecode6 = SWIG_AsVal_double(obj5, &val6);
27021 if (!SWIG_IsOK(ecode6)) {
27022 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
27023 }
27024 arg6 = static_cast< wxDouble >(val6);
27025 {
27026 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
27027 if (PyErr_Occurred()) SWIG_fail;
27028 }
27029 resultobj = SWIG_Py_Void();
27030 return resultobj;
27031 fail:
27032 return NULL;
27033 }
27034
27035
27036 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27037 PyObject *resultobj = 0;
27038 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27039 wxIcon *arg2 = 0 ;
27040 wxDouble arg3 ;
27041 wxDouble arg4 ;
27042 wxDouble arg5 ;
27043 wxDouble arg6 ;
27044 void *argp1 = 0 ;
27045 int res1 = 0 ;
27046 void *argp2 = 0 ;
27047 int res2 = 0 ;
27048 double val3 ;
27049 int ecode3 = 0 ;
27050 double val4 ;
27051 int ecode4 = 0 ;
27052 double val5 ;
27053 int ecode5 = 0 ;
27054 double val6 ;
27055 int ecode6 = 0 ;
27056 PyObject * obj0 = 0 ;
27057 PyObject * obj1 = 0 ;
27058 PyObject * obj2 = 0 ;
27059 PyObject * obj3 = 0 ;
27060 PyObject * obj4 = 0 ;
27061 PyObject * obj5 = 0 ;
27062 char * kwnames[] = {
27063 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27064 };
27065
27066 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27067 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27068 if (!SWIG_IsOK(res1)) {
27069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27070 }
27071 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27072 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27073 if (!SWIG_IsOK(res2)) {
27074 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27075 }
27076 if (!argp2) {
27077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27078 }
27079 arg2 = reinterpret_cast< wxIcon * >(argp2);
27080 ecode3 = SWIG_AsVal_double(obj2, &val3);
27081 if (!SWIG_IsOK(ecode3)) {
27082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
27083 }
27084 arg3 = static_cast< wxDouble >(val3);
27085 ecode4 = SWIG_AsVal_double(obj3, &val4);
27086 if (!SWIG_IsOK(ecode4)) {
27087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
27088 }
27089 arg4 = static_cast< wxDouble >(val4);
27090 ecode5 = SWIG_AsVal_double(obj4, &val5);
27091 if (!SWIG_IsOK(ecode5)) {
27092 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
27093 }
27094 arg5 = static_cast< wxDouble >(val5);
27095 ecode6 = SWIG_AsVal_double(obj5, &val6);
27096 if (!SWIG_IsOK(ecode6)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
27098 }
27099 arg6 = static_cast< wxDouble >(val6);
27100 {
27101 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
27102 if (PyErr_Occurred()) SWIG_fail;
27103 }
27104 resultobj = SWIG_Py_Void();
27105 return resultobj;
27106 fail:
27107 return NULL;
27108 }
27109
27110
27111 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27112 PyObject *resultobj = 0;
27113 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27114 wxDouble arg2 ;
27115 wxDouble arg3 ;
27116 wxDouble arg4 ;
27117 wxDouble arg5 ;
27118 void *argp1 = 0 ;
27119 int res1 = 0 ;
27120 double val2 ;
27121 int ecode2 = 0 ;
27122 double val3 ;
27123 int ecode3 = 0 ;
27124 double val4 ;
27125 int ecode4 = 0 ;
27126 double val5 ;
27127 int ecode5 = 0 ;
27128 PyObject * obj0 = 0 ;
27129 PyObject * obj1 = 0 ;
27130 PyObject * obj2 = 0 ;
27131 PyObject * obj3 = 0 ;
27132 PyObject * obj4 = 0 ;
27133 char * kwnames[] = {
27134 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
27135 };
27136
27137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27139 if (!SWIG_IsOK(res1)) {
27140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27141 }
27142 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27143 ecode2 = SWIG_AsVal_double(obj1, &val2);
27144 if (!SWIG_IsOK(ecode2)) {
27145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
27146 }
27147 arg2 = static_cast< wxDouble >(val2);
27148 ecode3 = SWIG_AsVal_double(obj2, &val3);
27149 if (!SWIG_IsOK(ecode3)) {
27150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
27151 }
27152 arg3 = static_cast< wxDouble >(val3);
27153 ecode4 = SWIG_AsVal_double(obj3, &val4);
27154 if (!SWIG_IsOK(ecode4)) {
27155 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
27156 }
27157 arg4 = static_cast< wxDouble >(val4);
27158 ecode5 = SWIG_AsVal_double(obj4, &val5);
27159 if (!SWIG_IsOK(ecode5)) {
27160 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
27161 }
27162 arg5 = static_cast< wxDouble >(val5);
27163 {
27164 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
27165 if (PyErr_Occurred()) SWIG_fail;
27166 }
27167 resultobj = SWIG_Py_Void();
27168 return resultobj;
27169 fail:
27170 return NULL;
27171 }
27172
27173
27174 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27175 PyObject *resultobj = 0;
27176 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27177 size_t arg2 ;
27178 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27179 void *argp1 = 0 ;
27180 int res1 = 0 ;
27181 PyObject * obj0 = 0 ;
27182 PyObject * obj1 = 0 ;
27183 char * kwnames[] = {
27184 (char *) "self",(char *) "points", NULL
27185 };
27186
27187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
27188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27189 if (!SWIG_IsOK(res1)) {
27190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27191 }
27192 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27193 {
27194 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27195 if (arg3 == NULL) SWIG_fail;
27196 }
27197 {
27198 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
27199 if (PyErr_Occurred()) SWIG_fail;
27200 }
27201 resultobj = SWIG_Py_Void();
27202 {
27203 if (arg3) delete [] arg3;
27204 }
27205 return resultobj;
27206 fail:
27207 {
27208 if (arg3) delete [] arg3;
27209 }
27210 return NULL;
27211 }
27212
27213
27214 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27215 PyObject *resultobj = 0;
27216 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27217 PyObject *arg2 = (PyObject *) 0 ;
27218 PyObject *arg3 = (PyObject *) 0 ;
27219 void *argp1 = 0 ;
27220 int res1 = 0 ;
27221 PyObject * obj0 = 0 ;
27222 PyObject * obj1 = 0 ;
27223 PyObject * obj2 = 0 ;
27224 char * kwnames[] = {
27225 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
27226 };
27227
27228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27230 if (!SWIG_IsOK(res1)) {
27231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27232 }
27233 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27234 arg2 = obj1;
27235 arg3 = obj2;
27236 {
27237 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
27238 if (PyErr_Occurred()) SWIG_fail;
27239 }
27240 resultobj = SWIG_Py_Void();
27241 return resultobj;
27242 fail:
27243 return NULL;
27244 }
27245
27246
27247 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27248 PyObject *resultobj = 0;
27249 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27250 size_t arg2 ;
27251 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27252 int arg4 = (int) wxWINDING_RULE ;
27253 void *argp1 = 0 ;
27254 int res1 = 0 ;
27255 int val4 ;
27256 int ecode4 = 0 ;
27257 PyObject * obj0 = 0 ;
27258 PyObject * obj1 = 0 ;
27259 PyObject * obj2 = 0 ;
27260 char * kwnames[] = {
27261 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
27262 };
27263
27264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) 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_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27268 }
27269 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27270 {
27271 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27272 if (arg3 == NULL) SWIG_fail;
27273 }
27274 if (obj2) {
27275 ecode4 = SWIG_AsVal_int(obj2, &val4);
27276 if (!SWIG_IsOK(ecode4)) {
27277 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27278 }
27279 arg4 = static_cast< int >(val4);
27280 }
27281 {
27282 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27283 if (PyErr_Occurred()) SWIG_fail;
27284 }
27285 resultobj = SWIG_Py_Void();
27286 {
27287 if (arg3) delete [] arg3;
27288 }
27289 return resultobj;
27290 fail:
27291 {
27292 if (arg3) delete [] arg3;
27293 }
27294 return NULL;
27295 }
27296
27297
27298 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27299 PyObject *resultobj = 0;
27300 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27301 wxDouble arg2 ;
27302 wxDouble arg3 ;
27303 wxDouble arg4 ;
27304 wxDouble arg5 ;
27305 void *argp1 = 0 ;
27306 int res1 = 0 ;
27307 double val2 ;
27308 int ecode2 = 0 ;
27309 double val3 ;
27310 int ecode3 = 0 ;
27311 double val4 ;
27312 int ecode4 = 0 ;
27313 double val5 ;
27314 int ecode5 = 0 ;
27315 PyObject * obj0 = 0 ;
27316 PyObject * obj1 = 0 ;
27317 PyObject * obj2 = 0 ;
27318 PyObject * obj3 = 0 ;
27319 PyObject * obj4 = 0 ;
27320 char * kwnames[] = {
27321 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27322 };
27323
27324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27326 if (!SWIG_IsOK(res1)) {
27327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27328 }
27329 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27330 ecode2 = SWIG_AsVal_double(obj1, &val2);
27331 if (!SWIG_IsOK(ecode2)) {
27332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27333 }
27334 arg2 = static_cast< wxDouble >(val2);
27335 ecode3 = SWIG_AsVal_double(obj2, &val3);
27336 if (!SWIG_IsOK(ecode3)) {
27337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27338 }
27339 arg3 = static_cast< wxDouble >(val3);
27340 ecode4 = SWIG_AsVal_double(obj3, &val4);
27341 if (!SWIG_IsOK(ecode4)) {
27342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27343 }
27344 arg4 = static_cast< wxDouble >(val4);
27345 ecode5 = SWIG_AsVal_double(obj4, &val5);
27346 if (!SWIG_IsOK(ecode5)) {
27347 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27348 }
27349 arg5 = static_cast< wxDouble >(val5);
27350 {
27351 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27352 if (PyErr_Occurred()) SWIG_fail;
27353 }
27354 resultobj = SWIG_Py_Void();
27355 return resultobj;
27356 fail:
27357 return NULL;
27358 }
27359
27360
27361 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27362 PyObject *resultobj = 0;
27363 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27364 wxDouble arg2 ;
27365 wxDouble arg3 ;
27366 wxDouble arg4 ;
27367 wxDouble arg5 ;
27368 void *argp1 = 0 ;
27369 int res1 = 0 ;
27370 double val2 ;
27371 int ecode2 = 0 ;
27372 double val3 ;
27373 int ecode3 = 0 ;
27374 double val4 ;
27375 int ecode4 = 0 ;
27376 double val5 ;
27377 int ecode5 = 0 ;
27378 PyObject * obj0 = 0 ;
27379 PyObject * obj1 = 0 ;
27380 PyObject * obj2 = 0 ;
27381 PyObject * obj3 = 0 ;
27382 PyObject * obj4 = 0 ;
27383 char * kwnames[] = {
27384 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27385 };
27386
27387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27389 if (!SWIG_IsOK(res1)) {
27390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27391 }
27392 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27393 ecode2 = SWIG_AsVal_double(obj1, &val2);
27394 if (!SWIG_IsOK(ecode2)) {
27395 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27396 }
27397 arg2 = static_cast< wxDouble >(val2);
27398 ecode3 = SWIG_AsVal_double(obj2, &val3);
27399 if (!SWIG_IsOK(ecode3)) {
27400 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27401 }
27402 arg3 = static_cast< wxDouble >(val3);
27403 ecode4 = SWIG_AsVal_double(obj3, &val4);
27404 if (!SWIG_IsOK(ecode4)) {
27405 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27406 }
27407 arg4 = static_cast< wxDouble >(val4);
27408 ecode5 = SWIG_AsVal_double(obj4, &val5);
27409 if (!SWIG_IsOK(ecode5)) {
27410 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27411 }
27412 arg5 = static_cast< wxDouble >(val5);
27413 {
27414 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27415 if (PyErr_Occurred()) SWIG_fail;
27416 }
27417 resultobj = SWIG_Py_Void();
27418 return resultobj;
27419 fail:
27420 return NULL;
27421 }
27422
27423
27424 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27425 PyObject *resultobj = 0;
27426 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27427 wxDouble arg2 ;
27428 wxDouble arg3 ;
27429 wxDouble arg4 ;
27430 wxDouble arg5 ;
27431 wxDouble arg6 ;
27432 void *argp1 = 0 ;
27433 int res1 = 0 ;
27434 double val2 ;
27435 int ecode2 = 0 ;
27436 double val3 ;
27437 int ecode3 = 0 ;
27438 double val4 ;
27439 int ecode4 = 0 ;
27440 double val5 ;
27441 int ecode5 = 0 ;
27442 double val6 ;
27443 int ecode6 = 0 ;
27444 PyObject * obj0 = 0 ;
27445 PyObject * obj1 = 0 ;
27446 PyObject * obj2 = 0 ;
27447 PyObject * obj3 = 0 ;
27448 PyObject * obj4 = 0 ;
27449 PyObject * obj5 = 0 ;
27450 char * kwnames[] = {
27451 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27452 };
27453
27454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27456 if (!SWIG_IsOK(res1)) {
27457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27458 }
27459 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27460 ecode2 = SWIG_AsVal_double(obj1, &val2);
27461 if (!SWIG_IsOK(ecode2)) {
27462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27463 }
27464 arg2 = static_cast< wxDouble >(val2);
27465 ecode3 = SWIG_AsVal_double(obj2, &val3);
27466 if (!SWIG_IsOK(ecode3)) {
27467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27468 }
27469 arg3 = static_cast< wxDouble >(val3);
27470 ecode4 = SWIG_AsVal_double(obj3, &val4);
27471 if (!SWIG_IsOK(ecode4)) {
27472 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27473 }
27474 arg4 = static_cast< wxDouble >(val4);
27475 ecode5 = SWIG_AsVal_double(obj4, &val5);
27476 if (!SWIG_IsOK(ecode5)) {
27477 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27478 }
27479 arg5 = static_cast< wxDouble >(val5);
27480 ecode6 = SWIG_AsVal_double(obj5, &val6);
27481 if (!SWIG_IsOK(ecode6)) {
27482 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27483 }
27484 arg6 = static_cast< wxDouble >(val6);
27485 {
27486 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27487 if (PyErr_Occurred()) SWIG_fail;
27488 }
27489 resultobj = SWIG_Py_Void();
27490 return resultobj;
27491 fail:
27492 return NULL;
27493 }
27494
27495
27496 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27497 PyObject *obj;
27498 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27499 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27500 return SWIG_Py_Void();
27501 }
27502
27503 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27504 PyObject *resultobj = 0;
27505 wxWindowDC *arg1 = 0 ;
27506 wxGCDC *result = 0 ;
27507 void *argp1 = 0 ;
27508 int res1 = 0 ;
27509 PyObject * obj0 = 0 ;
27510 char * kwnames[] = {
27511 (char *) "dc", NULL
27512 };
27513
27514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27516 if (!SWIG_IsOK(res1)) {
27517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27518 }
27519 if (!argp1) {
27520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27521 }
27522 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27523 {
27524 if (!wxPyCheckForApp()) SWIG_fail;
27525 PyThreadState* __tstate = wxPyBeginAllowThreads();
27526 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27527 wxPyEndAllowThreads(__tstate);
27528 if (PyErr_Occurred()) SWIG_fail;
27529 }
27530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27531 return resultobj;
27532 fail:
27533 return NULL;
27534 }
27535
27536
27537 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27538 PyObject *resultobj = 0;
27539 wxGCDC *arg1 = (wxGCDC *) 0 ;
27540 void *argp1 = 0 ;
27541 int res1 = 0 ;
27542 PyObject *swig_obj[1] ;
27543
27544 if (!args) SWIG_fail;
27545 swig_obj[0] = args;
27546 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27547 if (!SWIG_IsOK(res1)) {
27548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27549 }
27550 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27551 {
27552 delete arg1;
27553
27554 if (PyErr_Occurred()) SWIG_fail;
27555 }
27556 resultobj = SWIG_Py_Void();
27557 return resultobj;
27558 fail:
27559 return NULL;
27560 }
27561
27562
27563 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27564 PyObject *resultobj = 0;
27565 wxGCDC *arg1 = (wxGCDC *) 0 ;
27566 wxGraphicsContext *result = 0 ;
27567 void *argp1 = 0 ;
27568 int res1 = 0 ;
27569 PyObject *swig_obj[1] ;
27570
27571 if (!args) SWIG_fail;
27572 swig_obj[0] = args;
27573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27574 if (!SWIG_IsOK(res1)) {
27575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27576 }
27577 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27578 {
27579 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
27580 if (PyErr_Occurred()) SWIG_fail;
27581 }
27582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27583 return resultobj;
27584 fail:
27585 return NULL;
27586 }
27587
27588
27589 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27590 PyObject *resultobj = 0;
27591 wxGCDC *arg1 = (wxGCDC *) 0 ;
27592 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
27593 void *argp1 = 0 ;
27594 int res1 = 0 ;
27595 void *argp2 = 0 ;
27596 int res2 = 0 ;
27597 PyObject * obj0 = 0 ;
27598 PyObject * obj1 = 0 ;
27599 char * kwnames[] = {
27600 (char *) "self",(char *) "ctx", NULL
27601 };
27602
27603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
27604 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27605 if (!SWIG_IsOK(res1)) {
27606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27607 }
27608 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27609 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27610 if (!SWIG_IsOK(res2)) {
27611 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
27612 }
27613 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
27614 {
27615 (arg1)->SetGraphicsContext(arg2);
27616 if (PyErr_Occurred()) SWIG_fail;
27617 }
27618 resultobj = SWIG_Py_Void();
27619 return resultobj;
27620 fail:
27621 return NULL;
27622 }
27623
27624
27625 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27626 PyObject *obj;
27627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27628 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27629 return SWIG_Py_Void();
27630 }
27631
27632 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27633 return SWIG_Python_InitShadowInstance(args);
27634 }
27635
27636 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27637 PyObject *resultobj = 0;
27638 wxOverlay *result = 0 ;
27639
27640 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27641 {
27642 PyThreadState* __tstate = wxPyBeginAllowThreads();
27643 result = (wxOverlay *)new wxOverlay();
27644 wxPyEndAllowThreads(__tstate);
27645 if (PyErr_Occurred()) SWIG_fail;
27646 }
27647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27648 return resultobj;
27649 fail:
27650 return NULL;
27651 }
27652
27653
27654 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27655 PyObject *resultobj = 0;
27656 wxOverlay *arg1 = (wxOverlay *) 0 ;
27657 void *argp1 = 0 ;
27658 int res1 = 0 ;
27659 PyObject *swig_obj[1] ;
27660
27661 if (!args) SWIG_fail;
27662 swig_obj[0] = args;
27663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27664 if (!SWIG_IsOK(res1)) {
27665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27666 }
27667 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27668 {
27669 PyThreadState* __tstate = wxPyBeginAllowThreads();
27670 delete arg1;
27671
27672 wxPyEndAllowThreads(__tstate);
27673 if (PyErr_Occurred()) SWIG_fail;
27674 }
27675 resultobj = SWIG_Py_Void();
27676 return resultobj;
27677 fail:
27678 return NULL;
27679 }
27680
27681
27682 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27683 PyObject *resultobj = 0;
27684 wxOverlay *arg1 = (wxOverlay *) 0 ;
27685 void *argp1 = 0 ;
27686 int res1 = 0 ;
27687 PyObject *swig_obj[1] ;
27688
27689 if (!args) SWIG_fail;
27690 swig_obj[0] = args;
27691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27692 if (!SWIG_IsOK(res1)) {
27693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27694 }
27695 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27696 {
27697 PyThreadState* __tstate = wxPyBeginAllowThreads();
27698 (arg1)->Reset();
27699 wxPyEndAllowThreads(__tstate);
27700 if (PyErr_Occurred()) SWIG_fail;
27701 }
27702 resultobj = SWIG_Py_Void();
27703 return resultobj;
27704 fail:
27705 return NULL;
27706 }
27707
27708
27709 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27710 PyObject *obj;
27711 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27712 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27713 return SWIG_Py_Void();
27714 }
27715
27716 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27717 return SWIG_Python_InitShadowInstance(args);
27718 }
27719
27720 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27721 PyObject *resultobj = 0;
27722 wxOverlay *arg1 = 0 ;
27723 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27724 int arg3 ;
27725 int arg4 ;
27726 int arg5 ;
27727 int arg6 ;
27728 wxDCOverlay *result = 0 ;
27729 void *argp1 = 0 ;
27730 int res1 = 0 ;
27731 void *argp2 = 0 ;
27732 int res2 = 0 ;
27733 int val3 ;
27734 int ecode3 = 0 ;
27735 int val4 ;
27736 int ecode4 = 0 ;
27737 int val5 ;
27738 int ecode5 = 0 ;
27739 int val6 ;
27740 int ecode6 = 0 ;
27741
27742 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27744 if (!SWIG_IsOK(res1)) {
27745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27746 }
27747 if (!argp1) {
27748 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27749 }
27750 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27751 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27752 if (!SWIG_IsOK(res2)) {
27753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27754 }
27755 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27756 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27757 if (!SWIG_IsOK(ecode3)) {
27758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27759 }
27760 arg3 = static_cast< int >(val3);
27761 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27762 if (!SWIG_IsOK(ecode4)) {
27763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27764 }
27765 arg4 = static_cast< int >(val4);
27766 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27767 if (!SWIG_IsOK(ecode5)) {
27768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27769 }
27770 arg5 = static_cast< int >(val5);
27771 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27772 if (!SWIG_IsOK(ecode6)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27774 }
27775 arg6 = static_cast< int >(val6);
27776 {
27777 PyThreadState* __tstate = wxPyBeginAllowThreads();
27778 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27779 wxPyEndAllowThreads(__tstate);
27780 if (PyErr_Occurred()) SWIG_fail;
27781 }
27782 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27783 return resultobj;
27784 fail:
27785 return NULL;
27786 }
27787
27788
27789 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27790 PyObject *resultobj = 0;
27791 wxOverlay *arg1 = 0 ;
27792 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27793 wxDCOverlay *result = 0 ;
27794 void *argp1 = 0 ;
27795 int res1 = 0 ;
27796 void *argp2 = 0 ;
27797 int res2 = 0 ;
27798
27799 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27800 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27801 if (!SWIG_IsOK(res1)) {
27802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27803 }
27804 if (!argp1) {
27805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27806 }
27807 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27808 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27809 if (!SWIG_IsOK(res2)) {
27810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27811 }
27812 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27813 {
27814 PyThreadState* __tstate = wxPyBeginAllowThreads();
27815 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27816 wxPyEndAllowThreads(__tstate);
27817 if (PyErr_Occurred()) SWIG_fail;
27818 }
27819 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27820 return resultobj;
27821 fail:
27822 return NULL;
27823 }
27824
27825
27826 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27827 int argc;
27828 PyObject *argv[7];
27829
27830 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27831 --argc;
27832 if (argc == 2) {
27833 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27834 }
27835 if (argc == 6) {
27836 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27837 }
27838
27839 fail:
27840 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27841 return NULL;
27842 }
27843
27844
27845 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27846 PyObject *resultobj = 0;
27847 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27848 void *argp1 = 0 ;
27849 int res1 = 0 ;
27850 PyObject *swig_obj[1] ;
27851
27852 if (!args) SWIG_fail;
27853 swig_obj[0] = args;
27854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27855 if (!SWIG_IsOK(res1)) {
27856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27857 }
27858 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27859 {
27860 PyThreadState* __tstate = wxPyBeginAllowThreads();
27861 delete arg1;
27862
27863 wxPyEndAllowThreads(__tstate);
27864 if (PyErr_Occurred()) SWIG_fail;
27865 }
27866 resultobj = SWIG_Py_Void();
27867 return resultobj;
27868 fail:
27869 return NULL;
27870 }
27871
27872
27873 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27874 PyObject *resultobj = 0;
27875 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27876 void *argp1 = 0 ;
27877 int res1 = 0 ;
27878 PyObject *swig_obj[1] ;
27879
27880 if (!args) SWIG_fail;
27881 swig_obj[0] = args;
27882 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27883 if (!SWIG_IsOK(res1)) {
27884 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27885 }
27886 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27887 {
27888 PyThreadState* __tstate = wxPyBeginAllowThreads();
27889 (arg1)->Clear();
27890 wxPyEndAllowThreads(__tstate);
27891 if (PyErr_Occurred()) SWIG_fail;
27892 }
27893 resultobj = SWIG_Py_Void();
27894 return resultobj;
27895 fail:
27896 return NULL;
27897 }
27898
27899
27900 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27901 PyObject *obj;
27902 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27903 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27904 return SWIG_Py_Void();
27905 }
27906
27907 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27908 return SWIG_Python_InitShadowInstance(args);
27909 }
27910
27911 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27912 PyObject *resultobj = 0;
27913 int arg1 ;
27914 int arg2 ;
27915 int arg3 = (int) true ;
27916 int arg4 = (int) 1 ;
27917 wxImageList *result = 0 ;
27918 int val1 ;
27919 int ecode1 = 0 ;
27920 int val2 ;
27921 int ecode2 = 0 ;
27922 int val3 ;
27923 int ecode3 = 0 ;
27924 int val4 ;
27925 int ecode4 = 0 ;
27926 PyObject * obj0 = 0 ;
27927 PyObject * obj1 = 0 ;
27928 PyObject * obj2 = 0 ;
27929 PyObject * obj3 = 0 ;
27930 char * kwnames[] = {
27931 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27932 };
27933
27934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27935 ecode1 = SWIG_AsVal_int(obj0, &val1);
27936 if (!SWIG_IsOK(ecode1)) {
27937 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27938 }
27939 arg1 = static_cast< int >(val1);
27940 ecode2 = SWIG_AsVal_int(obj1, &val2);
27941 if (!SWIG_IsOK(ecode2)) {
27942 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27943 }
27944 arg2 = static_cast< int >(val2);
27945 if (obj2) {
27946 ecode3 = SWIG_AsVal_int(obj2, &val3);
27947 if (!SWIG_IsOK(ecode3)) {
27948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27949 }
27950 arg3 = static_cast< int >(val3);
27951 }
27952 if (obj3) {
27953 ecode4 = SWIG_AsVal_int(obj3, &val4);
27954 if (!SWIG_IsOK(ecode4)) {
27955 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27956 }
27957 arg4 = static_cast< int >(val4);
27958 }
27959 {
27960 if (!wxPyCheckForApp()) SWIG_fail;
27961 PyThreadState* __tstate = wxPyBeginAllowThreads();
27962 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27963 wxPyEndAllowThreads(__tstate);
27964 if (PyErr_Occurred()) SWIG_fail;
27965 }
27966 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27967 return resultobj;
27968 fail:
27969 return NULL;
27970 }
27971
27972
27973 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27974 PyObject *resultobj = 0;
27975 wxImageList *arg1 = (wxImageList *) 0 ;
27976 void *argp1 = 0 ;
27977 int res1 = 0 ;
27978 PyObject *swig_obj[1] ;
27979
27980 if (!args) SWIG_fail;
27981 swig_obj[0] = args;
27982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27983 if (!SWIG_IsOK(res1)) {
27984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
27985 }
27986 arg1 = reinterpret_cast< wxImageList * >(argp1);
27987 {
27988 PyThreadState* __tstate = wxPyBeginAllowThreads();
27989 delete arg1;
27990
27991 wxPyEndAllowThreads(__tstate);
27992 if (PyErr_Occurred()) SWIG_fail;
27993 }
27994 resultobj = SWIG_Py_Void();
27995 return resultobj;
27996 fail:
27997 return NULL;
27998 }
27999
28000
28001 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28002 PyObject *resultobj = 0;
28003 wxImageList *arg1 = (wxImageList *) 0 ;
28004 wxBitmap *arg2 = 0 ;
28005 wxBitmap const &arg3_defvalue = wxNullBitmap ;
28006 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
28007 int result;
28008 void *argp1 = 0 ;
28009 int res1 = 0 ;
28010 void *argp2 = 0 ;
28011 int res2 = 0 ;
28012 void *argp3 = 0 ;
28013 int res3 = 0 ;
28014 PyObject * obj0 = 0 ;
28015 PyObject * obj1 = 0 ;
28016 PyObject * obj2 = 0 ;
28017 char * kwnames[] = {
28018 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
28019 };
28020
28021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28023 if (!SWIG_IsOK(res1)) {
28024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
28025 }
28026 arg1 = reinterpret_cast< wxImageList * >(argp1);
28027 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28028 if (!SWIG_IsOK(res2)) {
28029 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28030 }
28031 if (!argp2) {
28032 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28033 }
28034 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28035 if (obj2) {
28036 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28037 if (!SWIG_IsOK(res3)) {
28038 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28039 }
28040 if (!argp3) {
28041 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28042 }
28043 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28044 }
28045 {
28046 PyThreadState* __tstate = wxPyBeginAllowThreads();
28047 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
28048 wxPyEndAllowThreads(__tstate);
28049 if (PyErr_Occurred()) SWIG_fail;
28050 }
28051 resultobj = SWIG_From_int(static_cast< int >(result));
28052 return resultobj;
28053 fail:
28054 return NULL;
28055 }
28056
28057
28058 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28059 PyObject *resultobj = 0;
28060 wxImageList *arg1 = (wxImageList *) 0 ;
28061 wxBitmap *arg2 = 0 ;
28062 wxColour *arg3 = 0 ;
28063 int result;
28064 void *argp1 = 0 ;
28065 int res1 = 0 ;
28066 void *argp2 = 0 ;
28067 int res2 = 0 ;
28068 wxColour temp3 ;
28069 PyObject * obj0 = 0 ;
28070 PyObject * obj1 = 0 ;
28071 PyObject * obj2 = 0 ;
28072 char * kwnames[] = {
28073 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
28074 };
28075
28076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28078 if (!SWIG_IsOK(res1)) {
28079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
28080 }
28081 arg1 = reinterpret_cast< wxImageList * >(argp1);
28082 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28083 if (!SWIG_IsOK(res2)) {
28084 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28085 }
28086 if (!argp2) {
28087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28088 }
28089 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28090 {
28091 arg3 = &temp3;
28092 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28093 }
28094 {
28095 PyThreadState* __tstate = wxPyBeginAllowThreads();
28096 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
28097 wxPyEndAllowThreads(__tstate);
28098 if (PyErr_Occurred()) SWIG_fail;
28099 }
28100 resultobj = SWIG_From_int(static_cast< int >(result));
28101 return resultobj;
28102 fail:
28103 return NULL;
28104 }
28105
28106
28107 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28108 PyObject *resultobj = 0;
28109 wxImageList *arg1 = (wxImageList *) 0 ;
28110 wxIcon *arg2 = 0 ;
28111 int result;
28112 void *argp1 = 0 ;
28113 int res1 = 0 ;
28114 void *argp2 = 0 ;
28115 int res2 = 0 ;
28116 PyObject * obj0 = 0 ;
28117 PyObject * obj1 = 0 ;
28118 char * kwnames[] = {
28119 (char *) "self",(char *) "icon", NULL
28120 };
28121
28122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28124 if (!SWIG_IsOK(res1)) {
28125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
28126 }
28127 arg1 = reinterpret_cast< wxImageList * >(argp1);
28128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
28129 if (!SWIG_IsOK(res2)) {
28130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28131 }
28132 if (!argp2) {
28133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28134 }
28135 arg2 = reinterpret_cast< wxIcon * >(argp2);
28136 {
28137 PyThreadState* __tstate = wxPyBeginAllowThreads();
28138 result = (int)(arg1)->Add((wxIcon const &)*arg2);
28139 wxPyEndAllowThreads(__tstate);
28140 if (PyErr_Occurred()) SWIG_fail;
28141 }
28142 resultobj = SWIG_From_int(static_cast< int >(result));
28143 return resultobj;
28144 fail:
28145 return NULL;
28146 }
28147
28148
28149 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28150 PyObject *resultobj = 0;
28151 wxImageList *arg1 = (wxImageList *) 0 ;
28152 int arg2 ;
28153 SwigValueWrapper<wxBitmap > result;
28154 void *argp1 = 0 ;
28155 int res1 = 0 ;
28156 int val2 ;
28157 int ecode2 = 0 ;
28158 PyObject * obj0 = 0 ;
28159 PyObject * obj1 = 0 ;
28160 char * kwnames[] = {
28161 (char *) "self",(char *) "index", NULL
28162 };
28163
28164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
28165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28166 if (!SWIG_IsOK(res1)) {
28167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
28168 }
28169 arg1 = reinterpret_cast< wxImageList * >(argp1);
28170 ecode2 = SWIG_AsVal_int(obj1, &val2);
28171 if (!SWIG_IsOK(ecode2)) {
28172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
28173 }
28174 arg2 = static_cast< int >(val2);
28175 {
28176 PyThreadState* __tstate = wxPyBeginAllowThreads();
28177 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
28178 wxPyEndAllowThreads(__tstate);
28179 if (PyErr_Occurred()) SWIG_fail;
28180 }
28181 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
28182 return resultobj;
28183 fail:
28184 return NULL;
28185 }
28186
28187
28188 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28189 PyObject *resultobj = 0;
28190 wxImageList *arg1 = (wxImageList *) 0 ;
28191 int arg2 ;
28192 wxIcon result;
28193 void *argp1 = 0 ;
28194 int res1 = 0 ;
28195 int val2 ;
28196 int ecode2 = 0 ;
28197 PyObject * obj0 = 0 ;
28198 PyObject * obj1 = 0 ;
28199 char * kwnames[] = {
28200 (char *) "self",(char *) "index", NULL
28201 };
28202
28203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28205 if (!SWIG_IsOK(res1)) {
28206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
28207 }
28208 arg1 = reinterpret_cast< wxImageList * >(argp1);
28209 ecode2 = SWIG_AsVal_int(obj1, &val2);
28210 if (!SWIG_IsOK(ecode2)) {
28211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
28212 }
28213 arg2 = static_cast< int >(val2);
28214 {
28215 PyThreadState* __tstate = wxPyBeginAllowThreads();
28216 result = ((wxImageList const *)arg1)->GetIcon(arg2);
28217 wxPyEndAllowThreads(__tstate);
28218 if (PyErr_Occurred()) SWIG_fail;
28219 }
28220 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
28221 return resultobj;
28222 fail:
28223 return NULL;
28224 }
28225
28226
28227 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28228 PyObject *resultobj = 0;
28229 wxImageList *arg1 = (wxImageList *) 0 ;
28230 int arg2 ;
28231 wxBitmap *arg3 = 0 ;
28232 wxBitmap const &arg4_defvalue = wxNullBitmap ;
28233 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
28234 bool result;
28235 void *argp1 = 0 ;
28236 int res1 = 0 ;
28237 int val2 ;
28238 int ecode2 = 0 ;
28239 void *argp3 = 0 ;
28240 int res3 = 0 ;
28241 void *argp4 = 0 ;
28242 int res4 = 0 ;
28243 PyObject * obj0 = 0 ;
28244 PyObject * obj1 = 0 ;
28245 PyObject * obj2 = 0 ;
28246 PyObject * obj3 = 0 ;
28247 char * kwnames[] = {
28248 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
28249 };
28250
28251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28253 if (!SWIG_IsOK(res1)) {
28254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
28255 }
28256 arg1 = reinterpret_cast< wxImageList * >(argp1);
28257 ecode2 = SWIG_AsVal_int(obj1, &val2);
28258 if (!SWIG_IsOK(ecode2)) {
28259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
28260 }
28261 arg2 = static_cast< int >(val2);
28262 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28263 if (!SWIG_IsOK(res3)) {
28264 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28265 }
28266 if (!argp3) {
28267 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28268 }
28269 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28270 if (obj3) {
28271 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28272 if (!SWIG_IsOK(res4)) {
28273 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28274 }
28275 if (!argp4) {
28276 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28277 }
28278 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28279 }
28280 {
28281 PyThreadState* __tstate = wxPyBeginAllowThreads();
28282 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28283 wxPyEndAllowThreads(__tstate);
28284 if (PyErr_Occurred()) SWIG_fail;
28285 }
28286 {
28287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28288 }
28289 return resultobj;
28290 fail:
28291 return NULL;
28292 }
28293
28294
28295 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28296 PyObject *resultobj = 0;
28297 wxImageList *arg1 = (wxImageList *) 0 ;
28298 int arg2 ;
28299 wxDC *arg3 = 0 ;
28300 int arg4 ;
28301 int arg5 ;
28302 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28303 bool arg7 = (bool) (bool)false ;
28304 bool result;
28305 void *argp1 = 0 ;
28306 int res1 = 0 ;
28307 int val2 ;
28308 int ecode2 = 0 ;
28309 void *argp3 = 0 ;
28310 int res3 = 0 ;
28311 int val4 ;
28312 int ecode4 = 0 ;
28313 int val5 ;
28314 int ecode5 = 0 ;
28315 int val6 ;
28316 int ecode6 = 0 ;
28317 bool val7 ;
28318 int ecode7 = 0 ;
28319 PyObject * obj0 = 0 ;
28320 PyObject * obj1 = 0 ;
28321 PyObject * obj2 = 0 ;
28322 PyObject * obj3 = 0 ;
28323 PyObject * obj4 = 0 ;
28324 PyObject * obj5 = 0 ;
28325 PyObject * obj6 = 0 ;
28326 char * kwnames[] = {
28327 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28328 };
28329
28330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28332 if (!SWIG_IsOK(res1)) {
28333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28334 }
28335 arg1 = reinterpret_cast< wxImageList * >(argp1);
28336 ecode2 = SWIG_AsVal_int(obj1, &val2);
28337 if (!SWIG_IsOK(ecode2)) {
28338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28339 }
28340 arg2 = static_cast< int >(val2);
28341 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28342 if (!SWIG_IsOK(res3)) {
28343 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28344 }
28345 if (!argp3) {
28346 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28347 }
28348 arg3 = reinterpret_cast< wxDC * >(argp3);
28349 ecode4 = SWIG_AsVal_int(obj3, &val4);
28350 if (!SWIG_IsOK(ecode4)) {
28351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28352 }
28353 arg4 = static_cast< int >(val4);
28354 ecode5 = SWIG_AsVal_int(obj4, &val5);
28355 if (!SWIG_IsOK(ecode5)) {
28356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28357 }
28358 arg5 = static_cast< int >(val5);
28359 if (obj5) {
28360 ecode6 = SWIG_AsVal_int(obj5, &val6);
28361 if (!SWIG_IsOK(ecode6)) {
28362 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28363 }
28364 arg6 = static_cast< int >(val6);
28365 }
28366 if (obj6) {
28367 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28368 if (!SWIG_IsOK(ecode7)) {
28369 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28370 }
28371 arg7 = static_cast< bool >(val7);
28372 }
28373 {
28374 PyThreadState* __tstate = wxPyBeginAllowThreads();
28375 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28376 wxPyEndAllowThreads(__tstate);
28377 if (PyErr_Occurred()) SWIG_fail;
28378 }
28379 {
28380 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28381 }
28382 return resultobj;
28383 fail:
28384 return NULL;
28385 }
28386
28387
28388 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28389 PyObject *resultobj = 0;
28390 wxImageList *arg1 = (wxImageList *) 0 ;
28391 int result;
28392 void *argp1 = 0 ;
28393 int res1 = 0 ;
28394 PyObject *swig_obj[1] ;
28395
28396 if (!args) SWIG_fail;
28397 swig_obj[0] = args;
28398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28399 if (!SWIG_IsOK(res1)) {
28400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28401 }
28402 arg1 = reinterpret_cast< wxImageList * >(argp1);
28403 {
28404 PyThreadState* __tstate = wxPyBeginAllowThreads();
28405 result = (int)(arg1)->GetImageCount();
28406 wxPyEndAllowThreads(__tstate);
28407 if (PyErr_Occurred()) SWIG_fail;
28408 }
28409 resultobj = SWIG_From_int(static_cast< int >(result));
28410 return resultobj;
28411 fail:
28412 return NULL;
28413 }
28414
28415
28416 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28417 PyObject *resultobj = 0;
28418 wxImageList *arg1 = (wxImageList *) 0 ;
28419 int arg2 ;
28420 bool result;
28421 void *argp1 = 0 ;
28422 int res1 = 0 ;
28423 int val2 ;
28424 int ecode2 = 0 ;
28425 PyObject * obj0 = 0 ;
28426 PyObject * obj1 = 0 ;
28427 char * kwnames[] = {
28428 (char *) "self",(char *) "index", NULL
28429 };
28430
28431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28433 if (!SWIG_IsOK(res1)) {
28434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28435 }
28436 arg1 = reinterpret_cast< wxImageList * >(argp1);
28437 ecode2 = SWIG_AsVal_int(obj1, &val2);
28438 if (!SWIG_IsOK(ecode2)) {
28439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28440 }
28441 arg2 = static_cast< int >(val2);
28442 {
28443 PyThreadState* __tstate = wxPyBeginAllowThreads();
28444 result = (bool)(arg1)->Remove(arg2);
28445 wxPyEndAllowThreads(__tstate);
28446 if (PyErr_Occurred()) SWIG_fail;
28447 }
28448 {
28449 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28450 }
28451 return resultobj;
28452 fail:
28453 return NULL;
28454 }
28455
28456
28457 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28458 PyObject *resultobj = 0;
28459 wxImageList *arg1 = (wxImageList *) 0 ;
28460 bool result;
28461 void *argp1 = 0 ;
28462 int res1 = 0 ;
28463 PyObject *swig_obj[1] ;
28464
28465 if (!args) SWIG_fail;
28466 swig_obj[0] = args;
28467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28468 if (!SWIG_IsOK(res1)) {
28469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28470 }
28471 arg1 = reinterpret_cast< wxImageList * >(argp1);
28472 {
28473 PyThreadState* __tstate = wxPyBeginAllowThreads();
28474 result = (bool)(arg1)->RemoveAll();
28475 wxPyEndAllowThreads(__tstate);
28476 if (PyErr_Occurred()) SWIG_fail;
28477 }
28478 {
28479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28480 }
28481 return resultobj;
28482 fail:
28483 return NULL;
28484 }
28485
28486
28487 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28488 PyObject *resultobj = 0;
28489 wxImageList *arg1 = (wxImageList *) 0 ;
28490 int arg2 ;
28491 int *arg3 = 0 ;
28492 int *arg4 = 0 ;
28493 void *argp1 = 0 ;
28494 int res1 = 0 ;
28495 int val2 ;
28496 int ecode2 = 0 ;
28497 int temp3 ;
28498 int res3 = SWIG_TMPOBJ ;
28499 int temp4 ;
28500 int res4 = SWIG_TMPOBJ ;
28501 PyObject * obj0 = 0 ;
28502 PyObject * obj1 = 0 ;
28503 char * kwnames[] = {
28504 (char *) "self",(char *) "index", NULL
28505 };
28506
28507 arg3 = &temp3;
28508 arg4 = &temp4;
28509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28511 if (!SWIG_IsOK(res1)) {
28512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28513 }
28514 arg1 = reinterpret_cast< wxImageList * >(argp1);
28515 ecode2 = SWIG_AsVal_int(obj1, &val2);
28516 if (!SWIG_IsOK(ecode2)) {
28517 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28518 }
28519 arg2 = static_cast< int >(val2);
28520 {
28521 PyThreadState* __tstate = wxPyBeginAllowThreads();
28522 (arg1)->GetSize(arg2,*arg3,*arg4);
28523 wxPyEndAllowThreads(__tstate);
28524 if (PyErr_Occurred()) SWIG_fail;
28525 }
28526 resultobj = SWIG_Py_Void();
28527 if (SWIG_IsTmpObj(res3)) {
28528 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28529 } else {
28530 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28531 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28532 }
28533 if (SWIG_IsTmpObj(res4)) {
28534 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28535 } else {
28536 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28537 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28538 }
28539 return resultobj;
28540 fail:
28541 return NULL;
28542 }
28543
28544
28545 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28546 PyObject *obj;
28547 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28548 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28549 return SWIG_Py_Void();
28550 }
28551
28552 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28553 return SWIG_Python_InitShadowInstance(args);
28554 }
28555
28556 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28557 PyObject *resultobj = 0;
28558 wxStockGDI *result = 0 ;
28559
28560 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28561 {
28562 PyThreadState* __tstate = wxPyBeginAllowThreads();
28563 result = (wxStockGDI *)new wxStockGDI();
28564 wxPyEndAllowThreads(__tstate);
28565 if (PyErr_Occurred()) SWIG_fail;
28566 }
28567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28568 return resultobj;
28569 fail:
28570 return NULL;
28571 }
28572
28573
28574 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28575 PyObject *resultobj = 0;
28576 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28577 void *argp1 = 0 ;
28578 int res1 = 0 ;
28579 PyObject *swig_obj[1] ;
28580
28581 if (!args) SWIG_fail;
28582 swig_obj[0] = args;
28583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28584 if (!SWIG_IsOK(res1)) {
28585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28586 }
28587 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28588 {
28589 PyThreadState* __tstate = wxPyBeginAllowThreads();
28590 delete arg1;
28591
28592 wxPyEndAllowThreads(__tstate);
28593 if (PyErr_Occurred()) SWIG_fail;
28594 }
28595 resultobj = SWIG_Py_Void();
28596 return resultobj;
28597 fail:
28598 return NULL;
28599 }
28600
28601
28602 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28603 PyObject *resultobj = 0;
28604
28605 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28606 {
28607 PyThreadState* __tstate = wxPyBeginAllowThreads();
28608 wxStockGDI::DeleteAll();
28609 wxPyEndAllowThreads(__tstate);
28610 if (PyErr_Occurred()) SWIG_fail;
28611 }
28612 resultobj = SWIG_Py_Void();
28613 return resultobj;
28614 fail:
28615 return NULL;
28616 }
28617
28618
28619 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28620 PyObject *resultobj = 0;
28621 wxStockGDI *result = 0 ;
28622
28623 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28624 {
28625 PyThreadState* __tstate = wxPyBeginAllowThreads();
28626 {
28627 wxStockGDI &_result_ref = wxStockGDI::instance();
28628 result = (wxStockGDI *) &_result_ref;
28629 }
28630 wxPyEndAllowThreads(__tstate);
28631 if (PyErr_Occurred()) SWIG_fail;
28632 }
28633 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28634 return resultobj;
28635 fail:
28636 return NULL;
28637 }
28638
28639
28640 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28641 PyObject *resultobj = 0;
28642 wxStockGDI::Item arg1 ;
28643 wxBrush *result = 0 ;
28644 int val1 ;
28645 int ecode1 = 0 ;
28646 PyObject * obj0 = 0 ;
28647 char * kwnames[] = {
28648 (char *) "item", NULL
28649 };
28650
28651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28652 ecode1 = SWIG_AsVal_int(obj0, &val1);
28653 if (!SWIG_IsOK(ecode1)) {
28654 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28655 }
28656 arg1 = static_cast< wxStockGDI::Item >(val1);
28657 {
28658 PyThreadState* __tstate = wxPyBeginAllowThreads();
28659 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28660 wxPyEndAllowThreads(__tstate);
28661 if (PyErr_Occurred()) SWIG_fail;
28662 }
28663 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28664 return resultobj;
28665 fail:
28666 return NULL;
28667 }
28668
28669
28670 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28671 PyObject *resultobj = 0;
28672 wxStockGDI::Item arg1 ;
28673 wxColour *result = 0 ;
28674 int val1 ;
28675 int ecode1 = 0 ;
28676 PyObject * obj0 = 0 ;
28677 char * kwnames[] = {
28678 (char *) "item", NULL
28679 };
28680
28681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28682 ecode1 = SWIG_AsVal_int(obj0, &val1);
28683 if (!SWIG_IsOK(ecode1)) {
28684 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28685 }
28686 arg1 = static_cast< wxStockGDI::Item >(val1);
28687 {
28688 PyThreadState* __tstate = wxPyBeginAllowThreads();
28689 result = (wxColour *)wxStockGDI::GetColour(arg1);
28690 wxPyEndAllowThreads(__tstate);
28691 if (PyErr_Occurred()) SWIG_fail;
28692 }
28693 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28694 return resultobj;
28695 fail:
28696 return NULL;
28697 }
28698
28699
28700 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28701 PyObject *resultobj = 0;
28702 wxStockGDI::Item arg1 ;
28703 wxCursor *result = 0 ;
28704 int val1 ;
28705 int ecode1 = 0 ;
28706 PyObject * obj0 = 0 ;
28707 char * kwnames[] = {
28708 (char *) "item", NULL
28709 };
28710
28711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28712 ecode1 = SWIG_AsVal_int(obj0, &val1);
28713 if (!SWIG_IsOK(ecode1)) {
28714 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28715 }
28716 arg1 = static_cast< wxStockGDI::Item >(val1);
28717 {
28718 PyThreadState* __tstate = wxPyBeginAllowThreads();
28719 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28720 wxPyEndAllowThreads(__tstate);
28721 if (PyErr_Occurred()) SWIG_fail;
28722 }
28723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28724 return resultobj;
28725 fail:
28726 return NULL;
28727 }
28728
28729
28730 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28731 PyObject *resultobj = 0;
28732 wxStockGDI::Item arg1 ;
28733 wxPen *result = 0 ;
28734 int val1 ;
28735 int ecode1 = 0 ;
28736 PyObject * obj0 = 0 ;
28737 char * kwnames[] = {
28738 (char *) "item", NULL
28739 };
28740
28741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28742 ecode1 = SWIG_AsVal_int(obj0, &val1);
28743 if (!SWIG_IsOK(ecode1)) {
28744 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28745 }
28746 arg1 = static_cast< wxStockGDI::Item >(val1);
28747 {
28748 PyThreadState* __tstate = wxPyBeginAllowThreads();
28749 result = (wxPen *)wxStockGDI::GetPen(arg1);
28750 wxPyEndAllowThreads(__tstate);
28751 if (PyErr_Occurred()) SWIG_fail;
28752 }
28753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28754 return resultobj;
28755 fail:
28756 return NULL;
28757 }
28758
28759
28760 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28761 PyObject *resultobj = 0;
28762 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28763 wxStockGDI::Item arg2 ;
28764 wxFont *result = 0 ;
28765 void *argp1 = 0 ;
28766 int res1 = 0 ;
28767 int val2 ;
28768 int ecode2 = 0 ;
28769 PyObject * obj0 = 0 ;
28770 PyObject * obj1 = 0 ;
28771 char * kwnames[] = {
28772 (char *) "self",(char *) "item", NULL
28773 };
28774
28775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28777 if (!SWIG_IsOK(res1)) {
28778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28779 }
28780 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28781 ecode2 = SWIG_AsVal_int(obj1, &val2);
28782 if (!SWIG_IsOK(ecode2)) {
28783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28784 }
28785 arg2 = static_cast< wxStockGDI::Item >(val2);
28786 {
28787 PyThreadState* __tstate = wxPyBeginAllowThreads();
28788 result = (wxFont *)(arg1)->GetFont(arg2);
28789 wxPyEndAllowThreads(__tstate);
28790 if (PyErr_Occurred()) SWIG_fail;
28791 }
28792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28793 return resultobj;
28794 fail:
28795 return NULL;
28796 }
28797
28798
28799 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28800 PyObject *obj;
28801 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28802 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28803 return SWIG_Py_Void();
28804 }
28805
28806 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28807 return SWIG_Python_InitShadowInstance(args);
28808 }
28809
28810 SWIGINTERN int NullBitmap_set(PyObject *) {
28811 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28812 return 1;
28813 }
28814
28815
28816 SWIGINTERN PyObject *NullBitmap_get(void) {
28817 PyObject *pyobj = 0;
28818
28819 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28820 return pyobj;
28821 }
28822
28823
28824 SWIGINTERN int NullIcon_set(PyObject *) {
28825 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28826 return 1;
28827 }
28828
28829
28830 SWIGINTERN PyObject *NullIcon_get(void) {
28831 PyObject *pyobj = 0;
28832
28833 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28834 return pyobj;
28835 }
28836
28837
28838 SWIGINTERN int NullCursor_set(PyObject *) {
28839 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28840 return 1;
28841 }
28842
28843
28844 SWIGINTERN PyObject *NullCursor_get(void) {
28845 PyObject *pyobj = 0;
28846
28847 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28848 return pyobj;
28849 }
28850
28851
28852 SWIGINTERN int NullPen_set(PyObject *) {
28853 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28854 return 1;
28855 }
28856
28857
28858 SWIGINTERN PyObject *NullPen_get(void) {
28859 PyObject *pyobj = 0;
28860
28861 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28862 return pyobj;
28863 }
28864
28865
28866 SWIGINTERN int NullBrush_set(PyObject *) {
28867 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28868 return 1;
28869 }
28870
28871
28872 SWIGINTERN PyObject *NullBrush_get(void) {
28873 PyObject *pyobj = 0;
28874
28875 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28876 return pyobj;
28877 }
28878
28879
28880 SWIGINTERN int NullPalette_set(PyObject *) {
28881 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28882 return 1;
28883 }
28884
28885
28886 SWIGINTERN PyObject *NullPalette_get(void) {
28887 PyObject *pyobj = 0;
28888
28889 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28890 return pyobj;
28891 }
28892
28893
28894 SWIGINTERN int NullFont_set(PyObject *) {
28895 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28896 return 1;
28897 }
28898
28899
28900 SWIGINTERN PyObject *NullFont_get(void) {
28901 PyObject *pyobj = 0;
28902
28903 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28904 return pyobj;
28905 }
28906
28907
28908 SWIGINTERN int NullColour_set(PyObject *) {
28909 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28910 return 1;
28911 }
28912
28913
28914 SWIGINTERN PyObject *NullColour_get(void) {
28915 PyObject *pyobj = 0;
28916
28917 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28918 return pyobj;
28919 }
28920
28921
28922 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28923 PyObject *resultobj = 0;
28924 wxGDIObjListBase *result = 0 ;
28925
28926 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28927 {
28928 PyThreadState* __tstate = wxPyBeginAllowThreads();
28929 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28930 wxPyEndAllowThreads(__tstate);
28931 if (PyErr_Occurred()) SWIG_fail;
28932 }
28933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28934 return resultobj;
28935 fail:
28936 return NULL;
28937 }
28938
28939
28940 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28941 PyObject *resultobj = 0;
28942 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28943 void *argp1 = 0 ;
28944 int res1 = 0 ;
28945 PyObject *swig_obj[1] ;
28946
28947 if (!args) SWIG_fail;
28948 swig_obj[0] = args;
28949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28950 if (!SWIG_IsOK(res1)) {
28951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28952 }
28953 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28954 {
28955 PyThreadState* __tstate = wxPyBeginAllowThreads();
28956 delete arg1;
28957
28958 wxPyEndAllowThreads(__tstate);
28959 if (PyErr_Occurred()) SWIG_fail;
28960 }
28961 resultobj = SWIG_Py_Void();
28962 return resultobj;
28963 fail:
28964 return NULL;
28965 }
28966
28967
28968 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28969 PyObject *obj;
28970 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28971 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28972 return SWIG_Py_Void();
28973 }
28974
28975 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28976 return SWIG_Python_InitShadowInstance(args);
28977 }
28978
28979 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28980 PyObject *resultobj = 0;
28981 wxPenList *arg1 = (wxPenList *) 0 ;
28982 wxColour *arg2 = 0 ;
28983 int arg3 ;
28984 int arg4 ;
28985 wxPen *result = 0 ;
28986 void *argp1 = 0 ;
28987 int res1 = 0 ;
28988 wxColour temp2 ;
28989 int val3 ;
28990 int ecode3 = 0 ;
28991 int val4 ;
28992 int ecode4 = 0 ;
28993 PyObject * obj0 = 0 ;
28994 PyObject * obj1 = 0 ;
28995 PyObject * obj2 = 0 ;
28996 PyObject * obj3 = 0 ;
28997 char * kwnames[] = {
28998 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
28999 };
29000
29001 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29002 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29003 if (!SWIG_IsOK(res1)) {
29004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29005 }
29006 arg1 = reinterpret_cast< wxPenList * >(argp1);
29007 {
29008 arg2 = &temp2;
29009 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29010 }
29011 ecode3 = SWIG_AsVal_int(obj2, &val3);
29012 if (!SWIG_IsOK(ecode3)) {
29013 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
29014 }
29015 arg3 = static_cast< int >(val3);
29016 ecode4 = SWIG_AsVal_int(obj3, &val4);
29017 if (!SWIG_IsOK(ecode4)) {
29018 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
29019 }
29020 arg4 = static_cast< int >(val4);
29021 {
29022 PyThreadState* __tstate = wxPyBeginAllowThreads();
29023 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
29024 wxPyEndAllowThreads(__tstate);
29025 if (PyErr_Occurred()) SWIG_fail;
29026 }
29027 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
29028 return resultobj;
29029 fail:
29030 return NULL;
29031 }
29032
29033
29034 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29035 PyObject *resultobj = 0;
29036 wxPenList *arg1 = (wxPenList *) 0 ;
29037 wxPen *arg2 = (wxPen *) 0 ;
29038 void *argp1 = 0 ;
29039 int res1 = 0 ;
29040 void *argp2 = 0 ;
29041 int res2 = 0 ;
29042 PyObject * obj0 = 0 ;
29043 PyObject * obj1 = 0 ;
29044 char * kwnames[] = {
29045 (char *) "self",(char *) "pen", NULL
29046 };
29047
29048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
29049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29050 if (!SWIG_IsOK(res1)) {
29051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
29052 }
29053 arg1 = reinterpret_cast< wxPenList * >(argp1);
29054 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29055 if (!SWIG_IsOK(res2)) {
29056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
29057 }
29058 arg2 = reinterpret_cast< wxPen * >(argp2);
29059 {
29060 PyThreadState* __tstate = wxPyBeginAllowThreads();
29061 (arg1)->AddPen(arg2);
29062 wxPyEndAllowThreads(__tstate);
29063 if (PyErr_Occurred()) SWIG_fail;
29064 }
29065 resultobj = SWIG_Py_Void();
29066 return resultobj;
29067 fail:
29068 return NULL;
29069 }
29070
29071
29072 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29073 PyObject *resultobj = 0;
29074 wxPenList *arg1 = (wxPenList *) 0 ;
29075 wxPen *arg2 = (wxPen *) 0 ;
29076 void *argp1 = 0 ;
29077 int res1 = 0 ;
29078 void *argp2 = 0 ;
29079 int res2 = 0 ;
29080 PyObject * obj0 = 0 ;
29081 PyObject * obj1 = 0 ;
29082 char * kwnames[] = {
29083 (char *) "self",(char *) "pen", NULL
29084 };
29085
29086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
29087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29088 if (!SWIG_IsOK(res1)) {
29089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29090 }
29091 arg1 = reinterpret_cast< wxPenList * >(argp1);
29092 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29093 if (!SWIG_IsOK(res2)) {
29094 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
29095 }
29096 arg2 = reinterpret_cast< wxPen * >(argp2);
29097 {
29098 PyThreadState* __tstate = wxPyBeginAllowThreads();
29099 (arg1)->RemovePen(arg2);
29100 wxPyEndAllowThreads(__tstate);
29101 if (PyErr_Occurred()) SWIG_fail;
29102 }
29103 resultobj = SWIG_Py_Void();
29104 return resultobj;
29105 fail:
29106 return NULL;
29107 }
29108
29109
29110 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29111 PyObject *obj;
29112 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29113 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
29114 return SWIG_Py_Void();
29115 }
29116
29117 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29118 PyObject *resultobj = 0;
29119 wxBrushList *arg1 = (wxBrushList *) 0 ;
29120 wxColour *arg2 = 0 ;
29121 int arg3 = (int) wxSOLID ;
29122 wxBrush *result = 0 ;
29123 void *argp1 = 0 ;
29124 int res1 = 0 ;
29125 wxColour temp2 ;
29126 int val3 ;
29127 int ecode3 = 0 ;
29128 PyObject * obj0 = 0 ;
29129 PyObject * obj1 = 0 ;
29130 PyObject * obj2 = 0 ;
29131 char * kwnames[] = {
29132 (char *) "self",(char *) "colour",(char *) "style", NULL
29133 };
29134
29135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29137 if (!SWIG_IsOK(res1)) {
29138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29139 }
29140 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29141 {
29142 arg2 = &temp2;
29143 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29144 }
29145 if (obj2) {
29146 ecode3 = SWIG_AsVal_int(obj2, &val3);
29147 if (!SWIG_IsOK(ecode3)) {
29148 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
29149 }
29150 arg3 = static_cast< int >(val3);
29151 }
29152 {
29153 PyThreadState* __tstate = wxPyBeginAllowThreads();
29154 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
29155 wxPyEndAllowThreads(__tstate);
29156 if (PyErr_Occurred()) SWIG_fail;
29157 }
29158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
29159 return resultobj;
29160 fail:
29161 return NULL;
29162 }
29163
29164
29165 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29166 PyObject *resultobj = 0;
29167 wxBrushList *arg1 = (wxBrushList *) 0 ;
29168 wxBrush *arg2 = (wxBrush *) 0 ;
29169 void *argp1 = 0 ;
29170 int res1 = 0 ;
29171 void *argp2 = 0 ;
29172 int res2 = 0 ;
29173 PyObject * obj0 = 0 ;
29174 PyObject * obj1 = 0 ;
29175 char * kwnames[] = {
29176 (char *) "self",(char *) "brush", NULL
29177 };
29178
29179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29181 if (!SWIG_IsOK(res1)) {
29182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29183 }
29184 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29185 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29186 if (!SWIG_IsOK(res2)) {
29187 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29188 }
29189 arg2 = reinterpret_cast< wxBrush * >(argp2);
29190 {
29191 PyThreadState* __tstate = wxPyBeginAllowThreads();
29192 (arg1)->AddBrush(arg2);
29193 wxPyEndAllowThreads(__tstate);
29194 if (PyErr_Occurred()) SWIG_fail;
29195 }
29196 resultobj = SWIG_Py_Void();
29197 return resultobj;
29198 fail:
29199 return NULL;
29200 }
29201
29202
29203 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29204 PyObject *resultobj = 0;
29205 wxBrushList *arg1 = (wxBrushList *) 0 ;
29206 wxBrush *arg2 = (wxBrush *) 0 ;
29207 void *argp1 = 0 ;
29208 int res1 = 0 ;
29209 void *argp2 = 0 ;
29210 int res2 = 0 ;
29211 PyObject * obj0 = 0 ;
29212 PyObject * obj1 = 0 ;
29213 char * kwnames[] = {
29214 (char *) "self",(char *) "brush", NULL
29215 };
29216
29217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29219 if (!SWIG_IsOK(res1)) {
29220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29221 }
29222 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29223 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29224 if (!SWIG_IsOK(res2)) {
29225 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29226 }
29227 arg2 = reinterpret_cast< wxBrush * >(argp2);
29228 {
29229 PyThreadState* __tstate = wxPyBeginAllowThreads();
29230 (arg1)->RemoveBrush(arg2);
29231 wxPyEndAllowThreads(__tstate);
29232 if (PyErr_Occurred()) SWIG_fail;
29233 }
29234 resultobj = SWIG_Py_Void();
29235 return resultobj;
29236 fail:
29237 return NULL;
29238 }
29239
29240
29241 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29242 PyObject *obj;
29243 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29244 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
29245 return SWIG_Py_Void();
29246 }
29247
29248 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29249 PyObject *resultobj = 0;
29250 wxFontList *arg1 = (wxFontList *) 0 ;
29251 int arg2 ;
29252 int arg3 ;
29253 int arg4 ;
29254 int arg5 ;
29255 bool arg6 = (bool) false ;
29256 wxString const &arg7_defvalue = wxPyEmptyString ;
29257 wxString *arg7 = (wxString *) &arg7_defvalue ;
29258 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
29259 wxFont *result = 0 ;
29260 void *argp1 = 0 ;
29261 int res1 = 0 ;
29262 int val2 ;
29263 int ecode2 = 0 ;
29264 int val3 ;
29265 int ecode3 = 0 ;
29266 int val4 ;
29267 int ecode4 = 0 ;
29268 int val5 ;
29269 int ecode5 = 0 ;
29270 bool val6 ;
29271 int ecode6 = 0 ;
29272 bool temp7 = false ;
29273 int val8 ;
29274 int ecode8 = 0 ;
29275 PyObject * obj0 = 0 ;
29276 PyObject * obj1 = 0 ;
29277 PyObject * obj2 = 0 ;
29278 PyObject * obj3 = 0 ;
29279 PyObject * obj4 = 0 ;
29280 PyObject * obj5 = 0 ;
29281 PyObject * obj6 = 0 ;
29282 PyObject * obj7 = 0 ;
29283 char * kwnames[] = {
29284 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
29285 };
29286
29287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29289 if (!SWIG_IsOK(res1)) {
29290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29291 }
29292 arg1 = reinterpret_cast< wxFontList * >(argp1);
29293 ecode2 = SWIG_AsVal_int(obj1, &val2);
29294 if (!SWIG_IsOK(ecode2)) {
29295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29296 }
29297 arg2 = static_cast< int >(val2);
29298 ecode3 = SWIG_AsVal_int(obj2, &val3);
29299 if (!SWIG_IsOK(ecode3)) {
29300 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29301 }
29302 arg3 = static_cast< int >(val3);
29303 ecode4 = SWIG_AsVal_int(obj3, &val4);
29304 if (!SWIG_IsOK(ecode4)) {
29305 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29306 }
29307 arg4 = static_cast< int >(val4);
29308 ecode5 = SWIG_AsVal_int(obj4, &val5);
29309 if (!SWIG_IsOK(ecode5)) {
29310 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29311 }
29312 arg5 = static_cast< int >(val5);
29313 if (obj5) {
29314 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29315 if (!SWIG_IsOK(ecode6)) {
29316 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29317 }
29318 arg6 = static_cast< bool >(val6);
29319 }
29320 if (obj6) {
29321 {
29322 arg7 = wxString_in_helper(obj6);
29323 if (arg7 == NULL) SWIG_fail;
29324 temp7 = true;
29325 }
29326 }
29327 if (obj7) {
29328 ecode8 = SWIG_AsVal_int(obj7, &val8);
29329 if (!SWIG_IsOK(ecode8)) {
29330 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
29331 }
29332 arg8 = static_cast< wxFontEncoding >(val8);
29333 }
29334 {
29335 PyThreadState* __tstate = wxPyBeginAllowThreads();
29336 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
29337 wxPyEndAllowThreads(__tstate);
29338 if (PyErr_Occurred()) SWIG_fail;
29339 }
29340 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29341 {
29342 if (temp7)
29343 delete arg7;
29344 }
29345 return resultobj;
29346 fail:
29347 {
29348 if (temp7)
29349 delete arg7;
29350 }
29351 return NULL;
29352 }
29353
29354
29355 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29356 PyObject *resultobj = 0;
29357 wxFontList *arg1 = (wxFontList *) 0 ;
29358 wxFont *arg2 = (wxFont *) 0 ;
29359 void *argp1 = 0 ;
29360 int res1 = 0 ;
29361 void *argp2 = 0 ;
29362 int res2 = 0 ;
29363 PyObject * obj0 = 0 ;
29364 PyObject * obj1 = 0 ;
29365 char * kwnames[] = {
29366 (char *) "self",(char *) "font", NULL
29367 };
29368
29369 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29370 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29371 if (!SWIG_IsOK(res1)) {
29372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29373 }
29374 arg1 = reinterpret_cast< wxFontList * >(argp1);
29375 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29376 if (!SWIG_IsOK(res2)) {
29377 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
29378 }
29379 arg2 = reinterpret_cast< wxFont * >(argp2);
29380 {
29381 PyThreadState* __tstate = wxPyBeginAllowThreads();
29382 (arg1)->AddFont(arg2);
29383 wxPyEndAllowThreads(__tstate);
29384 if (PyErr_Occurred()) SWIG_fail;
29385 }
29386 resultobj = SWIG_Py_Void();
29387 return resultobj;
29388 fail:
29389 return NULL;
29390 }
29391
29392
29393 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29394 PyObject *resultobj = 0;
29395 wxFontList *arg1 = (wxFontList *) 0 ;
29396 wxFont *arg2 = (wxFont *) 0 ;
29397 void *argp1 = 0 ;
29398 int res1 = 0 ;
29399 void *argp2 = 0 ;
29400 int res2 = 0 ;
29401 PyObject * obj0 = 0 ;
29402 PyObject * obj1 = 0 ;
29403 char * kwnames[] = {
29404 (char *) "self",(char *) "font", NULL
29405 };
29406
29407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29409 if (!SWIG_IsOK(res1)) {
29410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29411 }
29412 arg1 = reinterpret_cast< wxFontList * >(argp1);
29413 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29414 if (!SWIG_IsOK(res2)) {
29415 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29416 }
29417 arg2 = reinterpret_cast< wxFont * >(argp2);
29418 {
29419 PyThreadState* __tstate = wxPyBeginAllowThreads();
29420 (arg1)->RemoveFont(arg2);
29421 wxPyEndAllowThreads(__tstate);
29422 if (PyErr_Occurred()) SWIG_fail;
29423 }
29424 resultobj = SWIG_Py_Void();
29425 return resultobj;
29426 fail:
29427 return NULL;
29428 }
29429
29430
29431 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29432 PyObject *obj;
29433 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29434 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
29435 return SWIG_Py_Void();
29436 }
29437
29438 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29439 PyObject *resultobj = 0;
29440 wxColourDatabase *result = 0 ;
29441
29442 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29443 {
29444 if (!wxPyCheckForApp()) SWIG_fail;
29445 PyThreadState* __tstate = wxPyBeginAllowThreads();
29446 result = (wxColourDatabase *)new wxColourDatabase();
29447 wxPyEndAllowThreads(__tstate);
29448 if (PyErr_Occurred()) SWIG_fail;
29449 }
29450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29451 return resultobj;
29452 fail:
29453 return NULL;
29454 }
29455
29456
29457 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29458 PyObject *resultobj = 0;
29459 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29460 void *argp1 = 0 ;
29461 int res1 = 0 ;
29462 PyObject *swig_obj[1] ;
29463
29464 if (!args) SWIG_fail;
29465 swig_obj[0] = args;
29466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29467 if (!SWIG_IsOK(res1)) {
29468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29469 }
29470 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29471 {
29472 PyThreadState* __tstate = wxPyBeginAllowThreads();
29473 delete arg1;
29474
29475 wxPyEndAllowThreads(__tstate);
29476 if (PyErr_Occurred()) SWIG_fail;
29477 }
29478 resultobj = SWIG_Py_Void();
29479 return resultobj;
29480 fail:
29481 return NULL;
29482 }
29483
29484
29485 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29486 PyObject *resultobj = 0;
29487 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29488 wxString *arg2 = 0 ;
29489 wxColour result;
29490 void *argp1 = 0 ;
29491 int res1 = 0 ;
29492 bool temp2 = false ;
29493 PyObject * obj0 = 0 ;
29494 PyObject * obj1 = 0 ;
29495 char * kwnames[] = {
29496 (char *) "self",(char *) "name", NULL
29497 };
29498
29499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29501 if (!SWIG_IsOK(res1)) {
29502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29503 }
29504 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29505 {
29506 arg2 = wxString_in_helper(obj1);
29507 if (arg2 == NULL) SWIG_fail;
29508 temp2 = true;
29509 }
29510 {
29511 PyThreadState* __tstate = wxPyBeginAllowThreads();
29512 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29513 wxPyEndAllowThreads(__tstate);
29514 if (PyErr_Occurred()) SWIG_fail;
29515 }
29516 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29517 {
29518 if (temp2)
29519 delete arg2;
29520 }
29521 return resultobj;
29522 fail:
29523 {
29524 if (temp2)
29525 delete arg2;
29526 }
29527 return NULL;
29528 }
29529
29530
29531 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29532 PyObject *resultobj = 0;
29533 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29534 wxColour *arg2 = 0 ;
29535 wxString result;
29536 void *argp1 = 0 ;
29537 int res1 = 0 ;
29538 wxColour temp2 ;
29539 PyObject * obj0 = 0 ;
29540 PyObject * obj1 = 0 ;
29541 char * kwnames[] = {
29542 (char *) "self",(char *) "colour", NULL
29543 };
29544
29545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29547 if (!SWIG_IsOK(res1)) {
29548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29549 }
29550 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29551 {
29552 arg2 = &temp2;
29553 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29554 }
29555 {
29556 PyThreadState* __tstate = wxPyBeginAllowThreads();
29557 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29558 wxPyEndAllowThreads(__tstate);
29559 if (PyErr_Occurred()) SWIG_fail;
29560 }
29561 {
29562 #if wxUSE_UNICODE
29563 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29564 #else
29565 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29566 #endif
29567 }
29568 return resultobj;
29569 fail:
29570 return NULL;
29571 }
29572
29573
29574 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29575 PyObject *resultobj = 0;
29576 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29577 wxString *arg2 = 0 ;
29578 wxColour *arg3 = 0 ;
29579 void *argp1 = 0 ;
29580 int res1 = 0 ;
29581 bool temp2 = false ;
29582 wxColour temp3 ;
29583 PyObject * obj0 = 0 ;
29584 PyObject * obj1 = 0 ;
29585 PyObject * obj2 = 0 ;
29586 char * kwnames[] = {
29587 (char *) "self",(char *) "name",(char *) "colour", NULL
29588 };
29589
29590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29592 if (!SWIG_IsOK(res1)) {
29593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29594 }
29595 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29596 {
29597 arg2 = wxString_in_helper(obj1);
29598 if (arg2 == NULL) SWIG_fail;
29599 temp2 = true;
29600 }
29601 {
29602 arg3 = &temp3;
29603 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29604 }
29605 {
29606 PyThreadState* __tstate = wxPyBeginAllowThreads();
29607 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29608 wxPyEndAllowThreads(__tstate);
29609 if (PyErr_Occurred()) SWIG_fail;
29610 }
29611 resultobj = SWIG_Py_Void();
29612 {
29613 if (temp2)
29614 delete arg2;
29615 }
29616 return resultobj;
29617 fail:
29618 {
29619 if (temp2)
29620 delete arg2;
29621 }
29622 return NULL;
29623 }
29624
29625
29626 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29627 PyObject *resultobj = 0;
29628 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29629 wxString *arg2 = 0 ;
29630 int arg3 ;
29631 int arg4 ;
29632 int arg5 ;
29633 void *argp1 = 0 ;
29634 int res1 = 0 ;
29635 bool temp2 = false ;
29636 int val3 ;
29637 int ecode3 = 0 ;
29638 int val4 ;
29639 int ecode4 = 0 ;
29640 int val5 ;
29641 int ecode5 = 0 ;
29642 PyObject * obj0 = 0 ;
29643 PyObject * obj1 = 0 ;
29644 PyObject * obj2 = 0 ;
29645 PyObject * obj3 = 0 ;
29646 PyObject * obj4 = 0 ;
29647 char * kwnames[] = {
29648 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29649 };
29650
29651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29653 if (!SWIG_IsOK(res1)) {
29654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29655 }
29656 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29657 {
29658 arg2 = wxString_in_helper(obj1);
29659 if (arg2 == NULL) SWIG_fail;
29660 temp2 = true;
29661 }
29662 ecode3 = SWIG_AsVal_int(obj2, &val3);
29663 if (!SWIG_IsOK(ecode3)) {
29664 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29665 }
29666 arg3 = static_cast< int >(val3);
29667 ecode4 = SWIG_AsVal_int(obj3, &val4);
29668 if (!SWIG_IsOK(ecode4)) {
29669 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29670 }
29671 arg4 = static_cast< int >(val4);
29672 ecode5 = SWIG_AsVal_int(obj4, &val5);
29673 if (!SWIG_IsOK(ecode5)) {
29674 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29675 }
29676 arg5 = static_cast< int >(val5);
29677 {
29678 PyThreadState* __tstate = wxPyBeginAllowThreads();
29679 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29680 wxPyEndAllowThreads(__tstate);
29681 if (PyErr_Occurred()) SWIG_fail;
29682 }
29683 resultobj = SWIG_Py_Void();
29684 {
29685 if (temp2)
29686 delete arg2;
29687 }
29688 return resultobj;
29689 fail:
29690 {
29691 if (temp2)
29692 delete arg2;
29693 }
29694 return NULL;
29695 }
29696
29697
29698 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29699 PyObject *obj;
29700 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29701 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29702 return SWIG_Py_Void();
29703 }
29704
29705 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29706 return SWIG_Python_InitShadowInstance(args);
29707 }
29708
29709 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29710 PyObject *resultobj = 0;
29711 wxFontList *result = 0 ;
29712
29713 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29714 {
29715 PyThreadState* __tstate = wxPyBeginAllowThreads();
29716 result = (wxFontList *)_wxPyInitTheFontList();
29717 wxPyEndAllowThreads(__tstate);
29718 if (PyErr_Occurred()) SWIG_fail;
29719 }
29720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29721 return resultobj;
29722 fail:
29723 return NULL;
29724 }
29725
29726
29727 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29728 PyObject *resultobj = 0;
29729 wxPenList *result = 0 ;
29730
29731 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29732 {
29733 PyThreadState* __tstate = wxPyBeginAllowThreads();
29734 result = (wxPenList *)_wxPyInitThePenList();
29735 wxPyEndAllowThreads(__tstate);
29736 if (PyErr_Occurred()) SWIG_fail;
29737 }
29738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29739 return resultobj;
29740 fail:
29741 return NULL;
29742 }
29743
29744
29745 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29746 PyObject *resultobj = 0;
29747 wxBrushList *result = 0 ;
29748
29749 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29750 {
29751 PyThreadState* __tstate = wxPyBeginAllowThreads();
29752 result = (wxBrushList *)_wxPyInitTheBrushList();
29753 wxPyEndAllowThreads(__tstate);
29754 if (PyErr_Occurred()) SWIG_fail;
29755 }
29756 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29757 return resultobj;
29758 fail:
29759 return NULL;
29760 }
29761
29762
29763 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29764 PyObject *resultobj = 0;
29765 wxColourDatabase *result = 0 ;
29766
29767 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29768 {
29769 PyThreadState* __tstate = wxPyBeginAllowThreads();
29770 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29771 wxPyEndAllowThreads(__tstate);
29772 if (PyErr_Occurred()) SWIG_fail;
29773 }
29774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29775 return resultobj;
29776 fail:
29777 return NULL;
29778 }
29779
29780
29781 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29782 PyObject *resultobj = 0;
29783 wxEffects *result = 0 ;
29784
29785 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29786 {
29787 PyThreadState* __tstate = wxPyBeginAllowThreads();
29788 result = (wxEffects *)new wxEffects();
29789 wxPyEndAllowThreads(__tstate);
29790 if (PyErr_Occurred()) SWIG_fail;
29791 }
29792 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29793 return resultobj;
29794 fail:
29795 return NULL;
29796 }
29797
29798
29799 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29800 PyObject *resultobj = 0;
29801 wxEffects *arg1 = (wxEffects *) 0 ;
29802 wxColour result;
29803 void *argp1 = 0 ;
29804 int res1 = 0 ;
29805 PyObject *swig_obj[1] ;
29806
29807 if (!args) SWIG_fail;
29808 swig_obj[0] = args;
29809 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29810 if (!SWIG_IsOK(res1)) {
29811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29812 }
29813 arg1 = reinterpret_cast< wxEffects * >(argp1);
29814 {
29815 PyThreadState* __tstate = wxPyBeginAllowThreads();
29816 result = ((wxEffects const *)arg1)->GetHighlightColour();
29817 wxPyEndAllowThreads(__tstate);
29818 if (PyErr_Occurred()) SWIG_fail;
29819 }
29820 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29821 return resultobj;
29822 fail:
29823 return NULL;
29824 }
29825
29826
29827 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29828 PyObject *resultobj = 0;
29829 wxEffects *arg1 = (wxEffects *) 0 ;
29830 wxColour result;
29831 void *argp1 = 0 ;
29832 int res1 = 0 ;
29833 PyObject *swig_obj[1] ;
29834
29835 if (!args) SWIG_fail;
29836 swig_obj[0] = args;
29837 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29838 if (!SWIG_IsOK(res1)) {
29839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29840 }
29841 arg1 = reinterpret_cast< wxEffects * >(argp1);
29842 {
29843 PyThreadState* __tstate = wxPyBeginAllowThreads();
29844 result = ((wxEffects const *)arg1)->GetLightShadow();
29845 wxPyEndAllowThreads(__tstate);
29846 if (PyErr_Occurred()) SWIG_fail;
29847 }
29848 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29849 return resultobj;
29850 fail:
29851 return NULL;
29852 }
29853
29854
29855 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29856 PyObject *resultobj = 0;
29857 wxEffects *arg1 = (wxEffects *) 0 ;
29858 wxColour result;
29859 void *argp1 = 0 ;
29860 int res1 = 0 ;
29861 PyObject *swig_obj[1] ;
29862
29863 if (!args) SWIG_fail;
29864 swig_obj[0] = args;
29865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29866 if (!SWIG_IsOK(res1)) {
29867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29868 }
29869 arg1 = reinterpret_cast< wxEffects * >(argp1);
29870 {
29871 PyThreadState* __tstate = wxPyBeginAllowThreads();
29872 result = ((wxEffects const *)arg1)->GetFaceColour();
29873 wxPyEndAllowThreads(__tstate);
29874 if (PyErr_Occurred()) SWIG_fail;
29875 }
29876 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29877 return resultobj;
29878 fail:
29879 return NULL;
29880 }
29881
29882
29883 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29884 PyObject *resultobj = 0;
29885 wxEffects *arg1 = (wxEffects *) 0 ;
29886 wxColour result;
29887 void *argp1 = 0 ;
29888 int res1 = 0 ;
29889 PyObject *swig_obj[1] ;
29890
29891 if (!args) SWIG_fail;
29892 swig_obj[0] = args;
29893 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29894 if (!SWIG_IsOK(res1)) {
29895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29896 }
29897 arg1 = reinterpret_cast< wxEffects * >(argp1);
29898 {
29899 PyThreadState* __tstate = wxPyBeginAllowThreads();
29900 result = ((wxEffects const *)arg1)->GetMediumShadow();
29901 wxPyEndAllowThreads(__tstate);
29902 if (PyErr_Occurred()) SWIG_fail;
29903 }
29904 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29905 return resultobj;
29906 fail:
29907 return NULL;
29908 }
29909
29910
29911 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29912 PyObject *resultobj = 0;
29913 wxEffects *arg1 = (wxEffects *) 0 ;
29914 wxColour result;
29915 void *argp1 = 0 ;
29916 int res1 = 0 ;
29917 PyObject *swig_obj[1] ;
29918
29919 if (!args) SWIG_fail;
29920 swig_obj[0] = args;
29921 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29922 if (!SWIG_IsOK(res1)) {
29923 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29924 }
29925 arg1 = reinterpret_cast< wxEffects * >(argp1);
29926 {
29927 PyThreadState* __tstate = wxPyBeginAllowThreads();
29928 result = ((wxEffects const *)arg1)->GetDarkShadow();
29929 wxPyEndAllowThreads(__tstate);
29930 if (PyErr_Occurred()) SWIG_fail;
29931 }
29932 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29933 return resultobj;
29934 fail:
29935 return NULL;
29936 }
29937
29938
29939 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29940 PyObject *resultobj = 0;
29941 wxEffects *arg1 = (wxEffects *) 0 ;
29942 wxColour *arg2 = 0 ;
29943 void *argp1 = 0 ;
29944 int res1 = 0 ;
29945 wxColour temp2 ;
29946 PyObject * obj0 = 0 ;
29947 PyObject * obj1 = 0 ;
29948 char * kwnames[] = {
29949 (char *) "self",(char *) "c", NULL
29950 };
29951
29952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29953 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29954 if (!SWIG_IsOK(res1)) {
29955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29956 }
29957 arg1 = reinterpret_cast< wxEffects * >(argp1);
29958 {
29959 arg2 = &temp2;
29960 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29961 }
29962 {
29963 PyThreadState* __tstate = wxPyBeginAllowThreads();
29964 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29965 wxPyEndAllowThreads(__tstate);
29966 if (PyErr_Occurred()) SWIG_fail;
29967 }
29968 resultobj = SWIG_Py_Void();
29969 return resultobj;
29970 fail:
29971 return NULL;
29972 }
29973
29974
29975 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29976 PyObject *resultobj = 0;
29977 wxEffects *arg1 = (wxEffects *) 0 ;
29978 wxColour *arg2 = 0 ;
29979 void *argp1 = 0 ;
29980 int res1 = 0 ;
29981 wxColour temp2 ;
29982 PyObject * obj0 = 0 ;
29983 PyObject * obj1 = 0 ;
29984 char * kwnames[] = {
29985 (char *) "self",(char *) "c", NULL
29986 };
29987
29988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
29989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29990 if (!SWIG_IsOK(res1)) {
29991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
29992 }
29993 arg1 = reinterpret_cast< wxEffects * >(argp1);
29994 {
29995 arg2 = &temp2;
29996 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29997 }
29998 {
29999 PyThreadState* __tstate = wxPyBeginAllowThreads();
30000 (arg1)->SetLightShadow((wxColour const &)*arg2);
30001 wxPyEndAllowThreads(__tstate);
30002 if (PyErr_Occurred()) SWIG_fail;
30003 }
30004 resultobj = SWIG_Py_Void();
30005 return resultobj;
30006 fail:
30007 return NULL;
30008 }
30009
30010
30011 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30012 PyObject *resultobj = 0;
30013 wxEffects *arg1 = (wxEffects *) 0 ;
30014 wxColour *arg2 = 0 ;
30015 void *argp1 = 0 ;
30016 int res1 = 0 ;
30017 wxColour temp2 ;
30018 PyObject * obj0 = 0 ;
30019 PyObject * obj1 = 0 ;
30020 char * kwnames[] = {
30021 (char *) "self",(char *) "c", NULL
30022 };
30023
30024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
30025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30026 if (!SWIG_IsOK(res1)) {
30027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
30028 }
30029 arg1 = reinterpret_cast< wxEffects * >(argp1);
30030 {
30031 arg2 = &temp2;
30032 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30033 }
30034 {
30035 PyThreadState* __tstate = wxPyBeginAllowThreads();
30036 (arg1)->SetFaceColour((wxColour const &)*arg2);
30037 wxPyEndAllowThreads(__tstate);
30038 if (PyErr_Occurred()) SWIG_fail;
30039 }
30040 resultobj = SWIG_Py_Void();
30041 return resultobj;
30042 fail:
30043 return NULL;
30044 }
30045
30046
30047 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30048 PyObject *resultobj = 0;
30049 wxEffects *arg1 = (wxEffects *) 0 ;
30050 wxColour *arg2 = 0 ;
30051 void *argp1 = 0 ;
30052 int res1 = 0 ;
30053 wxColour temp2 ;
30054 PyObject * obj0 = 0 ;
30055 PyObject * obj1 = 0 ;
30056 char * kwnames[] = {
30057 (char *) "self",(char *) "c", NULL
30058 };
30059
30060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30061 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30062 if (!SWIG_IsOK(res1)) {
30063 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30064 }
30065 arg1 = reinterpret_cast< wxEffects * >(argp1);
30066 {
30067 arg2 = &temp2;
30068 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30069 }
30070 {
30071 PyThreadState* __tstate = wxPyBeginAllowThreads();
30072 (arg1)->SetMediumShadow((wxColour const &)*arg2);
30073 wxPyEndAllowThreads(__tstate);
30074 if (PyErr_Occurred()) SWIG_fail;
30075 }
30076 resultobj = SWIG_Py_Void();
30077 return resultobj;
30078 fail:
30079 return NULL;
30080 }
30081
30082
30083 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30084 PyObject *resultobj = 0;
30085 wxEffects *arg1 = (wxEffects *) 0 ;
30086 wxColour *arg2 = 0 ;
30087 void *argp1 = 0 ;
30088 int res1 = 0 ;
30089 wxColour temp2 ;
30090 PyObject * obj0 = 0 ;
30091 PyObject * obj1 = 0 ;
30092 char * kwnames[] = {
30093 (char *) "self",(char *) "c", NULL
30094 };
30095
30096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30098 if (!SWIG_IsOK(res1)) {
30099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30100 }
30101 arg1 = reinterpret_cast< wxEffects * >(argp1);
30102 {
30103 arg2 = &temp2;
30104 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30105 }
30106 {
30107 PyThreadState* __tstate = wxPyBeginAllowThreads();
30108 (arg1)->SetDarkShadow((wxColour const &)*arg2);
30109 wxPyEndAllowThreads(__tstate);
30110 if (PyErr_Occurred()) SWIG_fail;
30111 }
30112 resultobj = SWIG_Py_Void();
30113 return resultobj;
30114 fail:
30115 return NULL;
30116 }
30117
30118
30119 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30120 PyObject *resultobj = 0;
30121 wxEffects *arg1 = (wxEffects *) 0 ;
30122 wxColour *arg2 = 0 ;
30123 wxColour *arg3 = 0 ;
30124 wxColour *arg4 = 0 ;
30125 wxColour *arg5 = 0 ;
30126 wxColour *arg6 = 0 ;
30127 void *argp1 = 0 ;
30128 int res1 = 0 ;
30129 wxColour temp2 ;
30130 wxColour temp3 ;
30131 wxColour temp4 ;
30132 wxColour temp5 ;
30133 wxColour temp6 ;
30134 PyObject * obj0 = 0 ;
30135 PyObject * obj1 = 0 ;
30136 PyObject * obj2 = 0 ;
30137 PyObject * obj3 = 0 ;
30138 PyObject * obj4 = 0 ;
30139 PyObject * obj5 = 0 ;
30140 char * kwnames[] = {
30141 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
30142 };
30143
30144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30146 if (!SWIG_IsOK(res1)) {
30147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
30148 }
30149 arg1 = reinterpret_cast< wxEffects * >(argp1);
30150 {
30151 arg2 = &temp2;
30152 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30153 }
30154 {
30155 arg3 = &temp3;
30156 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30157 }
30158 {
30159 arg4 = &temp4;
30160 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
30161 }
30162 {
30163 arg5 = &temp5;
30164 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
30165 }
30166 {
30167 arg6 = &temp6;
30168 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30169 }
30170 {
30171 PyThreadState* __tstate = wxPyBeginAllowThreads();
30172 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
30173 wxPyEndAllowThreads(__tstate);
30174 if (PyErr_Occurred()) SWIG_fail;
30175 }
30176 resultobj = SWIG_Py_Void();
30177 return resultobj;
30178 fail:
30179 return NULL;
30180 }
30181
30182
30183 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30184 PyObject *resultobj = 0;
30185 wxEffects *arg1 = (wxEffects *) 0 ;
30186 wxDC *arg2 = 0 ;
30187 wxRect *arg3 = 0 ;
30188 int arg4 = (int) 1 ;
30189 void *argp1 = 0 ;
30190 int res1 = 0 ;
30191 void *argp2 = 0 ;
30192 int res2 = 0 ;
30193 wxRect temp3 ;
30194 int val4 ;
30195 int ecode4 = 0 ;
30196 PyObject * obj0 = 0 ;
30197 PyObject * obj1 = 0 ;
30198 PyObject * obj2 = 0 ;
30199 PyObject * obj3 = 0 ;
30200 char * kwnames[] = {
30201 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
30202 };
30203
30204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30206 if (!SWIG_IsOK(res1)) {
30207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
30208 }
30209 arg1 = reinterpret_cast< wxEffects * >(argp1);
30210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
30211 if (!SWIG_IsOK(res2)) {
30212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30213 }
30214 if (!argp2) {
30215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30216 }
30217 arg2 = reinterpret_cast< wxDC * >(argp2);
30218 {
30219 arg3 = &temp3;
30220 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30221 }
30222 if (obj3) {
30223 ecode4 = SWIG_AsVal_int(obj3, &val4);
30224 if (!SWIG_IsOK(ecode4)) {
30225 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
30226 }
30227 arg4 = static_cast< int >(val4);
30228 }
30229 {
30230 PyThreadState* __tstate = wxPyBeginAllowThreads();
30231 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
30232 wxPyEndAllowThreads(__tstate);
30233 if (PyErr_Occurred()) SWIG_fail;
30234 }
30235 resultobj = SWIG_Py_Void();
30236 return resultobj;
30237 fail:
30238 return NULL;
30239 }
30240
30241
30242 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30243 PyObject *resultobj = 0;
30244 wxEffects *arg1 = (wxEffects *) 0 ;
30245 wxRect *arg2 = 0 ;
30246 wxDC *arg3 = 0 ;
30247 wxBitmap *arg4 = 0 ;
30248 bool result;
30249 void *argp1 = 0 ;
30250 int res1 = 0 ;
30251 wxRect temp2 ;
30252 void *argp3 = 0 ;
30253 int res3 = 0 ;
30254 void *argp4 = 0 ;
30255 int res4 = 0 ;
30256 PyObject * obj0 = 0 ;
30257 PyObject * obj1 = 0 ;
30258 PyObject * obj2 = 0 ;
30259 PyObject * obj3 = 0 ;
30260 char * kwnames[] = {
30261 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
30262 };
30263
30264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30266 if (!SWIG_IsOK(res1)) {
30267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30268 }
30269 arg1 = reinterpret_cast< wxEffects * >(argp1);
30270 {
30271 arg2 = &temp2;
30272 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30273 }
30274 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30275 if (!SWIG_IsOK(res3)) {
30276 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30277 }
30278 if (!argp3) {
30279 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30280 }
30281 arg3 = reinterpret_cast< wxDC * >(argp3);
30282 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30283 if (!SWIG_IsOK(res4)) {
30284 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30285 }
30286 if (!argp4) {
30287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30288 }
30289 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30290 {
30291 PyThreadState* __tstate = wxPyBeginAllowThreads();
30292 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30293 wxPyEndAllowThreads(__tstate);
30294 if (PyErr_Occurred()) SWIG_fail;
30295 }
30296 {
30297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30298 }
30299 return resultobj;
30300 fail:
30301 return NULL;
30302 }
30303
30304
30305 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30306 PyObject *obj;
30307 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30308 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30309 return SWIG_Py_Void();
30310 }
30311
30312 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30313 return SWIG_Python_InitShadowInstance(args);
30314 }
30315
30316 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30317 PyObject *resultobj = 0;
30318 int arg1 ;
30319 int arg2 ;
30320 bool arg3 ;
30321 wxSplitterRenderParams *result = 0 ;
30322 int val1 ;
30323 int ecode1 = 0 ;
30324 int val2 ;
30325 int ecode2 = 0 ;
30326 bool val3 ;
30327 int ecode3 = 0 ;
30328 PyObject * obj0 = 0 ;
30329 PyObject * obj1 = 0 ;
30330 PyObject * obj2 = 0 ;
30331 char * kwnames[] = {
30332 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30333 };
30334
30335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30336 ecode1 = SWIG_AsVal_int(obj0, &val1);
30337 if (!SWIG_IsOK(ecode1)) {
30338 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30339 }
30340 arg1 = static_cast< int >(val1);
30341 ecode2 = SWIG_AsVal_int(obj1, &val2);
30342 if (!SWIG_IsOK(ecode2)) {
30343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30344 }
30345 arg2 = static_cast< int >(val2);
30346 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30347 if (!SWIG_IsOK(ecode3)) {
30348 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30349 }
30350 arg3 = static_cast< bool >(val3);
30351 {
30352 PyThreadState* __tstate = wxPyBeginAllowThreads();
30353 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30354 wxPyEndAllowThreads(__tstate);
30355 if (PyErr_Occurred()) SWIG_fail;
30356 }
30357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30358 return resultobj;
30359 fail:
30360 return NULL;
30361 }
30362
30363
30364 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30365 PyObject *resultobj = 0;
30366 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30367 void *argp1 = 0 ;
30368 int res1 = 0 ;
30369 PyObject *swig_obj[1] ;
30370
30371 if (!args) SWIG_fail;
30372 swig_obj[0] = args;
30373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30374 if (!SWIG_IsOK(res1)) {
30375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30376 }
30377 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30378 {
30379 PyThreadState* __tstate = wxPyBeginAllowThreads();
30380 delete arg1;
30381
30382 wxPyEndAllowThreads(__tstate);
30383 if (PyErr_Occurred()) SWIG_fail;
30384 }
30385 resultobj = SWIG_Py_Void();
30386 return resultobj;
30387 fail:
30388 return NULL;
30389 }
30390
30391
30392 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30393 PyObject *resultobj = 0;
30394 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30395 int result;
30396 void *argp1 = 0 ;
30397 int res1 = 0 ;
30398 PyObject *swig_obj[1] ;
30399
30400 if (!args) SWIG_fail;
30401 swig_obj[0] = args;
30402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30403 if (!SWIG_IsOK(res1)) {
30404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30405 }
30406 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30407 result = (int)(int) ((arg1)->widthSash);
30408 resultobj = SWIG_From_int(static_cast< int >(result));
30409 return resultobj;
30410 fail:
30411 return NULL;
30412 }
30413
30414
30415 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30416 PyObject *resultobj = 0;
30417 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30418 int result;
30419 void *argp1 = 0 ;
30420 int res1 = 0 ;
30421 PyObject *swig_obj[1] ;
30422
30423 if (!args) SWIG_fail;
30424 swig_obj[0] = args;
30425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30426 if (!SWIG_IsOK(res1)) {
30427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30428 }
30429 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30430 result = (int)(int) ((arg1)->border);
30431 resultobj = SWIG_From_int(static_cast< int >(result));
30432 return resultobj;
30433 fail:
30434 return NULL;
30435 }
30436
30437
30438 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30439 PyObject *resultobj = 0;
30440 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30441 bool result;
30442 void *argp1 = 0 ;
30443 int res1 = 0 ;
30444 PyObject *swig_obj[1] ;
30445
30446 if (!args) SWIG_fail;
30447 swig_obj[0] = args;
30448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30449 if (!SWIG_IsOK(res1)) {
30450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30451 }
30452 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30453 result = (bool)(bool) ((arg1)->isHotSensitive);
30454 resultobj = SWIG_From_bool(static_cast< bool >(result));
30455 return resultobj;
30456 fail:
30457 return NULL;
30458 }
30459
30460
30461 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30462 PyObject *obj;
30463 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30464 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30465 return SWIG_Py_Void();
30466 }
30467
30468 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30469 return SWIG_Python_InitShadowInstance(args);
30470 }
30471
30472 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30473 PyObject *resultobj = 0;
30474 wxHeaderButtonParams *result = 0 ;
30475
30476 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30477 {
30478 PyThreadState* __tstate = wxPyBeginAllowThreads();
30479 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30480 wxPyEndAllowThreads(__tstate);
30481 if (PyErr_Occurred()) SWIG_fail;
30482 }
30483 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30484 return resultobj;
30485 fail:
30486 return NULL;
30487 }
30488
30489
30490 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30491 PyObject *resultobj = 0;
30492 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30493 void *argp1 = 0 ;
30494 int res1 = 0 ;
30495 PyObject *swig_obj[1] ;
30496
30497 if (!args) SWIG_fail;
30498 swig_obj[0] = args;
30499 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30500 if (!SWIG_IsOK(res1)) {
30501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30502 }
30503 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30504 {
30505 PyThreadState* __tstate = wxPyBeginAllowThreads();
30506 delete arg1;
30507
30508 wxPyEndAllowThreads(__tstate);
30509 if (PyErr_Occurred()) SWIG_fail;
30510 }
30511 resultobj = SWIG_Py_Void();
30512 return resultobj;
30513 fail:
30514 return NULL;
30515 }
30516
30517
30518 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30519 PyObject *resultobj = 0;
30520 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30521 wxColour *arg2 = (wxColour *) 0 ;
30522 void *argp1 = 0 ;
30523 int res1 = 0 ;
30524 wxColour temp2 ;
30525 PyObject *swig_obj[2] ;
30526
30527 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30529 if (!SWIG_IsOK(res1)) {
30530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30531 }
30532 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30533 {
30534 arg2 = &temp2;
30535 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30536 }
30537 if (arg1) (arg1)->m_arrowColour = *arg2;
30538
30539 resultobj = SWIG_Py_Void();
30540 return resultobj;
30541 fail:
30542 return NULL;
30543 }
30544
30545
30546 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30547 PyObject *resultobj = 0;
30548 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30549 wxColour *result = 0 ;
30550 void *argp1 = 0 ;
30551 int res1 = 0 ;
30552 PyObject *swig_obj[1] ;
30553
30554 if (!args) SWIG_fail;
30555 swig_obj[0] = args;
30556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30557 if (!SWIG_IsOK(res1)) {
30558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30559 }
30560 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30561 result = (wxColour *)& ((arg1)->m_arrowColour);
30562 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30563 return resultobj;
30564 fail:
30565 return NULL;
30566 }
30567
30568
30569 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30570 PyObject *resultobj = 0;
30571 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30572 wxColour *arg2 = (wxColour *) 0 ;
30573 void *argp1 = 0 ;
30574 int res1 = 0 ;
30575 wxColour temp2 ;
30576 PyObject *swig_obj[2] ;
30577
30578 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30580 if (!SWIG_IsOK(res1)) {
30581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30582 }
30583 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30584 {
30585 arg2 = &temp2;
30586 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30587 }
30588 if (arg1) (arg1)->m_selectionColour = *arg2;
30589
30590 resultobj = SWIG_Py_Void();
30591 return resultobj;
30592 fail:
30593 return NULL;
30594 }
30595
30596
30597 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30598 PyObject *resultobj = 0;
30599 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30600 wxColour *result = 0 ;
30601 void *argp1 = 0 ;
30602 int res1 = 0 ;
30603 PyObject *swig_obj[1] ;
30604
30605 if (!args) SWIG_fail;
30606 swig_obj[0] = args;
30607 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30608 if (!SWIG_IsOK(res1)) {
30609 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30610 }
30611 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30612 result = (wxColour *)& ((arg1)->m_selectionColour);
30613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30614 return resultobj;
30615 fail:
30616 return NULL;
30617 }
30618
30619
30620 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30621 PyObject *resultobj = 0;
30622 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30623 wxString *arg2 = (wxString *) 0 ;
30624 void *argp1 = 0 ;
30625 int res1 = 0 ;
30626 bool temp2 = false ;
30627 PyObject *swig_obj[2] ;
30628
30629 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_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_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30633 }
30634 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30635 {
30636 arg2 = wxString_in_helper(swig_obj[1]);
30637 if (arg2 == NULL) SWIG_fail;
30638 temp2 = true;
30639 }
30640 if (arg1) (arg1)->m_labelText = *arg2;
30641
30642 resultobj = SWIG_Py_Void();
30643 {
30644 if (temp2)
30645 delete arg2;
30646 }
30647 return resultobj;
30648 fail:
30649 {
30650 if (temp2)
30651 delete arg2;
30652 }
30653 return NULL;
30654 }
30655
30656
30657 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30658 PyObject *resultobj = 0;
30659 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30660 wxString *result = 0 ;
30661 void *argp1 = 0 ;
30662 int res1 = 0 ;
30663 PyObject *swig_obj[1] ;
30664
30665 if (!args) SWIG_fail;
30666 swig_obj[0] = args;
30667 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30668 if (!SWIG_IsOK(res1)) {
30669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30670 }
30671 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30672 result = (wxString *)& ((arg1)->m_labelText);
30673 {
30674 #if wxUSE_UNICODE
30675 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30676 #else
30677 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30678 #endif
30679 }
30680 return resultobj;
30681 fail:
30682 return NULL;
30683 }
30684
30685
30686 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30687 PyObject *resultobj = 0;
30688 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30689 wxFont *arg2 = (wxFont *) 0 ;
30690 void *argp1 = 0 ;
30691 int res1 = 0 ;
30692 void *argp2 = 0 ;
30693 int res2 = 0 ;
30694 PyObject *swig_obj[2] ;
30695
30696 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30698 if (!SWIG_IsOK(res1)) {
30699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30700 }
30701 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30702 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30703 if (!SWIG_IsOK(res2)) {
30704 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30705 }
30706 arg2 = reinterpret_cast< wxFont * >(argp2);
30707 if (arg1) (arg1)->m_labelFont = *arg2;
30708
30709 resultobj = SWIG_Py_Void();
30710 return resultobj;
30711 fail:
30712 return NULL;
30713 }
30714
30715
30716 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30717 PyObject *resultobj = 0;
30718 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30719 wxFont *result = 0 ;
30720 void *argp1 = 0 ;
30721 int res1 = 0 ;
30722 PyObject *swig_obj[1] ;
30723
30724 if (!args) SWIG_fail;
30725 swig_obj[0] = args;
30726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30727 if (!SWIG_IsOK(res1)) {
30728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30729 }
30730 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30731 result = (wxFont *)& ((arg1)->m_labelFont);
30732 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30733 return resultobj;
30734 fail:
30735 return NULL;
30736 }
30737
30738
30739 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30740 PyObject *resultobj = 0;
30741 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30742 wxColour *arg2 = (wxColour *) 0 ;
30743 void *argp1 = 0 ;
30744 int res1 = 0 ;
30745 wxColour temp2 ;
30746 PyObject *swig_obj[2] ;
30747
30748 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30750 if (!SWIG_IsOK(res1)) {
30751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30752 }
30753 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30754 {
30755 arg2 = &temp2;
30756 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30757 }
30758 if (arg1) (arg1)->m_labelColour = *arg2;
30759
30760 resultobj = SWIG_Py_Void();
30761 return resultobj;
30762 fail:
30763 return NULL;
30764 }
30765
30766
30767 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30768 PyObject *resultobj = 0;
30769 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30770 wxColour *result = 0 ;
30771 void *argp1 = 0 ;
30772 int res1 = 0 ;
30773 PyObject *swig_obj[1] ;
30774
30775 if (!args) SWIG_fail;
30776 swig_obj[0] = args;
30777 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30778 if (!SWIG_IsOK(res1)) {
30779 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30780 }
30781 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30782 result = (wxColour *)& ((arg1)->m_labelColour);
30783 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30784 return resultobj;
30785 fail:
30786 return NULL;
30787 }
30788
30789
30790 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30791 PyObject *resultobj = 0;
30792 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30793 wxBitmap *arg2 = (wxBitmap *) 0 ;
30794 void *argp1 = 0 ;
30795 int res1 = 0 ;
30796 void *argp2 = 0 ;
30797 int res2 = 0 ;
30798 PyObject *swig_obj[2] ;
30799
30800 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30801 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30802 if (!SWIG_IsOK(res1)) {
30803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30804 }
30805 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30806 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30807 if (!SWIG_IsOK(res2)) {
30808 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30809 }
30810 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30811 if (arg1) (arg1)->m_labelBitmap = *arg2;
30812
30813 resultobj = SWIG_Py_Void();
30814 return resultobj;
30815 fail:
30816 return NULL;
30817 }
30818
30819
30820 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30821 PyObject *resultobj = 0;
30822 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30823 wxBitmap *result = 0 ;
30824 void *argp1 = 0 ;
30825 int res1 = 0 ;
30826 PyObject *swig_obj[1] ;
30827
30828 if (!args) SWIG_fail;
30829 swig_obj[0] = args;
30830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30831 if (!SWIG_IsOK(res1)) {
30832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30833 }
30834 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30835 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30836 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30837 return resultobj;
30838 fail:
30839 return NULL;
30840 }
30841
30842
30843 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30844 PyObject *resultobj = 0;
30845 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30846 int arg2 ;
30847 void *argp1 = 0 ;
30848 int res1 = 0 ;
30849 int val2 ;
30850 int ecode2 = 0 ;
30851 PyObject *swig_obj[2] ;
30852
30853 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30855 if (!SWIG_IsOK(res1)) {
30856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30857 }
30858 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30859 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30860 if (!SWIG_IsOK(ecode2)) {
30861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30862 }
30863 arg2 = static_cast< int >(val2);
30864 if (arg1) (arg1)->m_labelAlignment = arg2;
30865
30866 resultobj = SWIG_Py_Void();
30867 return resultobj;
30868 fail:
30869 return NULL;
30870 }
30871
30872
30873 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30874 PyObject *resultobj = 0;
30875 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30876 int result;
30877 void *argp1 = 0 ;
30878 int res1 = 0 ;
30879 PyObject *swig_obj[1] ;
30880
30881 if (!args) SWIG_fail;
30882 swig_obj[0] = args;
30883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30884 if (!SWIG_IsOK(res1)) {
30885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30886 }
30887 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30888 result = (int) ((arg1)->m_labelAlignment);
30889 resultobj = SWIG_From_int(static_cast< int >(result));
30890 return resultobj;
30891 fail:
30892 return NULL;
30893 }
30894
30895
30896 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30897 PyObject *obj;
30898 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30899 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30900 return SWIG_Py_Void();
30901 }
30902
30903 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30904 return SWIG_Python_InitShadowInstance(args);
30905 }
30906
30907 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30908 PyObject *resultobj = 0;
30909 int arg1 ;
30910 int arg2 ;
30911 wxRendererVersion *result = 0 ;
30912 int val1 ;
30913 int ecode1 = 0 ;
30914 int val2 ;
30915 int ecode2 = 0 ;
30916 PyObject * obj0 = 0 ;
30917 PyObject * obj1 = 0 ;
30918 char * kwnames[] = {
30919 (char *) "version_",(char *) "age_", NULL
30920 };
30921
30922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30923 ecode1 = SWIG_AsVal_int(obj0, &val1);
30924 if (!SWIG_IsOK(ecode1)) {
30925 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30926 }
30927 arg1 = static_cast< int >(val1);
30928 ecode2 = SWIG_AsVal_int(obj1, &val2);
30929 if (!SWIG_IsOK(ecode2)) {
30930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30931 }
30932 arg2 = static_cast< int >(val2);
30933 {
30934 PyThreadState* __tstate = wxPyBeginAllowThreads();
30935 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30936 wxPyEndAllowThreads(__tstate);
30937 if (PyErr_Occurred()) SWIG_fail;
30938 }
30939 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30940 return resultobj;
30941 fail:
30942 return NULL;
30943 }
30944
30945
30946 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30947 PyObject *resultobj = 0;
30948 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30949 void *argp1 = 0 ;
30950 int res1 = 0 ;
30951 PyObject *swig_obj[1] ;
30952
30953 if (!args) SWIG_fail;
30954 swig_obj[0] = args;
30955 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30956 if (!SWIG_IsOK(res1)) {
30957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30958 }
30959 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30960 {
30961 PyThreadState* __tstate = wxPyBeginAllowThreads();
30962 delete arg1;
30963
30964 wxPyEndAllowThreads(__tstate);
30965 if (PyErr_Occurred()) SWIG_fail;
30966 }
30967 resultobj = SWIG_Py_Void();
30968 return resultobj;
30969 fail:
30970 return NULL;
30971 }
30972
30973
30974 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30975 PyObject *resultobj = 0;
30976 wxRendererVersion *arg1 = 0 ;
30977 bool result;
30978 void *argp1 = 0 ;
30979 int res1 = 0 ;
30980 PyObject * obj0 = 0 ;
30981 char * kwnames[] = {
30982 (char *) "ver", NULL
30983 };
30984
30985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
30986 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
30987 if (!SWIG_IsOK(res1)) {
30988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30989 }
30990 if (!argp1) {
30991 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
30992 }
30993 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30994 {
30995 PyThreadState* __tstate = wxPyBeginAllowThreads();
30996 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
30997 wxPyEndAllowThreads(__tstate);
30998 if (PyErr_Occurred()) SWIG_fail;
30999 }
31000 {
31001 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31002 }
31003 return resultobj;
31004 fail:
31005 return NULL;
31006 }
31007
31008
31009 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31010 PyObject *resultobj = 0;
31011 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31012 int result;
31013 void *argp1 = 0 ;
31014 int res1 = 0 ;
31015 PyObject *swig_obj[1] ;
31016
31017 if (!args) SWIG_fail;
31018 swig_obj[0] = args;
31019 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31020 if (!SWIG_IsOK(res1)) {
31021 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31022 }
31023 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31024 result = (int)(int) ((arg1)->version);
31025 resultobj = SWIG_From_int(static_cast< int >(result));
31026 return resultobj;
31027 fail:
31028 return NULL;
31029 }
31030
31031
31032 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31033 PyObject *resultobj = 0;
31034 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31035 int result;
31036 void *argp1 = 0 ;
31037 int res1 = 0 ;
31038 PyObject *swig_obj[1] ;
31039
31040 if (!args) SWIG_fail;
31041 swig_obj[0] = args;
31042 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31043 if (!SWIG_IsOK(res1)) {
31044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31045 }
31046 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31047 result = (int)(int) ((arg1)->age);
31048 resultobj = SWIG_From_int(static_cast< int >(result));
31049 return resultobj;
31050 fail:
31051 return NULL;
31052 }
31053
31054
31055 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31056 PyObject *obj;
31057 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31058 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
31059 return SWIG_Py_Void();
31060 }
31061
31062 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31063 return SWIG_Python_InitShadowInstance(args);
31064 }
31065
31066 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31067 PyObject *resultobj = 0;
31068 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31069 wxWindow *arg2 = (wxWindow *) 0 ;
31070 wxDC *arg3 = 0 ;
31071 wxRect *arg4 = 0 ;
31072 int arg5 = (int) 0 ;
31073 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31074 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31075 void *argp1 = 0 ;
31076 int res1 = 0 ;
31077 void *argp2 = 0 ;
31078 int res2 = 0 ;
31079 void *argp3 = 0 ;
31080 int res3 = 0 ;
31081 wxRect temp4 ;
31082 int val5 ;
31083 int ecode5 = 0 ;
31084 int val6 ;
31085 int ecode6 = 0 ;
31086 void *argp7 = 0 ;
31087 int res7 = 0 ;
31088 PyObject * obj0 = 0 ;
31089 PyObject * obj1 = 0 ;
31090 PyObject * obj2 = 0 ;
31091 PyObject * obj3 = 0 ;
31092 PyObject * obj4 = 0 ;
31093 PyObject * obj5 = 0 ;
31094 PyObject * obj6 = 0 ;
31095 char * kwnames[] = {
31096 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31097 };
31098
31099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31101 if (!SWIG_IsOK(res1)) {
31102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31103 }
31104 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31105 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31106 if (!SWIG_IsOK(res2)) {
31107 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31108 }
31109 arg2 = reinterpret_cast< wxWindow * >(argp2);
31110 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31111 if (!SWIG_IsOK(res3)) {
31112 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31113 }
31114 if (!argp3) {
31115 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31116 }
31117 arg3 = reinterpret_cast< wxDC * >(argp3);
31118 {
31119 arg4 = &temp4;
31120 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31121 }
31122 if (obj4) {
31123 ecode5 = SWIG_AsVal_int(obj4, &val5);
31124 if (!SWIG_IsOK(ecode5)) {
31125 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
31126 }
31127 arg5 = static_cast< int >(val5);
31128 }
31129 if (obj5) {
31130 ecode6 = SWIG_AsVal_int(obj5, &val6);
31131 if (!SWIG_IsOK(ecode6)) {
31132 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31133 }
31134 arg6 = static_cast< wxHeaderSortIconType >(val6);
31135 }
31136 if (obj6) {
31137 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31138 if (!SWIG_IsOK(res7)) {
31139 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31140 }
31141 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31142 }
31143 {
31144 PyThreadState* __tstate = wxPyBeginAllowThreads();
31145 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31146 wxPyEndAllowThreads(__tstate);
31147 if (PyErr_Occurred()) SWIG_fail;
31148 }
31149 resultobj = SWIG_Py_Void();
31150 return resultobj;
31151 fail:
31152 return NULL;
31153 }
31154
31155
31156 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31157 PyObject *resultobj = 0;
31158 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31159 wxWindow *arg2 = (wxWindow *) 0 ;
31160 wxDC *arg3 = 0 ;
31161 wxRect *arg4 = 0 ;
31162 int arg5 = (int) 0 ;
31163 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31164 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31165 void *argp1 = 0 ;
31166 int res1 = 0 ;
31167 void *argp2 = 0 ;
31168 int res2 = 0 ;
31169 void *argp3 = 0 ;
31170 int res3 = 0 ;
31171 wxRect temp4 ;
31172 int val5 ;
31173 int ecode5 = 0 ;
31174 int val6 ;
31175 int ecode6 = 0 ;
31176 void *argp7 = 0 ;
31177 int res7 = 0 ;
31178 PyObject * obj0 = 0 ;
31179 PyObject * obj1 = 0 ;
31180 PyObject * obj2 = 0 ;
31181 PyObject * obj3 = 0 ;
31182 PyObject * obj4 = 0 ;
31183 PyObject * obj5 = 0 ;
31184 PyObject * obj6 = 0 ;
31185 char * kwnames[] = {
31186 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31187 };
31188
31189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31191 if (!SWIG_IsOK(res1)) {
31192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31193 }
31194 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31195 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31196 if (!SWIG_IsOK(res2)) {
31197 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
31198 }
31199 arg2 = reinterpret_cast< wxWindow * >(argp2);
31200 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31201 if (!SWIG_IsOK(res3)) {
31202 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31203 }
31204 if (!argp3) {
31205 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31206 }
31207 arg3 = reinterpret_cast< wxDC * >(argp3);
31208 {
31209 arg4 = &temp4;
31210 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31211 }
31212 if (obj4) {
31213 ecode5 = SWIG_AsVal_int(obj4, &val5);
31214 if (!SWIG_IsOK(ecode5)) {
31215 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
31216 }
31217 arg5 = static_cast< int >(val5);
31218 }
31219 if (obj5) {
31220 ecode6 = SWIG_AsVal_int(obj5, &val6);
31221 if (!SWIG_IsOK(ecode6)) {
31222 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31223 }
31224 arg6 = static_cast< wxHeaderSortIconType >(val6);
31225 }
31226 if (obj6) {
31227 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31228 if (!SWIG_IsOK(res7)) {
31229 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31230 }
31231 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31232 }
31233 {
31234 PyThreadState* __tstate = wxPyBeginAllowThreads();
31235 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31236 wxPyEndAllowThreads(__tstate);
31237 if (PyErr_Occurred()) SWIG_fail;
31238 }
31239 resultobj = SWIG_Py_Void();
31240 return resultobj;
31241 fail:
31242 return NULL;
31243 }
31244
31245
31246 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31247 PyObject *resultobj = 0;
31248 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31249 wxWindow *arg2 = (wxWindow *) 0 ;
31250 int result;
31251 void *argp1 = 0 ;
31252 int res1 = 0 ;
31253 void *argp2 = 0 ;
31254 int res2 = 0 ;
31255 PyObject * obj0 = 0 ;
31256 PyObject * obj1 = 0 ;
31257 char * kwnames[] = {
31258 (char *) "self",(char *) "win", NULL
31259 };
31260
31261 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
31262 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31263 if (!SWIG_IsOK(res1)) {
31264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31265 }
31266 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31267 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31268 if (!SWIG_IsOK(res2)) {
31269 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31270 }
31271 arg2 = reinterpret_cast< wxWindow * >(argp2);
31272 {
31273 PyThreadState* __tstate = wxPyBeginAllowThreads();
31274 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31275 wxPyEndAllowThreads(__tstate);
31276 if (PyErr_Occurred()) SWIG_fail;
31277 }
31278 resultobj = SWIG_From_int(static_cast< int >(result));
31279 return resultobj;
31280 fail:
31281 return NULL;
31282 }
31283
31284
31285 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31286 PyObject *resultobj = 0;
31287 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31288 wxWindow *arg2 = (wxWindow *) 0 ;
31289 wxDC *arg3 = 0 ;
31290 wxRect *arg4 = 0 ;
31291 int arg5 = (int) 0 ;
31292 void *argp1 = 0 ;
31293 int res1 = 0 ;
31294 void *argp2 = 0 ;
31295 int res2 = 0 ;
31296 void *argp3 = 0 ;
31297 int res3 = 0 ;
31298 wxRect temp4 ;
31299 int val5 ;
31300 int ecode5 = 0 ;
31301 PyObject * obj0 = 0 ;
31302 PyObject * obj1 = 0 ;
31303 PyObject * obj2 = 0 ;
31304 PyObject * obj3 = 0 ;
31305 PyObject * obj4 = 0 ;
31306 char * kwnames[] = {
31307 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31308 };
31309
31310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31312 if (!SWIG_IsOK(res1)) {
31313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31314 }
31315 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31316 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31317 if (!SWIG_IsOK(res2)) {
31318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31319 }
31320 arg2 = reinterpret_cast< wxWindow * >(argp2);
31321 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31322 if (!SWIG_IsOK(res3)) {
31323 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31324 }
31325 if (!argp3) {
31326 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31327 }
31328 arg3 = reinterpret_cast< wxDC * >(argp3);
31329 {
31330 arg4 = &temp4;
31331 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31332 }
31333 if (obj4) {
31334 ecode5 = SWIG_AsVal_int(obj4, &val5);
31335 if (!SWIG_IsOK(ecode5)) {
31336 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31337 }
31338 arg5 = static_cast< int >(val5);
31339 }
31340 {
31341 PyThreadState* __tstate = wxPyBeginAllowThreads();
31342 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31343 wxPyEndAllowThreads(__tstate);
31344 if (PyErr_Occurred()) SWIG_fail;
31345 }
31346 resultobj = SWIG_Py_Void();
31347 return resultobj;
31348 fail:
31349 return NULL;
31350 }
31351
31352
31353 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31354 PyObject *resultobj = 0;
31355 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31356 wxWindow *arg2 = (wxWindow *) 0 ;
31357 wxDC *arg3 = 0 ;
31358 wxRect *arg4 = 0 ;
31359 int arg5 = (int) 0 ;
31360 void *argp1 = 0 ;
31361 int res1 = 0 ;
31362 void *argp2 = 0 ;
31363 int res2 = 0 ;
31364 void *argp3 = 0 ;
31365 int res3 = 0 ;
31366 wxRect temp4 ;
31367 int val5 ;
31368 int ecode5 = 0 ;
31369 PyObject * obj0 = 0 ;
31370 PyObject * obj1 = 0 ;
31371 PyObject * obj2 = 0 ;
31372 PyObject * obj3 = 0 ;
31373 PyObject * obj4 = 0 ;
31374 char * kwnames[] = {
31375 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31376 };
31377
31378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31380 if (!SWIG_IsOK(res1)) {
31381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31382 }
31383 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31384 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31385 if (!SWIG_IsOK(res2)) {
31386 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31387 }
31388 arg2 = reinterpret_cast< wxWindow * >(argp2);
31389 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31390 if (!SWIG_IsOK(res3)) {
31391 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31392 }
31393 if (!argp3) {
31394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31395 }
31396 arg3 = reinterpret_cast< wxDC * >(argp3);
31397 {
31398 arg4 = &temp4;
31399 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31400 }
31401 if (obj4) {
31402 ecode5 = SWIG_AsVal_int(obj4, &val5);
31403 if (!SWIG_IsOK(ecode5)) {
31404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31405 }
31406 arg5 = static_cast< int >(val5);
31407 }
31408 {
31409 PyThreadState* __tstate = wxPyBeginAllowThreads();
31410 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31411 wxPyEndAllowThreads(__tstate);
31412 if (PyErr_Occurred()) SWIG_fail;
31413 }
31414 resultobj = SWIG_Py_Void();
31415 return resultobj;
31416 fail:
31417 return NULL;
31418 }
31419
31420
31421 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31422 PyObject *resultobj = 0;
31423 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31424 wxWindow *arg2 = (wxWindow *) 0 ;
31425 wxDC *arg3 = 0 ;
31426 wxSize *arg4 = 0 ;
31427 int arg5 ;
31428 wxOrientation arg6 ;
31429 int arg7 = (int) 0 ;
31430 void *argp1 = 0 ;
31431 int res1 = 0 ;
31432 void *argp2 = 0 ;
31433 int res2 = 0 ;
31434 void *argp3 = 0 ;
31435 int res3 = 0 ;
31436 wxSize temp4 ;
31437 int val5 ;
31438 int ecode5 = 0 ;
31439 int val6 ;
31440 int ecode6 = 0 ;
31441 int val7 ;
31442 int ecode7 = 0 ;
31443 PyObject * obj0 = 0 ;
31444 PyObject * obj1 = 0 ;
31445 PyObject * obj2 = 0 ;
31446 PyObject * obj3 = 0 ;
31447 PyObject * obj4 = 0 ;
31448 PyObject * obj5 = 0 ;
31449 PyObject * obj6 = 0 ;
31450 char * kwnames[] = {
31451 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31452 };
31453
31454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31456 if (!SWIG_IsOK(res1)) {
31457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31458 }
31459 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31460 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31461 if (!SWIG_IsOK(res2)) {
31462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31463 }
31464 arg2 = reinterpret_cast< wxWindow * >(argp2);
31465 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31466 if (!SWIG_IsOK(res3)) {
31467 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31468 }
31469 if (!argp3) {
31470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31471 }
31472 arg3 = reinterpret_cast< wxDC * >(argp3);
31473 {
31474 arg4 = &temp4;
31475 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31476 }
31477 ecode5 = SWIG_AsVal_int(obj4, &val5);
31478 if (!SWIG_IsOK(ecode5)) {
31479 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31480 }
31481 arg5 = static_cast< int >(val5);
31482 ecode6 = SWIG_AsVal_int(obj5, &val6);
31483 if (!SWIG_IsOK(ecode6)) {
31484 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31485 }
31486 arg6 = static_cast< wxOrientation >(val6);
31487 if (obj6) {
31488 ecode7 = SWIG_AsVal_int(obj6, &val7);
31489 if (!SWIG_IsOK(ecode7)) {
31490 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31491 }
31492 arg7 = static_cast< int >(val7);
31493 }
31494 {
31495 PyThreadState* __tstate = wxPyBeginAllowThreads();
31496 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31497 wxPyEndAllowThreads(__tstate);
31498 if (PyErr_Occurred()) SWIG_fail;
31499 }
31500 resultobj = SWIG_Py_Void();
31501 return resultobj;
31502 fail:
31503 return NULL;
31504 }
31505
31506
31507 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31508 PyObject *resultobj = 0;
31509 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31510 wxWindow *arg2 = (wxWindow *) 0 ;
31511 wxDC *arg3 = 0 ;
31512 wxRect *arg4 = 0 ;
31513 int arg5 = (int) 0 ;
31514 void *argp1 = 0 ;
31515 int res1 = 0 ;
31516 void *argp2 = 0 ;
31517 int res2 = 0 ;
31518 void *argp3 = 0 ;
31519 int res3 = 0 ;
31520 wxRect temp4 ;
31521 int val5 ;
31522 int ecode5 = 0 ;
31523 PyObject * obj0 = 0 ;
31524 PyObject * obj1 = 0 ;
31525 PyObject * obj2 = 0 ;
31526 PyObject * obj3 = 0 ;
31527 PyObject * obj4 = 0 ;
31528 char * kwnames[] = {
31529 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31530 };
31531
31532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31534 if (!SWIG_IsOK(res1)) {
31535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31536 }
31537 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31538 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31539 if (!SWIG_IsOK(res2)) {
31540 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31541 }
31542 arg2 = reinterpret_cast< wxWindow * >(argp2);
31543 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31544 if (!SWIG_IsOK(res3)) {
31545 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31546 }
31547 if (!argp3) {
31548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31549 }
31550 arg3 = reinterpret_cast< wxDC * >(argp3);
31551 {
31552 arg4 = &temp4;
31553 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31554 }
31555 if (obj4) {
31556 ecode5 = SWIG_AsVal_int(obj4, &val5);
31557 if (!SWIG_IsOK(ecode5)) {
31558 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31559 }
31560 arg5 = static_cast< int >(val5);
31561 }
31562 {
31563 PyThreadState* __tstate = wxPyBeginAllowThreads();
31564 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31565 wxPyEndAllowThreads(__tstate);
31566 if (PyErr_Occurred()) SWIG_fail;
31567 }
31568 resultobj = SWIG_Py_Void();
31569 return resultobj;
31570 fail:
31571 return NULL;
31572 }
31573
31574
31575 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31576 PyObject *resultobj = 0;
31577 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31578 wxWindow *arg2 = (wxWindow *) 0 ;
31579 wxDC *arg3 = 0 ;
31580 wxRect *arg4 = 0 ;
31581 int arg5 = (int) 0 ;
31582 void *argp1 = 0 ;
31583 int res1 = 0 ;
31584 void *argp2 = 0 ;
31585 int res2 = 0 ;
31586 void *argp3 = 0 ;
31587 int res3 = 0 ;
31588 wxRect temp4 ;
31589 int val5 ;
31590 int ecode5 = 0 ;
31591 PyObject * obj0 = 0 ;
31592 PyObject * obj1 = 0 ;
31593 PyObject * obj2 = 0 ;
31594 PyObject * obj3 = 0 ;
31595 PyObject * obj4 = 0 ;
31596 char * kwnames[] = {
31597 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31598 };
31599
31600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31602 if (!SWIG_IsOK(res1)) {
31603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31604 }
31605 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31607 if (!SWIG_IsOK(res2)) {
31608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31609 }
31610 arg2 = reinterpret_cast< wxWindow * >(argp2);
31611 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31612 if (!SWIG_IsOK(res3)) {
31613 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31614 }
31615 if (!argp3) {
31616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31617 }
31618 arg3 = reinterpret_cast< wxDC * >(argp3);
31619 {
31620 arg4 = &temp4;
31621 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31622 }
31623 if (obj4) {
31624 ecode5 = SWIG_AsVal_int(obj4, &val5);
31625 if (!SWIG_IsOK(ecode5)) {
31626 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31627 }
31628 arg5 = static_cast< int >(val5);
31629 }
31630 {
31631 PyThreadState* __tstate = wxPyBeginAllowThreads();
31632 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31633 wxPyEndAllowThreads(__tstate);
31634 if (PyErr_Occurred()) SWIG_fail;
31635 }
31636 resultobj = SWIG_Py_Void();
31637 return resultobj;
31638 fail:
31639 return NULL;
31640 }
31641
31642
31643 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31644 PyObject *resultobj = 0;
31645 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31646 wxWindow *arg2 = (wxWindow *) 0 ;
31647 wxDC *arg3 = 0 ;
31648 wxRect *arg4 = 0 ;
31649 int arg5 = (int) 0 ;
31650 void *argp1 = 0 ;
31651 int res1 = 0 ;
31652 void *argp2 = 0 ;
31653 int res2 = 0 ;
31654 void *argp3 = 0 ;
31655 int res3 = 0 ;
31656 wxRect temp4 ;
31657 int val5 ;
31658 int ecode5 = 0 ;
31659 PyObject * obj0 = 0 ;
31660 PyObject * obj1 = 0 ;
31661 PyObject * obj2 = 0 ;
31662 PyObject * obj3 = 0 ;
31663 PyObject * obj4 = 0 ;
31664 char * kwnames[] = {
31665 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31666 };
31667
31668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31670 if (!SWIG_IsOK(res1)) {
31671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31672 }
31673 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31674 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31675 if (!SWIG_IsOK(res2)) {
31676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31677 }
31678 arg2 = reinterpret_cast< wxWindow * >(argp2);
31679 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31680 if (!SWIG_IsOK(res3)) {
31681 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31682 }
31683 if (!argp3) {
31684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31685 }
31686 arg3 = reinterpret_cast< wxDC * >(argp3);
31687 {
31688 arg4 = &temp4;
31689 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31690 }
31691 if (obj4) {
31692 ecode5 = SWIG_AsVal_int(obj4, &val5);
31693 if (!SWIG_IsOK(ecode5)) {
31694 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31695 }
31696 arg5 = static_cast< int >(val5);
31697 }
31698 {
31699 PyThreadState* __tstate = wxPyBeginAllowThreads();
31700 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31701 wxPyEndAllowThreads(__tstate);
31702 if (PyErr_Occurred()) SWIG_fail;
31703 }
31704 resultobj = SWIG_Py_Void();
31705 return resultobj;
31706 fail:
31707 return NULL;
31708 }
31709
31710
31711 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31712 PyObject *resultobj = 0;
31713 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31714 wxWindow *arg2 = (wxWindow *) 0 ;
31715 wxDC *arg3 = 0 ;
31716 wxRect *arg4 = 0 ;
31717 int arg5 = (int) 0 ;
31718 void *argp1 = 0 ;
31719 int res1 = 0 ;
31720 void *argp2 = 0 ;
31721 int res2 = 0 ;
31722 void *argp3 = 0 ;
31723 int res3 = 0 ;
31724 wxRect temp4 ;
31725 int val5 ;
31726 int ecode5 = 0 ;
31727 PyObject * obj0 = 0 ;
31728 PyObject * obj1 = 0 ;
31729 PyObject * obj2 = 0 ;
31730 PyObject * obj3 = 0 ;
31731 PyObject * obj4 = 0 ;
31732 char * kwnames[] = {
31733 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31734 };
31735
31736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31738 if (!SWIG_IsOK(res1)) {
31739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31740 }
31741 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31742 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31743 if (!SWIG_IsOK(res2)) {
31744 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31745 }
31746 arg2 = reinterpret_cast< wxWindow * >(argp2);
31747 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31748 if (!SWIG_IsOK(res3)) {
31749 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31750 }
31751 if (!argp3) {
31752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31753 }
31754 arg3 = reinterpret_cast< wxDC * >(argp3);
31755 {
31756 arg4 = &temp4;
31757 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31758 }
31759 if (obj4) {
31760 ecode5 = SWIG_AsVal_int(obj4, &val5);
31761 if (!SWIG_IsOK(ecode5)) {
31762 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31763 }
31764 arg5 = static_cast< int >(val5);
31765 }
31766 {
31767 PyThreadState* __tstate = wxPyBeginAllowThreads();
31768 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31769 wxPyEndAllowThreads(__tstate);
31770 if (PyErr_Occurred()) SWIG_fail;
31771 }
31772 resultobj = SWIG_Py_Void();
31773 return resultobj;
31774 fail:
31775 return NULL;
31776 }
31777
31778
31779 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31780 PyObject *resultobj = 0;
31781 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31782 wxWindow *arg2 = (wxWindow *) 0 ;
31783 wxDC *arg3 = 0 ;
31784 wxRect *arg4 = 0 ;
31785 int arg5 = (int) 0 ;
31786 void *argp1 = 0 ;
31787 int res1 = 0 ;
31788 void *argp2 = 0 ;
31789 int res2 = 0 ;
31790 void *argp3 = 0 ;
31791 int res3 = 0 ;
31792 wxRect temp4 ;
31793 int val5 ;
31794 int ecode5 = 0 ;
31795 PyObject * obj0 = 0 ;
31796 PyObject * obj1 = 0 ;
31797 PyObject * obj2 = 0 ;
31798 PyObject * obj3 = 0 ;
31799 PyObject * obj4 = 0 ;
31800 char * kwnames[] = {
31801 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31802 };
31803
31804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31805 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31806 if (!SWIG_IsOK(res1)) {
31807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31808 }
31809 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31810 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31811 if (!SWIG_IsOK(res2)) {
31812 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31813 }
31814 arg2 = reinterpret_cast< wxWindow * >(argp2);
31815 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31816 if (!SWIG_IsOK(res3)) {
31817 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31818 }
31819 if (!argp3) {
31820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31821 }
31822 arg3 = reinterpret_cast< wxDC * >(argp3);
31823 {
31824 arg4 = &temp4;
31825 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31826 }
31827 if (obj4) {
31828 ecode5 = SWIG_AsVal_int(obj4, &val5);
31829 if (!SWIG_IsOK(ecode5)) {
31830 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31831 }
31832 arg5 = static_cast< int >(val5);
31833 }
31834 {
31835 PyThreadState* __tstate = wxPyBeginAllowThreads();
31836 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31837 wxPyEndAllowThreads(__tstate);
31838 if (PyErr_Occurred()) SWIG_fail;
31839 }
31840 resultobj = SWIG_Py_Void();
31841 return resultobj;
31842 fail:
31843 return NULL;
31844 }
31845
31846
31847 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31848 PyObject *resultobj = 0;
31849 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31850 wxWindow *arg2 = (wxWindow *) 0 ;
31851 SwigValueWrapper<wxSplitterRenderParams > result;
31852 void *argp1 = 0 ;
31853 int res1 = 0 ;
31854 void *argp2 = 0 ;
31855 int res2 = 0 ;
31856 PyObject * obj0 = 0 ;
31857 PyObject * obj1 = 0 ;
31858 char * kwnames[] = {
31859 (char *) "self",(char *) "win", NULL
31860 };
31861
31862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31864 if (!SWIG_IsOK(res1)) {
31865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31866 }
31867 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31868 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31869 if (!SWIG_IsOK(res2)) {
31870 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31871 }
31872 arg2 = reinterpret_cast< wxWindow * >(argp2);
31873 {
31874 PyThreadState* __tstate = wxPyBeginAllowThreads();
31875 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31876 wxPyEndAllowThreads(__tstate);
31877 if (PyErr_Occurred()) SWIG_fail;
31878 }
31879 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31880 return resultobj;
31881 fail:
31882 return NULL;
31883 }
31884
31885
31886 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31887 PyObject *resultobj = 0;
31888 wxRendererNative *result = 0 ;
31889
31890 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31891 {
31892 if (!wxPyCheckForApp()) SWIG_fail;
31893 PyThreadState* __tstate = wxPyBeginAllowThreads();
31894 {
31895 wxRendererNative &_result_ref = wxRendererNative::Get();
31896 result = (wxRendererNative *) &_result_ref;
31897 }
31898 wxPyEndAllowThreads(__tstate);
31899 if (PyErr_Occurred()) SWIG_fail;
31900 }
31901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31902 return resultobj;
31903 fail:
31904 return NULL;
31905 }
31906
31907
31908 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31909 PyObject *resultobj = 0;
31910 wxRendererNative *result = 0 ;
31911
31912 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31913 {
31914 if (!wxPyCheckForApp()) SWIG_fail;
31915 PyThreadState* __tstate = wxPyBeginAllowThreads();
31916 {
31917 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31918 result = (wxRendererNative *) &_result_ref;
31919 }
31920 wxPyEndAllowThreads(__tstate);
31921 if (PyErr_Occurred()) SWIG_fail;
31922 }
31923 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31924 return resultobj;
31925 fail:
31926 return NULL;
31927 }
31928
31929
31930 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31931 PyObject *resultobj = 0;
31932 wxRendererNative *result = 0 ;
31933
31934 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31935 {
31936 if (!wxPyCheckForApp()) SWIG_fail;
31937 PyThreadState* __tstate = wxPyBeginAllowThreads();
31938 {
31939 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31940 result = (wxRendererNative *) &_result_ref;
31941 }
31942 wxPyEndAllowThreads(__tstate);
31943 if (PyErr_Occurred()) SWIG_fail;
31944 }
31945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31946 return resultobj;
31947 fail:
31948 return NULL;
31949 }
31950
31951
31952 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31953 PyObject *resultobj = 0;
31954 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31955 wxRendererNative *result = 0 ;
31956 void *argp1 = 0 ;
31957 int res1 = 0 ;
31958 PyObject * obj0 = 0 ;
31959 char * kwnames[] = {
31960 (char *) "renderer", NULL
31961 };
31962
31963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31965 if (!SWIG_IsOK(res1)) {
31966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31967 }
31968 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31969 {
31970 if (!wxPyCheckForApp()) SWIG_fail;
31971 PyThreadState* __tstate = wxPyBeginAllowThreads();
31972 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31973 wxPyEndAllowThreads(__tstate);
31974 if (PyErr_Occurred()) SWIG_fail;
31975 }
31976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31977 return resultobj;
31978 fail:
31979 return NULL;
31980 }
31981
31982
31983 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31984 PyObject *resultobj = 0;
31985 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31986 SwigValueWrapper<wxRendererVersion > result;
31987 void *argp1 = 0 ;
31988 int res1 = 0 ;
31989 PyObject *swig_obj[1] ;
31990
31991 if (!args) SWIG_fail;
31992 swig_obj[0] = args;
31993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31994 if (!SWIG_IsOK(res1)) {
31995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
31996 }
31997 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31998 {
31999 PyThreadState* __tstate = wxPyBeginAllowThreads();
32000 result = ((wxRendererNative const *)arg1)->GetVersion();
32001 wxPyEndAllowThreads(__tstate);
32002 if (PyErr_Occurred()) SWIG_fail;
32003 }
32004 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
32005 return resultobj;
32006 fail:
32007 return NULL;
32008 }
32009
32010
32011 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32012 PyObject *obj;
32013 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32014 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
32015 return SWIG_Py_Void();
32016 }
32017
32018 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32019 PyObject *resultobj = 0;
32020 wxPseudoDC *result = 0 ;
32021
32022 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
32023 {
32024 PyThreadState* __tstate = wxPyBeginAllowThreads();
32025 result = (wxPseudoDC *)new wxPseudoDC();
32026 wxPyEndAllowThreads(__tstate);
32027 if (PyErr_Occurred()) SWIG_fail;
32028 }
32029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
32030 return resultobj;
32031 fail:
32032 return NULL;
32033 }
32034
32035
32036 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32037 PyObject *resultobj = 0;
32038 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32039 void *argp1 = 0 ;
32040 int res1 = 0 ;
32041 PyObject *swig_obj[1] ;
32042
32043 if (!args) SWIG_fail;
32044 swig_obj[0] = args;
32045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32046 if (!SWIG_IsOK(res1)) {
32047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32048 }
32049 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32050 {
32051 PyThreadState* __tstate = wxPyBeginAllowThreads();
32052 (arg1)->BeginDrawing();
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_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32064 PyObject *resultobj = 0;
32065 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32066 void *argp1 = 0 ;
32067 int res1 = 0 ;
32068 PyObject *swig_obj[1] ;
32069
32070 if (!args) SWIG_fail;
32071 swig_obj[0] = args;
32072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32073 if (!SWIG_IsOK(res1)) {
32074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32075 }
32076 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32077 {
32078 PyThreadState* __tstate = wxPyBeginAllowThreads();
32079 (arg1)->EndDrawing();
32080 wxPyEndAllowThreads(__tstate);
32081 if (PyErr_Occurred()) SWIG_fail;
32082 }
32083 resultobj = SWIG_Py_Void();
32084 return resultobj;
32085 fail:
32086 return NULL;
32087 }
32088
32089
32090 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32091 PyObject *resultobj = 0;
32092 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32093 void *argp1 = 0 ;
32094 int res1 = 0 ;
32095 PyObject *swig_obj[1] ;
32096
32097 if (!args) SWIG_fail;
32098 swig_obj[0] = args;
32099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
32100 if (!SWIG_IsOK(res1)) {
32101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32102 }
32103 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32104 {
32105 PyThreadState* __tstate = wxPyBeginAllowThreads();
32106 delete arg1;
32107
32108 wxPyEndAllowThreads(__tstate);
32109 if (PyErr_Occurred()) SWIG_fail;
32110 }
32111 resultobj = SWIG_Py_Void();
32112 return resultobj;
32113 fail:
32114 return NULL;
32115 }
32116
32117
32118 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32119 PyObject *resultobj = 0;
32120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32121 void *argp1 = 0 ;
32122 int res1 = 0 ;
32123 PyObject *swig_obj[1] ;
32124
32125 if (!args) SWIG_fail;
32126 swig_obj[0] = args;
32127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32128 if (!SWIG_IsOK(res1)) {
32129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32130 }
32131 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32132 {
32133 PyThreadState* __tstate = wxPyBeginAllowThreads();
32134 (arg1)->RemoveAll();
32135 wxPyEndAllowThreads(__tstate);
32136 if (PyErr_Occurred()) SWIG_fail;
32137 }
32138 resultobj = SWIG_Py_Void();
32139 return resultobj;
32140 fail:
32141 return NULL;
32142 }
32143
32144
32145 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32146 PyObject *resultobj = 0;
32147 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32148 int result;
32149 void *argp1 = 0 ;
32150 int res1 = 0 ;
32151 PyObject *swig_obj[1] ;
32152
32153 if (!args) SWIG_fail;
32154 swig_obj[0] = args;
32155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32156 if (!SWIG_IsOK(res1)) {
32157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32158 }
32159 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32160 {
32161 PyThreadState* __tstate = wxPyBeginAllowThreads();
32162 result = (int)(arg1)->GetLen();
32163 wxPyEndAllowThreads(__tstate);
32164 if (PyErr_Occurred()) SWIG_fail;
32165 }
32166 resultobj = SWIG_From_int(static_cast< int >(result));
32167 return resultobj;
32168 fail:
32169 return NULL;
32170 }
32171
32172
32173 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32174 PyObject *resultobj = 0;
32175 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32176 int arg2 ;
32177 void *argp1 = 0 ;
32178 int res1 = 0 ;
32179 int val2 ;
32180 int ecode2 = 0 ;
32181 PyObject * obj0 = 0 ;
32182 PyObject * obj1 = 0 ;
32183 char * kwnames[] = {
32184 (char *) "self",(char *) "id", NULL
32185 };
32186
32187 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32188 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32189 if (!SWIG_IsOK(res1)) {
32190 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32191 }
32192 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32193 ecode2 = SWIG_AsVal_int(obj1, &val2);
32194 if (!SWIG_IsOK(ecode2)) {
32195 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
32196 }
32197 arg2 = static_cast< int >(val2);
32198 {
32199 PyThreadState* __tstate = wxPyBeginAllowThreads();
32200 (arg1)->SetId(arg2);
32201 wxPyEndAllowThreads(__tstate);
32202 if (PyErr_Occurred()) SWIG_fail;
32203 }
32204 resultobj = SWIG_Py_Void();
32205 return resultobj;
32206 fail:
32207 return NULL;
32208 }
32209
32210
32211 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32212 PyObject *resultobj = 0;
32213 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32214 int arg2 ;
32215 void *argp1 = 0 ;
32216 int res1 = 0 ;
32217 int val2 ;
32218 int ecode2 = 0 ;
32219 PyObject * obj0 = 0 ;
32220 PyObject * obj1 = 0 ;
32221 char * kwnames[] = {
32222 (char *) "self",(char *) "id", NULL
32223 };
32224
32225 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
32226 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32227 if (!SWIG_IsOK(res1)) {
32228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32229 }
32230 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32231 ecode2 = SWIG_AsVal_int(obj1, &val2);
32232 if (!SWIG_IsOK(ecode2)) {
32233 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
32234 }
32235 arg2 = static_cast< int >(val2);
32236 {
32237 PyThreadState* __tstate = wxPyBeginAllowThreads();
32238 (arg1)->ClearId(arg2);
32239 wxPyEndAllowThreads(__tstate);
32240 if (PyErr_Occurred()) SWIG_fail;
32241 }
32242 resultobj = SWIG_Py_Void();
32243 return resultobj;
32244 fail:
32245 return NULL;
32246 }
32247
32248
32249 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32250 PyObject *resultobj = 0;
32251 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32252 int arg2 ;
32253 void *argp1 = 0 ;
32254 int res1 = 0 ;
32255 int val2 ;
32256 int ecode2 = 0 ;
32257 PyObject * obj0 = 0 ;
32258 PyObject * obj1 = 0 ;
32259 char * kwnames[] = {
32260 (char *) "self",(char *) "id", NULL
32261 };
32262
32263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
32264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32265 if (!SWIG_IsOK(res1)) {
32266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32267 }
32268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32269 ecode2 = SWIG_AsVal_int(obj1, &val2);
32270 if (!SWIG_IsOK(ecode2)) {
32271 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32272 }
32273 arg2 = static_cast< int >(val2);
32274 {
32275 PyThreadState* __tstate = wxPyBeginAllowThreads();
32276 (arg1)->RemoveId(arg2);
32277 wxPyEndAllowThreads(__tstate);
32278 if (PyErr_Occurred()) SWIG_fail;
32279 }
32280 resultobj = SWIG_Py_Void();
32281 return resultobj;
32282 fail:
32283 return NULL;
32284 }
32285
32286
32287 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32288 PyObject *resultobj = 0;
32289 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32290 int arg2 ;
32291 int arg3 ;
32292 int arg4 ;
32293 void *argp1 = 0 ;
32294 int res1 = 0 ;
32295 int val2 ;
32296 int ecode2 = 0 ;
32297 int val3 ;
32298 int ecode3 = 0 ;
32299 int val4 ;
32300 int ecode4 = 0 ;
32301 PyObject * obj0 = 0 ;
32302 PyObject * obj1 = 0 ;
32303 PyObject * obj2 = 0 ;
32304 PyObject * obj3 = 0 ;
32305 char * kwnames[] = {
32306 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32307 };
32308
32309 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32310 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32311 if (!SWIG_IsOK(res1)) {
32312 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32313 }
32314 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32315 ecode2 = SWIG_AsVal_int(obj1, &val2);
32316 if (!SWIG_IsOK(ecode2)) {
32317 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32318 }
32319 arg2 = static_cast< int >(val2);
32320 ecode3 = SWIG_AsVal_int(obj2, &val3);
32321 if (!SWIG_IsOK(ecode3)) {
32322 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32323 }
32324 arg3 = static_cast< int >(val3);
32325 ecode4 = SWIG_AsVal_int(obj3, &val4);
32326 if (!SWIG_IsOK(ecode4)) {
32327 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32328 }
32329 arg4 = static_cast< int >(val4);
32330 {
32331 PyThreadState* __tstate = wxPyBeginAllowThreads();
32332 (arg1)->TranslateId(arg2,arg3,arg4);
32333 wxPyEndAllowThreads(__tstate);
32334 if (PyErr_Occurred()) SWIG_fail;
32335 }
32336 resultobj = SWIG_Py_Void();
32337 return resultobj;
32338 fail:
32339 return NULL;
32340 }
32341
32342
32343 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32344 PyObject *resultobj = 0;
32345 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32346 int arg2 ;
32347 bool arg3 = (bool) true ;
32348 void *argp1 = 0 ;
32349 int res1 = 0 ;
32350 int val2 ;
32351 int ecode2 = 0 ;
32352 bool val3 ;
32353 int ecode3 = 0 ;
32354 PyObject * obj0 = 0 ;
32355 PyObject * obj1 = 0 ;
32356 PyObject * obj2 = 0 ;
32357 char * kwnames[] = {
32358 (char *) "self",(char *) "id",(char *) "greyout", NULL
32359 };
32360
32361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32363 if (!SWIG_IsOK(res1)) {
32364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32365 }
32366 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32367 ecode2 = SWIG_AsVal_int(obj1, &val2);
32368 if (!SWIG_IsOK(ecode2)) {
32369 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32370 }
32371 arg2 = static_cast< int >(val2);
32372 if (obj2) {
32373 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32374 if (!SWIG_IsOK(ecode3)) {
32375 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32376 }
32377 arg3 = static_cast< bool >(val3);
32378 }
32379 {
32380 PyThreadState* __tstate = wxPyBeginAllowThreads();
32381 (arg1)->SetIdGreyedOut(arg2,arg3);
32382 wxPyEndAllowThreads(__tstate);
32383 if (PyErr_Occurred()) SWIG_fail;
32384 }
32385 resultobj = SWIG_Py_Void();
32386 return resultobj;
32387 fail:
32388 return NULL;
32389 }
32390
32391
32392 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32393 PyObject *resultobj = 0;
32394 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32395 int arg2 ;
32396 bool result;
32397 void *argp1 = 0 ;
32398 int res1 = 0 ;
32399 int val2 ;
32400 int ecode2 = 0 ;
32401 PyObject * obj0 = 0 ;
32402 PyObject * obj1 = 0 ;
32403 char * kwnames[] = {
32404 (char *) "self",(char *) "id", NULL
32405 };
32406
32407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32409 if (!SWIG_IsOK(res1)) {
32410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32411 }
32412 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32413 ecode2 = SWIG_AsVal_int(obj1, &val2);
32414 if (!SWIG_IsOK(ecode2)) {
32415 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32416 }
32417 arg2 = static_cast< int >(val2);
32418 {
32419 PyThreadState* __tstate = wxPyBeginAllowThreads();
32420 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32421 wxPyEndAllowThreads(__tstate);
32422 if (PyErr_Occurred()) SWIG_fail;
32423 }
32424 {
32425 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32426 }
32427 return resultobj;
32428 fail:
32429 return NULL;
32430 }
32431
32432
32433 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32434 PyObject *resultobj = 0;
32435 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32436 int arg2 ;
32437 int arg3 ;
32438 int arg4 = (int) 1 ;
32439 wxColor const &arg5_defvalue = *wxWHITE ;
32440 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32441 PyObject *result = 0 ;
32442 void *argp1 = 0 ;
32443 int res1 = 0 ;
32444 int val2 ;
32445 int ecode2 = 0 ;
32446 int val3 ;
32447 int ecode3 = 0 ;
32448 int val4 ;
32449 int ecode4 = 0 ;
32450 void *argp5 = 0 ;
32451 int res5 = 0 ;
32452 PyObject * obj0 = 0 ;
32453 PyObject * obj1 = 0 ;
32454 PyObject * obj2 = 0 ;
32455 PyObject * obj3 = 0 ;
32456 PyObject * obj4 = 0 ;
32457 char * kwnames[] = {
32458 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32459 };
32460
32461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32463 if (!SWIG_IsOK(res1)) {
32464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32465 }
32466 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32467 ecode2 = SWIG_AsVal_int(obj1, &val2);
32468 if (!SWIG_IsOK(ecode2)) {
32469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32470 }
32471 arg2 = static_cast< int >(val2);
32472 ecode3 = SWIG_AsVal_int(obj2, &val3);
32473 if (!SWIG_IsOK(ecode3)) {
32474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32475 }
32476 arg3 = static_cast< int >(val3);
32477 if (obj3) {
32478 ecode4 = SWIG_AsVal_int(obj3, &val4);
32479 if (!SWIG_IsOK(ecode4)) {
32480 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32481 }
32482 arg4 = static_cast< int >(val4);
32483 }
32484 if (obj4) {
32485 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32486 if (!SWIG_IsOK(res5)) {
32487 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32488 }
32489 if (!argp5) {
32490 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32491 }
32492 arg5 = reinterpret_cast< wxColor * >(argp5);
32493 }
32494 {
32495 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32496 if (PyErr_Occurred()) SWIG_fail;
32497 }
32498 resultobj = result;
32499 return resultobj;
32500 fail:
32501 return NULL;
32502 }
32503
32504
32505 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32506 PyObject *resultobj = 0;
32507 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32508 int arg2 ;
32509 int arg3 ;
32510 PyObject *result = 0 ;
32511 void *argp1 = 0 ;
32512 int res1 = 0 ;
32513 int val2 ;
32514 int ecode2 = 0 ;
32515 int val3 ;
32516 int ecode3 = 0 ;
32517 PyObject * obj0 = 0 ;
32518 PyObject * obj1 = 0 ;
32519 PyObject * obj2 = 0 ;
32520 char * kwnames[] = {
32521 (char *) "self",(char *) "x",(char *) "y", NULL
32522 };
32523
32524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32526 if (!SWIG_IsOK(res1)) {
32527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32528 }
32529 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32530 ecode2 = SWIG_AsVal_int(obj1, &val2);
32531 if (!SWIG_IsOK(ecode2)) {
32532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32533 }
32534 arg2 = static_cast< int >(val2);
32535 ecode3 = SWIG_AsVal_int(obj2, &val3);
32536 if (!SWIG_IsOK(ecode3)) {
32537 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32538 }
32539 arg3 = static_cast< int >(val3);
32540 {
32541 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32542 if (PyErr_Occurred()) SWIG_fail;
32543 }
32544 resultobj = result;
32545 return resultobj;
32546 fail:
32547 return NULL;
32548 }
32549
32550
32551 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32552 PyObject *resultobj = 0;
32553 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32554 int arg2 ;
32555 wxDC *arg3 = (wxDC *) 0 ;
32556 void *argp1 = 0 ;
32557 int res1 = 0 ;
32558 int val2 ;
32559 int ecode2 = 0 ;
32560 void *argp3 = 0 ;
32561 int res3 = 0 ;
32562 PyObject * obj0 = 0 ;
32563 PyObject * obj1 = 0 ;
32564 PyObject * obj2 = 0 ;
32565 char * kwnames[] = {
32566 (char *) "self",(char *) "id",(char *) "dc", NULL
32567 };
32568
32569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32571 if (!SWIG_IsOK(res1)) {
32572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32573 }
32574 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32575 ecode2 = SWIG_AsVal_int(obj1, &val2);
32576 if (!SWIG_IsOK(ecode2)) {
32577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32578 }
32579 arg2 = static_cast< int >(val2);
32580 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32581 if (!SWIG_IsOK(res3)) {
32582 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32583 }
32584 arg3 = reinterpret_cast< wxDC * >(argp3);
32585 {
32586 PyThreadState* __tstate = wxPyBeginAllowThreads();
32587 (arg1)->DrawIdToDC(arg2,arg3);
32588 wxPyEndAllowThreads(__tstate);
32589 if (PyErr_Occurred()) SWIG_fail;
32590 }
32591 resultobj = SWIG_Py_Void();
32592 return resultobj;
32593 fail:
32594 return NULL;
32595 }
32596
32597
32598 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32599 PyObject *resultobj = 0;
32600 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32601 int arg2 ;
32602 wxRect *arg3 = 0 ;
32603 void *argp1 = 0 ;
32604 int res1 = 0 ;
32605 int val2 ;
32606 int ecode2 = 0 ;
32607 wxRect temp3 ;
32608 PyObject * obj0 = 0 ;
32609 PyObject * obj1 = 0 ;
32610 PyObject * obj2 = 0 ;
32611 char * kwnames[] = {
32612 (char *) "self",(char *) "id",(char *) "rect", NULL
32613 };
32614
32615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32617 if (!SWIG_IsOK(res1)) {
32618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32619 }
32620 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32621 ecode2 = SWIG_AsVal_int(obj1, &val2);
32622 if (!SWIG_IsOK(ecode2)) {
32623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32624 }
32625 arg2 = static_cast< int >(val2);
32626 {
32627 arg3 = &temp3;
32628 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32629 }
32630 {
32631 PyThreadState* __tstate = wxPyBeginAllowThreads();
32632 (arg1)->SetIdBounds(arg2,*arg3);
32633 wxPyEndAllowThreads(__tstate);
32634 if (PyErr_Occurred()) SWIG_fail;
32635 }
32636 resultobj = SWIG_Py_Void();
32637 return resultobj;
32638 fail:
32639 return NULL;
32640 }
32641
32642
32643 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32644 PyObject *resultobj = 0;
32645 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32646 int arg2 ;
32647 wxRect result;
32648 void *argp1 = 0 ;
32649 int res1 = 0 ;
32650 int val2 ;
32651 int ecode2 = 0 ;
32652 PyObject * obj0 = 0 ;
32653 PyObject * obj1 = 0 ;
32654 char * kwnames[] = {
32655 (char *) "self",(char *) "id", NULL
32656 };
32657
32658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32660 if (!SWIG_IsOK(res1)) {
32661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32662 }
32663 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32664 ecode2 = SWIG_AsVal_int(obj1, &val2);
32665 if (!SWIG_IsOK(ecode2)) {
32666 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32667 }
32668 arg2 = static_cast< int >(val2);
32669 {
32670 PyThreadState* __tstate = wxPyBeginAllowThreads();
32671 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32672 wxPyEndAllowThreads(__tstate);
32673 if (PyErr_Occurred()) SWIG_fail;
32674 }
32675 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32676 return resultobj;
32677 fail:
32678 return NULL;
32679 }
32680
32681
32682 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32683 PyObject *resultobj = 0;
32684 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32685 wxDC *arg2 = (wxDC *) 0 ;
32686 wxRect *arg3 = 0 ;
32687 void *argp1 = 0 ;
32688 int res1 = 0 ;
32689 void *argp2 = 0 ;
32690 int res2 = 0 ;
32691 wxRect temp3 ;
32692 PyObject * obj0 = 0 ;
32693 PyObject * obj1 = 0 ;
32694 PyObject * obj2 = 0 ;
32695 char * kwnames[] = {
32696 (char *) "self",(char *) "dc",(char *) "rect", NULL
32697 };
32698
32699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32701 if (!SWIG_IsOK(res1)) {
32702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32703 }
32704 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32705 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32706 if (!SWIG_IsOK(res2)) {
32707 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32708 }
32709 arg2 = reinterpret_cast< wxDC * >(argp2);
32710 {
32711 arg3 = &temp3;
32712 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32713 }
32714 {
32715 PyThreadState* __tstate = wxPyBeginAllowThreads();
32716 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32717 wxPyEndAllowThreads(__tstate);
32718 if (PyErr_Occurred()) SWIG_fail;
32719 }
32720 resultobj = SWIG_Py_Void();
32721 return resultobj;
32722 fail:
32723 return NULL;
32724 }
32725
32726
32727 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32728 PyObject *resultobj = 0;
32729 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32730 wxDC *arg2 = (wxDC *) 0 ;
32731 wxRegion *arg3 = 0 ;
32732 void *argp1 = 0 ;
32733 int res1 = 0 ;
32734 void *argp2 = 0 ;
32735 int res2 = 0 ;
32736 void *argp3 = 0 ;
32737 int res3 = 0 ;
32738 PyObject * obj0 = 0 ;
32739 PyObject * obj1 = 0 ;
32740 PyObject * obj2 = 0 ;
32741 char * kwnames[] = {
32742 (char *) "self",(char *) "dc",(char *) "region", NULL
32743 };
32744
32745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32747 if (!SWIG_IsOK(res1)) {
32748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32749 }
32750 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32751 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32752 if (!SWIG_IsOK(res2)) {
32753 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32754 }
32755 arg2 = reinterpret_cast< wxDC * >(argp2);
32756 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32757 if (!SWIG_IsOK(res3)) {
32758 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32759 }
32760 if (!argp3) {
32761 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32762 }
32763 arg3 = reinterpret_cast< wxRegion * >(argp3);
32764 {
32765 PyThreadState* __tstate = wxPyBeginAllowThreads();
32766 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32767 wxPyEndAllowThreads(__tstate);
32768 if (PyErr_Occurred()) SWIG_fail;
32769 }
32770 resultobj = SWIG_Py_Void();
32771 return resultobj;
32772 fail:
32773 return NULL;
32774 }
32775
32776
32777 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32778 PyObject *resultobj = 0;
32779 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32780 wxDC *arg2 = (wxDC *) 0 ;
32781 void *argp1 = 0 ;
32782 int res1 = 0 ;
32783 void *argp2 = 0 ;
32784 int res2 = 0 ;
32785 PyObject * obj0 = 0 ;
32786 PyObject * obj1 = 0 ;
32787 char * kwnames[] = {
32788 (char *) "self",(char *) "dc", NULL
32789 };
32790
32791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) 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_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32795 }
32796 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32797 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32798 if (!SWIG_IsOK(res2)) {
32799 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32800 }
32801 arg2 = reinterpret_cast< wxDC * >(argp2);
32802 {
32803 PyThreadState* __tstate = wxPyBeginAllowThreads();
32804 (arg1)->DrawToDC(arg2);
32805 wxPyEndAllowThreads(__tstate);
32806 if (PyErr_Occurred()) SWIG_fail;
32807 }
32808 resultobj = SWIG_Py_Void();
32809 return resultobj;
32810 fail:
32811 return NULL;
32812 }
32813
32814
32815 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32816 PyObject *resultobj = 0;
32817 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32818 int arg2 ;
32819 int arg3 ;
32820 wxColour *arg4 = 0 ;
32821 int arg5 = (int) wxFLOOD_SURFACE ;
32822 void *argp1 = 0 ;
32823 int res1 = 0 ;
32824 int val2 ;
32825 int ecode2 = 0 ;
32826 int val3 ;
32827 int ecode3 = 0 ;
32828 wxColour temp4 ;
32829 int val5 ;
32830 int ecode5 = 0 ;
32831 PyObject * obj0 = 0 ;
32832 PyObject * obj1 = 0 ;
32833 PyObject * obj2 = 0 ;
32834 PyObject * obj3 = 0 ;
32835 PyObject * obj4 = 0 ;
32836 char * kwnames[] = {
32837 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32838 };
32839
32840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32842 if (!SWIG_IsOK(res1)) {
32843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32844 }
32845 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32846 ecode2 = SWIG_AsVal_int(obj1, &val2);
32847 if (!SWIG_IsOK(ecode2)) {
32848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32849 }
32850 arg2 = static_cast< int >(val2);
32851 ecode3 = SWIG_AsVal_int(obj2, &val3);
32852 if (!SWIG_IsOK(ecode3)) {
32853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32854 }
32855 arg3 = static_cast< int >(val3);
32856 {
32857 arg4 = &temp4;
32858 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32859 }
32860 if (obj4) {
32861 ecode5 = SWIG_AsVal_int(obj4, &val5);
32862 if (!SWIG_IsOK(ecode5)) {
32863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32864 }
32865 arg5 = static_cast< int >(val5);
32866 }
32867 {
32868 PyThreadState* __tstate = wxPyBeginAllowThreads();
32869 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32870 wxPyEndAllowThreads(__tstate);
32871 if (PyErr_Occurred()) SWIG_fail;
32872 }
32873 resultobj = SWIG_Py_Void();
32874 return resultobj;
32875 fail:
32876 return NULL;
32877 }
32878
32879
32880 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32881 PyObject *resultobj = 0;
32882 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32883 wxPoint *arg2 = 0 ;
32884 wxColour *arg3 = 0 ;
32885 int arg4 = (int) wxFLOOD_SURFACE ;
32886 void *argp1 = 0 ;
32887 int res1 = 0 ;
32888 wxPoint temp2 ;
32889 wxColour temp3 ;
32890 int val4 ;
32891 int ecode4 = 0 ;
32892 PyObject * obj0 = 0 ;
32893 PyObject * obj1 = 0 ;
32894 PyObject * obj2 = 0 ;
32895 PyObject * obj3 = 0 ;
32896 char * kwnames[] = {
32897 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32898 };
32899
32900 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32901 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32902 if (!SWIG_IsOK(res1)) {
32903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32904 }
32905 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32906 {
32907 arg2 = &temp2;
32908 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32909 }
32910 {
32911 arg3 = &temp3;
32912 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32913 }
32914 if (obj3) {
32915 ecode4 = SWIG_AsVal_int(obj3, &val4);
32916 if (!SWIG_IsOK(ecode4)) {
32917 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32918 }
32919 arg4 = static_cast< int >(val4);
32920 }
32921 {
32922 PyThreadState* __tstate = wxPyBeginAllowThreads();
32923 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32924 wxPyEndAllowThreads(__tstate);
32925 if (PyErr_Occurred()) SWIG_fail;
32926 }
32927 resultobj = SWIG_Py_Void();
32928 return resultobj;
32929 fail:
32930 return NULL;
32931 }
32932
32933
32934 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32935 PyObject *resultobj = 0;
32936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32937 int arg2 ;
32938 int arg3 ;
32939 int arg4 ;
32940 int arg5 ;
32941 void *argp1 = 0 ;
32942 int res1 = 0 ;
32943 int val2 ;
32944 int ecode2 = 0 ;
32945 int val3 ;
32946 int ecode3 = 0 ;
32947 int val4 ;
32948 int ecode4 = 0 ;
32949 int val5 ;
32950 int ecode5 = 0 ;
32951 PyObject * obj0 = 0 ;
32952 PyObject * obj1 = 0 ;
32953 PyObject * obj2 = 0 ;
32954 PyObject * obj3 = 0 ;
32955 PyObject * obj4 = 0 ;
32956 char * kwnames[] = {
32957 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32958 };
32959
32960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32962 if (!SWIG_IsOK(res1)) {
32963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32964 }
32965 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32966 ecode2 = SWIG_AsVal_int(obj1, &val2);
32967 if (!SWIG_IsOK(ecode2)) {
32968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32969 }
32970 arg2 = static_cast< int >(val2);
32971 ecode3 = SWIG_AsVal_int(obj2, &val3);
32972 if (!SWIG_IsOK(ecode3)) {
32973 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32974 }
32975 arg3 = static_cast< int >(val3);
32976 ecode4 = SWIG_AsVal_int(obj3, &val4);
32977 if (!SWIG_IsOK(ecode4)) {
32978 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32979 }
32980 arg4 = static_cast< int >(val4);
32981 ecode5 = SWIG_AsVal_int(obj4, &val5);
32982 if (!SWIG_IsOK(ecode5)) {
32983 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32984 }
32985 arg5 = static_cast< int >(val5);
32986 {
32987 PyThreadState* __tstate = wxPyBeginAllowThreads();
32988 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
32989 wxPyEndAllowThreads(__tstate);
32990 if (PyErr_Occurred()) SWIG_fail;
32991 }
32992 resultobj = SWIG_Py_Void();
32993 return resultobj;
32994 fail:
32995 return NULL;
32996 }
32997
32998
32999 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33000 PyObject *resultobj = 0;
33001 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33002 wxPoint *arg2 = 0 ;
33003 wxPoint *arg3 = 0 ;
33004 void *argp1 = 0 ;
33005 int res1 = 0 ;
33006 wxPoint temp2 ;
33007 wxPoint temp3 ;
33008 PyObject * obj0 = 0 ;
33009 PyObject * obj1 = 0 ;
33010 PyObject * obj2 = 0 ;
33011 char * kwnames[] = {
33012 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
33013 };
33014
33015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33017 if (!SWIG_IsOK(res1)) {
33018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33019 }
33020 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33021 {
33022 arg2 = &temp2;
33023 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33024 }
33025 {
33026 arg3 = &temp3;
33027 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33028 }
33029 {
33030 PyThreadState* __tstate = wxPyBeginAllowThreads();
33031 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
33032 wxPyEndAllowThreads(__tstate);
33033 if (PyErr_Occurred()) SWIG_fail;
33034 }
33035 resultobj = SWIG_Py_Void();
33036 return resultobj;
33037 fail:
33038 return NULL;
33039 }
33040
33041
33042 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33043 PyObject *resultobj = 0;
33044 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33045 int arg2 ;
33046 int arg3 ;
33047 void *argp1 = 0 ;
33048 int res1 = 0 ;
33049 int val2 ;
33050 int ecode2 = 0 ;
33051 int val3 ;
33052 int ecode3 = 0 ;
33053 PyObject * obj0 = 0 ;
33054 PyObject * obj1 = 0 ;
33055 PyObject * obj2 = 0 ;
33056 char * kwnames[] = {
33057 (char *) "self",(char *) "x",(char *) "y", NULL
33058 };
33059
33060 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) 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_CrossHair" "', 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_CrossHair" "', 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_CrossHair" "', expected argument " "3"" of type '" "int""'");
33074 }
33075 arg3 = static_cast< int >(val3);
33076 {
33077 PyThreadState* __tstate = wxPyBeginAllowThreads();
33078 (arg1)->CrossHair(arg2,arg3);
33079 wxPyEndAllowThreads(__tstate);
33080 if (PyErr_Occurred()) SWIG_fail;
33081 }
33082 resultobj = SWIG_Py_Void();
33083 return resultobj;
33084 fail:
33085 return NULL;
33086 }
33087
33088
33089 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33090 PyObject *resultobj = 0;
33091 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33092 wxPoint *arg2 = 0 ;
33093 void *argp1 = 0 ;
33094 int res1 = 0 ;
33095 wxPoint temp2 ;
33096 PyObject * obj0 = 0 ;
33097 PyObject * obj1 = 0 ;
33098 char * kwnames[] = {
33099 (char *) "self",(char *) "pt", NULL
33100 };
33101
33102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33104 if (!SWIG_IsOK(res1)) {
33105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33106 }
33107 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33108 {
33109 arg2 = &temp2;
33110 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33111 }
33112 {
33113 PyThreadState* __tstate = wxPyBeginAllowThreads();
33114 (arg1)->CrossHair((wxPoint const &)*arg2);
33115 wxPyEndAllowThreads(__tstate);
33116 if (PyErr_Occurred()) SWIG_fail;
33117 }
33118 resultobj = SWIG_Py_Void();
33119 return resultobj;
33120 fail:
33121 return NULL;
33122 }
33123
33124
33125 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33126 PyObject *resultobj = 0;
33127 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33128 int arg2 ;
33129 int arg3 ;
33130 int arg4 ;
33131 int arg5 ;
33132 int arg6 ;
33133 int arg7 ;
33134 void *argp1 = 0 ;
33135 int res1 = 0 ;
33136 int val2 ;
33137 int ecode2 = 0 ;
33138 int val3 ;
33139 int ecode3 = 0 ;
33140 int val4 ;
33141 int ecode4 = 0 ;
33142 int val5 ;
33143 int ecode5 = 0 ;
33144 int val6 ;
33145 int ecode6 = 0 ;
33146 int val7 ;
33147 int ecode7 = 0 ;
33148 PyObject * obj0 = 0 ;
33149 PyObject * obj1 = 0 ;
33150 PyObject * obj2 = 0 ;
33151 PyObject * obj3 = 0 ;
33152 PyObject * obj4 = 0 ;
33153 PyObject * obj5 = 0 ;
33154 PyObject * obj6 = 0 ;
33155 char * kwnames[] = {
33156 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
33157 };
33158
33159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33161 if (!SWIG_IsOK(res1)) {
33162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33163 }
33164 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33165 ecode2 = SWIG_AsVal_int(obj1, &val2);
33166 if (!SWIG_IsOK(ecode2)) {
33167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
33168 }
33169 arg2 = static_cast< int >(val2);
33170 ecode3 = SWIG_AsVal_int(obj2, &val3);
33171 if (!SWIG_IsOK(ecode3)) {
33172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
33173 }
33174 arg3 = static_cast< int >(val3);
33175 ecode4 = SWIG_AsVal_int(obj3, &val4);
33176 if (!SWIG_IsOK(ecode4)) {
33177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
33178 }
33179 arg4 = static_cast< int >(val4);
33180 ecode5 = SWIG_AsVal_int(obj4, &val5);
33181 if (!SWIG_IsOK(ecode5)) {
33182 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
33183 }
33184 arg5 = static_cast< int >(val5);
33185 ecode6 = SWIG_AsVal_int(obj5, &val6);
33186 if (!SWIG_IsOK(ecode6)) {
33187 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
33188 }
33189 arg6 = static_cast< int >(val6);
33190 ecode7 = SWIG_AsVal_int(obj6, &val7);
33191 if (!SWIG_IsOK(ecode7)) {
33192 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
33193 }
33194 arg7 = static_cast< int >(val7);
33195 {
33196 PyThreadState* __tstate = wxPyBeginAllowThreads();
33197 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
33198 wxPyEndAllowThreads(__tstate);
33199 if (PyErr_Occurred()) SWIG_fail;
33200 }
33201 resultobj = SWIG_Py_Void();
33202 return resultobj;
33203 fail:
33204 return NULL;
33205 }
33206
33207
33208 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33209 PyObject *resultobj = 0;
33210 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33211 wxPoint *arg2 = 0 ;
33212 wxPoint *arg3 = 0 ;
33213 wxPoint *arg4 = 0 ;
33214 void *argp1 = 0 ;
33215 int res1 = 0 ;
33216 wxPoint temp2 ;
33217 wxPoint temp3 ;
33218 wxPoint temp4 ;
33219 PyObject * obj0 = 0 ;
33220 PyObject * obj1 = 0 ;
33221 PyObject * obj2 = 0 ;
33222 PyObject * obj3 = 0 ;
33223 char * kwnames[] = {
33224 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
33225 };
33226
33227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33229 if (!SWIG_IsOK(res1)) {
33230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33231 }
33232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33233 {
33234 arg2 = &temp2;
33235 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33236 }
33237 {
33238 arg3 = &temp3;
33239 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33240 }
33241 {
33242 arg4 = &temp4;
33243 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33244 }
33245 {
33246 PyThreadState* __tstate = wxPyBeginAllowThreads();
33247 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
33248 wxPyEndAllowThreads(__tstate);
33249 if (PyErr_Occurred()) SWIG_fail;
33250 }
33251 resultobj = SWIG_Py_Void();
33252 return resultobj;
33253 fail:
33254 return NULL;
33255 }
33256
33257
33258 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33259 PyObject *resultobj = 0;
33260 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33261 int arg2 ;
33262 int arg3 ;
33263 int arg4 ;
33264 int arg5 ;
33265 void *argp1 = 0 ;
33266 int res1 = 0 ;
33267 int val2 ;
33268 int ecode2 = 0 ;
33269 int val3 ;
33270 int ecode3 = 0 ;
33271 int val4 ;
33272 int ecode4 = 0 ;
33273 int val5 ;
33274 int ecode5 = 0 ;
33275 PyObject * obj0 = 0 ;
33276 PyObject * obj1 = 0 ;
33277 PyObject * obj2 = 0 ;
33278 PyObject * obj3 = 0 ;
33279 PyObject * obj4 = 0 ;
33280 char * kwnames[] = {
33281 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33282 };
33283
33284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33286 if (!SWIG_IsOK(res1)) {
33287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33288 }
33289 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33290 ecode2 = SWIG_AsVal_int(obj1, &val2);
33291 if (!SWIG_IsOK(ecode2)) {
33292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33293 }
33294 arg2 = static_cast< int >(val2);
33295 ecode3 = SWIG_AsVal_int(obj2, &val3);
33296 if (!SWIG_IsOK(ecode3)) {
33297 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33298 }
33299 arg3 = static_cast< int >(val3);
33300 ecode4 = SWIG_AsVal_int(obj3, &val4);
33301 if (!SWIG_IsOK(ecode4)) {
33302 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33303 }
33304 arg4 = static_cast< int >(val4);
33305 ecode5 = SWIG_AsVal_int(obj4, &val5);
33306 if (!SWIG_IsOK(ecode5)) {
33307 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33308 }
33309 arg5 = static_cast< int >(val5);
33310 {
33311 PyThreadState* __tstate = wxPyBeginAllowThreads();
33312 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33313 wxPyEndAllowThreads(__tstate);
33314 if (PyErr_Occurred()) SWIG_fail;
33315 }
33316 resultobj = SWIG_Py_Void();
33317 return resultobj;
33318 fail:
33319 return NULL;
33320 }
33321
33322
33323 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33324 PyObject *resultobj = 0;
33325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33326 wxRect *arg2 = 0 ;
33327 void *argp1 = 0 ;
33328 int res1 = 0 ;
33329 wxRect temp2 ;
33330 PyObject * obj0 = 0 ;
33331 PyObject * obj1 = 0 ;
33332 char * kwnames[] = {
33333 (char *) "self",(char *) "rect", NULL
33334 };
33335
33336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33337 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33338 if (!SWIG_IsOK(res1)) {
33339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33340 }
33341 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33342 {
33343 arg2 = &temp2;
33344 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33345 }
33346 {
33347 PyThreadState* __tstate = wxPyBeginAllowThreads();
33348 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33349 wxPyEndAllowThreads(__tstate);
33350 if (PyErr_Occurred()) SWIG_fail;
33351 }
33352 resultobj = SWIG_Py_Void();
33353 return resultobj;
33354 fail:
33355 return NULL;
33356 }
33357
33358
33359 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33360 PyObject *resultobj = 0;
33361 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33362 int arg2 ;
33363 int arg3 ;
33364 int arg4 ;
33365 int arg5 ;
33366 double arg6 ;
33367 double arg7 ;
33368 void *argp1 = 0 ;
33369 int res1 = 0 ;
33370 int val2 ;
33371 int ecode2 = 0 ;
33372 int val3 ;
33373 int ecode3 = 0 ;
33374 int val4 ;
33375 int ecode4 = 0 ;
33376 int val5 ;
33377 int ecode5 = 0 ;
33378 double val6 ;
33379 int ecode6 = 0 ;
33380 double val7 ;
33381 int ecode7 = 0 ;
33382 PyObject * obj0 = 0 ;
33383 PyObject * obj1 = 0 ;
33384 PyObject * obj2 = 0 ;
33385 PyObject * obj3 = 0 ;
33386 PyObject * obj4 = 0 ;
33387 PyObject * obj5 = 0 ;
33388 PyObject * obj6 = 0 ;
33389 char * kwnames[] = {
33390 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33391 };
33392
33393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33395 if (!SWIG_IsOK(res1)) {
33396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33397 }
33398 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33399 ecode2 = SWIG_AsVal_int(obj1, &val2);
33400 if (!SWIG_IsOK(ecode2)) {
33401 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33402 }
33403 arg2 = static_cast< int >(val2);
33404 ecode3 = SWIG_AsVal_int(obj2, &val3);
33405 if (!SWIG_IsOK(ecode3)) {
33406 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33407 }
33408 arg3 = static_cast< int >(val3);
33409 ecode4 = SWIG_AsVal_int(obj3, &val4);
33410 if (!SWIG_IsOK(ecode4)) {
33411 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33412 }
33413 arg4 = static_cast< int >(val4);
33414 ecode5 = SWIG_AsVal_int(obj4, &val5);
33415 if (!SWIG_IsOK(ecode5)) {
33416 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33417 }
33418 arg5 = static_cast< int >(val5);
33419 ecode6 = SWIG_AsVal_double(obj5, &val6);
33420 if (!SWIG_IsOK(ecode6)) {
33421 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33422 }
33423 arg6 = static_cast< double >(val6);
33424 ecode7 = SWIG_AsVal_double(obj6, &val7);
33425 if (!SWIG_IsOK(ecode7)) {
33426 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33427 }
33428 arg7 = static_cast< double >(val7);
33429 {
33430 PyThreadState* __tstate = wxPyBeginAllowThreads();
33431 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33432 wxPyEndAllowThreads(__tstate);
33433 if (PyErr_Occurred()) SWIG_fail;
33434 }
33435 resultobj = SWIG_Py_Void();
33436 return resultobj;
33437 fail:
33438 return NULL;
33439 }
33440
33441
33442 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33443 PyObject *resultobj = 0;
33444 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33445 wxPoint *arg2 = 0 ;
33446 wxSize *arg3 = 0 ;
33447 double arg4 ;
33448 double arg5 ;
33449 void *argp1 = 0 ;
33450 int res1 = 0 ;
33451 wxPoint temp2 ;
33452 wxSize temp3 ;
33453 double val4 ;
33454 int ecode4 = 0 ;
33455 double val5 ;
33456 int ecode5 = 0 ;
33457 PyObject * obj0 = 0 ;
33458 PyObject * obj1 = 0 ;
33459 PyObject * obj2 = 0 ;
33460 PyObject * obj3 = 0 ;
33461 PyObject * obj4 = 0 ;
33462 char * kwnames[] = {
33463 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33464 };
33465
33466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33468 if (!SWIG_IsOK(res1)) {
33469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33470 }
33471 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33472 {
33473 arg2 = &temp2;
33474 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33475 }
33476 {
33477 arg3 = &temp3;
33478 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33479 }
33480 ecode4 = SWIG_AsVal_double(obj3, &val4);
33481 if (!SWIG_IsOK(ecode4)) {
33482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33483 }
33484 arg4 = static_cast< double >(val4);
33485 ecode5 = SWIG_AsVal_double(obj4, &val5);
33486 if (!SWIG_IsOK(ecode5)) {
33487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33488 }
33489 arg5 = static_cast< double >(val5);
33490 {
33491 PyThreadState* __tstate = wxPyBeginAllowThreads();
33492 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33493 wxPyEndAllowThreads(__tstate);
33494 if (PyErr_Occurred()) SWIG_fail;
33495 }
33496 resultobj = SWIG_Py_Void();
33497 return resultobj;
33498 fail:
33499 return NULL;
33500 }
33501
33502
33503 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33504 PyObject *resultobj = 0;
33505 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33506 int arg2 ;
33507 int arg3 ;
33508 void *argp1 = 0 ;
33509 int res1 = 0 ;
33510 int val2 ;
33511 int ecode2 = 0 ;
33512 int val3 ;
33513 int ecode3 = 0 ;
33514 PyObject * obj0 = 0 ;
33515 PyObject * obj1 = 0 ;
33516 PyObject * obj2 = 0 ;
33517 char * kwnames[] = {
33518 (char *) "self",(char *) "x",(char *) "y", NULL
33519 };
33520
33521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33523 if (!SWIG_IsOK(res1)) {
33524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33525 }
33526 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33527 ecode2 = SWIG_AsVal_int(obj1, &val2);
33528 if (!SWIG_IsOK(ecode2)) {
33529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33530 }
33531 arg2 = static_cast< int >(val2);
33532 ecode3 = SWIG_AsVal_int(obj2, &val3);
33533 if (!SWIG_IsOK(ecode3)) {
33534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33535 }
33536 arg3 = static_cast< int >(val3);
33537 {
33538 PyThreadState* __tstate = wxPyBeginAllowThreads();
33539 (arg1)->DrawPoint(arg2,arg3);
33540 wxPyEndAllowThreads(__tstate);
33541 if (PyErr_Occurred()) SWIG_fail;
33542 }
33543 resultobj = SWIG_Py_Void();
33544 return resultobj;
33545 fail:
33546 return NULL;
33547 }
33548
33549
33550 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33551 PyObject *resultobj = 0;
33552 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33553 wxPoint *arg2 = 0 ;
33554 void *argp1 = 0 ;
33555 int res1 = 0 ;
33556 wxPoint temp2 ;
33557 PyObject * obj0 = 0 ;
33558 PyObject * obj1 = 0 ;
33559 char * kwnames[] = {
33560 (char *) "self",(char *) "pt", NULL
33561 };
33562
33563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33565 if (!SWIG_IsOK(res1)) {
33566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33567 }
33568 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33569 {
33570 arg2 = &temp2;
33571 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33572 }
33573 {
33574 PyThreadState* __tstate = wxPyBeginAllowThreads();
33575 (arg1)->DrawPoint((wxPoint const &)*arg2);
33576 wxPyEndAllowThreads(__tstate);
33577 if (PyErr_Occurred()) SWIG_fail;
33578 }
33579 resultobj = SWIG_Py_Void();
33580 return resultobj;
33581 fail:
33582 return NULL;
33583 }
33584
33585
33586 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33587 PyObject *resultobj = 0;
33588 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33589 int arg2 ;
33590 int arg3 ;
33591 int arg4 ;
33592 int arg5 ;
33593 void *argp1 = 0 ;
33594 int res1 = 0 ;
33595 int val2 ;
33596 int ecode2 = 0 ;
33597 int val3 ;
33598 int ecode3 = 0 ;
33599 int val4 ;
33600 int ecode4 = 0 ;
33601 int val5 ;
33602 int ecode5 = 0 ;
33603 PyObject * obj0 = 0 ;
33604 PyObject * obj1 = 0 ;
33605 PyObject * obj2 = 0 ;
33606 PyObject * obj3 = 0 ;
33607 PyObject * obj4 = 0 ;
33608 char * kwnames[] = {
33609 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33610 };
33611
33612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33614 if (!SWIG_IsOK(res1)) {
33615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33616 }
33617 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33618 ecode2 = SWIG_AsVal_int(obj1, &val2);
33619 if (!SWIG_IsOK(ecode2)) {
33620 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33621 }
33622 arg2 = static_cast< int >(val2);
33623 ecode3 = SWIG_AsVal_int(obj2, &val3);
33624 if (!SWIG_IsOK(ecode3)) {
33625 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33626 }
33627 arg3 = static_cast< int >(val3);
33628 ecode4 = SWIG_AsVal_int(obj3, &val4);
33629 if (!SWIG_IsOK(ecode4)) {
33630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33631 }
33632 arg4 = static_cast< int >(val4);
33633 ecode5 = SWIG_AsVal_int(obj4, &val5);
33634 if (!SWIG_IsOK(ecode5)) {
33635 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33636 }
33637 arg5 = static_cast< int >(val5);
33638 {
33639 PyThreadState* __tstate = wxPyBeginAllowThreads();
33640 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33641 wxPyEndAllowThreads(__tstate);
33642 if (PyErr_Occurred()) SWIG_fail;
33643 }
33644 resultobj = SWIG_Py_Void();
33645 return resultobj;
33646 fail:
33647 return NULL;
33648 }
33649
33650
33651 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33652 PyObject *resultobj = 0;
33653 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33654 wxRect *arg2 = 0 ;
33655 void *argp1 = 0 ;
33656 int res1 = 0 ;
33657 wxRect temp2 ;
33658 PyObject * obj0 = 0 ;
33659 PyObject * obj1 = 0 ;
33660 char * kwnames[] = {
33661 (char *) "self",(char *) "rect", NULL
33662 };
33663
33664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33666 if (!SWIG_IsOK(res1)) {
33667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33668 }
33669 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33670 {
33671 arg2 = &temp2;
33672 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33673 }
33674 {
33675 PyThreadState* __tstate = wxPyBeginAllowThreads();
33676 (arg1)->DrawRectangle((wxRect const &)*arg2);
33677 wxPyEndAllowThreads(__tstate);
33678 if (PyErr_Occurred()) SWIG_fail;
33679 }
33680 resultobj = SWIG_Py_Void();
33681 return resultobj;
33682 fail:
33683 return NULL;
33684 }
33685
33686
33687 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33688 PyObject *resultobj = 0;
33689 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33690 wxPoint *arg2 = 0 ;
33691 wxSize *arg3 = 0 ;
33692 void *argp1 = 0 ;
33693 int res1 = 0 ;
33694 wxPoint temp2 ;
33695 wxSize temp3 ;
33696 PyObject * obj0 = 0 ;
33697 PyObject * obj1 = 0 ;
33698 PyObject * obj2 = 0 ;
33699 char * kwnames[] = {
33700 (char *) "self",(char *) "pt",(char *) "sz", NULL
33701 };
33702
33703 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33704 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33705 if (!SWIG_IsOK(res1)) {
33706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33707 }
33708 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33709 {
33710 arg2 = &temp2;
33711 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33712 }
33713 {
33714 arg3 = &temp3;
33715 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33716 }
33717 {
33718 PyThreadState* __tstate = wxPyBeginAllowThreads();
33719 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33720 wxPyEndAllowThreads(__tstate);
33721 if (PyErr_Occurred()) SWIG_fail;
33722 }
33723 resultobj = SWIG_Py_Void();
33724 return resultobj;
33725 fail:
33726 return NULL;
33727 }
33728
33729
33730 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33731 PyObject *resultobj = 0;
33732 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33733 int arg2 ;
33734 int arg3 ;
33735 int arg4 ;
33736 int arg5 ;
33737 double arg6 ;
33738 void *argp1 = 0 ;
33739 int res1 = 0 ;
33740 int val2 ;
33741 int ecode2 = 0 ;
33742 int val3 ;
33743 int ecode3 = 0 ;
33744 int val4 ;
33745 int ecode4 = 0 ;
33746 int val5 ;
33747 int ecode5 = 0 ;
33748 double val6 ;
33749 int ecode6 = 0 ;
33750 PyObject * obj0 = 0 ;
33751 PyObject * obj1 = 0 ;
33752 PyObject * obj2 = 0 ;
33753 PyObject * obj3 = 0 ;
33754 PyObject * obj4 = 0 ;
33755 PyObject * obj5 = 0 ;
33756 char * kwnames[] = {
33757 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33758 };
33759
33760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33762 if (!SWIG_IsOK(res1)) {
33763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33764 }
33765 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33766 ecode2 = SWIG_AsVal_int(obj1, &val2);
33767 if (!SWIG_IsOK(ecode2)) {
33768 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33769 }
33770 arg2 = static_cast< int >(val2);
33771 ecode3 = SWIG_AsVal_int(obj2, &val3);
33772 if (!SWIG_IsOK(ecode3)) {
33773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33774 }
33775 arg3 = static_cast< int >(val3);
33776 ecode4 = SWIG_AsVal_int(obj3, &val4);
33777 if (!SWIG_IsOK(ecode4)) {
33778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33779 }
33780 arg4 = static_cast< int >(val4);
33781 ecode5 = SWIG_AsVal_int(obj4, &val5);
33782 if (!SWIG_IsOK(ecode5)) {
33783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33784 }
33785 arg5 = static_cast< int >(val5);
33786 ecode6 = SWIG_AsVal_double(obj5, &val6);
33787 if (!SWIG_IsOK(ecode6)) {
33788 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33789 }
33790 arg6 = static_cast< double >(val6);
33791 {
33792 PyThreadState* __tstate = wxPyBeginAllowThreads();
33793 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33794 wxPyEndAllowThreads(__tstate);
33795 if (PyErr_Occurred()) SWIG_fail;
33796 }
33797 resultobj = SWIG_Py_Void();
33798 return resultobj;
33799 fail:
33800 return NULL;
33801 }
33802
33803
33804 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33805 PyObject *resultobj = 0;
33806 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33807 wxRect *arg2 = 0 ;
33808 double arg3 ;
33809 void *argp1 = 0 ;
33810 int res1 = 0 ;
33811 wxRect temp2 ;
33812 double val3 ;
33813 int ecode3 = 0 ;
33814 PyObject * obj0 = 0 ;
33815 PyObject * obj1 = 0 ;
33816 PyObject * obj2 = 0 ;
33817 char * kwnames[] = {
33818 (char *) "self",(char *) "r",(char *) "radius", NULL
33819 };
33820
33821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33823 if (!SWIG_IsOK(res1)) {
33824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33825 }
33826 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33827 {
33828 arg2 = &temp2;
33829 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33830 }
33831 ecode3 = SWIG_AsVal_double(obj2, &val3);
33832 if (!SWIG_IsOK(ecode3)) {
33833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33834 }
33835 arg3 = static_cast< double >(val3);
33836 {
33837 PyThreadState* __tstate = wxPyBeginAllowThreads();
33838 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33839 wxPyEndAllowThreads(__tstate);
33840 if (PyErr_Occurred()) SWIG_fail;
33841 }
33842 resultobj = SWIG_Py_Void();
33843 return resultobj;
33844 fail:
33845 return NULL;
33846 }
33847
33848
33849 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33850 PyObject *resultobj = 0;
33851 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33852 wxPoint *arg2 = 0 ;
33853 wxSize *arg3 = 0 ;
33854 double arg4 ;
33855 void *argp1 = 0 ;
33856 int res1 = 0 ;
33857 wxPoint temp2 ;
33858 wxSize temp3 ;
33859 double val4 ;
33860 int ecode4 = 0 ;
33861 PyObject * obj0 = 0 ;
33862 PyObject * obj1 = 0 ;
33863 PyObject * obj2 = 0 ;
33864 PyObject * obj3 = 0 ;
33865 char * kwnames[] = {
33866 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33867 };
33868
33869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33871 if (!SWIG_IsOK(res1)) {
33872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33873 }
33874 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33875 {
33876 arg2 = &temp2;
33877 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33878 }
33879 {
33880 arg3 = &temp3;
33881 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33882 }
33883 ecode4 = SWIG_AsVal_double(obj3, &val4);
33884 if (!SWIG_IsOK(ecode4)) {
33885 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33886 }
33887 arg4 = static_cast< double >(val4);
33888 {
33889 PyThreadState* __tstate = wxPyBeginAllowThreads();
33890 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33891 wxPyEndAllowThreads(__tstate);
33892 if (PyErr_Occurred()) SWIG_fail;
33893 }
33894 resultobj = SWIG_Py_Void();
33895 return resultobj;
33896 fail:
33897 return NULL;
33898 }
33899
33900
33901 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33902 PyObject *resultobj = 0;
33903 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33904 int arg2 ;
33905 int arg3 ;
33906 int arg4 ;
33907 void *argp1 = 0 ;
33908 int res1 = 0 ;
33909 int val2 ;
33910 int ecode2 = 0 ;
33911 int val3 ;
33912 int ecode3 = 0 ;
33913 int val4 ;
33914 int ecode4 = 0 ;
33915 PyObject * obj0 = 0 ;
33916 PyObject * obj1 = 0 ;
33917 PyObject * obj2 = 0 ;
33918 PyObject * obj3 = 0 ;
33919 char * kwnames[] = {
33920 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33921 };
33922
33923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33925 if (!SWIG_IsOK(res1)) {
33926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33927 }
33928 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33929 ecode2 = SWIG_AsVal_int(obj1, &val2);
33930 if (!SWIG_IsOK(ecode2)) {
33931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33932 }
33933 arg2 = static_cast< int >(val2);
33934 ecode3 = SWIG_AsVal_int(obj2, &val3);
33935 if (!SWIG_IsOK(ecode3)) {
33936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33937 }
33938 arg3 = static_cast< int >(val3);
33939 ecode4 = SWIG_AsVal_int(obj3, &val4);
33940 if (!SWIG_IsOK(ecode4)) {
33941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33942 }
33943 arg4 = static_cast< int >(val4);
33944 {
33945 PyThreadState* __tstate = wxPyBeginAllowThreads();
33946 (arg1)->DrawCircle(arg2,arg3,arg4);
33947 wxPyEndAllowThreads(__tstate);
33948 if (PyErr_Occurred()) SWIG_fail;
33949 }
33950 resultobj = SWIG_Py_Void();
33951 return resultobj;
33952 fail:
33953 return NULL;
33954 }
33955
33956
33957 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33958 PyObject *resultobj = 0;
33959 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33960 wxPoint *arg2 = 0 ;
33961 int arg3 ;
33962 void *argp1 = 0 ;
33963 int res1 = 0 ;
33964 wxPoint temp2 ;
33965 int val3 ;
33966 int ecode3 = 0 ;
33967 PyObject * obj0 = 0 ;
33968 PyObject * obj1 = 0 ;
33969 PyObject * obj2 = 0 ;
33970 char * kwnames[] = {
33971 (char *) "self",(char *) "pt",(char *) "radius", NULL
33972 };
33973
33974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33976 if (!SWIG_IsOK(res1)) {
33977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33978 }
33979 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33980 {
33981 arg2 = &temp2;
33982 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33983 }
33984 ecode3 = SWIG_AsVal_int(obj2, &val3);
33985 if (!SWIG_IsOK(ecode3)) {
33986 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
33987 }
33988 arg3 = static_cast< int >(val3);
33989 {
33990 PyThreadState* __tstate = wxPyBeginAllowThreads();
33991 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
33992 wxPyEndAllowThreads(__tstate);
33993 if (PyErr_Occurred()) SWIG_fail;
33994 }
33995 resultobj = SWIG_Py_Void();
33996 return resultobj;
33997 fail:
33998 return NULL;
33999 }
34000
34001
34002 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34003 PyObject *resultobj = 0;
34004 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34005 int arg2 ;
34006 int arg3 ;
34007 int arg4 ;
34008 int arg5 ;
34009 void *argp1 = 0 ;
34010 int res1 = 0 ;
34011 int val2 ;
34012 int ecode2 = 0 ;
34013 int val3 ;
34014 int ecode3 = 0 ;
34015 int val4 ;
34016 int ecode4 = 0 ;
34017 int val5 ;
34018 int ecode5 = 0 ;
34019 PyObject * obj0 = 0 ;
34020 PyObject * obj1 = 0 ;
34021 PyObject * obj2 = 0 ;
34022 PyObject * obj3 = 0 ;
34023 PyObject * obj4 = 0 ;
34024 char * kwnames[] = {
34025 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
34026 };
34027
34028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34030 if (!SWIG_IsOK(res1)) {
34031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34032 }
34033 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34034 ecode2 = SWIG_AsVal_int(obj1, &val2);
34035 if (!SWIG_IsOK(ecode2)) {
34036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
34037 }
34038 arg2 = static_cast< int >(val2);
34039 ecode3 = SWIG_AsVal_int(obj2, &val3);
34040 if (!SWIG_IsOK(ecode3)) {
34041 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
34042 }
34043 arg3 = static_cast< int >(val3);
34044 ecode4 = SWIG_AsVal_int(obj3, &val4);
34045 if (!SWIG_IsOK(ecode4)) {
34046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
34047 }
34048 arg4 = static_cast< int >(val4);
34049 ecode5 = SWIG_AsVal_int(obj4, &val5);
34050 if (!SWIG_IsOK(ecode5)) {
34051 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
34052 }
34053 arg5 = static_cast< int >(val5);
34054 {
34055 PyThreadState* __tstate = wxPyBeginAllowThreads();
34056 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
34057 wxPyEndAllowThreads(__tstate);
34058 if (PyErr_Occurred()) SWIG_fail;
34059 }
34060 resultobj = SWIG_Py_Void();
34061 return resultobj;
34062 fail:
34063 return NULL;
34064 }
34065
34066
34067 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34068 PyObject *resultobj = 0;
34069 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34070 wxRect *arg2 = 0 ;
34071 void *argp1 = 0 ;
34072 int res1 = 0 ;
34073 wxRect temp2 ;
34074 PyObject * obj0 = 0 ;
34075 PyObject * obj1 = 0 ;
34076 char * kwnames[] = {
34077 (char *) "self",(char *) "rect", NULL
34078 };
34079
34080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
34081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34082 if (!SWIG_IsOK(res1)) {
34083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34084 }
34085 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34086 {
34087 arg2 = &temp2;
34088 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34089 }
34090 {
34091 PyThreadState* __tstate = wxPyBeginAllowThreads();
34092 (arg1)->DrawEllipse((wxRect const &)*arg2);
34093 wxPyEndAllowThreads(__tstate);
34094 if (PyErr_Occurred()) SWIG_fail;
34095 }
34096 resultobj = SWIG_Py_Void();
34097 return resultobj;
34098 fail:
34099 return NULL;
34100 }
34101
34102
34103 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34104 PyObject *resultobj = 0;
34105 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34106 wxPoint *arg2 = 0 ;
34107 wxSize *arg3 = 0 ;
34108 void *argp1 = 0 ;
34109 int res1 = 0 ;
34110 wxPoint temp2 ;
34111 wxSize temp3 ;
34112 PyObject * obj0 = 0 ;
34113 PyObject * obj1 = 0 ;
34114 PyObject * obj2 = 0 ;
34115 char * kwnames[] = {
34116 (char *) "self",(char *) "pt",(char *) "sz", NULL
34117 };
34118
34119 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34120 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34121 if (!SWIG_IsOK(res1)) {
34122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34123 }
34124 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34125 {
34126 arg2 = &temp2;
34127 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
34128 }
34129 {
34130 arg3 = &temp3;
34131 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
34132 }
34133 {
34134 PyThreadState* __tstate = wxPyBeginAllowThreads();
34135 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
34136 wxPyEndAllowThreads(__tstate);
34137 if (PyErr_Occurred()) SWIG_fail;
34138 }
34139 resultobj = SWIG_Py_Void();
34140 return resultobj;
34141 fail:
34142 return NULL;
34143 }
34144
34145
34146 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34147 PyObject *resultobj = 0;
34148 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34149 wxIcon *arg2 = 0 ;
34150 int arg3 ;
34151 int arg4 ;
34152 void *argp1 = 0 ;
34153 int res1 = 0 ;
34154 void *argp2 = 0 ;
34155 int res2 = 0 ;
34156 int val3 ;
34157 int ecode3 = 0 ;
34158 int val4 ;
34159 int ecode4 = 0 ;
34160 PyObject * obj0 = 0 ;
34161 PyObject * obj1 = 0 ;
34162 PyObject * obj2 = 0 ;
34163 PyObject * obj3 = 0 ;
34164 char * kwnames[] = {
34165 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
34166 };
34167
34168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34170 if (!SWIG_IsOK(res1)) {
34171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34172 }
34173 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34174 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34175 if (!SWIG_IsOK(res2)) {
34176 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34177 }
34178 if (!argp2) {
34179 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34180 }
34181 arg2 = reinterpret_cast< wxIcon * >(argp2);
34182 ecode3 = SWIG_AsVal_int(obj2, &val3);
34183 if (!SWIG_IsOK(ecode3)) {
34184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
34185 }
34186 arg3 = static_cast< int >(val3);
34187 ecode4 = SWIG_AsVal_int(obj3, &val4);
34188 if (!SWIG_IsOK(ecode4)) {
34189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
34190 }
34191 arg4 = static_cast< int >(val4);
34192 {
34193 PyThreadState* __tstate = wxPyBeginAllowThreads();
34194 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
34195 wxPyEndAllowThreads(__tstate);
34196 if (PyErr_Occurred()) SWIG_fail;
34197 }
34198 resultobj = SWIG_Py_Void();
34199 return resultobj;
34200 fail:
34201 return NULL;
34202 }
34203
34204
34205 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34206 PyObject *resultobj = 0;
34207 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34208 wxIcon *arg2 = 0 ;
34209 wxPoint *arg3 = 0 ;
34210 void *argp1 = 0 ;
34211 int res1 = 0 ;
34212 void *argp2 = 0 ;
34213 int res2 = 0 ;
34214 wxPoint temp3 ;
34215 PyObject * obj0 = 0 ;
34216 PyObject * obj1 = 0 ;
34217 PyObject * obj2 = 0 ;
34218 char * kwnames[] = {
34219 (char *) "self",(char *) "icon",(char *) "pt", NULL
34220 };
34221
34222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34224 if (!SWIG_IsOK(res1)) {
34225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34226 }
34227 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34228 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34229 if (!SWIG_IsOK(res2)) {
34230 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34231 }
34232 if (!argp2) {
34233 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34234 }
34235 arg2 = reinterpret_cast< wxIcon * >(argp2);
34236 {
34237 arg3 = &temp3;
34238 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34239 }
34240 {
34241 PyThreadState* __tstate = wxPyBeginAllowThreads();
34242 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
34243 wxPyEndAllowThreads(__tstate);
34244 if (PyErr_Occurred()) SWIG_fail;
34245 }
34246 resultobj = SWIG_Py_Void();
34247 return resultobj;
34248 fail:
34249 return NULL;
34250 }
34251
34252
34253 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34254 PyObject *resultobj = 0;
34255 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34256 wxBitmap *arg2 = 0 ;
34257 int arg3 ;
34258 int arg4 ;
34259 bool arg5 = (bool) false ;
34260 void *argp1 = 0 ;
34261 int res1 = 0 ;
34262 void *argp2 = 0 ;
34263 int res2 = 0 ;
34264 int val3 ;
34265 int ecode3 = 0 ;
34266 int val4 ;
34267 int ecode4 = 0 ;
34268 bool val5 ;
34269 int ecode5 = 0 ;
34270 PyObject * obj0 = 0 ;
34271 PyObject * obj1 = 0 ;
34272 PyObject * obj2 = 0 ;
34273 PyObject * obj3 = 0 ;
34274 PyObject * obj4 = 0 ;
34275 char * kwnames[] = {
34276 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34277 };
34278
34279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34281 if (!SWIG_IsOK(res1)) {
34282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34283 }
34284 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34285 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34286 if (!SWIG_IsOK(res2)) {
34287 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34288 }
34289 if (!argp2) {
34290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34291 }
34292 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34293 ecode3 = SWIG_AsVal_int(obj2, &val3);
34294 if (!SWIG_IsOK(ecode3)) {
34295 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34296 }
34297 arg3 = static_cast< int >(val3);
34298 ecode4 = SWIG_AsVal_int(obj3, &val4);
34299 if (!SWIG_IsOK(ecode4)) {
34300 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34301 }
34302 arg4 = static_cast< int >(val4);
34303 if (obj4) {
34304 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34305 if (!SWIG_IsOK(ecode5)) {
34306 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34307 }
34308 arg5 = static_cast< bool >(val5);
34309 }
34310 {
34311 PyThreadState* __tstate = wxPyBeginAllowThreads();
34312 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34313 wxPyEndAllowThreads(__tstate);
34314 if (PyErr_Occurred()) SWIG_fail;
34315 }
34316 resultobj = SWIG_Py_Void();
34317 return resultobj;
34318 fail:
34319 return NULL;
34320 }
34321
34322
34323 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34324 PyObject *resultobj = 0;
34325 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34326 wxBitmap *arg2 = 0 ;
34327 wxPoint *arg3 = 0 ;
34328 bool arg4 = (bool) false ;
34329 void *argp1 = 0 ;
34330 int res1 = 0 ;
34331 void *argp2 = 0 ;
34332 int res2 = 0 ;
34333 wxPoint temp3 ;
34334 bool val4 ;
34335 int ecode4 = 0 ;
34336 PyObject * obj0 = 0 ;
34337 PyObject * obj1 = 0 ;
34338 PyObject * obj2 = 0 ;
34339 PyObject * obj3 = 0 ;
34340 char * kwnames[] = {
34341 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34342 };
34343
34344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34346 if (!SWIG_IsOK(res1)) {
34347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34348 }
34349 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34350 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34351 if (!SWIG_IsOK(res2)) {
34352 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34353 }
34354 if (!argp2) {
34355 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34356 }
34357 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34358 {
34359 arg3 = &temp3;
34360 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34361 }
34362 if (obj3) {
34363 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34364 if (!SWIG_IsOK(ecode4)) {
34365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34366 }
34367 arg4 = static_cast< bool >(val4);
34368 }
34369 {
34370 PyThreadState* __tstate = wxPyBeginAllowThreads();
34371 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34372 wxPyEndAllowThreads(__tstate);
34373 if (PyErr_Occurred()) SWIG_fail;
34374 }
34375 resultobj = SWIG_Py_Void();
34376 return resultobj;
34377 fail:
34378 return NULL;
34379 }
34380
34381
34382 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34383 PyObject *resultobj = 0;
34384 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34385 wxString *arg2 = 0 ;
34386 int arg3 ;
34387 int arg4 ;
34388 void *argp1 = 0 ;
34389 int res1 = 0 ;
34390 bool temp2 = false ;
34391 int val3 ;
34392 int ecode3 = 0 ;
34393 int val4 ;
34394 int ecode4 = 0 ;
34395 PyObject * obj0 = 0 ;
34396 PyObject * obj1 = 0 ;
34397 PyObject * obj2 = 0 ;
34398 PyObject * obj3 = 0 ;
34399 char * kwnames[] = {
34400 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34401 };
34402
34403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34405 if (!SWIG_IsOK(res1)) {
34406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34407 }
34408 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34409 {
34410 arg2 = wxString_in_helper(obj1);
34411 if (arg2 == NULL) SWIG_fail;
34412 temp2 = true;
34413 }
34414 ecode3 = SWIG_AsVal_int(obj2, &val3);
34415 if (!SWIG_IsOK(ecode3)) {
34416 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34417 }
34418 arg3 = static_cast< int >(val3);
34419 ecode4 = SWIG_AsVal_int(obj3, &val4);
34420 if (!SWIG_IsOK(ecode4)) {
34421 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34422 }
34423 arg4 = static_cast< int >(val4);
34424 {
34425 PyThreadState* __tstate = wxPyBeginAllowThreads();
34426 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34427 wxPyEndAllowThreads(__tstate);
34428 if (PyErr_Occurred()) SWIG_fail;
34429 }
34430 resultobj = SWIG_Py_Void();
34431 {
34432 if (temp2)
34433 delete arg2;
34434 }
34435 return resultobj;
34436 fail:
34437 {
34438 if (temp2)
34439 delete arg2;
34440 }
34441 return NULL;
34442 }
34443
34444
34445 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34446 PyObject *resultobj = 0;
34447 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34448 wxString *arg2 = 0 ;
34449 wxPoint *arg3 = 0 ;
34450 void *argp1 = 0 ;
34451 int res1 = 0 ;
34452 bool temp2 = false ;
34453 wxPoint temp3 ;
34454 PyObject * obj0 = 0 ;
34455 PyObject * obj1 = 0 ;
34456 PyObject * obj2 = 0 ;
34457 char * kwnames[] = {
34458 (char *) "self",(char *) "text",(char *) "pt", NULL
34459 };
34460
34461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34463 if (!SWIG_IsOK(res1)) {
34464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34465 }
34466 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34467 {
34468 arg2 = wxString_in_helper(obj1);
34469 if (arg2 == NULL) SWIG_fail;
34470 temp2 = true;
34471 }
34472 {
34473 arg3 = &temp3;
34474 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34475 }
34476 {
34477 PyThreadState* __tstate = wxPyBeginAllowThreads();
34478 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34479 wxPyEndAllowThreads(__tstate);
34480 if (PyErr_Occurred()) SWIG_fail;
34481 }
34482 resultobj = SWIG_Py_Void();
34483 {
34484 if (temp2)
34485 delete arg2;
34486 }
34487 return resultobj;
34488 fail:
34489 {
34490 if (temp2)
34491 delete arg2;
34492 }
34493 return NULL;
34494 }
34495
34496
34497 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34498 PyObject *resultobj = 0;
34499 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34500 wxString *arg2 = 0 ;
34501 int arg3 ;
34502 int arg4 ;
34503 double arg5 ;
34504 void *argp1 = 0 ;
34505 int res1 = 0 ;
34506 bool temp2 = false ;
34507 int val3 ;
34508 int ecode3 = 0 ;
34509 int val4 ;
34510 int ecode4 = 0 ;
34511 double val5 ;
34512 int ecode5 = 0 ;
34513 PyObject * obj0 = 0 ;
34514 PyObject * obj1 = 0 ;
34515 PyObject * obj2 = 0 ;
34516 PyObject * obj3 = 0 ;
34517 PyObject * obj4 = 0 ;
34518 char * kwnames[] = {
34519 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34520 };
34521
34522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34524 if (!SWIG_IsOK(res1)) {
34525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34526 }
34527 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34528 {
34529 arg2 = wxString_in_helper(obj1);
34530 if (arg2 == NULL) SWIG_fail;
34531 temp2 = true;
34532 }
34533 ecode3 = SWIG_AsVal_int(obj2, &val3);
34534 if (!SWIG_IsOK(ecode3)) {
34535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34536 }
34537 arg3 = static_cast< int >(val3);
34538 ecode4 = SWIG_AsVal_int(obj3, &val4);
34539 if (!SWIG_IsOK(ecode4)) {
34540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34541 }
34542 arg4 = static_cast< int >(val4);
34543 ecode5 = SWIG_AsVal_double(obj4, &val5);
34544 if (!SWIG_IsOK(ecode5)) {
34545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34546 }
34547 arg5 = static_cast< double >(val5);
34548 {
34549 PyThreadState* __tstate = wxPyBeginAllowThreads();
34550 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34551 wxPyEndAllowThreads(__tstate);
34552 if (PyErr_Occurred()) SWIG_fail;
34553 }
34554 resultobj = SWIG_Py_Void();
34555 {
34556 if (temp2)
34557 delete arg2;
34558 }
34559 return resultobj;
34560 fail:
34561 {
34562 if (temp2)
34563 delete arg2;
34564 }
34565 return NULL;
34566 }
34567
34568
34569 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34570 PyObject *resultobj = 0;
34571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34572 wxString *arg2 = 0 ;
34573 wxPoint *arg3 = 0 ;
34574 double arg4 ;
34575 void *argp1 = 0 ;
34576 int res1 = 0 ;
34577 bool temp2 = false ;
34578 wxPoint temp3 ;
34579 double val4 ;
34580 int ecode4 = 0 ;
34581 PyObject * obj0 = 0 ;
34582 PyObject * obj1 = 0 ;
34583 PyObject * obj2 = 0 ;
34584 PyObject * obj3 = 0 ;
34585 char * kwnames[] = {
34586 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34587 };
34588
34589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34591 if (!SWIG_IsOK(res1)) {
34592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34593 }
34594 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34595 {
34596 arg2 = wxString_in_helper(obj1);
34597 if (arg2 == NULL) SWIG_fail;
34598 temp2 = true;
34599 }
34600 {
34601 arg3 = &temp3;
34602 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34603 }
34604 ecode4 = SWIG_AsVal_double(obj3, &val4);
34605 if (!SWIG_IsOK(ecode4)) {
34606 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34607 }
34608 arg4 = static_cast< double >(val4);
34609 {
34610 PyThreadState* __tstate = wxPyBeginAllowThreads();
34611 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34612 wxPyEndAllowThreads(__tstate);
34613 if (PyErr_Occurred()) SWIG_fail;
34614 }
34615 resultobj = SWIG_Py_Void();
34616 {
34617 if (temp2)
34618 delete arg2;
34619 }
34620 return resultobj;
34621 fail:
34622 {
34623 if (temp2)
34624 delete arg2;
34625 }
34626 return NULL;
34627 }
34628
34629
34630 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34631 PyObject *resultobj = 0;
34632 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34633 int arg2 ;
34634 wxPoint *arg3 = (wxPoint *) 0 ;
34635 int arg4 = (int) 0 ;
34636 int arg5 = (int) 0 ;
34637 void *argp1 = 0 ;
34638 int res1 = 0 ;
34639 int val4 ;
34640 int ecode4 = 0 ;
34641 int val5 ;
34642 int ecode5 = 0 ;
34643 PyObject * obj0 = 0 ;
34644 PyObject * obj1 = 0 ;
34645 PyObject * obj2 = 0 ;
34646 PyObject * obj3 = 0 ;
34647 char * kwnames[] = {
34648 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34649 };
34650
34651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34653 if (!SWIG_IsOK(res1)) {
34654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34655 }
34656 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34657 {
34658 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34659 if (arg3 == NULL) SWIG_fail;
34660 }
34661 if (obj2) {
34662 ecode4 = SWIG_AsVal_int(obj2, &val4);
34663 if (!SWIG_IsOK(ecode4)) {
34664 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34665 }
34666 arg4 = static_cast< int >(val4);
34667 }
34668 if (obj3) {
34669 ecode5 = SWIG_AsVal_int(obj3, &val5);
34670 if (!SWIG_IsOK(ecode5)) {
34671 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34672 }
34673 arg5 = static_cast< int >(val5);
34674 }
34675 {
34676 PyThreadState* __tstate = wxPyBeginAllowThreads();
34677 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34678 wxPyEndAllowThreads(__tstate);
34679 if (PyErr_Occurred()) SWIG_fail;
34680 }
34681 resultobj = SWIG_Py_Void();
34682 {
34683 if (arg3) delete [] arg3;
34684 }
34685 return resultobj;
34686 fail:
34687 {
34688 if (arg3) delete [] arg3;
34689 }
34690 return NULL;
34691 }
34692
34693
34694 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34695 PyObject *resultobj = 0;
34696 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34697 int arg2 ;
34698 wxPoint *arg3 = (wxPoint *) 0 ;
34699 int arg4 = (int) 0 ;
34700 int arg5 = (int) 0 ;
34701 int arg6 = (int) wxODDEVEN_RULE ;
34702 void *argp1 = 0 ;
34703 int res1 = 0 ;
34704 int val4 ;
34705 int ecode4 = 0 ;
34706 int val5 ;
34707 int ecode5 = 0 ;
34708 int val6 ;
34709 int ecode6 = 0 ;
34710 PyObject * obj0 = 0 ;
34711 PyObject * obj1 = 0 ;
34712 PyObject * obj2 = 0 ;
34713 PyObject * obj3 = 0 ;
34714 PyObject * obj4 = 0 ;
34715 char * kwnames[] = {
34716 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34717 };
34718
34719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34721 if (!SWIG_IsOK(res1)) {
34722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34723 }
34724 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34725 {
34726 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34727 if (arg3 == NULL) SWIG_fail;
34728 }
34729 if (obj2) {
34730 ecode4 = SWIG_AsVal_int(obj2, &val4);
34731 if (!SWIG_IsOK(ecode4)) {
34732 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34733 }
34734 arg4 = static_cast< int >(val4);
34735 }
34736 if (obj3) {
34737 ecode5 = SWIG_AsVal_int(obj3, &val5);
34738 if (!SWIG_IsOK(ecode5)) {
34739 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34740 }
34741 arg5 = static_cast< int >(val5);
34742 }
34743 if (obj4) {
34744 ecode6 = SWIG_AsVal_int(obj4, &val6);
34745 if (!SWIG_IsOK(ecode6)) {
34746 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34747 }
34748 arg6 = static_cast< int >(val6);
34749 }
34750 {
34751 PyThreadState* __tstate = wxPyBeginAllowThreads();
34752 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34753 wxPyEndAllowThreads(__tstate);
34754 if (PyErr_Occurred()) SWIG_fail;
34755 }
34756 resultobj = SWIG_Py_Void();
34757 {
34758 if (arg3) delete [] arg3;
34759 }
34760 return resultobj;
34761 fail:
34762 {
34763 if (arg3) delete [] arg3;
34764 }
34765 return NULL;
34766 }
34767
34768
34769 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34770 PyObject *resultobj = 0;
34771 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34772 wxString *arg2 = 0 ;
34773 wxRect *arg3 = 0 ;
34774 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34775 int arg5 = (int) -1 ;
34776 void *argp1 = 0 ;
34777 int res1 = 0 ;
34778 bool temp2 = false ;
34779 wxRect temp3 ;
34780 int val4 ;
34781 int ecode4 = 0 ;
34782 int val5 ;
34783 int ecode5 = 0 ;
34784 PyObject * obj0 = 0 ;
34785 PyObject * obj1 = 0 ;
34786 PyObject * obj2 = 0 ;
34787 PyObject * obj3 = 0 ;
34788 PyObject * obj4 = 0 ;
34789 char * kwnames[] = {
34790 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34791 };
34792
34793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34795 if (!SWIG_IsOK(res1)) {
34796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34797 }
34798 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34799 {
34800 arg2 = wxString_in_helper(obj1);
34801 if (arg2 == NULL) SWIG_fail;
34802 temp2 = true;
34803 }
34804 {
34805 arg3 = &temp3;
34806 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34807 }
34808 if (obj3) {
34809 ecode4 = SWIG_AsVal_int(obj3, &val4);
34810 if (!SWIG_IsOK(ecode4)) {
34811 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34812 }
34813 arg4 = static_cast< int >(val4);
34814 }
34815 if (obj4) {
34816 ecode5 = SWIG_AsVal_int(obj4, &val5);
34817 if (!SWIG_IsOK(ecode5)) {
34818 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34819 }
34820 arg5 = static_cast< int >(val5);
34821 }
34822 {
34823 PyThreadState* __tstate = wxPyBeginAllowThreads();
34824 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34825 wxPyEndAllowThreads(__tstate);
34826 if (PyErr_Occurred()) SWIG_fail;
34827 }
34828 resultobj = SWIG_Py_Void();
34829 {
34830 if (temp2)
34831 delete arg2;
34832 }
34833 return resultobj;
34834 fail:
34835 {
34836 if (temp2)
34837 delete arg2;
34838 }
34839 return NULL;
34840 }
34841
34842
34843 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34844 PyObject *resultobj = 0;
34845 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34846 wxString *arg2 = 0 ;
34847 wxBitmap *arg3 = 0 ;
34848 wxRect *arg4 = 0 ;
34849 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34850 int arg6 = (int) -1 ;
34851 void *argp1 = 0 ;
34852 int res1 = 0 ;
34853 bool temp2 = false ;
34854 void *argp3 = 0 ;
34855 int res3 = 0 ;
34856 wxRect temp4 ;
34857 int val5 ;
34858 int ecode5 = 0 ;
34859 int val6 ;
34860 int ecode6 = 0 ;
34861 PyObject * obj0 = 0 ;
34862 PyObject * obj1 = 0 ;
34863 PyObject * obj2 = 0 ;
34864 PyObject * obj3 = 0 ;
34865 PyObject * obj4 = 0 ;
34866 PyObject * obj5 = 0 ;
34867 char * kwnames[] = {
34868 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34869 };
34870
34871 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34872 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34873 if (!SWIG_IsOK(res1)) {
34874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34875 }
34876 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34877 {
34878 arg2 = wxString_in_helper(obj1);
34879 if (arg2 == NULL) SWIG_fail;
34880 temp2 = true;
34881 }
34882 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34883 if (!SWIG_IsOK(res3)) {
34884 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34885 }
34886 if (!argp3) {
34887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34888 }
34889 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34890 {
34891 arg4 = &temp4;
34892 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34893 }
34894 if (obj4) {
34895 ecode5 = SWIG_AsVal_int(obj4, &val5);
34896 if (!SWIG_IsOK(ecode5)) {
34897 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34898 }
34899 arg5 = static_cast< int >(val5);
34900 }
34901 if (obj5) {
34902 ecode6 = SWIG_AsVal_int(obj5, &val6);
34903 if (!SWIG_IsOK(ecode6)) {
34904 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34905 }
34906 arg6 = static_cast< int >(val6);
34907 }
34908 {
34909 PyThreadState* __tstate = wxPyBeginAllowThreads();
34910 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34911 wxPyEndAllowThreads(__tstate);
34912 if (PyErr_Occurred()) SWIG_fail;
34913 }
34914 resultobj = SWIG_Py_Void();
34915 {
34916 if (temp2)
34917 delete arg2;
34918 }
34919 return resultobj;
34920 fail:
34921 {
34922 if (temp2)
34923 delete arg2;
34924 }
34925 return NULL;
34926 }
34927
34928
34929 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34930 PyObject *resultobj = 0;
34931 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34932 int arg2 ;
34933 wxPoint *arg3 = (wxPoint *) 0 ;
34934 void *argp1 = 0 ;
34935 int res1 = 0 ;
34936 PyObject * obj0 = 0 ;
34937 PyObject * obj1 = 0 ;
34938 char * kwnames[] = {
34939 (char *) "self",(char *) "points", NULL
34940 };
34941
34942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34944 if (!SWIG_IsOK(res1)) {
34945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34946 }
34947 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34948 {
34949 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34950 if (arg3 == NULL) SWIG_fail;
34951 }
34952 {
34953 PyThreadState* __tstate = wxPyBeginAllowThreads();
34954 (arg1)->DrawSpline(arg2,arg3);
34955 wxPyEndAllowThreads(__tstate);
34956 if (PyErr_Occurred()) SWIG_fail;
34957 }
34958 resultobj = SWIG_Py_Void();
34959 {
34960 if (arg3) delete [] arg3;
34961 }
34962 return resultobj;
34963 fail:
34964 {
34965 if (arg3) delete [] arg3;
34966 }
34967 return NULL;
34968 }
34969
34970
34971 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34972 PyObject *resultobj = 0;
34973 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34974 void *argp1 = 0 ;
34975 int res1 = 0 ;
34976 PyObject *swig_obj[1] ;
34977
34978 if (!args) SWIG_fail;
34979 swig_obj[0] = args;
34980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34981 if (!SWIG_IsOK(res1)) {
34982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34983 }
34984 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34985 {
34986 PyThreadState* __tstate = wxPyBeginAllowThreads();
34987 (arg1)->Clear();
34988 wxPyEndAllowThreads(__tstate);
34989 if (PyErr_Occurred()) SWIG_fail;
34990 }
34991 resultobj = SWIG_Py_Void();
34992 return resultobj;
34993 fail:
34994 return NULL;
34995 }
34996
34997
34998 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34999 PyObject *resultobj = 0;
35000 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35001 wxFont *arg2 = 0 ;
35002 void *argp1 = 0 ;
35003 int res1 = 0 ;
35004 void *argp2 = 0 ;
35005 int res2 = 0 ;
35006 PyObject * obj0 = 0 ;
35007 PyObject * obj1 = 0 ;
35008 char * kwnames[] = {
35009 (char *) "self",(char *) "font", NULL
35010 };
35011
35012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
35013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35014 if (!SWIG_IsOK(res1)) {
35015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35016 }
35017 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35018 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
35019 if (!SWIG_IsOK(res2)) {
35020 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35021 }
35022 if (!argp2) {
35023 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35024 }
35025 arg2 = reinterpret_cast< wxFont * >(argp2);
35026 {
35027 PyThreadState* __tstate = wxPyBeginAllowThreads();
35028 (arg1)->SetFont((wxFont const &)*arg2);
35029 wxPyEndAllowThreads(__tstate);
35030 if (PyErr_Occurred()) SWIG_fail;
35031 }
35032 resultobj = SWIG_Py_Void();
35033 return resultobj;
35034 fail:
35035 return NULL;
35036 }
35037
35038
35039 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35040 PyObject *resultobj = 0;
35041 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35042 wxPen *arg2 = 0 ;
35043 void *argp1 = 0 ;
35044 int res1 = 0 ;
35045 void *argp2 = 0 ;
35046 int res2 = 0 ;
35047 PyObject * obj0 = 0 ;
35048 PyObject * obj1 = 0 ;
35049 char * kwnames[] = {
35050 (char *) "self",(char *) "pen", NULL
35051 };
35052
35053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
35054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35055 if (!SWIG_IsOK(res1)) {
35056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35057 }
35058 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35059 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
35060 if (!SWIG_IsOK(res2)) {
35061 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35062 }
35063 if (!argp2) {
35064 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35065 }
35066 arg2 = reinterpret_cast< wxPen * >(argp2);
35067 {
35068 PyThreadState* __tstate = wxPyBeginAllowThreads();
35069 (arg1)->SetPen((wxPen const &)*arg2);
35070 wxPyEndAllowThreads(__tstate);
35071 if (PyErr_Occurred()) SWIG_fail;
35072 }
35073 resultobj = SWIG_Py_Void();
35074 return resultobj;
35075 fail:
35076 return NULL;
35077 }
35078
35079
35080 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35081 PyObject *resultobj = 0;
35082 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35083 wxBrush *arg2 = 0 ;
35084 void *argp1 = 0 ;
35085 int res1 = 0 ;
35086 void *argp2 = 0 ;
35087 int res2 = 0 ;
35088 PyObject * obj0 = 0 ;
35089 PyObject * obj1 = 0 ;
35090 char * kwnames[] = {
35091 (char *) "self",(char *) "brush", NULL
35092 };
35093
35094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
35095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35096 if (!SWIG_IsOK(res1)) {
35097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35098 }
35099 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35100 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35101 if (!SWIG_IsOK(res2)) {
35102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35103 }
35104 if (!argp2) {
35105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35106 }
35107 arg2 = reinterpret_cast< wxBrush * >(argp2);
35108 {
35109 PyThreadState* __tstate = wxPyBeginAllowThreads();
35110 (arg1)->SetBrush((wxBrush const &)*arg2);
35111 wxPyEndAllowThreads(__tstate);
35112 if (PyErr_Occurred()) SWIG_fail;
35113 }
35114 resultobj = SWIG_Py_Void();
35115 return resultobj;
35116 fail:
35117 return NULL;
35118 }
35119
35120
35121 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35122 PyObject *resultobj = 0;
35123 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35124 wxBrush *arg2 = 0 ;
35125 void *argp1 = 0 ;
35126 int res1 = 0 ;
35127 void *argp2 = 0 ;
35128 int res2 = 0 ;
35129 PyObject * obj0 = 0 ;
35130 PyObject * obj1 = 0 ;
35131 char * kwnames[] = {
35132 (char *) "self",(char *) "brush", NULL
35133 };
35134
35135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35137 if (!SWIG_IsOK(res1)) {
35138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35139 }
35140 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35141 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35142 if (!SWIG_IsOK(res2)) {
35143 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35144 }
35145 if (!argp2) {
35146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35147 }
35148 arg2 = reinterpret_cast< wxBrush * >(argp2);
35149 {
35150 PyThreadState* __tstate = wxPyBeginAllowThreads();
35151 (arg1)->SetBackground((wxBrush const &)*arg2);
35152 wxPyEndAllowThreads(__tstate);
35153 if (PyErr_Occurred()) SWIG_fail;
35154 }
35155 resultobj = SWIG_Py_Void();
35156 return resultobj;
35157 fail:
35158 return NULL;
35159 }
35160
35161
35162 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35163 PyObject *resultobj = 0;
35164 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35165 int arg2 ;
35166 void *argp1 = 0 ;
35167 int res1 = 0 ;
35168 int val2 ;
35169 int ecode2 = 0 ;
35170 PyObject * obj0 = 0 ;
35171 PyObject * obj1 = 0 ;
35172 char * kwnames[] = {
35173 (char *) "self",(char *) "mode", NULL
35174 };
35175
35176 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
35177 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35178 if (!SWIG_IsOK(res1)) {
35179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35180 }
35181 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35182 ecode2 = SWIG_AsVal_int(obj1, &val2);
35183 if (!SWIG_IsOK(ecode2)) {
35184 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
35185 }
35186 arg2 = static_cast< int >(val2);
35187 {
35188 PyThreadState* __tstate = wxPyBeginAllowThreads();
35189 (arg1)->SetBackgroundMode(arg2);
35190 wxPyEndAllowThreads(__tstate);
35191 if (PyErr_Occurred()) SWIG_fail;
35192 }
35193 resultobj = SWIG_Py_Void();
35194 return resultobj;
35195 fail:
35196 return NULL;
35197 }
35198
35199
35200 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35201 PyObject *resultobj = 0;
35202 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35203 wxPalette *arg2 = 0 ;
35204 void *argp1 = 0 ;
35205 int res1 = 0 ;
35206 void *argp2 = 0 ;
35207 int res2 = 0 ;
35208 PyObject * obj0 = 0 ;
35209 PyObject * obj1 = 0 ;
35210 char * kwnames[] = {
35211 (char *) "self",(char *) "palette", NULL
35212 };
35213
35214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
35215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35216 if (!SWIG_IsOK(res1)) {
35217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35218 }
35219 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
35221 if (!SWIG_IsOK(res2)) {
35222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35223 }
35224 if (!argp2) {
35225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35226 }
35227 arg2 = reinterpret_cast< wxPalette * >(argp2);
35228 {
35229 PyThreadState* __tstate = wxPyBeginAllowThreads();
35230 (arg1)->SetPalette((wxPalette const &)*arg2);
35231 wxPyEndAllowThreads(__tstate);
35232 if (PyErr_Occurred()) SWIG_fail;
35233 }
35234 resultobj = SWIG_Py_Void();
35235 return resultobj;
35236 fail:
35237 return NULL;
35238 }
35239
35240
35241 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35242 PyObject *resultobj = 0;
35243 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35244 wxColour *arg2 = 0 ;
35245 void *argp1 = 0 ;
35246 int res1 = 0 ;
35247 wxColour temp2 ;
35248 PyObject * obj0 = 0 ;
35249 PyObject * obj1 = 0 ;
35250 char * kwnames[] = {
35251 (char *) "self",(char *) "colour", NULL
35252 };
35253
35254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
35255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35256 if (!SWIG_IsOK(res1)) {
35257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35258 }
35259 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35260 {
35261 arg2 = &temp2;
35262 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35263 }
35264 {
35265 PyThreadState* __tstate = wxPyBeginAllowThreads();
35266 (arg1)->SetTextForeground((wxColour const &)*arg2);
35267 wxPyEndAllowThreads(__tstate);
35268 if (PyErr_Occurred()) SWIG_fail;
35269 }
35270 resultobj = SWIG_Py_Void();
35271 return resultobj;
35272 fail:
35273 return NULL;
35274 }
35275
35276
35277 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35278 PyObject *resultobj = 0;
35279 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35280 wxColour *arg2 = 0 ;
35281 void *argp1 = 0 ;
35282 int res1 = 0 ;
35283 wxColour temp2 ;
35284 PyObject * obj0 = 0 ;
35285 PyObject * obj1 = 0 ;
35286 char * kwnames[] = {
35287 (char *) "self",(char *) "colour", NULL
35288 };
35289
35290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35292 if (!SWIG_IsOK(res1)) {
35293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35294 }
35295 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35296 {
35297 arg2 = &temp2;
35298 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35299 }
35300 {
35301 PyThreadState* __tstate = wxPyBeginAllowThreads();
35302 (arg1)->SetTextBackground((wxColour const &)*arg2);
35303 wxPyEndAllowThreads(__tstate);
35304 if (PyErr_Occurred()) SWIG_fail;
35305 }
35306 resultobj = SWIG_Py_Void();
35307 return resultobj;
35308 fail:
35309 return NULL;
35310 }
35311
35312
35313 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35314 PyObject *resultobj = 0;
35315 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35316 int arg2 ;
35317 void *argp1 = 0 ;
35318 int res1 = 0 ;
35319 int val2 ;
35320 int ecode2 = 0 ;
35321 PyObject * obj0 = 0 ;
35322 PyObject * obj1 = 0 ;
35323 char * kwnames[] = {
35324 (char *) "self",(char *) "function", NULL
35325 };
35326
35327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35329 if (!SWIG_IsOK(res1)) {
35330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35331 }
35332 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35333 ecode2 = SWIG_AsVal_int(obj1, &val2);
35334 if (!SWIG_IsOK(ecode2)) {
35335 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35336 }
35337 arg2 = static_cast< int >(val2);
35338 {
35339 PyThreadState* __tstate = wxPyBeginAllowThreads();
35340 (arg1)->SetLogicalFunction(arg2);
35341 wxPyEndAllowThreads(__tstate);
35342 if (PyErr_Occurred()) SWIG_fail;
35343 }
35344 resultobj = SWIG_Py_Void();
35345 return resultobj;
35346 fail:
35347 return NULL;
35348 }
35349
35350
35351 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35352 PyObject *obj;
35353 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35354 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35355 return SWIG_Py_Void();
35356 }
35357
35358 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35359 return SWIG_Python_InitShadowInstance(args);
35360 }
35361
35362 static PyMethodDef SwigMethods[] = {
35363 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35364 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35365 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35366 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35367 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35368 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35369 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35370 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35371 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35372 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35373 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35374 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
35375 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
35376 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
35377 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35378 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35379 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35380 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35381 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35382 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35383 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35384 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
35385 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35386 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35387 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35388 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35389 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35390 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35391 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35392 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
35393 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
35394 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35395 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35396 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35397 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35398 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35399 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35400 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35401 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35402 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
35403 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
35404 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35405 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35406 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35408 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35409 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35410 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35411 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35413 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35414 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35415 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35416 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35417 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35418 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35419 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35420 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35421 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35422 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35423 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35424 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35425 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35426 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35427 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35428 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
35429 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
35430 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35431 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35432 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35433 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35434 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35437 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35440 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35441 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
35442 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35443 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35444 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35445 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35446 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35447 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35448 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35449 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35454 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35455 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35457 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35458 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35459 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35460 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35461 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35462 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35463 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35464 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
35465 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35466 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35467 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35469 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35470 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35471 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35472 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35473 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35474 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35475 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35476 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35477 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35478 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35479 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35480 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35481 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35482 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35483 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35484 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35485 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35486 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35487 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35488 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35489 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35490 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35491 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35492 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35493 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35494 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35495 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35496 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35497 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35498 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35499 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35500 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35501 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35502 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35503 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35504 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35505 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35506 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35507 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35508 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35509 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35510 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35511 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35512 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35513 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
35514 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35515 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35516 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35517 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35518 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35519 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35520 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35521 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35522 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35526 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35527 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
35528 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35529 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35530 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35531 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35532 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35533 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35534 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35535 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35536 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35537 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35538 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35540 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35541 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35542 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35543 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35544 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35545 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35546 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35547 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35548 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35549 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35550 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35551 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35552 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35553 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35554 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35555 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35556 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35557 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35558 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35559 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35560 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35561 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35562 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
35563 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35564 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35565 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35566 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35567 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35568 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35570 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35571 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35572 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35573 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35574 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35575 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35576 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35577 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35578 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35579 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35580 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35581 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35583 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35584 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35586 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35587 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35588 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35590 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35591 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35592 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35593 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35594 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35595 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35596 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35597 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35598 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35599 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35600 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35601 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35602 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35603 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35604 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35605 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35606 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35607 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35608 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35609 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35610 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35611 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35612 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35613 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35614 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35615 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35616 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35617 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35618 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35619 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35620 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35621 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35622 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35623 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35624 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35625 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35626 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35627 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35628 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35629 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35630 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35631 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35632 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35633 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35634 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35635 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35636 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35637 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35638 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35639 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35640 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35641 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35642 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35643 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35644 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35645 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35646 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35647 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35648 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35649 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35650 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35651 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35652 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35653 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35654 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35655 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35656 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35657 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35658 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35659 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35660 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35661 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35662 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35663 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35664 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35665 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35666 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35667 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35668 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35669 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35670 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35671 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35672 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35673 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35674 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35675 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35676 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35677 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35678 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35679 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35680 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35681 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35682 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
35683 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35684 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35685 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35686 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35687 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35688 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35689 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35690 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35691 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35692 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35693 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35694 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35695 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35696 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35697 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35698 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35699 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35700 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35701 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35702 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35703 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35704 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35705 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35706 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35707 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35708 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35709 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35710 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35711 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35712 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35713 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35714 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35715 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35716 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35717 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35718 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35719 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35720 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35721 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35722 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35723 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35724 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35725 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35726 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35727 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35728 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35729 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35730 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35731 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35732 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35733 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35734 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35735 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35736 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35737 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35738 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35739 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35740 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35741 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35742 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35743 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35744 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35745 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35746 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35747 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35748 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35749 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35750 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35751 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35752 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35753 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35754 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35755 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35756 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35757 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35758 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35759 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35760 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35761 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35762 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35763 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35765 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35766 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35767 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35768 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35769 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35770 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35771 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35772 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35773 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35774 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35775 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35776 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35777 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35778 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35779 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35780 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35781 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35782 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35783 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35784 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35785 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35786 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35787 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35788 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35789 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35790 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35791 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35792 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35793 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35794 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35795 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35796 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35797 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35798 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35799 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35800 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35801 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35803 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35805 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35806 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35807 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35808 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35809 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35810 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35811 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35812 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35813 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35814 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35815 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35816 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35817 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35818 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35819 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35820 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35823 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35824 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35825 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35826 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35827 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35828 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35829 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35830 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35831 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35832 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35833 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35834 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35835 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35836 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35837 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35838 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35839 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35840 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35841 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35842 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35843 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35844 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35845 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35846 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35847 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35848 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35849 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35850 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35851 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35852 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35853 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35854 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35855 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35856 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35857 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35858 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35859 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35860 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35861 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35862 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35863 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35864 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35865 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35866 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35867 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35868 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35869 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35870 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35871 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35872 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35873 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35874 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35875 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35876 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35877 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35878 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35879 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35880 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35881 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35882 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35883 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35884 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35885 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35886 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35887 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35888 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35889 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35890 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35891 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35892 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35893 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35894 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35895 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35896 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35897 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35898 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35899 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35900 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35901 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35902 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35903 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35905 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35906 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35907 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35908 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35909 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35910 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35911 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35912 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35913 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35914 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35915 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35916 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35917 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35918 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35919 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35920 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35921 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35922 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35923 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35924 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35925 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35926 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35927 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35928 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35929 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35930 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35931 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35932 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35933 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35934 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35935 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35936 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35937 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35938 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
35939 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35940 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35941 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35942 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35943 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35944 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35945 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35946 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35947 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35948 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35949 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35950 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35951 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35952 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35953 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35954 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35955 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35956 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35957 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35958 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35959 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35960 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35961 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35962 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35963 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35964 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35965 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35966 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35967 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35968 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35969 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35970 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35971 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35972 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35973 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35974 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35975 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35976 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35977 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35978 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35979 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35980 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35981 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35982 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35983 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35984 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
35985 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35986 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
35987 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
35988 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
35989 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
35990 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
35991 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
35992 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35993 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35994 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35995 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35996 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35997 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
35998 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
35999 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
36000 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
36001 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36002 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36003 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
36004 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
36005 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36006 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36007 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
36008 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
36009 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
36010 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36011 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36012 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36013 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36014 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
36015 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
36016 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
36017 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
36018 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
36019 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
36020 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
36021 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
36022 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
36023 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
36024 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
36025 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
36026 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
36027 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
36028 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
36029 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
36030 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
36031 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
36032 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
36033 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
36034 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
36035 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36036 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36037 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36038 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
36039 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
36040 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
36041 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
36042 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
36043 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
36044 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
36045 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
36046 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
36047 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
36048 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
36049 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
36050 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36051 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
36052 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
36053 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36054 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36055 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
36056 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
36057 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
36058 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
36059 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
36060 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
36061 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
36062 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
36063 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
36064 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
36065 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36066 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36067 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36068 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
36069 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
36070 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
36071 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
36072 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
36073 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
36074 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
36075 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
36076 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
36077 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
36078 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
36079 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
36080 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
36081 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
36082 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
36083 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
36084 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
36085 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
36086 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
36087 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
36088 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
36089 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
36090 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
36091 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
36092 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36093 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
36094 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36095 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36096 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36097 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
36098 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36099 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
36100 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
36101 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
36102 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
36103 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
36104 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
36105 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
36106 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
36107 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
36108 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
36109 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
36110 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
36111 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
36112 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
36113 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
36114 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
36115 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
36116 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
36117 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
36118 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
36119 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
36120 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
36121 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
36122 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
36123 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
36124 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
36125 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
36126 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
36127 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
36128 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
36129 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
36130 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
36131 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
36132 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
36133 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
36134 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
36135 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
36136 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
36137 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
36138 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
36139 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
36140 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
36141 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
36142 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
36143 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
36144 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
36145 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
36146 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
36147 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
36148 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36149 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
36150 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
36151 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
36152 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
36153 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
36154 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
36155 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
36156 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
36157 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
36158 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
36159 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
36160 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
36161 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36162 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36163 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
36164 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
36165 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36166 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36167 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36168 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
36169 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
36170 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36171 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
36172 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36173 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
36174 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36175 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
36176 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36177 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
36178 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36179 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
36180 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
36181 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
36182 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36183 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36184 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36185 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36186 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36187 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36188 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36189 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36190 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36191 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
36192 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36193 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36194 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
36195 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36196 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36197 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36198 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36199 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36200 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36201 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36202 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36203 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36204 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36205 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
36206 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36207 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36208 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
36209 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
36210 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36211 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36212 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36213 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36214 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
36215 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
36216 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
36217 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36218 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
36219 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
36220 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
36221 { NULL, NULL, 0, NULL }
36222 };
36223
36224
36225 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
36226
36227 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
36228 return (void *)((wxClientDC *) ((wxPaintDC *) x));
36229 }
36230 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
36231 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
36232 }
36233 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
36234 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
36235 }
36236 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
36237 return (void *)((wxWindowDC *) ((wxClientDC *) x));
36238 }
36239 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
36240 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
36241 }
36242 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
36243 return (void *)((wxLocale *) ((wxPyLocale *) x));
36244 }
36245 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
36246 return (void *)((wxGDIObject *) ((wxIcon *) x));
36247 }
36248 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
36249 return (void *)((wxGDIObject *) ((wxPalette *) x));
36250 }
36251 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
36252 return (void *)((wxGDIObject *) ((wxPen *) x));
36253 }
36254 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
36255 return (void *)((wxGDIObject *) ((wxFont *) x));
36256 }
36257 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
36258 return (void *)((wxGDIObject *) ((wxCursor *) x));
36259 }
36260 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
36261 return (void *)((wxGDIObject *) ((wxBitmap *) x));
36262 }
36263 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
36264 return (void *)((wxGDIObject *) ((wxRegion *) x));
36265 }
36266 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
36267 return (void *)((wxGDIObject *) ((wxBrush *) x));
36268 }
36269 static void *_p_wxGCDCTo_p_wxDC(void *x) {
36270 return (void *)((wxDC *) ((wxGCDC *) x));
36271 }
36272 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36273 return (void *)((wxDC *) ((wxScreenDC *) x));
36274 }
36275 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
36276 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
36277 }
36278 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36279 return (void *)((wxDC *) ((wxMirrorDC *) x));
36280 }
36281 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36282 return (void *)((wxDC *) ((wxMemoryDC *) x));
36283 }
36284 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36285 return (void *)((wxDC *) ((wxWindowDC *) x));
36286 }
36287 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36288 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36289 }
36290 static void *_p_wxClientDCTo_p_wxDC(void *x) {
36291 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
36292 }
36293 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
36294 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36295 }
36296 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36297 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36298 }
36299 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
36300 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
36301 }
36302 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36303 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36304 }
36305 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36306 return (void *)((wxDC *) ((wxPrinterDC *) x));
36307 }
36308 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36309 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36310 }
36311 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36312 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36313 }
36314 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36315 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36316 }
36317 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36318 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36319 }
36320 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36321 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36322 }
36323 static void *_p_wxPenTo_p_wxObject(void *x) {
36324 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36325 }
36326 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36327 return (void *)((wxObject *) ((wxRegionIterator *) x));
36328 }
36329 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36330 return (void *)((wxObject *) ((wxSizerItem *) x));
36331 }
36332 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36333 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36334 }
36335 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36336 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36337 }
36338 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36339 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36340 }
36341 static void *_p_wxIconTo_p_wxObject(void *x) {
36342 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36343 }
36344 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36345 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36346 }
36347 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36348 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36349 }
36350 static void *_p_wxSizerTo_p_wxObject(void *x) {
36351 return (void *)((wxObject *) ((wxSizer *) x));
36352 }
36353 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36354 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36355 }
36356 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36357 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36358 }
36359 static void *_p_wxEventTo_p_wxObject(void *x) {
36360 return (void *)((wxObject *) ((wxEvent *) x));
36361 }
36362 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36363 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36364 }
36365 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36366 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36367 }
36368 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36369 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36370 }
36371 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36372 return (void *)((wxObject *) ((wxPseudoDC *) x));
36373 }
36374 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36375 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36376 }
36377 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36378 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36379 }
36380 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36381 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36382 }
36383 static void *_p_wxDCTo_p_wxObject(void *x) {
36384 return (void *)((wxObject *) ((wxDC *) x));
36385 }
36386 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36387 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36388 }
36389 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36390 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36391 }
36392 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36393 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36394 }
36395 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36396 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36397 }
36398 static void *_p_wxControlTo_p_wxObject(void *x) {
36399 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36400 }
36401 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36402 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36403 }
36404 static void *_p_wxClientDCTo_p_wxObject(void *x) {
36405 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
36406 }
36407 static void *_p_wxFSFileTo_p_wxObject(void *x) {
36408 return (void *)((wxObject *) ((wxFSFile *) x));
36409 }
36410 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36411 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36412 }
36413 static void *_p_wxRegionTo_p_wxObject(void *x) {
36414 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36415 }
36416 static void *_p_wxPySizerTo_p_wxObject(void *x) {
36417 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36418 }
36419 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36420 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36421 }
36422 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36423 return (void *)((wxObject *) ((wxGDIObject *) x));
36424 }
36425 static void *_p_wxEffectsTo_p_wxObject(void *x) {
36426 return (void *)((wxObject *) ((wxEffects *) x));
36427 }
36428 static void *_p_wxPyEventTo_p_wxObject(void *x) {
36429 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36430 }
36431 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36432 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36433 }
36434 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36435 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36436 }
36437 static void *_p_wxShowEventTo_p_wxObject(void *x) {
36438 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36439 }
36440 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36441 return (void *)((wxObject *) ((wxMenuItem *) x));
36442 }
36443 static void *_p_wxDateEventTo_p_wxObject(void *x) {
36444 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36445 }
36446 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36447 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36448 }
36449 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36450 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36451 }
36452 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36453 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36454 }
36455 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36456 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36457 }
36458 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36459 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36460 }
36461 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36462 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36463 }
36464 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36465 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36466 }
36467 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36468 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36469 }
36470 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36471 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36472 }
36473 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36474 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36475 }
36476 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36477 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36478 }
36479 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36480 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36481 }
36482 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36483 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36484 }
36485 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36486 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36487 }
36488 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36489 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36490 }
36491 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36492 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36493 }
36494 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36495 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36496 }
36497 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36498 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36499 }
36500 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36501 return (void *)((wxObject *) ((wxImageHandler *) x));
36502 }
36503 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36504 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36505 }
36506 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36507 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36508 }
36509 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36510 return (void *)((wxObject *) ((wxEvtHandler *) x));
36511 }
36512 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36513 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36514 }
36515 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36516 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36517 }
36518 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
36519 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36520 }
36521 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
36522 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
36523 }
36524 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36525 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36526 }
36527 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36528 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36529 }
36530 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36531 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36532 }
36533 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36534 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36535 }
36536 static void *_p_wxImageTo_p_wxObject(void *x) {
36537 return (void *)((wxObject *) ((wxImage *) x));
36538 }
36539 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36540 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36541 }
36542 static void *_p_wxPaletteTo_p_wxObject(void *x) {
36543 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36544 }
36545 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
36546 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
36547 }
36548 static void *_p_wxImageListTo_p_wxObject(void *x) {
36549 return (void *)((wxObject *) ((wxImageList *) x));
36550 }
36551 static void *_p_wxGCDCTo_p_wxObject(void *x) {
36552 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36553 }
36554 static void *_p_wxCursorTo_p_wxObject(void *x) {
36555 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36556 }
36557 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36558 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36559 }
36560 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36561 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36562 }
36563 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36564 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36565 }
36566 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36567 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36568 }
36569 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36570 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36571 }
36572 static void *_p_wxWindowTo_p_wxObject(void *x) {
36573 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36574 }
36575 static void *_p_wxMenuTo_p_wxObject(void *x) {
36576 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36577 }
36578 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36579 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36580 }
36581 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36582 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36583 }
36584 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36585 return (void *)((wxObject *) ((wxFileSystem *) x));
36586 }
36587 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36588 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36589 }
36590 static void *_p_wxMaskTo_p_wxObject(void *x) {
36591 return (void *)((wxObject *) ((wxMask *) x));
36592 }
36593 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36594 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36595 }
36596 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36597 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36598 }
36599 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36600 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36601 }
36602 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36603 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36604 }
36605 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36606 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36607 }
36608 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36609 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36610 }
36611 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36612 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36613 }
36614 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36615 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36616 }
36617 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36618 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36619 }
36620 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36621 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36622 }
36623 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36624 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36625 }
36626 static void *_p_wxFontTo_p_wxObject(void *x) {
36627 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36628 }
36629 static void *_p_wxBrushTo_p_wxObject(void *x) {
36630 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36631 }
36632 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36633 return (void *)((wxObject *) ((wxMetaFile *) x));
36634 }
36635 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36636 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36637 }
36638 static void *_p_wxColourTo_p_wxObject(void *x) {
36639 return (void *)((wxObject *) ((wxColour *) x));
36640 }
36641 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36642 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36643 }
36644 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36645 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36646 }
36647 static void *_p_wxControlTo_p_wxWindow(void *x) {
36648 return (void *)((wxWindow *) ((wxControl *) x));
36649 }
36650 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36651 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36652 }
36653 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36654 return (void *)((wxWindow *) ((wxMenuBar *) x));
36655 }
36656 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36657 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36658 }
36659 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36660 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36661 }
36662 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36663 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36664 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36665 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};
36666 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36667 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36668 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36669 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36670 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
36671 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36672 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36673 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
36674 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36675 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36676 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36677 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36678 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36679 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36680 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36681 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36682 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36683 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36684 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36685 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36686 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
36687 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36688 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36689 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36690 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36691 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36692 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36693 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36694 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36695 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36696 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36697 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36698 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36699 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36700 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36701 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36702 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36703 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36704 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36705 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36706 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36707 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36708 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36709 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36710 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36711 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36712 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36713 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36714 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36715 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36716 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36717 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36718 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36719 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36720 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36721 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36722 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36723 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36724 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36725 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36726 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36727 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36728 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36729 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36730 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36731 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36732 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36733 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36734 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36735 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36736 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36737 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36738 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36739 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36740 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36741 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36742 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36743 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36744 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36745 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36746 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36747 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36748 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36749 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36750 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36751 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36752 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36753 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36754 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36755 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36756 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36757 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36758 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36759 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36760 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36761 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36762 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36763 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36764 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36765 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36766 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36767 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36768 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36769 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36770 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36771 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36772 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36773 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36774 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36775 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36776 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36777 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36778 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36779 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36780 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36781 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36782 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36783 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36784 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36785 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36786 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36787 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36788 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36789 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36790 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36791 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36792 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36793 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36794 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36795 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36796 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36797 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36798 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36799 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36800 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36801 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36802 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36803 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36804 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36805 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36806 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36807 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36808 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36809 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36810 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36811 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36812 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36813 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36814 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36815 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36816 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36817 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36818 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36819 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36820
36821 static swig_type_info *swig_type_initial[] = {
36822 &_swigt__p_buffer,
36823 &_swigt__p_char,
36824 &_swigt__p_double,
36825 &_swigt__p_form_ops_t,
36826 &_swigt__p_int,
36827 &_swigt__p_unsigned_char,
36828 &_swigt__p_unsigned_int,
36829 &_swigt__p_unsigned_long,
36830 &_swigt__p_void,
36831 &_swigt__p_wxANIHandler,
36832 &_swigt__p_wxAcceleratorTable,
36833 &_swigt__p_wxActivateEvent,
36834 &_swigt__p_wxAlphaPixelData,
36835 &_swigt__p_wxAlphaPixelData_Accessor,
36836 &_swigt__p_wxAutoBufferedPaintDC,
36837 &_swigt__p_wxBMPHandler,
36838 &_swigt__p_wxBitmap,
36839 &_swigt__p_wxBoxSizer,
36840 &_swigt__p_wxBrush,
36841 &_swigt__p_wxBrushList,
36842 &_swigt__p_wxBufferedDC,
36843 &_swigt__p_wxBufferedPaintDC,
36844 &_swigt__p_wxCURHandler,
36845 &_swigt__p_wxChar,
36846 &_swigt__p_wxChildFocusEvent,
36847 &_swigt__p_wxClientDC,
36848 &_swigt__p_wxClipboardTextEvent,
36849 &_swigt__p_wxCloseEvent,
36850 &_swigt__p_wxColor,
36851 &_swigt__p_wxColour,
36852 &_swigt__p_wxColourDatabase,
36853 &_swigt__p_wxCommandEvent,
36854 &_swigt__p_wxContextMenuEvent,
36855 &_swigt__p_wxControl,
36856 &_swigt__p_wxControlWithItems,
36857 &_swigt__p_wxCursor,
36858 &_swigt__p_wxDC,
36859 &_swigt__p_wxDCOverlay,
36860 &_swigt__p_wxDash,
36861 &_swigt__p_wxDateEvent,
36862 &_swigt__p_wxDisplayChangedEvent,
36863 &_swigt__p_wxDropFilesEvent,
36864 &_swigt__p_wxDuplexMode,
36865 &_swigt__p_wxEffects,
36866 &_swigt__p_wxEncodingConverter,
36867 &_swigt__p_wxEraseEvent,
36868 &_swigt__p_wxEvent,
36869 &_swigt__p_wxEvtHandler,
36870 &_swigt__p_wxFSFile,
36871 &_swigt__p_wxFileSystem,
36872 &_swigt__p_wxFlexGridSizer,
36873 &_swigt__p_wxFocusEvent,
36874 &_swigt__p_wxFont,
36875 &_swigt__p_wxFontList,
36876 &_swigt__p_wxFontMapper,
36877 &_swigt__p_wxGBSizerItem,
36878 &_swigt__p_wxGCDC,
36879 &_swigt__p_wxGDIObjListBase,
36880 &_swigt__p_wxGDIObject,
36881 &_swigt__p_wxGIFHandler,
36882 &_swigt__p_wxGraphicsContext,
36883 &_swigt__p_wxGraphicsPath,
36884 &_swigt__p_wxGridBagSizer,
36885 &_swigt__p_wxGridSizer,
36886 &_swigt__p_wxHeaderButtonParams,
36887 &_swigt__p_wxICOHandler,
36888 &_swigt__p_wxIcon,
36889 &_swigt__p_wxIconBundle,
36890 &_swigt__p_wxIconLocation,
36891 &_swigt__p_wxIconizeEvent,
36892 &_swigt__p_wxIdleEvent,
36893 &_swigt__p_wxImage,
36894 &_swigt__p_wxImageHandler,
36895 &_swigt__p_wxImageList,
36896 &_swigt__p_wxIndividualLayoutConstraint,
36897 &_swigt__p_wxInitDialogEvent,
36898 &_swigt__p_wxJPEGHandler,
36899 &_swigt__p_wxKeyEvent,
36900 &_swigt__p_wxLanguageInfo,
36901 &_swigt__p_wxLayoutConstraints,
36902 &_swigt__p_wxLocale,
36903 &_swigt__p_wxMask,
36904 &_swigt__p_wxMaximizeEvent,
36905 &_swigt__p_wxMemoryDC,
36906 &_swigt__p_wxMenu,
36907 &_swigt__p_wxMenuBar,
36908 &_swigt__p_wxMenuEvent,
36909 &_swigt__p_wxMenuItem,
36910 &_swigt__p_wxMetaFile,
36911 &_swigt__p_wxMetaFileDC,
36912 &_swigt__p_wxMirrorDC,
36913 &_swigt__p_wxMouseCaptureChangedEvent,
36914 &_swigt__p_wxMouseCaptureLostEvent,
36915 &_swigt__p_wxMouseEvent,
36916 &_swigt__p_wxMoveEvent,
36917 &_swigt__p_wxNativeEncodingInfo,
36918 &_swigt__p_wxNativeFontInfo,
36919 &_swigt__p_wxNativePixelData,
36920 &_swigt__p_wxNativePixelData_Accessor,
36921 &_swigt__p_wxNavigationKeyEvent,
36922 &_swigt__p_wxNcPaintEvent,
36923 &_swigt__p_wxNotifyEvent,
36924 &_swigt__p_wxObject,
36925 &_swigt__p_wxOverlay,
36926 &_swigt__p_wxPCXHandler,
36927 &_swigt__p_wxPNGHandler,
36928 &_swigt__p_wxPNMHandler,
36929 &_swigt__p_wxPaintDC,
36930 &_swigt__p_wxPaintEvent,
36931 &_swigt__p_wxPalette,
36932 &_swigt__p_wxPaletteChangedEvent,
36933 &_swigt__p_wxPaperSize,
36934 &_swigt__p_wxPen,
36935 &_swigt__p_wxPenList,
36936 &_swigt__p_wxPixelDataBase,
36937 &_swigt__p_wxPoint,
36938 &_swigt__p_wxPoint2D,
36939 &_swigt__p_wxPostScriptDC,
36940 &_swigt__p_wxPrintData,
36941 &_swigt__p_wxPrinterDC,
36942 &_swigt__p_wxPseudoDC,
36943 &_swigt__p_wxPyApp,
36944 &_swigt__p_wxPyCommandEvent,
36945 &_swigt__p_wxPyEvent,
36946 &_swigt__p_wxPyFontEnumerator,
36947 &_swigt__p_wxPyImageHandler,
36948 &_swigt__p_wxPyLocale,
36949 &_swigt__p_wxPySizer,
36950 &_swigt__p_wxPyValidator,
36951 &_swigt__p_wxQueryNewPaletteEvent,
36952 &_swigt__p_wxRect,
36953 &_swigt__p_wxRegion,
36954 &_swigt__p_wxRegionIterator,
36955 &_swigt__p_wxRendererNative,
36956 &_swigt__p_wxRendererVersion,
36957 &_swigt__p_wxScreenDC,
36958 &_swigt__p_wxScrollEvent,
36959 &_swigt__p_wxScrollWinEvent,
36960 &_swigt__p_wxSetCursorEvent,
36961 &_swigt__p_wxShowEvent,
36962 &_swigt__p_wxSize,
36963 &_swigt__p_wxSizeEvent,
36964 &_swigt__p_wxSizer,
36965 &_swigt__p_wxSizerItem,
36966 &_swigt__p_wxSplitterRenderParams,
36967 &_swigt__p_wxStaticBoxSizer,
36968 &_swigt__p_wxStdDialogButtonSizer,
36969 &_swigt__p_wxStockGDI,
36970 &_swigt__p_wxString,
36971 &_swigt__p_wxSysColourChangedEvent,
36972 &_swigt__p_wxTIFFHandler,
36973 &_swigt__p_wxUpdateUIEvent,
36974 &_swigt__p_wxValidator,
36975 &_swigt__p_wxWindow,
36976 &_swigt__p_wxWindowCreateEvent,
36977 &_swigt__p_wxWindowDC,
36978 &_swigt__p_wxWindowDestroyEvent,
36979 &_swigt__p_wxXPMHandler,
36980 };
36981
36982 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36983 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36984 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
36985 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
36986 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
36987 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
36988 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
36989 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
36990 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
36991 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
36992 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
36993 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36994 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
36995 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
36996 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
36997 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}};
36998 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
36999 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
37000 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}};
37001 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
37002 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
37003 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
37004 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
37005 static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}};
37006 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
37007 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
37008 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
37009 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
37010 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
37011 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
37012 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
37013 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
37014 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
37015 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}};
37016 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}};
37017 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
37018 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
37019 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
37020 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
37021 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
37022 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
37023 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
37024 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
37025 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
37026 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}};
37027 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
37028 static swig_cast_info _swigc__p_wxMemoryDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxMemoryDC, 0, 0}, {&_swigt__p_wxMemoryDC, 0, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxMemoryDC, 0, 0},{0, 0, 0, 0}};
37029 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
37030 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
37031 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
37032 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
37033 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
37034 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
37035 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
37036 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
37037 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
37038 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
37039 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
37040 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
37041 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37042 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37043 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
37044 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
37045 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
37046 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
37047 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
37048 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37049 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37050 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
37051 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
37052 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37053 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37054 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37055 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37056 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37057 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37058 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
37059 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
37060 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
37061 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
37062 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
37063 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
37064 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
37065 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
37066 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
37067 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
37068 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
37069 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
37070 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37071 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37072 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37073 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
37074 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
37075 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
37076 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
37077 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37078 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37079 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
37080 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
37081 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
37082 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
37083 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
37084 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
37085 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
37086 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
37087 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
37088 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
37089 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
37090 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
37091 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
37092 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
37093 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
37094 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37095 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37096 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
37097 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
37098 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37099 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37100 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
37101 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
37102 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
37103 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
37104 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37105 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37106 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
37107 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37108 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37109 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
37110 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
37111 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
37112 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_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_wxCURHandler, _p_wxCURHandlerTo_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_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_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}};
37113 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
37114 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37115 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
37116 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
37117 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
37118 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
37119 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}};
37120 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
37121 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
37122 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
37123 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
37124 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
37125 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
37126 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
37127 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
37128 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
37129 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
37130 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
37131 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
37132 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
37133 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
37134 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
37135 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
37136 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
37137 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
37138 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}};
37139 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}};
37140
37141 static swig_cast_info *swig_cast_initial[] = {
37142 _swigc__p_buffer,
37143 _swigc__p_char,
37144 _swigc__p_double,
37145 _swigc__p_form_ops_t,
37146 _swigc__p_int,
37147 _swigc__p_unsigned_char,
37148 _swigc__p_unsigned_int,
37149 _swigc__p_unsigned_long,
37150 _swigc__p_void,
37151 _swigc__p_wxANIHandler,
37152 _swigc__p_wxAcceleratorTable,
37153 _swigc__p_wxActivateEvent,
37154 _swigc__p_wxAlphaPixelData,
37155 _swigc__p_wxAlphaPixelData_Accessor,
37156 _swigc__p_wxAutoBufferedPaintDC,
37157 _swigc__p_wxBMPHandler,
37158 _swigc__p_wxBitmap,
37159 _swigc__p_wxBoxSizer,
37160 _swigc__p_wxBrush,
37161 _swigc__p_wxBrushList,
37162 _swigc__p_wxBufferedDC,
37163 _swigc__p_wxBufferedPaintDC,
37164 _swigc__p_wxCURHandler,
37165 _swigc__p_wxChar,
37166 _swigc__p_wxChildFocusEvent,
37167 _swigc__p_wxClientDC,
37168 _swigc__p_wxClipboardTextEvent,
37169 _swigc__p_wxCloseEvent,
37170 _swigc__p_wxColor,
37171 _swigc__p_wxColour,
37172 _swigc__p_wxColourDatabase,
37173 _swigc__p_wxCommandEvent,
37174 _swigc__p_wxContextMenuEvent,
37175 _swigc__p_wxControl,
37176 _swigc__p_wxControlWithItems,
37177 _swigc__p_wxCursor,
37178 _swigc__p_wxDC,
37179 _swigc__p_wxDCOverlay,
37180 _swigc__p_wxDash,
37181 _swigc__p_wxDateEvent,
37182 _swigc__p_wxDisplayChangedEvent,
37183 _swigc__p_wxDropFilesEvent,
37184 _swigc__p_wxDuplexMode,
37185 _swigc__p_wxEffects,
37186 _swigc__p_wxEncodingConverter,
37187 _swigc__p_wxEraseEvent,
37188 _swigc__p_wxEvent,
37189 _swigc__p_wxEvtHandler,
37190 _swigc__p_wxFSFile,
37191 _swigc__p_wxFileSystem,
37192 _swigc__p_wxFlexGridSizer,
37193 _swigc__p_wxFocusEvent,
37194 _swigc__p_wxFont,
37195 _swigc__p_wxFontList,
37196 _swigc__p_wxFontMapper,
37197 _swigc__p_wxGBSizerItem,
37198 _swigc__p_wxGCDC,
37199 _swigc__p_wxGDIObjListBase,
37200 _swigc__p_wxGDIObject,
37201 _swigc__p_wxGIFHandler,
37202 _swigc__p_wxGraphicsContext,
37203 _swigc__p_wxGraphicsPath,
37204 _swigc__p_wxGridBagSizer,
37205 _swigc__p_wxGridSizer,
37206 _swigc__p_wxHeaderButtonParams,
37207 _swigc__p_wxICOHandler,
37208 _swigc__p_wxIcon,
37209 _swigc__p_wxIconBundle,
37210 _swigc__p_wxIconLocation,
37211 _swigc__p_wxIconizeEvent,
37212 _swigc__p_wxIdleEvent,
37213 _swigc__p_wxImage,
37214 _swigc__p_wxImageHandler,
37215 _swigc__p_wxImageList,
37216 _swigc__p_wxIndividualLayoutConstraint,
37217 _swigc__p_wxInitDialogEvent,
37218 _swigc__p_wxJPEGHandler,
37219 _swigc__p_wxKeyEvent,
37220 _swigc__p_wxLanguageInfo,
37221 _swigc__p_wxLayoutConstraints,
37222 _swigc__p_wxLocale,
37223 _swigc__p_wxMask,
37224 _swigc__p_wxMaximizeEvent,
37225 _swigc__p_wxMemoryDC,
37226 _swigc__p_wxMenu,
37227 _swigc__p_wxMenuBar,
37228 _swigc__p_wxMenuEvent,
37229 _swigc__p_wxMenuItem,
37230 _swigc__p_wxMetaFile,
37231 _swigc__p_wxMetaFileDC,
37232 _swigc__p_wxMirrorDC,
37233 _swigc__p_wxMouseCaptureChangedEvent,
37234 _swigc__p_wxMouseCaptureLostEvent,
37235 _swigc__p_wxMouseEvent,
37236 _swigc__p_wxMoveEvent,
37237 _swigc__p_wxNativeEncodingInfo,
37238 _swigc__p_wxNativeFontInfo,
37239 _swigc__p_wxNativePixelData,
37240 _swigc__p_wxNativePixelData_Accessor,
37241 _swigc__p_wxNavigationKeyEvent,
37242 _swigc__p_wxNcPaintEvent,
37243 _swigc__p_wxNotifyEvent,
37244 _swigc__p_wxObject,
37245 _swigc__p_wxOverlay,
37246 _swigc__p_wxPCXHandler,
37247 _swigc__p_wxPNGHandler,
37248 _swigc__p_wxPNMHandler,
37249 _swigc__p_wxPaintDC,
37250 _swigc__p_wxPaintEvent,
37251 _swigc__p_wxPalette,
37252 _swigc__p_wxPaletteChangedEvent,
37253 _swigc__p_wxPaperSize,
37254 _swigc__p_wxPen,
37255 _swigc__p_wxPenList,
37256 _swigc__p_wxPixelDataBase,
37257 _swigc__p_wxPoint,
37258 _swigc__p_wxPoint2D,
37259 _swigc__p_wxPostScriptDC,
37260 _swigc__p_wxPrintData,
37261 _swigc__p_wxPrinterDC,
37262 _swigc__p_wxPseudoDC,
37263 _swigc__p_wxPyApp,
37264 _swigc__p_wxPyCommandEvent,
37265 _swigc__p_wxPyEvent,
37266 _swigc__p_wxPyFontEnumerator,
37267 _swigc__p_wxPyImageHandler,
37268 _swigc__p_wxPyLocale,
37269 _swigc__p_wxPySizer,
37270 _swigc__p_wxPyValidator,
37271 _swigc__p_wxQueryNewPaletteEvent,
37272 _swigc__p_wxRect,
37273 _swigc__p_wxRegion,
37274 _swigc__p_wxRegionIterator,
37275 _swigc__p_wxRendererNative,
37276 _swigc__p_wxRendererVersion,
37277 _swigc__p_wxScreenDC,
37278 _swigc__p_wxScrollEvent,
37279 _swigc__p_wxScrollWinEvent,
37280 _swigc__p_wxSetCursorEvent,
37281 _swigc__p_wxShowEvent,
37282 _swigc__p_wxSize,
37283 _swigc__p_wxSizeEvent,
37284 _swigc__p_wxSizer,
37285 _swigc__p_wxSizerItem,
37286 _swigc__p_wxSplitterRenderParams,
37287 _swigc__p_wxStaticBoxSizer,
37288 _swigc__p_wxStdDialogButtonSizer,
37289 _swigc__p_wxStockGDI,
37290 _swigc__p_wxString,
37291 _swigc__p_wxSysColourChangedEvent,
37292 _swigc__p_wxTIFFHandler,
37293 _swigc__p_wxUpdateUIEvent,
37294 _swigc__p_wxValidator,
37295 _swigc__p_wxWindow,
37296 _swigc__p_wxWindowCreateEvent,
37297 _swigc__p_wxWindowDC,
37298 _swigc__p_wxWindowDestroyEvent,
37299 _swigc__p_wxXPMHandler,
37300 };
37301
37302
37303 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37304
37305 static swig_const_info swig_const_table[] = {
37306 {0, 0, 0, 0.0, 0, 0}};
37307
37308 #ifdef __cplusplus
37309 }
37310 #endif
37311 /* -----------------------------------------------------------------------------
37312 * Type initialization:
37313 * This problem is tough by the requirement that no dynamic
37314 * memory is used. Also, since swig_type_info structures store pointers to
37315 * swig_cast_info structures and swig_cast_info structures store pointers back
37316 * to swig_type_info structures, we need some lookup code at initialization.
37317 * The idea is that swig generates all the structures that are needed.
37318 * The runtime then collects these partially filled structures.
37319 * The SWIG_InitializeModule function takes these initial arrays out of
37320 * swig_module, and does all the lookup, filling in the swig_module.types
37321 * array with the correct data and linking the correct swig_cast_info
37322 * structures together.
37323 *
37324 * The generated swig_type_info structures are assigned staticly to an initial
37325 * array. We just loop though that array, and handle each type individually.
37326 * First we lookup if this type has been already loaded, and if so, use the
37327 * loaded structure instead of the generated one. Then we have to fill in the
37328 * cast linked list. The cast data is initially stored in something like a
37329 * two-dimensional array. Each row corresponds to a type (there are the same
37330 * number of rows as there are in the swig_type_initial array). Each entry in
37331 * a column is one of the swig_cast_info structures for that type.
37332 * The cast_initial array is actually an array of arrays, because each row has
37333 * a variable number of columns. So to actually build the cast linked list,
37334 * we find the array of casts associated with the type, and loop through it
37335 * adding the casts to the list. The one last trick we need to do is making
37336 * sure the type pointer in the swig_cast_info struct is correct.
37337 *
37338 * First off, we lookup the cast->type name to see if it is already loaded.
37339 * There are three cases to handle:
37340 * 1) If the cast->type has already been loaded AND the type we are adding
37341 * casting info to has not been loaded (it is in this module), THEN we
37342 * replace the cast->type pointer with the type pointer that has already
37343 * been loaded.
37344 * 2) If BOTH types (the one we are adding casting info to, and the
37345 * cast->type) are loaded, THEN the cast info has already been loaded by
37346 * the previous module so we just ignore it.
37347 * 3) Finally, if cast->type has not already been loaded, then we add that
37348 * swig_cast_info to the linked list (because the cast->type) pointer will
37349 * be correct.
37350 * ----------------------------------------------------------------------------- */
37351
37352 #ifdef __cplusplus
37353 extern "C" {
37354 #if 0
37355 } /* c-mode */
37356 #endif
37357 #endif
37358
37359 #if 0
37360 #define SWIGRUNTIME_DEBUG
37361 #endif
37362
37363 SWIGRUNTIME void
37364 SWIG_InitializeModule(void *clientdata) {
37365 size_t i;
37366 swig_module_info *module_head;
37367 static int init_run = 0;
37368
37369 clientdata = clientdata;
37370
37371 if (init_run) return;
37372 init_run = 1;
37373
37374 /* Initialize the swig_module */
37375 swig_module.type_initial = swig_type_initial;
37376 swig_module.cast_initial = swig_cast_initial;
37377
37378 /* Try and load any already created modules */
37379 module_head = SWIG_GetModule(clientdata);
37380 if (module_head) {
37381 swig_module.next = module_head->next;
37382 module_head->next = &swig_module;
37383 } else {
37384 /* This is the first module loaded */
37385 swig_module.next = &swig_module;
37386 SWIG_SetModule(clientdata, &swig_module);
37387 }
37388
37389 /* Now work on filling in swig_module.types */
37390 #ifdef SWIGRUNTIME_DEBUG
37391 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37392 #endif
37393 for (i = 0; i < swig_module.size; ++i) {
37394 swig_type_info *type = 0;
37395 swig_type_info *ret;
37396 swig_cast_info *cast;
37397
37398 #ifdef SWIGRUNTIME_DEBUG
37399 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37400 #endif
37401
37402 /* if there is another module already loaded */
37403 if (swig_module.next != &swig_module) {
37404 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37405 }
37406 if (type) {
37407 /* Overwrite clientdata field */
37408 #ifdef SWIGRUNTIME_DEBUG
37409 printf("SWIG_InitializeModule: found type %s\n", type->name);
37410 #endif
37411 if (swig_module.type_initial[i]->clientdata) {
37412 type->clientdata = swig_module.type_initial[i]->clientdata;
37413 #ifdef SWIGRUNTIME_DEBUG
37414 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37415 #endif
37416 }
37417 } else {
37418 type = swig_module.type_initial[i];
37419 }
37420
37421 /* Insert casting types */
37422 cast = swig_module.cast_initial[i];
37423 while (cast->type) {
37424 /* Don't need to add information already in the list */
37425 ret = 0;
37426 #ifdef SWIGRUNTIME_DEBUG
37427 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37428 #endif
37429 if (swig_module.next != &swig_module) {
37430 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37431 #ifdef SWIGRUNTIME_DEBUG
37432 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37433 #endif
37434 }
37435 if (ret) {
37436 if (type == swig_module.type_initial[i]) {
37437 #ifdef SWIGRUNTIME_DEBUG
37438 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37439 #endif
37440 cast->type = ret;
37441 ret = 0;
37442 } else {
37443 /* Check for casting already in the list */
37444 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37445 #ifdef SWIGRUNTIME_DEBUG
37446 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37447 #endif
37448 if (!ocast) ret = 0;
37449 }
37450 }
37451
37452 if (!ret) {
37453 #ifdef SWIGRUNTIME_DEBUG
37454 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37455 #endif
37456 if (type->cast) {
37457 type->cast->prev = cast;
37458 cast->next = type->cast;
37459 }
37460 type->cast = cast;
37461 }
37462 cast++;
37463 }
37464 /* Set entry in modules->types array equal to the type */
37465 swig_module.types[i] = type;
37466 }
37467 swig_module.types[i] = 0;
37468
37469 #ifdef SWIGRUNTIME_DEBUG
37470 printf("**** SWIG_InitializeModule: Cast List ******\n");
37471 for (i = 0; i < swig_module.size; ++i) {
37472 int j = 0;
37473 swig_cast_info *cast = swig_module.cast_initial[i];
37474 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37475 while (cast->type) {
37476 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37477 cast++;
37478 ++j;
37479 }
37480 printf("---- Total casts: %d\n",j);
37481 }
37482 printf("**** SWIG_InitializeModule: Cast List ******\n");
37483 #endif
37484 }
37485
37486 /* This function will propagate the clientdata field of type to
37487 * any new swig_type_info structures that have been added into the list
37488 * of equivalent types. It is like calling
37489 * SWIG_TypeClientData(type, clientdata) a second time.
37490 */
37491 SWIGRUNTIME void
37492 SWIG_PropagateClientData(void) {
37493 size_t i;
37494 swig_cast_info *equiv;
37495 static int init_run = 0;
37496
37497 if (init_run) return;
37498 init_run = 1;
37499
37500 for (i = 0; i < swig_module.size; i++) {
37501 if (swig_module.types[i]->clientdata) {
37502 equiv = swig_module.types[i]->cast;
37503 while (equiv) {
37504 if (!equiv->converter) {
37505 if (equiv->type && !equiv->type->clientdata)
37506 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37507 }
37508 equiv = equiv->next;
37509 }
37510 }
37511 }
37512 }
37513
37514 #ifdef __cplusplus
37515 #if 0
37516 {
37517 /* c-mode */
37518 #endif
37519 }
37520 #endif
37521
37522
37523
37524 #ifdef __cplusplus
37525 extern "C" {
37526 #endif
37527
37528 /* Python-specific SWIG API */
37529 #define SWIG_newvarlink() SWIG_Python_newvarlink()
37530 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37531 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37532
37533 /* -----------------------------------------------------------------------------
37534 * global variable support code.
37535 * ----------------------------------------------------------------------------- */
37536
37537 typedef struct swig_globalvar {
37538 char *name; /* Name of global variable */
37539 PyObject *(*get_attr)(void); /* Return the current value */
37540 int (*set_attr)(PyObject *); /* Set the value */
37541 struct swig_globalvar *next;
37542 } swig_globalvar;
37543
37544 typedef struct swig_varlinkobject {
37545 PyObject_HEAD
37546 swig_globalvar *vars;
37547 } swig_varlinkobject;
37548
37549 SWIGINTERN PyObject *
37550 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37551 return PyString_FromString("<Swig global variables>");
37552 }
37553
37554 SWIGINTERN PyObject *
37555 swig_varlink_str(swig_varlinkobject *v) {
37556 PyObject *str = PyString_FromString("(");
37557 swig_globalvar *var;
37558 for (var = v->vars; var; var=var->next) {
37559 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37560 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37561 }
37562 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37563 return str;
37564 }
37565
37566 SWIGINTERN int
37567 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37568 PyObject *str = swig_varlink_str(v);
37569 fprintf(fp,"Swig global variables ");
37570 fprintf(fp,"%s\n", PyString_AsString(str));
37571 Py_DECREF(str);
37572 return 0;
37573 }
37574
37575 SWIGINTERN void
37576 swig_varlink_dealloc(swig_varlinkobject *v) {
37577 swig_globalvar *var = v->vars;
37578 while (var) {
37579 swig_globalvar *n = var->next;
37580 free(var->name);
37581 free(var);
37582 var = n;
37583 }
37584 }
37585
37586 SWIGINTERN PyObject *
37587 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37588 PyObject *res = NULL;
37589 swig_globalvar *var = v->vars;
37590 while (var) {
37591 if (strcmp(var->name,n) == 0) {
37592 res = (*var->get_attr)();
37593 break;
37594 }
37595 var = var->next;
37596 }
37597 if (res == NULL && !PyErr_Occurred()) {
37598 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37599 }
37600 return res;
37601 }
37602
37603 SWIGINTERN int
37604 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37605 int res = 1;
37606 swig_globalvar *var = v->vars;
37607 while (var) {
37608 if (strcmp(var->name,n) == 0) {
37609 res = (*var->set_attr)(p);
37610 break;
37611 }
37612 var = var->next;
37613 }
37614 if (res == 1 && !PyErr_Occurred()) {
37615 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37616 }
37617 return res;
37618 }
37619
37620 SWIGINTERN PyTypeObject*
37621 swig_varlink_type(void) {
37622 static char varlink__doc__[] = "Swig var link object";
37623 static PyTypeObject varlink_type;
37624 static int type_init = 0;
37625 if (!type_init) {
37626 const PyTypeObject tmp
37627 = {
37628 PyObject_HEAD_INIT(NULL)
37629 0, /* Number of items in variable part (ob_size) */
37630 (char *)"swigvarlink", /* Type name (tp_name) */
37631 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37632 0, /* Itemsize (tp_itemsize) */
37633 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37634 (printfunc) swig_varlink_print, /* Print (tp_print) */
37635 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37636 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37637 0, /* tp_compare */
37638 (reprfunc) swig_varlink_repr, /* tp_repr */
37639 0, /* tp_as_number */
37640 0, /* tp_as_sequence */
37641 0, /* tp_as_mapping */
37642 0, /* tp_hash */
37643 0, /* tp_call */
37644 (reprfunc)swig_varlink_str, /* tp_str */
37645 0, /* tp_getattro */
37646 0, /* tp_setattro */
37647 0, /* tp_as_buffer */
37648 0, /* tp_flags */
37649 varlink__doc__, /* tp_doc */
37650 0, /* tp_traverse */
37651 0, /* tp_clear */
37652 0, /* tp_richcompare */
37653 0, /* tp_weaklistoffset */
37654 #if PY_VERSION_HEX >= 0x02020000
37655 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37656 #endif
37657 #if PY_VERSION_HEX >= 0x02030000
37658 0, /* tp_del */
37659 #endif
37660 #ifdef COUNT_ALLOCS
37661 0,0,0,0 /* tp_alloc -> tp_next */
37662 #endif
37663 };
37664 varlink_type = tmp;
37665 varlink_type.ob_type = &PyType_Type;
37666 type_init = 1;
37667 }
37668 return &varlink_type;
37669 }
37670
37671 /* Create a variable linking object for use later */
37672 SWIGINTERN PyObject *
37673 SWIG_Python_newvarlink(void) {
37674 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37675 if (result) {
37676 result->vars = 0;
37677 }
37678 return ((PyObject*) result);
37679 }
37680
37681 SWIGINTERN void
37682 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37683 swig_varlinkobject *v = (swig_varlinkobject *) p;
37684 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37685 if (gv) {
37686 size_t size = strlen(name)+1;
37687 gv->name = (char *)malloc(size);
37688 if (gv->name) {
37689 strncpy(gv->name,name,size);
37690 gv->get_attr = get_attr;
37691 gv->set_attr = set_attr;
37692 gv->next = v->vars;
37693 }
37694 }
37695 v->vars = gv;
37696 }
37697
37698 SWIGINTERN PyObject *
37699 SWIG_globals() {
37700 static PyObject *_SWIG_globals = 0;
37701 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37702 return _SWIG_globals;
37703 }
37704
37705 /* -----------------------------------------------------------------------------
37706 * constants/methods manipulation
37707 * ----------------------------------------------------------------------------- */
37708
37709 /* Install Constants */
37710 SWIGINTERN void
37711 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37712 PyObject *obj = 0;
37713 size_t i;
37714 for (i = 0; constants[i].type; ++i) {
37715 switch(constants[i].type) {
37716 case SWIG_PY_POINTER:
37717 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37718 break;
37719 case SWIG_PY_BINARY:
37720 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37721 break;
37722 default:
37723 obj = 0;
37724 break;
37725 }
37726 if (obj) {
37727 PyDict_SetItemString(d, constants[i].name, obj);
37728 Py_DECREF(obj);
37729 }
37730 }
37731 }
37732
37733 /* -----------------------------------------------------------------------------*/
37734 /* Fix SwigMethods to carry the callback ptrs when needed */
37735 /* -----------------------------------------------------------------------------*/
37736
37737 SWIGINTERN void
37738 SWIG_Python_FixMethods(PyMethodDef *methods,
37739 swig_const_info *const_table,
37740 swig_type_info **types,
37741 swig_type_info **types_initial) {
37742 size_t i;
37743 for (i = 0; methods[i].ml_name; ++i) {
37744 const char *c = methods[i].ml_doc;
37745 if (c && (c = strstr(c, "swig_ptr: "))) {
37746 int j;
37747 swig_const_info *ci = 0;
37748 const char *name = c + 10;
37749 for (j = 0; const_table[j].type; ++j) {
37750 if (strncmp(const_table[j].name, name,
37751 strlen(const_table[j].name)) == 0) {
37752 ci = &(const_table[j]);
37753 break;
37754 }
37755 }
37756 if (ci) {
37757 size_t shift = (ci->ptype) - types;
37758 swig_type_info *ty = types_initial[shift];
37759 size_t ldoc = (c - methods[i].ml_doc);
37760 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37761 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37762 if (ndoc) {
37763 char *buff = ndoc;
37764 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37765 if (ptr) {
37766 strncpy(buff, methods[i].ml_doc, ldoc);
37767 buff += ldoc;
37768 strncpy(buff, "swig_ptr: ", 10);
37769 buff += 10;
37770 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37771 methods[i].ml_doc = ndoc;
37772 }
37773 }
37774 }
37775 }
37776 }
37777 }
37778
37779 #ifdef __cplusplus
37780 }
37781 #endif
37782
37783 /* -----------------------------------------------------------------------------*
37784 * Partial Init method
37785 * -----------------------------------------------------------------------------*/
37786
37787 #ifdef __cplusplus
37788 extern "C"
37789 #endif
37790 SWIGEXPORT void SWIG_init(void) {
37791 PyObject *m, *d;
37792
37793 /* Fix SwigMethods to carry the callback ptrs when needed */
37794 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37795
37796 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37797 d = PyModule_GetDict(m);
37798
37799 SWIG_InitializeModule(0);
37800 SWIG_InstallConstants(d,swig_const_table);
37801
37802
37803 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37804 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37805 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37806 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37807 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37808 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37809 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37810 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37811 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37812 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37813 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37814 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37815 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37816 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37817 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37818 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37819 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37820 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37821 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37822 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37823 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37824 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37825 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37826 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37827 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37828 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37829 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37830 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37831 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37832 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37833 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37834 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37835 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37836 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37837 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37838 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37839 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37840 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37841 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37842 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37843 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37844 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37845 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37846 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37847 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37848 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37849 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37850 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37851 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37852 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37853 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37854 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37855 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37856 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37857 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37858 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37859 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37860 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37861 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37862 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37863 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37864 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37865 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37866 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37867 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37868 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37869 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37870 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37871 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37872 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37873 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37874 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37875 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37876 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37877 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37878 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37879 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37880 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37881 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37882 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37883 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37884 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37885 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37886 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37887 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37888 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37889 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37890 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37891 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37892 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37893 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37894 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37895 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37896 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37897 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37898 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37899 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37900 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37901 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37902 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37903 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37904 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37905 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37906 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37907 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37908 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37909 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37910 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37911 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37912 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37913 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37914 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37915 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37916 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37917 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37918 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37919 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37920 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37921 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37922 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37923 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37924 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37925 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37926 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37927 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37928 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37929 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37930 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37931 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37932 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37933 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37934 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37935
37936 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37937
37938 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37939 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37940 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37941 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37942 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37943 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37944 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37945 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37946 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37947 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37948 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37949 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37950 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37951 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37952 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37953 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37954 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37955 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37956 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37957 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37958 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37959 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37960 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37961 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37962 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37963 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37964 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37965 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37966 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37967 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37968 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37969 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37970 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37971 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37972 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37973 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37974 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37975 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37976 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37977 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37978 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37979 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37980 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37981 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37982 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37983 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37984 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
37985 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
37986 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
37987 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
37988 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
37989 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
37990 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
37991 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
37992 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
37993 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
37994 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
37995 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
37996 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
37997 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
37998 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
37999 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
38000 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
38001 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
38002 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
38003 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
38004 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
38005 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
38006 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
38007 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
38008 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
38009 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
38010 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
38011 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
38012 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
38013 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
38014 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
38015 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
38016 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
38017 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
38018 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
38019 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
38020 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
38021 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
38022 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
38023 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
38024 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
38025 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
38026 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
38027 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
38028 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
38029 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
38030 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
38031 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
38032 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
38033 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
38034 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
38035 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
38036 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
38037 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
38038 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
38039 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
38040 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
38041 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
38042 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
38043 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
38044 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
38045 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
38046 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
38047 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
38048 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
38049 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
38050 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
38051 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
38052 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
38053 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
38054 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
38055 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
38056 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
38057 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
38058 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
38059 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
38060 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
38061 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
38062 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
38063 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
38064 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
38065 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
38066 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
38067 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
38068 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
38069 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
38070 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
38071 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
38072 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
38073 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
38074 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
38075 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
38076 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
38077 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
38078 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
38079 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
38080 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
38081 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
38082 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
38083 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
38084 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
38085 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
38086 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
38087 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
38088 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
38089 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
38090 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
38091 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
38092 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
38093 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
38094 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
38095 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
38096 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
38097 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
38098 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
38099 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
38100 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
38101 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
38102 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
38103 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
38104 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
38105 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
38106 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
38107 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
38108 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
38109 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
38110 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
38111 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
38112 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
38113 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
38114 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
38115 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
38116 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
38117 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
38118 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
38119 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
38120 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
38121 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
38122 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
38123 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
38124 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
38125 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
38126 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
38127 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
38128 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
38129 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
38130 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
38131 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
38132 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
38133 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
38134 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
38135 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
38136 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
38137 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
38138 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
38139 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
38140 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
38141 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
38142 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
38143 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
38144 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
38145 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
38146 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
38147 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
38148 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
38149 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
38150 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
38151 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
38152 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
38153 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
38154 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
38155 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
38156 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
38157 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
38158 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
38159 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
38160 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
38161 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
38162 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
38163 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
38164 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
38165 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
38166 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
38167 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
38168 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
38169 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
38170 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
38171 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
38172 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
38173 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
38174 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
38175 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
38176 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
38177 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
38178 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
38179 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
38180 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
38181 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
38182 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
38183 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
38184 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
38185 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
38186 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
38187 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
38188 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
38189 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
38190 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
38191 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
38192 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
38193 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
38194 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
38195 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
38196 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
38197 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
38198 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
38199 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
38200 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
38201 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
38202 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
38203 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
38204 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
38205 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
38206 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
38207 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
38208 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
38209 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
38210 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
38211 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
38212 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
38213 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
38214 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
38215 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
38216 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
38217 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
38218 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
38219 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
38220 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
38221 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
38222 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
38223 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
38224 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
38225 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
38226 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
38227 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
38228 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
38229 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
38230 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
38231 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
38232 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
38233 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
38234 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
38235 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
38236 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
38237 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
38238 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
38239 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
38240 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
38241 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
38242 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
38243 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
38244 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
38245 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
38246 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
38247 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
38248 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
38249 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
38250 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
38251 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
38252 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
38253 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
38254 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
38255 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
38256 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
38257
38258 // Work around a chicken/egg problem in drawlist.cpp
38259 wxPyDrawList_SetAPIPtr();
38260
38261 }
38262