]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
include build/msw/wx_base.dsp in wxBase distribution (closes 1324053)
[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 static wxGraphicsContext* CreateFromNative( void * ) {
3597 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3598 PyErr_SetString(PyExc_NotImplementedError,
3599 "wxGraphicsContext is not available on this platform.");
3600 wxPyEndBlockThreads(blocked);
3601 return NULL;
3602 }
3603
3604 wxGraphicsPath * CreatePath() { return NULL; }
3605 void PushState() {}
3606 void PopState() {}
3607 void Clip( const wxRegion & ) {}
3608 void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {}
3609 void ResetClip() {}
3610 void * GetNativeContext() { return NULL; }
3611 void Translate( wxDouble , wxDouble ) {}
3612 void Scale( wxDouble , wxDouble ) {}
3613 void Rotate( wxDouble ) {}
3614 void SetPen( const wxPen & ) {}
3615 void SetBrush( const wxBrush & ) {}
3616 void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble ,
3617 const wxColour&, const wxColour&) {}
3618 void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ,
3619 const wxColour &, const wxColour &) {}
3620 void SetFont( const wxFont & ) {}
3621 void SetTextColor( const wxColour & ) {}
3622 void StrokePath( const wxGraphicsPath * ) {}
3623 void FillPath( const wxGraphicsPath *, int ) {}
3624 void DrawPath( const wxGraphicsPath *, int ) {}
3625 void DrawText( const wxString &, wxDouble , wxDouble ) {}
3626 void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {}
3627 void GetTextExtent( const wxString &, wxDouble *, wxDouble *,
3628 wxDouble *, wxDouble * ) const {}
3629 void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {}
3630 void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3631 void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {}
3632 void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3633 void StrokeLines( size_t , const wxPoint2DDouble *) {}
3634 void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {}
3635 void DrawLines( size_t , const wxPoint2DDouble *, int ) {}
3636 void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {}
3637 void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {}
3638 void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {}
3639 };
3640
3641
3642 class wxGCDC: public wxWindowDC
3643 {
3644 public:
3645 wxGCDC(const wxWindowDC&) {
3646 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3647 PyErr_SetString(PyExc_NotImplementedError,
3648 "wxGCDC is not available on this platform.");
3649 wxPyEndBlockThreads(blocked);
3650 }
3651
3652 wxGCDC() {
3653 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3654 PyErr_SetString(PyExc_NotImplementedError,
3655 "wxGCDC is not available on this platform.");
3656 wxPyEndBlockThreads(blocked);
3657 }
3658
3659 virtual ~wxGCDC() {}
3660
3661 wxGraphicsContext* GetGraphicsContext() { return NULL; }
3662 void SetGraphicsContext( wxGraphicsContext* ) {}
3663 };
3664
3665 #endif
3666
3667 SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){
3668 wxArrayDouble widths;
3669 self->GetPartialTextExtents(text, widths);
3670 return widths;
3671 }
3672 SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){
3673 size_t c1, c2, count;
3674 wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1);
3675 wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2);
3676
3677 if ( beginP != NULL && endP != NULL )
3678 {
3679 count = wxMin(c1, c2);
3680 self->StrokeLines(count, beginP, endP);
3681 }
3682 delete [] beginP;
3683 delete [] endP;
3684 }
3685
3686 #include "wx/dcgraph.h"
3687
3688
3689 #include <wx/overlay.h>
3690
3691
3692
3693 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3694 self->AddColour(name, wxColour(red, green, blue));
3695 }
3696
3697 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3698 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3699 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3700 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3701
3702
3703 #include <wx/effects.h>
3704
3705
3706 #include "wx/renderer.h"
3707
3708
3709 SWIGINTERNINLINE PyObject*
3710 SWIG_From_bool (bool value)
3711 {
3712 return PyBool_FromLong(value ? 1 : 0);
3713 }
3714
3715
3716 #include "wx/wxPython/pseudodc.h"
3717
3718 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3719 wxRect rect;
3720 self->GetIdBounds(id, rect);
3721 return rect;
3722 }
3723 #ifdef __cplusplus
3724 extern "C" {
3725 #endif
3726 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3727 PyObject *resultobj = 0;
3728 wxGDIObject *result = 0 ;
3729
3730 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3731 {
3732 if (!wxPyCheckForApp()) SWIG_fail;
3733 PyThreadState* __tstate = wxPyBeginAllowThreads();
3734 result = (wxGDIObject *)new wxGDIObject();
3735 wxPyEndAllowThreads(__tstate);
3736 if (PyErr_Occurred()) SWIG_fail;
3737 }
3738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3739 return resultobj;
3740 fail:
3741 return NULL;
3742 }
3743
3744
3745 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3746 PyObject *resultobj = 0;
3747 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3748 void *argp1 = 0 ;
3749 int res1 = 0 ;
3750 PyObject *swig_obj[1] ;
3751
3752 if (!args) SWIG_fail;
3753 swig_obj[0] = args;
3754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3755 if (!SWIG_IsOK(res1)) {
3756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3757 }
3758 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3759 {
3760 PyThreadState* __tstate = wxPyBeginAllowThreads();
3761 delete arg1;
3762
3763 wxPyEndAllowThreads(__tstate);
3764 if (PyErr_Occurred()) SWIG_fail;
3765 }
3766 resultobj = SWIG_Py_Void();
3767 return resultobj;
3768 fail:
3769 return NULL;
3770 }
3771
3772
3773 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3774 PyObject *resultobj = 0;
3775 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3776 bool result;
3777 void *argp1 = 0 ;
3778 int res1 = 0 ;
3779 PyObject *swig_obj[1] ;
3780
3781 if (!args) SWIG_fail;
3782 swig_obj[0] = args;
3783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3784 if (!SWIG_IsOK(res1)) {
3785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3786 }
3787 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3788 {
3789 PyThreadState* __tstate = wxPyBeginAllowThreads();
3790 result = (bool)(arg1)->IsNull();
3791 wxPyEndAllowThreads(__tstate);
3792 if (PyErr_Occurred()) SWIG_fail;
3793 }
3794 {
3795 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3796 }
3797 return resultobj;
3798 fail:
3799 return NULL;
3800 }
3801
3802
3803 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3804 PyObject *obj;
3805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3806 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3807 return SWIG_Py_Void();
3808 }
3809
3810 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3811 return SWIG_Python_InitShadowInstance(args);
3812 }
3813
3814 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3815 PyObject *resultobj = 0;
3816 byte arg1 = (byte) 0 ;
3817 byte arg2 = (byte) 0 ;
3818 byte arg3 = (byte) 0 ;
3819 byte arg4 = (byte) wxALPHA_OPAQUE ;
3820 wxColour *result = 0 ;
3821 unsigned char val1 ;
3822 int ecode1 = 0 ;
3823 unsigned char val2 ;
3824 int ecode2 = 0 ;
3825 unsigned char val3 ;
3826 int ecode3 = 0 ;
3827 unsigned char val4 ;
3828 int ecode4 = 0 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 PyObject * obj2 = 0 ;
3832 PyObject * obj3 = 0 ;
3833 char * kwnames[] = {
3834 (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
3835 };
3836
3837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3838 if (obj0) {
3839 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3840 if (!SWIG_IsOK(ecode1)) {
3841 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3842 }
3843 arg1 = static_cast< byte >(val1);
3844 }
3845 if (obj1) {
3846 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3847 if (!SWIG_IsOK(ecode2)) {
3848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3849 }
3850 arg2 = static_cast< byte >(val2);
3851 }
3852 if (obj2) {
3853 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3854 if (!SWIG_IsOK(ecode3)) {
3855 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3856 }
3857 arg3 = static_cast< byte >(val3);
3858 }
3859 if (obj3) {
3860 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3861 if (!SWIG_IsOK(ecode4)) {
3862 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'");
3863 }
3864 arg4 = static_cast< byte >(val4);
3865 }
3866 {
3867 PyThreadState* __tstate = wxPyBeginAllowThreads();
3868 result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4);
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3880 PyObject *resultobj = 0;
3881 wxString *arg1 = 0 ;
3882 wxColour *result = 0 ;
3883 bool temp1 = false ;
3884 PyObject * obj0 = 0 ;
3885 char * kwnames[] = {
3886 (char *) "colorName", NULL
3887 };
3888
3889 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3890 {
3891 arg1 = wxString_in_helper(obj0);
3892 if (arg1 == NULL) SWIG_fail;
3893 temp1 = true;
3894 }
3895 {
3896 if (!wxPyCheckForApp()) SWIG_fail;
3897 PyThreadState* __tstate = wxPyBeginAllowThreads();
3898 result = (wxColour *)new wxColour((wxString const &)*arg1);
3899 wxPyEndAllowThreads(__tstate);
3900 if (PyErr_Occurred()) SWIG_fail;
3901 }
3902 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3903 {
3904 if (temp1)
3905 delete arg1;
3906 }
3907 return resultobj;
3908 fail:
3909 {
3910 if (temp1)
3911 delete arg1;
3912 }
3913 return NULL;
3914 }
3915
3916
3917 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3918 PyObject *resultobj = 0;
3919 unsigned long arg1 ;
3920 wxColour *result = 0 ;
3921 unsigned long val1 ;
3922 int ecode1 = 0 ;
3923 PyObject * obj0 = 0 ;
3924 char * kwnames[] = {
3925 (char *) "colRGB", NULL
3926 };
3927
3928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3929 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3930 if (!SWIG_IsOK(ecode1)) {
3931 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3932 }
3933 arg1 = static_cast< unsigned long >(val1);
3934 {
3935 PyThreadState* __tstate = wxPyBeginAllowThreads();
3936 result = (wxColour *)new wxColour(arg1);
3937 wxPyEndAllowThreads(__tstate);
3938 if (PyErr_Occurred()) SWIG_fail;
3939 }
3940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3941 return resultobj;
3942 fail:
3943 return NULL;
3944 }
3945
3946
3947 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3948 PyObject *resultobj = 0;
3949 wxColour *arg1 = (wxColour *) 0 ;
3950 void *argp1 = 0 ;
3951 int res1 = 0 ;
3952 PyObject *swig_obj[1] ;
3953
3954 if (!args) SWIG_fail;
3955 swig_obj[0] = args;
3956 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3957 if (!SWIG_IsOK(res1)) {
3958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3959 }
3960 arg1 = reinterpret_cast< wxColour * >(argp1);
3961 {
3962 PyThreadState* __tstate = wxPyBeginAllowThreads();
3963 delete arg1;
3964
3965 wxPyEndAllowThreads(__tstate);
3966 if (PyErr_Occurred()) SWIG_fail;
3967 }
3968 resultobj = SWIG_Py_Void();
3969 return resultobj;
3970 fail:
3971 return NULL;
3972 }
3973
3974
3975 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3976 PyObject *resultobj = 0;
3977 wxColour *arg1 = (wxColour *) 0 ;
3978 byte result;
3979 void *argp1 = 0 ;
3980 int res1 = 0 ;
3981 PyObject *swig_obj[1] ;
3982
3983 if (!args) SWIG_fail;
3984 swig_obj[0] = args;
3985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3986 if (!SWIG_IsOK(res1)) {
3987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3988 }
3989 arg1 = reinterpret_cast< wxColour * >(argp1);
3990 {
3991 PyThreadState* __tstate = wxPyBeginAllowThreads();
3992 result = (byte)(arg1)->Red();
3993 wxPyEndAllowThreads(__tstate);
3994 if (PyErr_Occurred()) SWIG_fail;
3995 }
3996 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3997 return resultobj;
3998 fail:
3999 return NULL;
4000 }
4001
4002
4003 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4004 PyObject *resultobj = 0;
4005 wxColour *arg1 = (wxColour *) 0 ;
4006 byte result;
4007 void *argp1 = 0 ;
4008 int res1 = 0 ;
4009 PyObject *swig_obj[1] ;
4010
4011 if (!args) SWIG_fail;
4012 swig_obj[0] = args;
4013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4014 if (!SWIG_IsOK(res1)) {
4015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
4016 }
4017 arg1 = reinterpret_cast< wxColour * >(argp1);
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 result = (byte)(arg1)->Green();
4021 wxPyEndAllowThreads(__tstate);
4022 if (PyErr_Occurred()) SWIG_fail;
4023 }
4024 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4025 return resultobj;
4026 fail:
4027 return NULL;
4028 }
4029
4030
4031 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4032 PyObject *resultobj = 0;
4033 wxColour *arg1 = (wxColour *) 0 ;
4034 byte result;
4035 void *argp1 = 0 ;
4036 int res1 = 0 ;
4037 PyObject *swig_obj[1] ;
4038
4039 if (!args) SWIG_fail;
4040 swig_obj[0] = args;
4041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4042 if (!SWIG_IsOK(res1)) {
4043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
4044 }
4045 arg1 = reinterpret_cast< wxColour * >(argp1);
4046 {
4047 PyThreadState* __tstate = wxPyBeginAllowThreads();
4048 result = (byte)(arg1)->Blue();
4049 wxPyEndAllowThreads(__tstate);
4050 if (PyErr_Occurred()) SWIG_fail;
4051 }
4052 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4053 return resultobj;
4054 fail:
4055 return NULL;
4056 }
4057
4058
4059 SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4060 PyObject *resultobj = 0;
4061 wxColour *arg1 = (wxColour *) 0 ;
4062 byte result;
4063 void *argp1 = 0 ;
4064 int res1 = 0 ;
4065 PyObject *swig_obj[1] ;
4066
4067 if (!args) SWIG_fail;
4068 swig_obj[0] = args;
4069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4070 if (!SWIG_IsOK(res1)) {
4071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'");
4072 }
4073 arg1 = reinterpret_cast< wxColour * >(argp1);
4074 {
4075 PyThreadState* __tstate = wxPyBeginAllowThreads();
4076 result = (byte)(arg1)->Alpha();
4077 wxPyEndAllowThreads(__tstate);
4078 if (PyErr_Occurred()) SWIG_fail;
4079 }
4080 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
4081 return resultobj;
4082 fail:
4083 return NULL;
4084 }
4085
4086
4087 SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4088 PyObject *resultobj = 0;
4089 wxColour *arg1 = (wxColour *) 0 ;
4090 bool result;
4091 void *argp1 = 0 ;
4092 int res1 = 0 ;
4093 PyObject *swig_obj[1] ;
4094
4095 if (!args) SWIG_fail;
4096 swig_obj[0] = args;
4097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4098 if (!SWIG_IsOK(res1)) {
4099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'");
4100 }
4101 arg1 = reinterpret_cast< wxColour * >(argp1);
4102 {
4103 PyThreadState* __tstate = wxPyBeginAllowThreads();
4104 result = (bool)(arg1)->IsOk();
4105 wxPyEndAllowThreads(__tstate);
4106 if (PyErr_Occurred()) SWIG_fail;
4107 }
4108 {
4109 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4110 }
4111 return resultobj;
4112 fail:
4113 return NULL;
4114 }
4115
4116
4117 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4118 PyObject *resultobj = 0;
4119 wxColour *arg1 = (wxColour *) 0 ;
4120 byte arg2 ;
4121 byte arg3 ;
4122 byte arg4 ;
4123 byte arg5 = (byte) wxALPHA_OPAQUE ;
4124 void *argp1 = 0 ;
4125 int res1 = 0 ;
4126 unsigned char val2 ;
4127 int ecode2 = 0 ;
4128 unsigned char val3 ;
4129 int ecode3 = 0 ;
4130 unsigned char val4 ;
4131 int ecode4 = 0 ;
4132 unsigned char val5 ;
4133 int ecode5 = 0 ;
4134 PyObject * obj0 = 0 ;
4135 PyObject * obj1 = 0 ;
4136 PyObject * obj2 = 0 ;
4137 PyObject * obj3 = 0 ;
4138 PyObject * obj4 = 0 ;
4139 char * kwnames[] = {
4140 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
4141 };
4142
4143 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
4144 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4145 if (!SWIG_IsOK(res1)) {
4146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
4147 }
4148 arg1 = reinterpret_cast< wxColour * >(argp1);
4149 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4150 if (!SWIG_IsOK(ecode2)) {
4151 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
4152 }
4153 arg2 = static_cast< byte >(val2);
4154 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4155 if (!SWIG_IsOK(ecode3)) {
4156 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
4157 }
4158 arg3 = static_cast< byte >(val3);
4159 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4160 if (!SWIG_IsOK(ecode4)) {
4161 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
4162 }
4163 arg4 = static_cast< byte >(val4);
4164 if (obj4) {
4165 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
4166 if (!SWIG_IsOK(ecode5)) {
4167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'");
4168 }
4169 arg5 = static_cast< byte >(val5);
4170 }
4171 {
4172 PyThreadState* __tstate = wxPyBeginAllowThreads();
4173 (arg1)->Set(arg2,arg3,arg4,arg5);
4174 wxPyEndAllowThreads(__tstate);
4175 if (PyErr_Occurred()) SWIG_fail;
4176 }
4177 resultobj = SWIG_Py_Void();
4178 return resultobj;
4179 fail:
4180 return NULL;
4181 }
4182
4183
4184 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4185 PyObject *resultobj = 0;
4186 wxColour *arg1 = (wxColour *) 0 ;
4187 unsigned long arg2 ;
4188 void *argp1 = 0 ;
4189 int res1 = 0 ;
4190 unsigned long val2 ;
4191 int ecode2 = 0 ;
4192 PyObject * obj0 = 0 ;
4193 PyObject * obj1 = 0 ;
4194 char * kwnames[] = {
4195 (char *) "self",(char *) "colRGB", NULL
4196 };
4197
4198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4202 }
4203 arg1 = reinterpret_cast< wxColour * >(argp1);
4204 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
4205 if (!SWIG_IsOK(ecode2)) {
4206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
4207 }
4208 arg2 = static_cast< unsigned long >(val2);
4209 {
4210 PyThreadState* __tstate = wxPyBeginAllowThreads();
4211 (arg1)->Set(arg2);
4212 wxPyEndAllowThreads(__tstate);
4213 if (PyErr_Occurred()) SWIG_fail;
4214 }
4215 resultobj = SWIG_Py_Void();
4216 return resultobj;
4217 fail:
4218 return NULL;
4219 }
4220
4221
4222 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4223 PyObject *resultobj = 0;
4224 wxColour *arg1 = (wxColour *) 0 ;
4225 wxString *arg2 = 0 ;
4226 void *argp1 = 0 ;
4227 int res1 = 0 ;
4228 bool temp2 = false ;
4229 PyObject * obj0 = 0 ;
4230 PyObject * obj1 = 0 ;
4231 char * kwnames[] = {
4232 (char *) "self",(char *) "colourName", NULL
4233 };
4234
4235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
4236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4237 if (!SWIG_IsOK(res1)) {
4238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
4239 }
4240 arg1 = reinterpret_cast< wxColour * >(argp1);
4241 {
4242 arg2 = wxString_in_helper(obj1);
4243 if (arg2 == NULL) SWIG_fail;
4244 temp2 = true;
4245 }
4246 {
4247 PyThreadState* __tstate = wxPyBeginAllowThreads();
4248 (arg1)->Set((wxString const &)*arg2);
4249 wxPyEndAllowThreads(__tstate);
4250 if (PyErr_Occurred()) SWIG_fail;
4251 }
4252 resultobj = SWIG_Py_Void();
4253 {
4254 if (temp2)
4255 delete arg2;
4256 }
4257 return resultobj;
4258 fail:
4259 {
4260 if (temp2)
4261 delete arg2;
4262 }
4263 return NULL;
4264 }
4265
4266
4267 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4268 PyObject *resultobj = 0;
4269 wxColour *arg1 = (wxColour *) 0 ;
4270 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
4271 wxString result;
4272 void *argp1 = 0 ;
4273 int res1 = 0 ;
4274 long val2 ;
4275 int ecode2 = 0 ;
4276 PyObject * obj0 = 0 ;
4277 PyObject * obj1 = 0 ;
4278 char * kwnames[] = {
4279 (char *) "self",(char *) "flags", NULL
4280 };
4281
4282 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
4283 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4284 if (!SWIG_IsOK(res1)) {
4285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
4286 }
4287 arg1 = reinterpret_cast< wxColour * >(argp1);
4288 if (obj1) {
4289 ecode2 = SWIG_AsVal_long(obj1, &val2);
4290 if (!SWIG_IsOK(ecode2)) {
4291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
4292 }
4293 arg2 = static_cast< long >(val2);
4294 }
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = ((wxColour const *)arg1)->GetAsString(arg2);
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 {
4302 #if wxUSE_UNICODE
4303 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
4304 #else
4305 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
4306 #endif
4307 }
4308 return resultobj;
4309 fail:
4310 return NULL;
4311 }
4312
4313
4314 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4315 PyObject *resultobj = 0;
4316 wxColour *arg1 = (wxColour *) 0 ;
4317 long result;
4318 void *argp1 = 0 ;
4319 int res1 = 0 ;
4320 PyObject *swig_obj[1] ;
4321
4322 if (!args) SWIG_fail;
4323 swig_obj[0] = args;
4324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4325 if (!SWIG_IsOK(res1)) {
4326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
4327 }
4328 arg1 = reinterpret_cast< wxColour * >(argp1);
4329 {
4330 PyThreadState* __tstate = wxPyBeginAllowThreads();
4331 result = (long)((wxColour const *)arg1)->GetPixel();
4332 wxPyEndAllowThreads(__tstate);
4333 if (PyErr_Occurred()) SWIG_fail;
4334 }
4335 resultobj = SWIG_From_long(static_cast< long >(result));
4336 return resultobj;
4337 fail:
4338 return NULL;
4339 }
4340
4341
4342 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4343 PyObject *resultobj = 0;
4344 wxColour *arg1 = (wxColour *) 0 ;
4345 PyObject *arg2 = (PyObject *) 0 ;
4346 bool result;
4347 void *argp1 = 0 ;
4348 int res1 = 0 ;
4349 PyObject * obj0 = 0 ;
4350 PyObject * obj1 = 0 ;
4351 char * kwnames[] = {
4352 (char *) "self",(char *) "other", NULL
4353 };
4354
4355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4356 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
4359 }
4360 arg1 = reinterpret_cast< wxColour * >(argp1);
4361 arg2 = obj1;
4362 {
4363 result = (bool)wxColour___eq__(arg1,arg2);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 {
4367 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4368 }
4369 return resultobj;
4370 fail:
4371 return NULL;
4372 }
4373
4374
4375 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4376 PyObject *resultobj = 0;
4377 wxColour *arg1 = (wxColour *) 0 ;
4378 PyObject *arg2 = (PyObject *) 0 ;
4379 bool result;
4380 void *argp1 = 0 ;
4381 int res1 = 0 ;
4382 PyObject * obj0 = 0 ;
4383 PyObject * obj1 = 0 ;
4384 char * kwnames[] = {
4385 (char *) "self",(char *) "other", NULL
4386 };
4387
4388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4390 if (!SWIG_IsOK(res1)) {
4391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
4392 }
4393 arg1 = reinterpret_cast< wxColour * >(argp1);
4394 arg2 = obj1;
4395 {
4396 result = (bool)wxColour___ne__(arg1,arg2);
4397 if (PyErr_Occurred()) SWIG_fail;
4398 }
4399 {
4400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4401 }
4402 return resultobj;
4403 fail:
4404 return NULL;
4405 }
4406
4407
4408 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4409 PyObject *resultobj = 0;
4410 wxColour *arg1 = (wxColour *) 0 ;
4411 bool arg2 = (bool) false ;
4412 PyObject *result = 0 ;
4413 void *argp1 = 0 ;
4414 int res1 = 0 ;
4415 bool val2 ;
4416 int ecode2 = 0 ;
4417 PyObject * obj0 = 0 ;
4418 PyObject * obj1 = 0 ;
4419 char * kwnames[] = {
4420 (char *) "self",(char *) "includeAlpha", NULL
4421 };
4422
4423 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail;
4424 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4425 if (!SWIG_IsOK(res1)) {
4426 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
4427 }
4428 arg1 = reinterpret_cast< wxColour * >(argp1);
4429 if (obj1) {
4430 ecode2 = SWIG_AsVal_bool(obj1, &val2);
4431 if (!SWIG_IsOK(ecode2)) {
4432 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'");
4433 }
4434 arg2 = static_cast< bool >(val2);
4435 }
4436 {
4437 result = (PyObject *)wxColour_Get(arg1,arg2);
4438 if (PyErr_Occurred()) SWIG_fail;
4439 }
4440 resultobj = result;
4441 return resultobj;
4442 fail:
4443 return NULL;
4444 }
4445
4446
4447 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4448 PyObject *resultobj = 0;
4449 wxColour *arg1 = (wxColour *) 0 ;
4450 unsigned long result;
4451 void *argp1 = 0 ;
4452 int res1 = 0 ;
4453 PyObject *swig_obj[1] ;
4454
4455 if (!args) SWIG_fail;
4456 swig_obj[0] = args;
4457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
4458 if (!SWIG_IsOK(res1)) {
4459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
4460 }
4461 arg1 = reinterpret_cast< wxColour * >(argp1);
4462 {
4463 result = (unsigned long)wxColour_GetRGB(arg1);
4464 if (PyErr_Occurred()) SWIG_fail;
4465 }
4466 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
4467 return resultobj;
4468 fail:
4469 return NULL;
4470 }
4471
4472
4473 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4474 PyObject *obj;
4475 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4476 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
4477 return SWIG_Py_Void();
4478 }
4479
4480 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4481 return SWIG_Python_InitShadowInstance(args);
4482 }
4483
4484 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4485 PyObject *resultobj = 0;
4486 int arg1 ;
4487 unsigned char *arg2 = (unsigned char *) 0 ;
4488 unsigned char *arg3 = (unsigned char *) 0 ;
4489 unsigned char *arg4 = (unsigned char *) 0 ;
4490 wxPalette *result = 0 ;
4491 int val1 ;
4492 int ecode1 = 0 ;
4493 void *argp2 = 0 ;
4494 int res2 = 0 ;
4495 void *argp3 = 0 ;
4496 int res3 = 0 ;
4497 void *argp4 = 0 ;
4498 int res4 = 0 ;
4499 PyObject * obj0 = 0 ;
4500 PyObject * obj1 = 0 ;
4501 PyObject * obj2 = 0 ;
4502 PyObject * obj3 = 0 ;
4503 char * kwnames[] = {
4504 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
4505 };
4506
4507 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4508 ecode1 = SWIG_AsVal_int(obj0, &val1);
4509 if (!SWIG_IsOK(ecode1)) {
4510 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
4511 }
4512 arg1 = static_cast< int >(val1);
4513 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
4514 if (!SWIG_IsOK(res2)) {
4515 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
4516 }
4517 arg2 = reinterpret_cast< unsigned char * >(argp2);
4518 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
4519 if (!SWIG_IsOK(res3)) {
4520 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
4521 }
4522 arg3 = reinterpret_cast< unsigned char * >(argp3);
4523 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
4524 if (!SWIG_IsOK(res4)) {
4525 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
4526 }
4527 arg4 = reinterpret_cast< unsigned char * >(argp4);
4528 {
4529 if (!wxPyCheckForApp()) SWIG_fail;
4530 PyThreadState* __tstate = wxPyBeginAllowThreads();
4531 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4532 wxPyEndAllowThreads(__tstate);
4533 if (PyErr_Occurred()) SWIG_fail;
4534 }
4535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4536 return resultobj;
4537 fail:
4538 return NULL;
4539 }
4540
4541
4542 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4543 PyObject *resultobj = 0;
4544 wxPalette *arg1 = (wxPalette *) 0 ;
4545 void *argp1 = 0 ;
4546 int res1 = 0 ;
4547 PyObject *swig_obj[1] ;
4548
4549 if (!args) SWIG_fail;
4550 swig_obj[0] = args;
4551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4552 if (!SWIG_IsOK(res1)) {
4553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4554 }
4555 arg1 = reinterpret_cast< wxPalette * >(argp1);
4556 {
4557 PyThreadState* __tstate = wxPyBeginAllowThreads();
4558 delete arg1;
4559
4560 wxPyEndAllowThreads(__tstate);
4561 if (PyErr_Occurred()) SWIG_fail;
4562 }
4563 resultobj = SWIG_Py_Void();
4564 return resultobj;
4565 fail:
4566 return NULL;
4567 }
4568
4569
4570 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4571 PyObject *resultobj = 0;
4572 wxPalette *arg1 = (wxPalette *) 0 ;
4573 byte arg2 ;
4574 byte arg3 ;
4575 byte arg4 ;
4576 int result;
4577 void *argp1 = 0 ;
4578 int res1 = 0 ;
4579 unsigned char val2 ;
4580 int ecode2 = 0 ;
4581 unsigned char val3 ;
4582 int ecode3 = 0 ;
4583 unsigned char val4 ;
4584 int ecode4 = 0 ;
4585 PyObject * obj0 = 0 ;
4586 PyObject * obj1 = 0 ;
4587 PyObject * obj2 = 0 ;
4588 PyObject * obj3 = 0 ;
4589 char * kwnames[] = {
4590 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4591 };
4592
4593 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4594 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4595 if (!SWIG_IsOK(res1)) {
4596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4597 }
4598 arg1 = reinterpret_cast< wxPalette * >(argp1);
4599 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4600 if (!SWIG_IsOK(ecode2)) {
4601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4602 }
4603 arg2 = static_cast< byte >(val2);
4604 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4605 if (!SWIG_IsOK(ecode3)) {
4606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4607 }
4608 arg3 = static_cast< byte >(val3);
4609 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4610 if (!SWIG_IsOK(ecode4)) {
4611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4612 }
4613 arg4 = static_cast< byte >(val4);
4614 {
4615 PyThreadState* __tstate = wxPyBeginAllowThreads();
4616 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4617 wxPyEndAllowThreads(__tstate);
4618 if (PyErr_Occurred()) SWIG_fail;
4619 }
4620 resultobj = SWIG_From_int(static_cast< int >(result));
4621 return resultobj;
4622 fail:
4623 return NULL;
4624 }
4625
4626
4627 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4628 PyObject *resultobj = 0;
4629 wxPalette *arg1 = (wxPalette *) 0 ;
4630 int arg2 ;
4631 byte *arg3 = (byte *) 0 ;
4632 byte *arg4 = (byte *) 0 ;
4633 byte *arg5 = (byte *) 0 ;
4634 bool result;
4635 void *argp1 = 0 ;
4636 int res1 = 0 ;
4637 int val2 ;
4638 int ecode2 = 0 ;
4639 byte temp3 ;
4640 int res3 = SWIG_TMPOBJ ;
4641 byte temp4 ;
4642 int res4 = SWIG_TMPOBJ ;
4643 byte temp5 ;
4644 int res5 = SWIG_TMPOBJ ;
4645 PyObject * obj0 = 0 ;
4646 PyObject * obj1 = 0 ;
4647 char * kwnames[] = {
4648 (char *) "self",(char *) "pixel", NULL
4649 };
4650
4651 arg3 = &temp3;
4652 arg4 = &temp4;
4653 arg5 = &temp5;
4654 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4655 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4656 if (!SWIG_IsOK(res1)) {
4657 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4658 }
4659 arg1 = reinterpret_cast< wxPalette * >(argp1);
4660 ecode2 = SWIG_AsVal_int(obj1, &val2);
4661 if (!SWIG_IsOK(ecode2)) {
4662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4663 }
4664 arg2 = static_cast< int >(val2);
4665 {
4666 PyThreadState* __tstate = wxPyBeginAllowThreads();
4667 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4668 wxPyEndAllowThreads(__tstate);
4669 if (PyErr_Occurred()) SWIG_fail;
4670 }
4671 {
4672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4673 }
4674 if (SWIG_IsTmpObj(res3)) {
4675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4676 } else {
4677 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4679 }
4680 if (SWIG_IsTmpObj(res4)) {
4681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4682 } else {
4683 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4685 }
4686 if (SWIG_IsTmpObj(res5)) {
4687 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4688 } else {
4689 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4690 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4691 }
4692 return resultobj;
4693 fail:
4694 return NULL;
4695 }
4696
4697
4698 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4699 PyObject *resultobj = 0;
4700 wxPalette *arg1 = (wxPalette *) 0 ;
4701 int result;
4702 void *argp1 = 0 ;
4703 int res1 = 0 ;
4704 PyObject *swig_obj[1] ;
4705
4706 if (!args) SWIG_fail;
4707 swig_obj[0] = args;
4708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4709 if (!SWIG_IsOK(res1)) {
4710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4711 }
4712 arg1 = reinterpret_cast< wxPalette * >(argp1);
4713 {
4714 PyThreadState* __tstate = wxPyBeginAllowThreads();
4715 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4716 wxPyEndAllowThreads(__tstate);
4717 if (PyErr_Occurred()) SWIG_fail;
4718 }
4719 resultobj = SWIG_From_int(static_cast< int >(result));
4720 return resultobj;
4721 fail:
4722 return NULL;
4723 }
4724
4725
4726 SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4727 PyObject *resultobj = 0;
4728 wxPalette *arg1 = (wxPalette *) 0 ;
4729 bool result;
4730 void *argp1 = 0 ;
4731 int res1 = 0 ;
4732 PyObject *swig_obj[1] ;
4733
4734 if (!args) SWIG_fail;
4735 swig_obj[0] = args;
4736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4737 if (!SWIG_IsOK(res1)) {
4738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'");
4739 }
4740 arg1 = reinterpret_cast< wxPalette * >(argp1);
4741 {
4742 PyThreadState* __tstate = wxPyBeginAllowThreads();
4743 result = (bool)(arg1)->IsOk();
4744 wxPyEndAllowThreads(__tstate);
4745 if (PyErr_Occurred()) SWIG_fail;
4746 }
4747 {
4748 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4749 }
4750 return resultobj;
4751 fail:
4752 return NULL;
4753 }
4754
4755
4756 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4757 PyObject *obj;
4758 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4759 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4760 return SWIG_Py_Void();
4761 }
4762
4763 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4764 return SWIG_Python_InitShadowInstance(args);
4765 }
4766
4767 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4768 PyObject *resultobj = 0;
4769 wxColour *arg1 = 0 ;
4770 int arg2 = (int) 1 ;
4771 int arg3 = (int) wxSOLID ;
4772 wxPen *result = 0 ;
4773 wxColour temp1 ;
4774 int val2 ;
4775 int ecode2 = 0 ;
4776 int val3 ;
4777 int ecode3 = 0 ;
4778 PyObject * obj0 = 0 ;
4779 PyObject * obj1 = 0 ;
4780 PyObject * obj2 = 0 ;
4781 char * kwnames[] = {
4782 (char *) "colour",(char *) "width",(char *) "style", NULL
4783 };
4784
4785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4786 {
4787 arg1 = &temp1;
4788 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4789 }
4790 if (obj1) {
4791 ecode2 = SWIG_AsVal_int(obj1, &val2);
4792 if (!SWIG_IsOK(ecode2)) {
4793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4794 }
4795 arg2 = static_cast< int >(val2);
4796 }
4797 if (obj2) {
4798 ecode3 = SWIG_AsVal_int(obj2, &val3);
4799 if (!SWIG_IsOK(ecode3)) {
4800 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4801 }
4802 arg3 = static_cast< int >(val3);
4803 }
4804 {
4805 if (!wxPyCheckForApp()) SWIG_fail;
4806 PyThreadState* __tstate = wxPyBeginAllowThreads();
4807 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4808 wxPyEndAllowThreads(__tstate);
4809 if (PyErr_Occurred()) SWIG_fail;
4810 }
4811 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4812 return resultobj;
4813 fail:
4814 return NULL;
4815 }
4816
4817
4818 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4819 PyObject *resultobj = 0;
4820 wxPen *arg1 = (wxPen *) 0 ;
4821 void *argp1 = 0 ;
4822 int res1 = 0 ;
4823 PyObject *swig_obj[1] ;
4824
4825 if (!args) SWIG_fail;
4826 swig_obj[0] = args;
4827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4828 if (!SWIG_IsOK(res1)) {
4829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4830 }
4831 arg1 = reinterpret_cast< wxPen * >(argp1);
4832 {
4833 PyThreadState* __tstate = wxPyBeginAllowThreads();
4834 delete arg1;
4835
4836 wxPyEndAllowThreads(__tstate);
4837 if (PyErr_Occurred()) SWIG_fail;
4838 }
4839 resultobj = SWIG_Py_Void();
4840 return resultobj;
4841 fail:
4842 return NULL;
4843 }
4844
4845
4846 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4847 PyObject *resultobj = 0;
4848 wxPen *arg1 = (wxPen *) 0 ;
4849 int result;
4850 void *argp1 = 0 ;
4851 int res1 = 0 ;
4852 PyObject *swig_obj[1] ;
4853
4854 if (!args) SWIG_fail;
4855 swig_obj[0] = args;
4856 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4857 if (!SWIG_IsOK(res1)) {
4858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4859 }
4860 arg1 = reinterpret_cast< wxPen * >(argp1);
4861 {
4862 PyThreadState* __tstate = wxPyBeginAllowThreads();
4863 result = (int)(arg1)->GetCap();
4864 wxPyEndAllowThreads(__tstate);
4865 if (PyErr_Occurred()) SWIG_fail;
4866 }
4867 resultobj = SWIG_From_int(static_cast< int >(result));
4868 return resultobj;
4869 fail:
4870 return NULL;
4871 }
4872
4873
4874 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4875 PyObject *resultobj = 0;
4876 wxPen *arg1 = (wxPen *) 0 ;
4877 wxColour result;
4878 void *argp1 = 0 ;
4879 int res1 = 0 ;
4880 PyObject *swig_obj[1] ;
4881
4882 if (!args) SWIG_fail;
4883 swig_obj[0] = args;
4884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4885 if (!SWIG_IsOK(res1)) {
4886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4887 }
4888 arg1 = reinterpret_cast< wxPen * >(argp1);
4889 {
4890 PyThreadState* __tstate = wxPyBeginAllowThreads();
4891 result = (arg1)->GetColour();
4892 wxPyEndAllowThreads(__tstate);
4893 if (PyErr_Occurred()) SWIG_fail;
4894 }
4895 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4896 return resultobj;
4897 fail:
4898 return NULL;
4899 }
4900
4901
4902 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4903 PyObject *resultobj = 0;
4904 wxPen *arg1 = (wxPen *) 0 ;
4905 int result;
4906 void *argp1 = 0 ;
4907 int res1 = 0 ;
4908 PyObject *swig_obj[1] ;
4909
4910 if (!args) SWIG_fail;
4911 swig_obj[0] = args;
4912 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4913 if (!SWIG_IsOK(res1)) {
4914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4915 }
4916 arg1 = reinterpret_cast< wxPen * >(argp1);
4917 {
4918 PyThreadState* __tstate = wxPyBeginAllowThreads();
4919 result = (int)(arg1)->GetJoin();
4920 wxPyEndAllowThreads(__tstate);
4921 if (PyErr_Occurred()) SWIG_fail;
4922 }
4923 resultobj = SWIG_From_int(static_cast< int >(result));
4924 return resultobj;
4925 fail:
4926 return NULL;
4927 }
4928
4929
4930 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4931 PyObject *resultobj = 0;
4932 wxPen *arg1 = (wxPen *) 0 ;
4933 int result;
4934 void *argp1 = 0 ;
4935 int res1 = 0 ;
4936 PyObject *swig_obj[1] ;
4937
4938 if (!args) SWIG_fail;
4939 swig_obj[0] = args;
4940 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4941 if (!SWIG_IsOK(res1)) {
4942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4943 }
4944 arg1 = reinterpret_cast< wxPen * >(argp1);
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (int)(arg1)->GetStyle();
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 resultobj = SWIG_From_int(static_cast< int >(result));
4952 return resultobj;
4953 fail:
4954 return NULL;
4955 }
4956
4957
4958 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4959 PyObject *resultobj = 0;
4960 wxPen *arg1 = (wxPen *) 0 ;
4961 int result;
4962 void *argp1 = 0 ;
4963 int res1 = 0 ;
4964 PyObject *swig_obj[1] ;
4965
4966 if (!args) SWIG_fail;
4967 swig_obj[0] = args;
4968 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4969 if (!SWIG_IsOK(res1)) {
4970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4971 }
4972 arg1 = reinterpret_cast< wxPen * >(argp1);
4973 {
4974 PyThreadState* __tstate = wxPyBeginAllowThreads();
4975 result = (int)(arg1)->GetWidth();
4976 wxPyEndAllowThreads(__tstate);
4977 if (PyErr_Occurred()) SWIG_fail;
4978 }
4979 resultobj = SWIG_From_int(static_cast< int >(result));
4980 return resultobj;
4981 fail:
4982 return NULL;
4983 }
4984
4985
4986 SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4987 PyObject *resultobj = 0;
4988 wxPen *arg1 = (wxPen *) 0 ;
4989 bool result;
4990 void *argp1 = 0 ;
4991 int res1 = 0 ;
4992 PyObject *swig_obj[1] ;
4993
4994 if (!args) SWIG_fail;
4995 swig_obj[0] = args;
4996 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4997 if (!SWIG_IsOK(res1)) {
4998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'");
4999 }
5000 arg1 = reinterpret_cast< wxPen * >(argp1);
5001 {
5002 PyThreadState* __tstate = wxPyBeginAllowThreads();
5003 result = (bool)(arg1)->IsOk();
5004 wxPyEndAllowThreads(__tstate);
5005 if (PyErr_Occurred()) SWIG_fail;
5006 }
5007 {
5008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5009 }
5010 return resultobj;
5011 fail:
5012 return NULL;
5013 }
5014
5015
5016 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5017 PyObject *resultobj = 0;
5018 wxPen *arg1 = (wxPen *) 0 ;
5019 int arg2 ;
5020 void *argp1 = 0 ;
5021 int res1 = 0 ;
5022 int val2 ;
5023 int ecode2 = 0 ;
5024 PyObject * obj0 = 0 ;
5025 PyObject * obj1 = 0 ;
5026 char * kwnames[] = {
5027 (char *) "self",(char *) "cap_style", NULL
5028 };
5029
5030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
5031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5032 if (!SWIG_IsOK(res1)) {
5033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
5034 }
5035 arg1 = reinterpret_cast< wxPen * >(argp1);
5036 ecode2 = SWIG_AsVal_int(obj1, &val2);
5037 if (!SWIG_IsOK(ecode2)) {
5038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
5039 }
5040 arg2 = static_cast< int >(val2);
5041 {
5042 PyThreadState* __tstate = wxPyBeginAllowThreads();
5043 (arg1)->SetCap(arg2);
5044 wxPyEndAllowThreads(__tstate);
5045 if (PyErr_Occurred()) SWIG_fail;
5046 }
5047 resultobj = SWIG_Py_Void();
5048 return resultobj;
5049 fail:
5050 return NULL;
5051 }
5052
5053
5054 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5055 PyObject *resultobj = 0;
5056 wxPen *arg1 = (wxPen *) 0 ;
5057 wxColour *arg2 = 0 ;
5058 void *argp1 = 0 ;
5059 int res1 = 0 ;
5060 wxColour temp2 ;
5061 PyObject * obj0 = 0 ;
5062 PyObject * obj1 = 0 ;
5063 char * kwnames[] = {
5064 (char *) "self",(char *) "colour", NULL
5065 };
5066
5067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5069 if (!SWIG_IsOK(res1)) {
5070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
5071 }
5072 arg1 = reinterpret_cast< wxPen * >(argp1);
5073 {
5074 arg2 = &temp2;
5075 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5076 }
5077 {
5078 PyThreadState* __tstate = wxPyBeginAllowThreads();
5079 (arg1)->SetColour(*arg2);
5080 wxPyEndAllowThreads(__tstate);
5081 if (PyErr_Occurred()) SWIG_fail;
5082 }
5083 resultobj = SWIG_Py_Void();
5084 return resultobj;
5085 fail:
5086 return NULL;
5087 }
5088
5089
5090 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5091 PyObject *resultobj = 0;
5092 wxPen *arg1 = (wxPen *) 0 ;
5093 int arg2 ;
5094 void *argp1 = 0 ;
5095 int res1 = 0 ;
5096 int val2 ;
5097 int ecode2 = 0 ;
5098 PyObject * obj0 = 0 ;
5099 PyObject * obj1 = 0 ;
5100 char * kwnames[] = {
5101 (char *) "self",(char *) "join_style", NULL
5102 };
5103
5104 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
5105 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5106 if (!SWIG_IsOK(res1)) {
5107 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
5108 }
5109 arg1 = reinterpret_cast< wxPen * >(argp1);
5110 ecode2 = SWIG_AsVal_int(obj1, &val2);
5111 if (!SWIG_IsOK(ecode2)) {
5112 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
5113 }
5114 arg2 = static_cast< int >(val2);
5115 {
5116 PyThreadState* __tstate = wxPyBeginAllowThreads();
5117 (arg1)->SetJoin(arg2);
5118 wxPyEndAllowThreads(__tstate);
5119 if (PyErr_Occurred()) SWIG_fail;
5120 }
5121 resultobj = SWIG_Py_Void();
5122 return resultobj;
5123 fail:
5124 return NULL;
5125 }
5126
5127
5128 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5129 PyObject *resultobj = 0;
5130 wxPen *arg1 = (wxPen *) 0 ;
5131 int arg2 ;
5132 void *argp1 = 0 ;
5133 int res1 = 0 ;
5134 int val2 ;
5135 int ecode2 = 0 ;
5136 PyObject * obj0 = 0 ;
5137 PyObject * obj1 = 0 ;
5138 char * kwnames[] = {
5139 (char *) "self",(char *) "style", NULL
5140 };
5141
5142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5143 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5144 if (!SWIG_IsOK(res1)) {
5145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
5146 }
5147 arg1 = reinterpret_cast< wxPen * >(argp1);
5148 ecode2 = SWIG_AsVal_int(obj1, &val2);
5149 if (!SWIG_IsOK(ecode2)) {
5150 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
5151 }
5152 arg2 = static_cast< int >(val2);
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 (arg1)->SetStyle(arg2);
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_Py_Void();
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5167 PyObject *resultobj = 0;
5168 wxPen *arg1 = (wxPen *) 0 ;
5169 int arg2 ;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 int val2 ;
5173 int ecode2 = 0 ;
5174 PyObject * obj0 = 0 ;
5175 PyObject * obj1 = 0 ;
5176 char * kwnames[] = {
5177 (char *) "self",(char *) "width", NULL
5178 };
5179
5180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
5181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5182 if (!SWIG_IsOK(res1)) {
5183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
5184 }
5185 arg1 = reinterpret_cast< wxPen * >(argp1);
5186 ecode2 = SWIG_AsVal_int(obj1, &val2);
5187 if (!SWIG_IsOK(ecode2)) {
5188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
5189 }
5190 arg2 = static_cast< int >(val2);
5191 {
5192 PyThreadState* __tstate = wxPyBeginAllowThreads();
5193 (arg1)->SetWidth(arg2);
5194 wxPyEndAllowThreads(__tstate);
5195 if (PyErr_Occurred()) SWIG_fail;
5196 }
5197 resultobj = SWIG_Py_Void();
5198 return resultobj;
5199 fail:
5200 return NULL;
5201 }
5202
5203
5204 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5205 PyObject *resultobj = 0;
5206 wxPen *arg1 = (wxPen *) 0 ;
5207 int arg2 ;
5208 wxDash *arg3 = (wxDash *) 0 ;
5209 void *argp1 = 0 ;
5210 int res1 = 0 ;
5211 PyObject * obj0 = 0 ;
5212 PyObject * obj1 = 0 ;
5213 char * kwnames[] = {
5214 (char *) "self",(char *) "dashes", NULL
5215 };
5216
5217 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
5218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5219 if (!SWIG_IsOK(res1)) {
5220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5221 }
5222 arg1 = reinterpret_cast< wxPen * >(argp1);
5223 {
5224 arg2 = PyList_Size(obj1);
5225 arg3 = (wxDash*)byte_LIST_helper(obj1);
5226 if (arg3 == NULL) SWIG_fail;
5227 }
5228 {
5229 PyThreadState* __tstate = wxPyBeginAllowThreads();
5230 (arg1)->SetDashes(arg2,arg3);
5231 wxPyEndAllowThreads(__tstate);
5232 if (PyErr_Occurred()) SWIG_fail;
5233 }
5234 resultobj = SWIG_Py_Void();
5235 {
5236 if (arg3) delete [] arg3;
5237 }
5238 return resultobj;
5239 fail:
5240 {
5241 if (arg3) delete [] arg3;
5242 }
5243 return NULL;
5244 }
5245
5246
5247 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5248 PyObject *resultobj = 0;
5249 wxPen *arg1 = (wxPen *) 0 ;
5250 PyObject *result = 0 ;
5251 void *argp1 = 0 ;
5252 int res1 = 0 ;
5253 PyObject *swig_obj[1] ;
5254
5255 if (!args) SWIG_fail;
5256 swig_obj[0] = args;
5257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5258 if (!SWIG_IsOK(res1)) {
5259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5260 }
5261 arg1 = reinterpret_cast< wxPen * >(argp1);
5262 {
5263 PyThreadState* __tstate = wxPyBeginAllowThreads();
5264 result = (PyObject *)wxPen_GetDashes(arg1);
5265 wxPyEndAllowThreads(__tstate);
5266 if (PyErr_Occurred()) SWIG_fail;
5267 }
5268 resultobj = result;
5269 return resultobj;
5270 fail:
5271 return NULL;
5272 }
5273
5274
5275 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5276 PyObject *resultobj = 0;
5277 wxPen *arg1 = (wxPen *) 0 ;
5278 PyObject *arg2 = (PyObject *) 0 ;
5279 PyObject *arg3 = (PyObject *) 0 ;
5280 void *argp1 = 0 ;
5281 int res1 = 0 ;
5282 PyObject * obj0 = 0 ;
5283 PyObject * obj1 = 0 ;
5284 PyObject * obj2 = 0 ;
5285 char * kwnames[] = {
5286 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
5287 };
5288
5289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5291 if (!SWIG_IsOK(res1)) {
5292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
5293 }
5294 arg1 = reinterpret_cast< wxPen * >(argp1);
5295 arg2 = obj1;
5296 arg3 = obj2;
5297 {
5298 PyThreadState* __tstate = wxPyBeginAllowThreads();
5299 wxPen__SetDashes(arg1,arg2,arg3);
5300 wxPyEndAllowThreads(__tstate);
5301 if (PyErr_Occurred()) SWIG_fail;
5302 }
5303 resultobj = SWIG_Py_Void();
5304 return resultobj;
5305 fail:
5306 return NULL;
5307 }
5308
5309
5310 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5311 PyObject *resultobj = 0;
5312 wxPen *arg1 = (wxPen *) 0 ;
5313 int result;
5314 void *argp1 = 0 ;
5315 int res1 = 0 ;
5316 PyObject *swig_obj[1] ;
5317
5318 if (!args) SWIG_fail;
5319 swig_obj[0] = args;
5320 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5321 if (!SWIG_IsOK(res1)) {
5322 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
5323 }
5324 arg1 = reinterpret_cast< wxPen * >(argp1);
5325 {
5326 PyThreadState* __tstate = wxPyBeginAllowThreads();
5327 result = (int)((wxPen const *)arg1)->GetDashCount();
5328 wxPyEndAllowThreads(__tstate);
5329 if (PyErr_Occurred()) SWIG_fail;
5330 }
5331 resultobj = SWIG_From_int(static_cast< int >(result));
5332 return resultobj;
5333 fail:
5334 return NULL;
5335 }
5336
5337
5338 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5339 PyObject *resultobj = 0;
5340 wxPen *arg1 = (wxPen *) 0 ;
5341 wxBitmap *result = 0 ;
5342 void *argp1 = 0 ;
5343 int res1 = 0 ;
5344 PyObject *swig_obj[1] ;
5345
5346 if (!args) SWIG_fail;
5347 swig_obj[0] = args;
5348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5349 if (!SWIG_IsOK(res1)) {
5350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5351 }
5352 arg1 = reinterpret_cast< wxPen * >(argp1);
5353 {
5354 PyThreadState* __tstate = wxPyBeginAllowThreads();
5355 result = (wxBitmap *)(arg1)->GetStipple();
5356 wxPyEndAllowThreads(__tstate);
5357 if (PyErr_Occurred()) SWIG_fail;
5358 }
5359 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5360 return resultobj;
5361 fail:
5362 return NULL;
5363 }
5364
5365
5366 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5367 PyObject *resultobj = 0;
5368 wxPen *arg1 = (wxPen *) 0 ;
5369 wxBitmap *arg2 = 0 ;
5370 void *argp1 = 0 ;
5371 int res1 = 0 ;
5372 void *argp2 = 0 ;
5373 int res2 = 0 ;
5374 PyObject * obj0 = 0 ;
5375 PyObject * obj1 = 0 ;
5376 char * kwnames[] = {
5377 (char *) "self",(char *) "stipple", NULL
5378 };
5379
5380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5382 if (!SWIG_IsOK(res1)) {
5383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
5384 }
5385 arg1 = reinterpret_cast< wxPen * >(argp1);
5386 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
5387 if (!SWIG_IsOK(res2)) {
5388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5389 }
5390 if (!argp2) {
5391 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
5392 }
5393 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5394 {
5395 PyThreadState* __tstate = wxPyBeginAllowThreads();
5396 (arg1)->SetStipple(*arg2);
5397 wxPyEndAllowThreads(__tstate);
5398 if (PyErr_Occurred()) SWIG_fail;
5399 }
5400 resultobj = SWIG_Py_Void();
5401 return resultobj;
5402 fail:
5403 return NULL;
5404 }
5405
5406
5407 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5408 PyObject *resultobj = 0;
5409 wxPen *arg1 = (wxPen *) 0 ;
5410 wxPen *arg2 = (wxPen *) 0 ;
5411 bool result;
5412 void *argp1 = 0 ;
5413 int res1 = 0 ;
5414 void *argp2 = 0 ;
5415 int res2 = 0 ;
5416 PyObject * obj0 = 0 ;
5417 PyObject * obj1 = 0 ;
5418 char * kwnames[] = {
5419 (char *) "self",(char *) "other", NULL
5420 };
5421
5422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
5423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5424 if (!SWIG_IsOK(res1)) {
5425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
5426 }
5427 arg1 = reinterpret_cast< wxPen * >(argp1);
5428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5429 if (!SWIG_IsOK(res2)) {
5430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
5431 }
5432 arg2 = reinterpret_cast< wxPen * >(argp2);
5433 {
5434 PyThreadState* __tstate = wxPyBeginAllowThreads();
5435 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
5436 wxPyEndAllowThreads(__tstate);
5437 if (PyErr_Occurred()) SWIG_fail;
5438 }
5439 {
5440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5441 }
5442 return resultobj;
5443 fail:
5444 return NULL;
5445 }
5446
5447
5448 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5449 PyObject *resultobj = 0;
5450 wxPen *arg1 = (wxPen *) 0 ;
5451 wxPen *arg2 = (wxPen *) 0 ;
5452 bool result;
5453 void *argp1 = 0 ;
5454 int res1 = 0 ;
5455 void *argp2 = 0 ;
5456 int res2 = 0 ;
5457 PyObject * obj0 = 0 ;
5458 PyObject * obj1 = 0 ;
5459 char * kwnames[] = {
5460 (char *) "self",(char *) "other", NULL
5461 };
5462
5463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
5464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
5465 if (!SWIG_IsOK(res1)) {
5466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
5467 }
5468 arg1 = reinterpret_cast< wxPen * >(argp1);
5469 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
5470 if (!SWIG_IsOK(res2)) {
5471 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
5472 }
5473 arg2 = reinterpret_cast< wxPen * >(argp2);
5474 {
5475 PyThreadState* __tstate = wxPyBeginAllowThreads();
5476 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
5477 wxPyEndAllowThreads(__tstate);
5478 if (PyErr_Occurred()) SWIG_fail;
5479 }
5480 {
5481 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5482 }
5483 return resultobj;
5484 fail:
5485 return NULL;
5486 }
5487
5488
5489 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5490 PyObject *obj;
5491 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5492 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
5493 return SWIG_Py_Void();
5494 }
5495
5496 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5497 return SWIG_Python_InitShadowInstance(args);
5498 }
5499
5500 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5501 PyObject *resultobj = 0;
5502 wxColour *arg1 = 0 ;
5503 int arg2 = (int) wxSOLID ;
5504 wxBrush *result = 0 ;
5505 wxColour temp1 ;
5506 int val2 ;
5507 int ecode2 = 0 ;
5508 PyObject * obj0 = 0 ;
5509 PyObject * obj1 = 0 ;
5510 char * kwnames[] = {
5511 (char *) "colour",(char *) "style", NULL
5512 };
5513
5514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
5515 {
5516 arg1 = &temp1;
5517 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
5518 }
5519 if (obj1) {
5520 ecode2 = SWIG_AsVal_int(obj1, &val2);
5521 if (!SWIG_IsOK(ecode2)) {
5522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
5523 }
5524 arg2 = static_cast< int >(val2);
5525 }
5526 {
5527 if (!wxPyCheckForApp()) SWIG_fail;
5528 PyThreadState* __tstate = wxPyBeginAllowThreads();
5529 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5530 wxPyEndAllowThreads(__tstate);
5531 if (PyErr_Occurred()) SWIG_fail;
5532 }
5533 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5534 return resultobj;
5535 fail:
5536 return NULL;
5537 }
5538
5539
5540 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5541 PyObject *resultobj = 0;
5542 wxBitmap *arg1 = 0 ;
5543 wxBrush *result = 0 ;
5544 void *argp1 = 0 ;
5545 int res1 = 0 ;
5546 PyObject * obj0 = 0 ;
5547 char * kwnames[] = {
5548 (char *) "stippleBitmap", NULL
5549 };
5550
5551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5552 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5553 if (!SWIG_IsOK(res1)) {
5554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5555 }
5556 if (!argp1) {
5557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5558 }
5559 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5560 {
5561 if (!wxPyCheckForApp()) SWIG_fail;
5562 PyThreadState* __tstate = wxPyBeginAllowThreads();
5563 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5564 wxPyEndAllowThreads(__tstate);
5565 if (PyErr_Occurred()) SWIG_fail;
5566 }
5567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5568 return resultobj;
5569 fail:
5570 return NULL;
5571 }
5572
5573
5574 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5575 PyObject *resultobj = 0;
5576 wxBrush *arg1 = (wxBrush *) 0 ;
5577 void *argp1 = 0 ;
5578 int res1 = 0 ;
5579 PyObject *swig_obj[1] ;
5580
5581 if (!args) SWIG_fail;
5582 swig_obj[0] = args;
5583 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5584 if (!SWIG_IsOK(res1)) {
5585 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5586 }
5587 arg1 = reinterpret_cast< wxBrush * >(argp1);
5588 {
5589 PyThreadState* __tstate = wxPyBeginAllowThreads();
5590 delete arg1;
5591
5592 wxPyEndAllowThreads(__tstate);
5593 if (PyErr_Occurred()) SWIG_fail;
5594 }
5595 resultobj = SWIG_Py_Void();
5596 return resultobj;
5597 fail:
5598 return NULL;
5599 }
5600
5601
5602 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5603 PyObject *resultobj = 0;
5604 wxBrush *arg1 = (wxBrush *) 0 ;
5605 wxColour *arg2 = 0 ;
5606 void *argp1 = 0 ;
5607 int res1 = 0 ;
5608 wxColour temp2 ;
5609 PyObject * obj0 = 0 ;
5610 PyObject * obj1 = 0 ;
5611 char * kwnames[] = {
5612 (char *) "self",(char *) "col", NULL
5613 };
5614
5615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5617 if (!SWIG_IsOK(res1)) {
5618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5619 }
5620 arg1 = reinterpret_cast< wxBrush * >(argp1);
5621 {
5622 arg2 = &temp2;
5623 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5624 }
5625 {
5626 PyThreadState* __tstate = wxPyBeginAllowThreads();
5627 (arg1)->SetColour((wxColour const &)*arg2);
5628 wxPyEndAllowThreads(__tstate);
5629 if (PyErr_Occurred()) SWIG_fail;
5630 }
5631 resultobj = SWIG_Py_Void();
5632 return resultobj;
5633 fail:
5634 return NULL;
5635 }
5636
5637
5638 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5639 PyObject *resultobj = 0;
5640 wxBrush *arg1 = (wxBrush *) 0 ;
5641 int arg2 ;
5642 void *argp1 = 0 ;
5643 int res1 = 0 ;
5644 int val2 ;
5645 int ecode2 = 0 ;
5646 PyObject * obj0 = 0 ;
5647 PyObject * obj1 = 0 ;
5648 char * kwnames[] = {
5649 (char *) "self",(char *) "style", NULL
5650 };
5651
5652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5654 if (!SWIG_IsOK(res1)) {
5655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5656 }
5657 arg1 = reinterpret_cast< wxBrush * >(argp1);
5658 ecode2 = SWIG_AsVal_int(obj1, &val2);
5659 if (!SWIG_IsOK(ecode2)) {
5660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5661 }
5662 arg2 = static_cast< int >(val2);
5663 {
5664 PyThreadState* __tstate = wxPyBeginAllowThreads();
5665 (arg1)->SetStyle(arg2);
5666 wxPyEndAllowThreads(__tstate);
5667 if (PyErr_Occurred()) SWIG_fail;
5668 }
5669 resultobj = SWIG_Py_Void();
5670 return resultobj;
5671 fail:
5672 return NULL;
5673 }
5674
5675
5676 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5677 PyObject *resultobj = 0;
5678 wxBrush *arg1 = (wxBrush *) 0 ;
5679 wxBitmap *arg2 = 0 ;
5680 void *argp1 = 0 ;
5681 int res1 = 0 ;
5682 void *argp2 = 0 ;
5683 int res2 = 0 ;
5684 PyObject * obj0 = 0 ;
5685 PyObject * obj1 = 0 ;
5686 char * kwnames[] = {
5687 (char *) "self",(char *) "stipple", NULL
5688 };
5689
5690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5692 if (!SWIG_IsOK(res1)) {
5693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5694 }
5695 arg1 = reinterpret_cast< wxBrush * >(argp1);
5696 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5697 if (!SWIG_IsOK(res2)) {
5698 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5699 }
5700 if (!argp2) {
5701 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5702 }
5703 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5704 {
5705 PyThreadState* __tstate = wxPyBeginAllowThreads();
5706 (arg1)->SetStipple((wxBitmap const &)*arg2);
5707 wxPyEndAllowThreads(__tstate);
5708 if (PyErr_Occurred()) SWIG_fail;
5709 }
5710 resultobj = SWIG_Py_Void();
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5718 PyObject *resultobj = 0;
5719 wxBrush *arg1 = (wxBrush *) 0 ;
5720 wxColour result;
5721 void *argp1 = 0 ;
5722 int res1 = 0 ;
5723 PyObject *swig_obj[1] ;
5724
5725 if (!args) SWIG_fail;
5726 swig_obj[0] = args;
5727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5728 if (!SWIG_IsOK(res1)) {
5729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5730 }
5731 arg1 = reinterpret_cast< wxBrush * >(argp1);
5732 {
5733 PyThreadState* __tstate = wxPyBeginAllowThreads();
5734 result = ((wxBrush const *)arg1)->GetColour();
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5739 return resultobj;
5740 fail:
5741 return NULL;
5742 }
5743
5744
5745 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5746 PyObject *resultobj = 0;
5747 wxBrush *arg1 = (wxBrush *) 0 ;
5748 int result;
5749 void *argp1 = 0 ;
5750 int res1 = 0 ;
5751 PyObject *swig_obj[1] ;
5752
5753 if (!args) SWIG_fail;
5754 swig_obj[0] = args;
5755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5756 if (!SWIG_IsOK(res1)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5758 }
5759 arg1 = reinterpret_cast< wxBrush * >(argp1);
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 result = (int)((wxBrush const *)arg1)->GetStyle();
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 resultobj = SWIG_From_int(static_cast< int >(result));
5767 return resultobj;
5768 fail:
5769 return NULL;
5770 }
5771
5772
5773 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5774 PyObject *resultobj = 0;
5775 wxBrush *arg1 = (wxBrush *) 0 ;
5776 wxBitmap *result = 0 ;
5777 void *argp1 = 0 ;
5778 int res1 = 0 ;
5779 PyObject *swig_obj[1] ;
5780
5781 if (!args) SWIG_fail;
5782 swig_obj[0] = args;
5783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5784 if (!SWIG_IsOK(res1)) {
5785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5786 }
5787 arg1 = reinterpret_cast< wxBrush * >(argp1);
5788 {
5789 PyThreadState* __tstate = wxPyBeginAllowThreads();
5790 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5791 wxPyEndAllowThreads(__tstate);
5792 if (PyErr_Occurred()) SWIG_fail;
5793 }
5794 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5795 return resultobj;
5796 fail:
5797 return NULL;
5798 }
5799
5800
5801 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5802 PyObject *resultobj = 0;
5803 wxBrush *arg1 = (wxBrush *) 0 ;
5804 bool result;
5805 void *argp1 = 0 ;
5806 int res1 = 0 ;
5807 PyObject *swig_obj[1] ;
5808
5809 if (!args) SWIG_fail;
5810 swig_obj[0] = args;
5811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5812 if (!SWIG_IsOK(res1)) {
5813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5814 }
5815 arg1 = reinterpret_cast< wxBrush * >(argp1);
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 result = (bool)((wxBrush const *)arg1)->IsHatch();
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 {
5823 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5824 }
5825 return resultobj;
5826 fail:
5827 return NULL;
5828 }
5829
5830
5831 SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5832 PyObject *resultobj = 0;
5833 wxBrush *arg1 = (wxBrush *) 0 ;
5834 bool result;
5835 void *argp1 = 0 ;
5836 int res1 = 0 ;
5837 PyObject *swig_obj[1] ;
5838
5839 if (!args) SWIG_fail;
5840 swig_obj[0] = args;
5841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5842 if (!SWIG_IsOK(res1)) {
5843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'");
5844 }
5845 arg1 = reinterpret_cast< wxBrush * >(argp1);
5846 {
5847 PyThreadState* __tstate = wxPyBeginAllowThreads();
5848 result = (bool)(arg1)->IsOk();
5849 wxPyEndAllowThreads(__tstate);
5850 if (PyErr_Occurred()) SWIG_fail;
5851 }
5852 {
5853 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5854 }
5855 return resultobj;
5856 fail:
5857 return NULL;
5858 }
5859
5860
5861 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5862 PyObject *obj;
5863 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5864 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5865 return SWIG_Py_Void();
5866 }
5867
5868 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5869 return SWIG_Python_InitShadowInstance(args);
5870 }
5871
5872 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5873 PyObject *resultobj = 0;
5874 wxString *arg1 = 0 ;
5875 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5876 wxBitmap *result = 0 ;
5877 bool temp1 = false ;
5878 int val2 ;
5879 int ecode2 = 0 ;
5880 PyObject * obj0 = 0 ;
5881 PyObject * obj1 = 0 ;
5882 char * kwnames[] = {
5883 (char *) "name",(char *) "type", NULL
5884 };
5885
5886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5887 {
5888 arg1 = wxString_in_helper(obj0);
5889 if (arg1 == NULL) SWIG_fail;
5890 temp1 = true;
5891 }
5892 if (obj1) {
5893 ecode2 = SWIG_AsVal_int(obj1, &val2);
5894 if (!SWIG_IsOK(ecode2)) {
5895 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5896 }
5897 arg2 = static_cast< wxBitmapType >(val2);
5898 }
5899 {
5900 if (!wxPyCheckForApp()) SWIG_fail;
5901 PyThreadState* __tstate = wxPyBeginAllowThreads();
5902 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5903 wxPyEndAllowThreads(__tstate);
5904 if (PyErr_Occurred()) SWIG_fail;
5905 }
5906 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5907 {
5908 if (temp1)
5909 delete arg1;
5910 }
5911 return resultobj;
5912 fail:
5913 {
5914 if (temp1)
5915 delete arg1;
5916 }
5917 return NULL;
5918 }
5919
5920
5921 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5922 PyObject *resultobj = 0;
5923 wxBitmap *arg1 = (wxBitmap *) 0 ;
5924 void *argp1 = 0 ;
5925 int res1 = 0 ;
5926 PyObject *swig_obj[1] ;
5927
5928 if (!args) SWIG_fail;
5929 swig_obj[0] = args;
5930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5931 if (!SWIG_IsOK(res1)) {
5932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5933 }
5934 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5935 {
5936 delete arg1;
5937
5938 if (PyErr_Occurred()) SWIG_fail;
5939 }
5940 resultobj = SWIG_Py_Void();
5941 return resultobj;
5942 fail:
5943 return NULL;
5944 }
5945
5946
5947 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5948 PyObject *resultobj = 0;
5949 int arg1 ;
5950 int arg2 ;
5951 int arg3 = (int) -1 ;
5952 wxBitmap *result = 0 ;
5953 int val1 ;
5954 int ecode1 = 0 ;
5955 int val2 ;
5956 int ecode2 = 0 ;
5957 int val3 ;
5958 int ecode3 = 0 ;
5959 PyObject * obj0 = 0 ;
5960 PyObject * obj1 = 0 ;
5961 PyObject * obj2 = 0 ;
5962 char * kwnames[] = {
5963 (char *) "width",(char *) "height",(char *) "depth", NULL
5964 };
5965
5966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5967 ecode1 = SWIG_AsVal_int(obj0, &val1);
5968 if (!SWIG_IsOK(ecode1)) {
5969 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5970 }
5971 arg1 = static_cast< int >(val1);
5972 ecode2 = SWIG_AsVal_int(obj1, &val2);
5973 if (!SWIG_IsOK(ecode2)) {
5974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5975 }
5976 arg2 = static_cast< int >(val2);
5977 if (obj2) {
5978 ecode3 = SWIG_AsVal_int(obj2, &val3);
5979 if (!SWIG_IsOK(ecode3)) {
5980 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5981 }
5982 arg3 = static_cast< int >(val3);
5983 }
5984 {
5985 if (!wxPyCheckForApp()) SWIG_fail;
5986 PyThreadState* __tstate = wxPyBeginAllowThreads();
5987 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5988 wxPyEndAllowThreads(__tstate);
5989 if (PyErr_Occurred()) SWIG_fail;
5990 }
5991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5992 return resultobj;
5993 fail:
5994 return NULL;
5995 }
5996
5997
5998 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5999 PyObject *resultobj = 0;
6000 wxIcon *arg1 = 0 ;
6001 wxBitmap *result = 0 ;
6002 void *argp1 = 0 ;
6003 int res1 = 0 ;
6004 PyObject * obj0 = 0 ;
6005 char * kwnames[] = {
6006 (char *) "icon", NULL
6007 };
6008
6009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
6010 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
6011 if (!SWIG_IsOK(res1)) {
6012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6013 }
6014 if (!argp1) {
6015 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
6016 }
6017 arg1 = reinterpret_cast< wxIcon * >(argp1);
6018 {
6019 if (!wxPyCheckForApp()) SWIG_fail;
6020 PyThreadState* __tstate = wxPyBeginAllowThreads();
6021 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
6022 wxPyEndAllowThreads(__tstate);
6023 if (PyErr_Occurred()) SWIG_fail;
6024 }
6025 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6026 return resultobj;
6027 fail:
6028 return NULL;
6029 }
6030
6031
6032 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6033 PyObject *resultobj = 0;
6034 wxImage *arg1 = 0 ;
6035 int arg2 = (int) -1 ;
6036 wxBitmap *result = 0 ;
6037 void *argp1 = 0 ;
6038 int res1 = 0 ;
6039 int val2 ;
6040 int ecode2 = 0 ;
6041 PyObject * obj0 = 0 ;
6042 PyObject * obj1 = 0 ;
6043 char * kwnames[] = {
6044 (char *) "image",(char *) "depth", NULL
6045 };
6046
6047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
6048 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
6049 if (!SWIG_IsOK(res1)) {
6050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6051 }
6052 if (!argp1) {
6053 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
6054 }
6055 arg1 = reinterpret_cast< wxImage * >(argp1);
6056 if (obj1) {
6057 ecode2 = SWIG_AsVal_int(obj1, &val2);
6058 if (!SWIG_IsOK(ecode2)) {
6059 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
6060 }
6061 arg2 = static_cast< int >(val2);
6062 }
6063 {
6064 if (!wxPyCheckForApp()) SWIG_fail;
6065 PyThreadState* __tstate = wxPyBeginAllowThreads();
6066 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
6067 wxPyEndAllowThreads(__tstate);
6068 if (PyErr_Occurred()) SWIG_fail;
6069 }
6070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6071 return resultobj;
6072 fail:
6073 return NULL;
6074 }
6075
6076
6077 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6078 PyObject *resultobj = 0;
6079 PyObject *arg1 = (PyObject *) 0 ;
6080 wxBitmap *result = 0 ;
6081 PyObject * obj0 = 0 ;
6082 char * kwnames[] = {
6083 (char *) "listOfStrings", NULL
6084 };
6085
6086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
6087 arg1 = obj0;
6088 {
6089 if (!wxPyCheckForApp()) SWIG_fail;
6090 PyThreadState* __tstate = wxPyBeginAllowThreads();
6091 result = (wxBitmap *)new_wxBitmap(arg1);
6092 wxPyEndAllowThreads(__tstate);
6093 if (PyErr_Occurred()) SWIG_fail;
6094 }
6095 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6096 return resultobj;
6097 fail:
6098 return NULL;
6099 }
6100
6101
6102 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6103 PyObject *resultobj = 0;
6104 PyObject *arg1 = (PyObject *) 0 ;
6105 int arg2 ;
6106 int arg3 ;
6107 int arg4 = (int) 1 ;
6108 wxBitmap *result = 0 ;
6109 int val2 ;
6110 int ecode2 = 0 ;
6111 int val3 ;
6112 int ecode3 = 0 ;
6113 int val4 ;
6114 int ecode4 = 0 ;
6115 PyObject * obj0 = 0 ;
6116 PyObject * obj1 = 0 ;
6117 PyObject * obj2 = 0 ;
6118 PyObject * obj3 = 0 ;
6119 char * kwnames[] = {
6120 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
6121 };
6122
6123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6124 arg1 = obj0;
6125 ecode2 = SWIG_AsVal_int(obj1, &val2);
6126 if (!SWIG_IsOK(ecode2)) {
6127 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
6128 }
6129 arg2 = static_cast< int >(val2);
6130 ecode3 = SWIG_AsVal_int(obj2, &val3);
6131 if (!SWIG_IsOK(ecode3)) {
6132 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
6133 }
6134 arg3 = static_cast< int >(val3);
6135 if (obj3) {
6136 ecode4 = SWIG_AsVal_int(obj3, &val4);
6137 if (!SWIG_IsOK(ecode4)) {
6138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
6139 }
6140 arg4 = static_cast< int >(val4);
6141 }
6142 {
6143 if (!wxPyCheckForApp()) SWIG_fail;
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6157 PyObject *resultobj = 0;
6158 wxBitmap *arg1 = (wxBitmap *) 0 ;
6159 long result;
6160 void *argp1 = 0 ;
6161 int res1 = 0 ;
6162 PyObject *swig_obj[1] ;
6163
6164 if (!args) SWIG_fail;
6165 swig_obj[0] = args;
6166 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6167 if (!SWIG_IsOK(res1)) {
6168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6169 }
6170 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6171 {
6172 result = (long)(arg1)->GetHandle();
6173 if (PyErr_Occurred()) SWIG_fail;
6174 }
6175 resultobj = SWIG_From_long(static_cast< long >(result));
6176 return resultobj;
6177 fail:
6178 return NULL;
6179 }
6180
6181
6182 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6183 PyObject *resultobj = 0;
6184 wxBitmap *arg1 = (wxBitmap *) 0 ;
6185 long arg2 ;
6186 void *argp1 = 0 ;
6187 int res1 = 0 ;
6188 long val2 ;
6189 int ecode2 = 0 ;
6190 PyObject * obj0 = 0 ;
6191 PyObject * obj1 = 0 ;
6192 char * kwnames[] = {
6193 (char *) "self",(char *) "handle", NULL
6194 };
6195
6196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6198 if (!SWIG_IsOK(res1)) {
6199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
6200 }
6201 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6202 ecode2 = SWIG_AsVal_long(obj1, &val2);
6203 if (!SWIG_IsOK(ecode2)) {
6204 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
6205 }
6206 arg2 = static_cast< long >(val2);
6207 {
6208 wxBitmap_SetHandle(arg1,arg2);
6209 if (PyErr_Occurred()) SWIG_fail;
6210 }
6211 resultobj = SWIG_Py_Void();
6212 return resultobj;
6213 fail:
6214 return NULL;
6215 }
6216
6217
6218 SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6219 PyObject *resultobj = 0;
6220 wxBitmap *arg1 = (wxBitmap *) 0 ;
6221 bool result;
6222 void *argp1 = 0 ;
6223 int res1 = 0 ;
6224 PyObject *swig_obj[1] ;
6225
6226 if (!args) SWIG_fail;
6227 swig_obj[0] = args;
6228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6229 if (!SWIG_IsOK(res1)) {
6230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'");
6231 }
6232 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6233 {
6234 result = (bool)(arg1)->IsOk();
6235 if (PyErr_Occurred()) SWIG_fail;
6236 }
6237 {
6238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6239 }
6240 return resultobj;
6241 fail:
6242 return NULL;
6243 }
6244
6245
6246 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6247 PyObject *resultobj = 0;
6248 wxBitmap *arg1 = (wxBitmap *) 0 ;
6249 int result;
6250 void *argp1 = 0 ;
6251 int res1 = 0 ;
6252 PyObject *swig_obj[1] ;
6253
6254 if (!args) SWIG_fail;
6255 swig_obj[0] = args;
6256 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6257 if (!SWIG_IsOK(res1)) {
6258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6259 }
6260 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6261 {
6262 result = (int)(arg1)->GetWidth();
6263 if (PyErr_Occurred()) SWIG_fail;
6264 }
6265 resultobj = SWIG_From_int(static_cast< int >(result));
6266 return resultobj;
6267 fail:
6268 return NULL;
6269 }
6270
6271
6272 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6273 PyObject *resultobj = 0;
6274 wxBitmap *arg1 = (wxBitmap *) 0 ;
6275 int result;
6276 void *argp1 = 0 ;
6277 int res1 = 0 ;
6278 PyObject *swig_obj[1] ;
6279
6280 if (!args) SWIG_fail;
6281 swig_obj[0] = args;
6282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6283 if (!SWIG_IsOK(res1)) {
6284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6285 }
6286 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6287 {
6288 result = (int)(arg1)->GetHeight();
6289 if (PyErr_Occurred()) SWIG_fail;
6290 }
6291 resultobj = SWIG_From_int(static_cast< int >(result));
6292 return resultobj;
6293 fail:
6294 return NULL;
6295 }
6296
6297
6298 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6299 PyObject *resultobj = 0;
6300 wxBitmap *arg1 = (wxBitmap *) 0 ;
6301 int result;
6302 void *argp1 = 0 ;
6303 int res1 = 0 ;
6304 PyObject *swig_obj[1] ;
6305
6306 if (!args) SWIG_fail;
6307 swig_obj[0] = args;
6308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6309 if (!SWIG_IsOK(res1)) {
6310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6311 }
6312 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6313 {
6314 result = (int)(arg1)->GetDepth();
6315 if (PyErr_Occurred()) SWIG_fail;
6316 }
6317 resultobj = SWIG_From_int(static_cast< int >(result));
6318 return resultobj;
6319 fail:
6320 return NULL;
6321 }
6322
6323
6324 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6325 PyObject *resultobj = 0;
6326 wxBitmap *arg1 = (wxBitmap *) 0 ;
6327 wxSize result;
6328 void *argp1 = 0 ;
6329 int res1 = 0 ;
6330 PyObject *swig_obj[1] ;
6331
6332 if (!args) SWIG_fail;
6333 swig_obj[0] = args;
6334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6335 if (!SWIG_IsOK(res1)) {
6336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6337 }
6338 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6339 {
6340 result = wxBitmap_GetSize(arg1);
6341 if (PyErr_Occurred()) SWIG_fail;
6342 }
6343 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
6344 return resultobj;
6345 fail:
6346 return NULL;
6347 }
6348
6349
6350 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6351 PyObject *resultobj = 0;
6352 wxBitmap *arg1 = (wxBitmap *) 0 ;
6353 SwigValueWrapper<wxImage > result;
6354 void *argp1 = 0 ;
6355 int res1 = 0 ;
6356 PyObject *swig_obj[1] ;
6357
6358 if (!args) SWIG_fail;
6359 swig_obj[0] = args;
6360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6361 if (!SWIG_IsOK(res1)) {
6362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6363 }
6364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6365 {
6366 result = ((wxBitmap const *)arg1)->ConvertToImage();
6367 if (PyErr_Occurred()) SWIG_fail;
6368 }
6369 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
6370 return resultobj;
6371 fail:
6372 return NULL;
6373 }
6374
6375
6376 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6377 PyObject *resultobj = 0;
6378 wxBitmap *arg1 = (wxBitmap *) 0 ;
6379 wxMask *result = 0 ;
6380 void *argp1 = 0 ;
6381 int res1 = 0 ;
6382 PyObject *swig_obj[1] ;
6383
6384 if (!args) SWIG_fail;
6385 swig_obj[0] = args;
6386 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6387 if (!SWIG_IsOK(res1)) {
6388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6389 }
6390 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6391 {
6392 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
6393 if (PyErr_Occurred()) SWIG_fail;
6394 }
6395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
6396 return resultobj;
6397 fail:
6398 return NULL;
6399 }
6400
6401
6402 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6403 PyObject *resultobj = 0;
6404 wxBitmap *arg1 = (wxBitmap *) 0 ;
6405 wxMask *arg2 = (wxMask *) 0 ;
6406 void *argp1 = 0 ;
6407 int res1 = 0 ;
6408 int res2 = 0 ;
6409 PyObject * obj0 = 0 ;
6410 PyObject * obj1 = 0 ;
6411 char * kwnames[] = {
6412 (char *) "self",(char *) "mask", NULL
6413 };
6414
6415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
6416 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6417 if (!SWIG_IsOK(res1)) {
6418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
6419 }
6420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6421 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6422 if (!SWIG_IsOK(res2)) {
6423 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
6424 }
6425 {
6426 (arg1)->SetMask(arg2);
6427 if (PyErr_Occurred()) SWIG_fail;
6428 }
6429 resultobj = SWIG_Py_Void();
6430 return resultobj;
6431 fail:
6432 return NULL;
6433 }
6434
6435
6436 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6437 PyObject *resultobj = 0;
6438 wxBitmap *arg1 = (wxBitmap *) 0 ;
6439 wxColour *arg2 = 0 ;
6440 void *argp1 = 0 ;
6441 int res1 = 0 ;
6442 wxColour temp2 ;
6443 PyObject * obj0 = 0 ;
6444 PyObject * obj1 = 0 ;
6445 char * kwnames[] = {
6446 (char *) "self",(char *) "colour", NULL
6447 };
6448
6449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
6450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6451 if (!SWIG_IsOK(res1)) {
6452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
6453 }
6454 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6455 {
6456 arg2 = &temp2;
6457 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6458 }
6459 {
6460 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
6461 if (PyErr_Occurred()) SWIG_fail;
6462 }
6463 resultobj = SWIG_Py_Void();
6464 return resultobj;
6465 fail:
6466 return NULL;
6467 }
6468
6469
6470 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6471 PyObject *resultobj = 0;
6472 wxBitmap *arg1 = (wxBitmap *) 0 ;
6473 wxRect *arg2 = 0 ;
6474 SwigValueWrapper<wxBitmap > result;
6475 void *argp1 = 0 ;
6476 int res1 = 0 ;
6477 wxRect temp2 ;
6478 PyObject * obj0 = 0 ;
6479 PyObject * obj1 = 0 ;
6480 char * kwnames[] = {
6481 (char *) "self",(char *) "rect", NULL
6482 };
6483
6484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6486 if (!SWIG_IsOK(res1)) {
6487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6488 }
6489 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6490 {
6491 arg2 = &temp2;
6492 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
6493 }
6494 {
6495 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
6499 return resultobj;
6500 fail:
6501 return NULL;
6502 }
6503
6504
6505 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6506 PyObject *resultobj = 0;
6507 wxBitmap *arg1 = (wxBitmap *) 0 ;
6508 wxString *arg2 = 0 ;
6509 wxBitmapType arg3 ;
6510 wxPalette *arg4 = (wxPalette *) NULL ;
6511 bool result;
6512 void *argp1 = 0 ;
6513 int res1 = 0 ;
6514 bool temp2 = false ;
6515 int val3 ;
6516 int ecode3 = 0 ;
6517 void *argp4 = 0 ;
6518 int res4 = 0 ;
6519 PyObject * obj0 = 0 ;
6520 PyObject * obj1 = 0 ;
6521 PyObject * obj2 = 0 ;
6522 PyObject * obj3 = 0 ;
6523 char * kwnames[] = {
6524 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6525 };
6526
6527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6529 if (!SWIG_IsOK(res1)) {
6530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6531 }
6532 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6533 {
6534 arg2 = wxString_in_helper(obj1);
6535 if (arg2 == NULL) SWIG_fail;
6536 temp2 = true;
6537 }
6538 ecode3 = SWIG_AsVal_int(obj2, &val3);
6539 if (!SWIG_IsOK(ecode3)) {
6540 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6541 }
6542 arg3 = static_cast< wxBitmapType >(val3);
6543 if (obj3) {
6544 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6545 if (!SWIG_IsOK(res4)) {
6546 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6547 }
6548 arg4 = reinterpret_cast< wxPalette * >(argp4);
6549 }
6550 {
6551 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6552 if (PyErr_Occurred()) SWIG_fail;
6553 }
6554 {
6555 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6556 }
6557 {
6558 if (temp2)
6559 delete arg2;
6560 }
6561 return resultobj;
6562 fail:
6563 {
6564 if (temp2)
6565 delete arg2;
6566 }
6567 return NULL;
6568 }
6569
6570
6571 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6572 PyObject *resultobj = 0;
6573 wxBitmap *arg1 = (wxBitmap *) 0 ;
6574 wxString *arg2 = 0 ;
6575 wxBitmapType arg3 ;
6576 bool result;
6577 void *argp1 = 0 ;
6578 int res1 = 0 ;
6579 bool temp2 = false ;
6580 int val3 ;
6581 int ecode3 = 0 ;
6582 PyObject * obj0 = 0 ;
6583 PyObject * obj1 = 0 ;
6584 PyObject * obj2 = 0 ;
6585 char * kwnames[] = {
6586 (char *) "self",(char *) "name",(char *) "type", NULL
6587 };
6588
6589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6591 if (!SWIG_IsOK(res1)) {
6592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6593 }
6594 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6595 {
6596 arg2 = wxString_in_helper(obj1);
6597 if (arg2 == NULL) SWIG_fail;
6598 temp2 = true;
6599 }
6600 ecode3 = SWIG_AsVal_int(obj2, &val3);
6601 if (!SWIG_IsOK(ecode3)) {
6602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6603 }
6604 arg3 = static_cast< wxBitmapType >(val3);
6605 {
6606 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6607 if (PyErr_Occurred()) SWIG_fail;
6608 }
6609 {
6610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6611 }
6612 {
6613 if (temp2)
6614 delete arg2;
6615 }
6616 return resultobj;
6617 fail:
6618 {
6619 if (temp2)
6620 delete arg2;
6621 }
6622 return NULL;
6623 }
6624
6625
6626 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6627 PyObject *resultobj = 0;
6628 wxBitmap *arg1 = (wxBitmap *) 0 ;
6629 wxPalette *result = 0 ;
6630 void *argp1 = 0 ;
6631 int res1 = 0 ;
6632 PyObject *swig_obj[1] ;
6633
6634 if (!args) SWIG_fail;
6635 swig_obj[0] = args;
6636 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6637 if (!SWIG_IsOK(res1)) {
6638 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6639 }
6640 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6641 {
6642 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6643 if (PyErr_Occurred()) SWIG_fail;
6644 }
6645 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6646 return resultobj;
6647 fail:
6648 return NULL;
6649 }
6650
6651
6652 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6653 PyObject *resultobj = 0;
6654 wxBitmap *arg1 = (wxBitmap *) 0 ;
6655 wxPalette *arg2 = 0 ;
6656 void *argp1 = 0 ;
6657 int res1 = 0 ;
6658 void *argp2 = 0 ;
6659 int res2 = 0 ;
6660 PyObject * obj0 = 0 ;
6661 PyObject * obj1 = 0 ;
6662 char * kwnames[] = {
6663 (char *) "self",(char *) "palette", NULL
6664 };
6665
6666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6668 if (!SWIG_IsOK(res1)) {
6669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6670 }
6671 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6672 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6673 if (!SWIG_IsOK(res2)) {
6674 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6675 }
6676 if (!argp2) {
6677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6678 }
6679 arg2 = reinterpret_cast< wxPalette * >(argp2);
6680 {
6681 (arg1)->SetPalette((wxPalette const &)*arg2);
6682 if (PyErr_Occurred()) SWIG_fail;
6683 }
6684 resultobj = SWIG_Py_Void();
6685 return resultobj;
6686 fail:
6687 return NULL;
6688 }
6689
6690
6691 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6692 PyObject *resultobj = 0;
6693 wxBitmap *arg1 = (wxBitmap *) 0 ;
6694 wxIcon *arg2 = 0 ;
6695 bool result;
6696 void *argp1 = 0 ;
6697 int res1 = 0 ;
6698 void *argp2 = 0 ;
6699 int res2 = 0 ;
6700 PyObject * obj0 = 0 ;
6701 PyObject * obj1 = 0 ;
6702 char * kwnames[] = {
6703 (char *) "self",(char *) "icon", NULL
6704 };
6705
6706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6708 if (!SWIG_IsOK(res1)) {
6709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6710 }
6711 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6713 if (!SWIG_IsOK(res2)) {
6714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6715 }
6716 if (!argp2) {
6717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6718 }
6719 arg2 = reinterpret_cast< wxIcon * >(argp2);
6720 {
6721 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6722 if (PyErr_Occurred()) SWIG_fail;
6723 }
6724 {
6725 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6726 }
6727 return resultobj;
6728 fail:
6729 return NULL;
6730 }
6731
6732
6733 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6734 PyObject *resultobj = 0;
6735 wxBitmap *arg1 = (wxBitmap *) 0 ;
6736 int arg2 ;
6737 void *argp1 = 0 ;
6738 int res1 = 0 ;
6739 int val2 ;
6740 int ecode2 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 PyObject * obj1 = 0 ;
6743 char * kwnames[] = {
6744 (char *) "self",(char *) "height", NULL
6745 };
6746
6747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6749 if (!SWIG_IsOK(res1)) {
6750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6751 }
6752 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6753 ecode2 = SWIG_AsVal_int(obj1, &val2);
6754 if (!SWIG_IsOK(ecode2)) {
6755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6756 }
6757 arg2 = static_cast< int >(val2);
6758 {
6759 (arg1)->SetHeight(arg2);
6760 if (PyErr_Occurred()) SWIG_fail;
6761 }
6762 resultobj = SWIG_Py_Void();
6763 return resultobj;
6764 fail:
6765 return NULL;
6766 }
6767
6768
6769 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6770 PyObject *resultobj = 0;
6771 wxBitmap *arg1 = (wxBitmap *) 0 ;
6772 int arg2 ;
6773 void *argp1 = 0 ;
6774 int res1 = 0 ;
6775 int val2 ;
6776 int ecode2 = 0 ;
6777 PyObject * obj0 = 0 ;
6778 PyObject * obj1 = 0 ;
6779 char * kwnames[] = {
6780 (char *) "self",(char *) "width", NULL
6781 };
6782
6783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6785 if (!SWIG_IsOK(res1)) {
6786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6787 }
6788 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6789 ecode2 = SWIG_AsVal_int(obj1, &val2);
6790 if (!SWIG_IsOK(ecode2)) {
6791 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6792 }
6793 arg2 = static_cast< int >(val2);
6794 {
6795 (arg1)->SetWidth(arg2);
6796 if (PyErr_Occurred()) SWIG_fail;
6797 }
6798 resultobj = SWIG_Py_Void();
6799 return resultobj;
6800 fail:
6801 return NULL;
6802 }
6803
6804
6805 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6806 PyObject *resultobj = 0;
6807 wxBitmap *arg1 = (wxBitmap *) 0 ;
6808 int arg2 ;
6809 void *argp1 = 0 ;
6810 int res1 = 0 ;
6811 int val2 ;
6812 int ecode2 = 0 ;
6813 PyObject * obj0 = 0 ;
6814 PyObject * obj1 = 0 ;
6815 char * kwnames[] = {
6816 (char *) "self",(char *) "depth", NULL
6817 };
6818
6819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6821 if (!SWIG_IsOK(res1)) {
6822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6823 }
6824 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6825 ecode2 = SWIG_AsVal_int(obj1, &val2);
6826 if (!SWIG_IsOK(ecode2)) {
6827 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6828 }
6829 arg2 = static_cast< int >(val2);
6830 {
6831 (arg1)->SetDepth(arg2);
6832 if (PyErr_Occurred()) SWIG_fail;
6833 }
6834 resultobj = SWIG_Py_Void();
6835 return resultobj;
6836 fail:
6837 return NULL;
6838 }
6839
6840
6841 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6842 PyObject *resultobj = 0;
6843 wxBitmap *arg1 = (wxBitmap *) 0 ;
6844 wxSize *arg2 = 0 ;
6845 void *argp1 = 0 ;
6846 int res1 = 0 ;
6847 wxSize temp2 ;
6848 PyObject * obj0 = 0 ;
6849 PyObject * obj1 = 0 ;
6850 char * kwnames[] = {
6851 (char *) "self",(char *) "size", NULL
6852 };
6853
6854 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6855 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6856 if (!SWIG_IsOK(res1)) {
6857 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6858 }
6859 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6860 {
6861 arg2 = &temp2;
6862 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6863 }
6864 {
6865 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6866 if (PyErr_Occurred()) SWIG_fail;
6867 }
6868 resultobj = SWIG_Py_Void();
6869 return resultobj;
6870 fail:
6871 return NULL;
6872 }
6873
6874
6875 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6876 PyObject *resultobj = 0;
6877 wxBitmap *arg1 = (wxBitmap *) 0 ;
6878 wxCursor *arg2 = 0 ;
6879 bool result;
6880 void *argp1 = 0 ;
6881 int res1 = 0 ;
6882 void *argp2 = 0 ;
6883 int res2 = 0 ;
6884 PyObject * obj0 = 0 ;
6885 PyObject * obj1 = 0 ;
6886 char * kwnames[] = {
6887 (char *) "self",(char *) "cursor", NULL
6888 };
6889
6890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6892 if (!SWIG_IsOK(res1)) {
6893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6894 }
6895 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6897 if (!SWIG_IsOK(res2)) {
6898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6899 }
6900 if (!argp2) {
6901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6902 }
6903 arg2 = reinterpret_cast< wxCursor * >(argp2);
6904 {
6905 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6906 if (PyErr_Occurred()) SWIG_fail;
6907 }
6908 {
6909 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6910 }
6911 return resultobj;
6912 fail:
6913 return NULL;
6914 }
6915
6916
6917 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6918 PyObject *resultobj = 0;
6919 wxBitmap *arg1 = (wxBitmap *) 0 ;
6920 wxBitmap *arg2 = (wxBitmap *) 0 ;
6921 bool result;
6922 void *argp1 = 0 ;
6923 int res1 = 0 ;
6924 void *argp2 = 0 ;
6925 int res2 = 0 ;
6926 PyObject * obj0 = 0 ;
6927 PyObject * obj1 = 0 ;
6928 char * kwnames[] = {
6929 (char *) "self",(char *) "other", NULL
6930 };
6931
6932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6934 if (!SWIG_IsOK(res1)) {
6935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6936 }
6937 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6938 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6939 if (!SWIG_IsOK(res2)) {
6940 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6941 }
6942 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6943 {
6944 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6945 if (PyErr_Occurred()) SWIG_fail;
6946 }
6947 {
6948 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6949 }
6950 return resultobj;
6951 fail:
6952 return NULL;
6953 }
6954
6955
6956 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6957 PyObject *resultobj = 0;
6958 wxBitmap *arg1 = (wxBitmap *) 0 ;
6959 wxBitmap *arg2 = (wxBitmap *) 0 ;
6960 bool result;
6961 void *argp1 = 0 ;
6962 int res1 = 0 ;
6963 void *argp2 = 0 ;
6964 int res2 = 0 ;
6965 PyObject * obj0 = 0 ;
6966 PyObject * obj1 = 0 ;
6967 char * kwnames[] = {
6968 (char *) "self",(char *) "other", NULL
6969 };
6970
6971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6973 if (!SWIG_IsOK(res1)) {
6974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6975 }
6976 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6977 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6978 if (!SWIG_IsOK(res2)) {
6979 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6980 }
6981 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6982 {
6983 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6984 if (PyErr_Occurred()) SWIG_fail;
6985 }
6986 {
6987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6988 }
6989 return resultobj;
6990 fail:
6991 return NULL;
6992 }
6993
6994
6995 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6996 PyObject *obj;
6997 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6998 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6999 return SWIG_Py_Void();
7000 }
7001
7002 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7003 return SWIG_Python_InitShadowInstance(args);
7004 }
7005
7006 SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7007 PyObject *resultobj = 0;
7008 int arg1 ;
7009 int arg2 ;
7010 buffer arg3 ;
7011 int arg4 ;
7012 buffer arg5 ;
7013 int arg6 ;
7014 wxBitmap *result = 0 ;
7015 int val1 ;
7016 int ecode1 = 0 ;
7017 int val2 ;
7018 int ecode2 = 0 ;
7019 Py_ssize_t temp3 ;
7020 Py_ssize_t temp5 ;
7021 PyObject * obj0 = 0 ;
7022 PyObject * obj1 = 0 ;
7023 PyObject * obj2 = 0 ;
7024 PyObject * obj3 = 0 ;
7025 char * kwnames[] = {
7026 (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL
7027 };
7028
7029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7030 ecode1 = SWIG_AsVal_int(obj0, &val1);
7031 if (!SWIG_IsOK(ecode1)) {
7032 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'");
7033 }
7034 arg1 = static_cast< int >(val1);
7035 ecode2 = SWIG_AsVal_int(obj1, &val2);
7036 if (!SWIG_IsOK(ecode2)) {
7037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'");
7038 }
7039 arg2 = static_cast< int >(val2);
7040 {
7041 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7042 arg4 = (int)temp3;
7043 }
7044 {
7045 if (obj3 != Py_None) {
7046 if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail;
7047 arg6 = (int)temp5;
7048 }
7049 }
7050 {
7051 result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6);
7052 if (PyErr_Occurred()) SWIG_fail;
7053 }
7054 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7055 return resultobj;
7056 fail:
7057 return NULL;
7058 }
7059
7060
7061 SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7062 PyObject *resultobj = 0;
7063 int arg1 ;
7064 int arg2 ;
7065 buffer arg3 ;
7066 int arg4 ;
7067 wxBitmap *result = 0 ;
7068 int val1 ;
7069 int ecode1 = 0 ;
7070 int val2 ;
7071 int ecode2 = 0 ;
7072 Py_ssize_t temp3 ;
7073 PyObject * obj0 = 0 ;
7074 PyObject * obj1 = 0 ;
7075 PyObject * obj2 = 0 ;
7076 char * kwnames[] = {
7077 (char *) "width",(char *) "height",(char *) "data", NULL
7078 };
7079
7080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7081 ecode1 = SWIG_AsVal_int(obj0, &val1);
7082 if (!SWIG_IsOK(ecode1)) {
7083 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'");
7084 }
7085 arg1 = static_cast< int >(val1);
7086 ecode2 = SWIG_AsVal_int(obj1, &val2);
7087 if (!SWIG_IsOK(ecode2)) {
7088 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'");
7089 }
7090 arg2 = static_cast< int >(val2);
7091 {
7092 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7093 arg4 = (int)temp3;
7094 }
7095 {
7096 result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4);
7097 if (PyErr_Occurred()) SWIG_fail;
7098 }
7099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7100 return resultobj;
7101 fail:
7102 return NULL;
7103 }
7104
7105
7106 SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7107 PyObject *resultobj = 0;
7108 int arg1 ;
7109 int arg2 ;
7110 buffer arg3 ;
7111 int arg4 ;
7112 wxBitmap *result = 0 ;
7113 int val1 ;
7114 int ecode1 = 0 ;
7115 int val2 ;
7116 int ecode2 = 0 ;
7117 Py_ssize_t temp3 ;
7118 PyObject * obj0 = 0 ;
7119 PyObject * obj1 = 0 ;
7120 PyObject * obj2 = 0 ;
7121 char * kwnames[] = {
7122 (char *) "width",(char *) "height",(char *) "data", NULL
7123 };
7124
7125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7126 ecode1 = SWIG_AsVal_int(obj0, &val1);
7127 if (!SWIG_IsOK(ecode1)) {
7128 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'");
7129 }
7130 arg1 = static_cast< int >(val1);
7131 ecode2 = SWIG_AsVal_int(obj1, &val2);
7132 if (!SWIG_IsOK(ecode2)) {
7133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'");
7134 }
7135 arg2 = static_cast< int >(val2);
7136 {
7137 if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail;
7138 arg4 = (int)temp3;
7139 }
7140 {
7141 result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4);
7142 if (PyErr_Occurred()) SWIG_fail;
7143 }
7144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
7145 return resultobj;
7146 fail:
7147 return NULL;
7148 }
7149
7150
7151 SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7152 PyObject *resultobj = 0;
7153 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7154 wxPoint result;
7155 void *argp1 = 0 ;
7156 int res1 = 0 ;
7157 PyObject *swig_obj[1] ;
7158
7159 if (!args) SWIG_fail;
7160 swig_obj[0] = args;
7161 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7162 if (!SWIG_IsOK(res1)) {
7163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7164 }
7165 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7166 {
7167 result = ((wxPixelDataBase const *)arg1)->GetOrigin();
7168 if (PyErr_Occurred()) SWIG_fail;
7169 }
7170 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
7171 return resultobj;
7172 fail:
7173 return NULL;
7174 }
7175
7176
7177 SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7178 PyObject *resultobj = 0;
7179 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7180 int result;
7181 void *argp1 = 0 ;
7182 int res1 = 0 ;
7183 PyObject *swig_obj[1] ;
7184
7185 if (!args) SWIG_fail;
7186 swig_obj[0] = args;
7187 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7188 if (!SWIG_IsOK(res1)) {
7189 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7190 }
7191 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7192 {
7193 result = (int)((wxPixelDataBase const *)arg1)->GetWidth();
7194 if (PyErr_Occurred()) SWIG_fail;
7195 }
7196 resultobj = SWIG_From_int(static_cast< int >(result));
7197 return resultobj;
7198 fail:
7199 return NULL;
7200 }
7201
7202
7203 SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7204 PyObject *resultobj = 0;
7205 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7206 int result;
7207 void *argp1 = 0 ;
7208 int res1 = 0 ;
7209 PyObject *swig_obj[1] ;
7210
7211 if (!args) SWIG_fail;
7212 swig_obj[0] = args;
7213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7214 if (!SWIG_IsOK(res1)) {
7215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7216 }
7217 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7218 {
7219 result = (int)((wxPixelDataBase const *)arg1)->GetHeight();
7220 if (PyErr_Occurred()) SWIG_fail;
7221 }
7222 resultobj = SWIG_From_int(static_cast< int >(result));
7223 return resultobj;
7224 fail:
7225 return NULL;
7226 }
7227
7228
7229 SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7230 PyObject *resultobj = 0;
7231 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7232 wxSize result;
7233 void *argp1 = 0 ;
7234 int res1 = 0 ;
7235 PyObject *swig_obj[1] ;
7236
7237 if (!args) SWIG_fail;
7238 swig_obj[0] = args;
7239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7240 if (!SWIG_IsOK(res1)) {
7241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7242 }
7243 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7244 {
7245 result = ((wxPixelDataBase const *)arg1)->GetSize();
7246 if (PyErr_Occurred()) SWIG_fail;
7247 }
7248 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
7249 return resultobj;
7250 fail:
7251 return NULL;
7252 }
7253
7254
7255 SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7256 PyObject *resultobj = 0;
7257 wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ;
7258 int result;
7259 void *argp1 = 0 ;
7260 int res1 = 0 ;
7261 PyObject *swig_obj[1] ;
7262
7263 if (!args) SWIG_fail;
7264 swig_obj[0] = args;
7265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 );
7266 if (!SWIG_IsOK(res1)) {
7267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'");
7268 }
7269 arg1 = reinterpret_cast< wxPixelDataBase * >(argp1);
7270 {
7271 result = (int)((wxPixelDataBase const *)arg1)->GetRowStride();
7272 if (PyErr_Occurred()) SWIG_fail;
7273 }
7274 resultobj = SWIG_From_int(static_cast< int >(result));
7275 return resultobj;
7276 fail:
7277 return NULL;
7278 }
7279
7280
7281 SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7282 PyObject *obj;
7283 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7284 SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj));
7285 return SWIG_Py_Void();
7286 }
7287
7288 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7289 PyObject *resultobj = 0;
7290 wxBitmap *arg1 = 0 ;
7291 wxNativePixelData *result = 0 ;
7292 void *argp1 = 0 ;
7293 int res1 = 0 ;
7294
7295 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7297 if (!SWIG_IsOK(res1)) {
7298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7299 }
7300 if (!argp1) {
7301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7302 }
7303 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7304 {
7305 result = (wxNativePixelData *)new wxNativePixelData(*arg1);
7306 if (PyErr_Occurred()) SWIG_fail;
7307 }
7308 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7309 return resultobj;
7310 fail:
7311 return NULL;
7312 }
7313
7314
7315 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7316 PyObject *resultobj = 0;
7317 wxBitmap *arg1 = 0 ;
7318 wxRect *arg2 = 0 ;
7319 wxNativePixelData *result = 0 ;
7320 void *argp1 = 0 ;
7321 int res1 = 0 ;
7322 wxRect temp2 ;
7323
7324 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7325 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7326 if (!SWIG_IsOK(res1)) {
7327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7328 }
7329 if (!argp1) {
7330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7331 }
7332 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7333 {
7334 arg2 = &temp2;
7335 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
7336 }
7337 {
7338 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2);
7339 if (PyErr_Occurred()) SWIG_fail;
7340 }
7341 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7342 return resultobj;
7343 fail:
7344 return NULL;
7345 }
7346
7347
7348 SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7349 PyObject *resultobj = 0;
7350 wxBitmap *arg1 = 0 ;
7351 wxPoint *arg2 = 0 ;
7352 wxSize *arg3 = 0 ;
7353 wxNativePixelData *result = 0 ;
7354 void *argp1 = 0 ;
7355 int res1 = 0 ;
7356 wxPoint temp2 ;
7357 wxSize temp3 ;
7358
7359 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
7360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7361 if (!SWIG_IsOK(res1)) {
7362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7363 }
7364 if (!argp1) {
7365 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
7366 }
7367 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7368 {
7369 arg2 = &temp2;
7370 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
7371 }
7372 {
7373 arg3 = &temp3;
7374 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
7375 }
7376 {
7377 result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
7378 if (PyErr_Occurred()) SWIG_fail;
7379 }
7380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 );
7381 return resultobj;
7382 fail:
7383 return NULL;
7384 }
7385
7386
7387 SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) {
7388 int argc;
7389 PyObject *argv[4];
7390
7391 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail;
7392 --argc;
7393 if (argc == 1) {
7394 return _wrap_new_NativePixelData__SWIG_0(self, argc, argv);
7395 }
7396 if (argc == 2) {
7397 return _wrap_new_NativePixelData__SWIG_1(self, argc, argv);
7398 }
7399 if (argc == 3) {
7400 return _wrap_new_NativePixelData__SWIG_2(self, argc, argv);
7401 }
7402
7403 fail:
7404 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'");
7405 return NULL;
7406 }
7407
7408
7409 SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7410 PyObject *resultobj = 0;
7411 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7412 void *argp1 = 0 ;
7413 int res1 = 0 ;
7414 PyObject *swig_obj[1] ;
7415
7416 if (!args) SWIG_fail;
7417 swig_obj[0] = args;
7418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 );
7419 if (!SWIG_IsOK(res1)) {
7420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7421 }
7422 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7423 {
7424 delete arg1;
7425
7426 if (PyErr_Occurred()) SWIG_fail;
7427 }
7428 resultobj = SWIG_Py_Void();
7429 return resultobj;
7430 fail:
7431 return NULL;
7432 }
7433
7434
7435 SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7436 PyObject *resultobj = 0;
7437 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7438 wxNativePixelData_Accessor result;
7439 void *argp1 = 0 ;
7440 int res1 = 0 ;
7441 PyObject *swig_obj[1] ;
7442
7443 if (!args) SWIG_fail;
7444 swig_obj[0] = args;
7445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7446 if (!SWIG_IsOK(res1)) {
7447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'");
7448 }
7449 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7450 {
7451 result = ((wxNativePixelData const *)arg1)->GetPixels();
7452 if (PyErr_Occurred()) SWIG_fail;
7453 }
7454 resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 );
7455 return resultobj;
7456 fail:
7457 return NULL;
7458 }
7459
7460
7461 SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7462 PyObject *resultobj = 0;
7463 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7464 void *argp1 = 0 ;
7465 int res1 = 0 ;
7466 PyObject *swig_obj[1] ;
7467
7468 if (!args) SWIG_fail;
7469 swig_obj[0] = args;
7470 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7471 if (!SWIG_IsOK(res1)) {
7472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7473 }
7474 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7475 {
7476 (arg1)->UseAlpha();
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 resultobj = SWIG_Py_Void();
7480 return resultobj;
7481 fail:
7482 return NULL;
7483 }
7484
7485
7486 SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7487 PyObject *resultobj = 0;
7488 wxNativePixelData *arg1 = (wxNativePixelData *) 0 ;
7489 bool result;
7490 void *argp1 = 0 ;
7491 int res1 = 0 ;
7492 PyObject *swig_obj[1] ;
7493
7494 if (!args) SWIG_fail;
7495 swig_obj[0] = args;
7496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 );
7497 if (!SWIG_IsOK(res1)) {
7498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'");
7499 }
7500 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7501 {
7502 result = (bool)wxNativePixelData___nonzero__(arg1);
7503 if (PyErr_Occurred()) SWIG_fail;
7504 }
7505 {
7506 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7507 }
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7515 PyObject *obj;
7516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7517 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj));
7518 return SWIG_Py_Void();
7519 }
7520
7521 SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7522 return SWIG_Python_InitShadowInstance(args);
7523 }
7524
7525 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7526 PyObject *resultobj = 0;
7527 wxNativePixelData *arg1 = 0 ;
7528 wxNativePixelData_Accessor *result = 0 ;
7529 void *argp1 = 0 ;
7530 int res1 = 0 ;
7531
7532 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
7533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 );
7534 if (!SWIG_IsOK(res1)) {
7535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7536 }
7537 if (!argp1) {
7538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'");
7539 }
7540 arg1 = reinterpret_cast< wxNativePixelData * >(argp1);
7541 {
7542 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1);
7543 if (PyErr_Occurred()) SWIG_fail;
7544 }
7545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7546 return resultobj;
7547 fail:
7548 return NULL;
7549 }
7550
7551
7552 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
7553 PyObject *resultobj = 0;
7554 wxBitmap *arg1 = 0 ;
7555 wxNativePixelData *arg2 = 0 ;
7556 wxNativePixelData_Accessor *result = 0 ;
7557 void *argp1 = 0 ;
7558 int res1 = 0 ;
7559 void *argp2 = 0 ;
7560 int res2 = 0 ;
7561
7562 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
7563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
7564 if (!SWIG_IsOK(res1)) {
7565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7566 }
7567 if (!argp1) {
7568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
7569 }
7570 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7571 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 );
7572 if (!SWIG_IsOK(res2)) {
7573 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7574 }
7575 if (!argp2) {
7576 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'");
7577 }
7578 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7579 {
7580 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2);
7581 if (PyErr_Occurred()) SWIG_fail;
7582 }
7583 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7584 return resultobj;
7585 fail:
7586 return NULL;
7587 }
7588
7589
7590 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
7591 PyObject *resultobj = 0;
7592 wxNativePixelData_Accessor *result = 0 ;
7593
7594 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
7595 {
7596 result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor();
7597 if (PyErr_Occurred()) SWIG_fail;
7598 }
7599 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 );
7600 return resultobj;
7601 fail:
7602 return NULL;
7603 }
7604
7605
7606 SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) {
7607 int argc;
7608 PyObject *argv[3];
7609
7610 if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail;
7611 --argc;
7612 if (argc == 0) {
7613 return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv);
7614 }
7615 if (argc == 1) {
7616 return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv);
7617 }
7618 if (argc == 2) {
7619 return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv);
7620 }
7621
7622 fail:
7623 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'");
7624 return NULL;
7625 }
7626
7627
7628 SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7629 PyObject *resultobj = 0;
7630 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7631 void *argp1 = 0 ;
7632 int res1 = 0 ;
7633 PyObject *swig_obj[1] ;
7634
7635 if (!args) SWIG_fail;
7636 swig_obj[0] = args;
7637 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
7638 if (!SWIG_IsOK(res1)) {
7639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7640 }
7641 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7642 {
7643 delete arg1;
7644
7645 if (PyErr_Occurred()) SWIG_fail;
7646 }
7647 resultobj = SWIG_Py_Void();
7648 return resultobj;
7649 fail:
7650 return NULL;
7651 }
7652
7653
7654 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7655 PyObject *resultobj = 0;
7656 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7657 wxNativePixelData *arg2 = 0 ;
7658 void *argp1 = 0 ;
7659 int res1 = 0 ;
7660 void *argp2 = 0 ;
7661 int res2 = 0 ;
7662 PyObject * obj0 = 0 ;
7663 PyObject * obj1 = 0 ;
7664 char * kwnames[] = {
7665 (char *) "self",(char *) "data", NULL
7666 };
7667
7668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
7669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7670 if (!SWIG_IsOK(res1)) {
7671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7672 }
7673 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7674 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7675 if (!SWIG_IsOK(res2)) {
7676 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7677 }
7678 if (!argp2) {
7679 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7680 }
7681 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7682 {
7683 (arg1)->Reset((wxNativePixelData const &)*arg2);
7684 if (PyErr_Occurred()) SWIG_fail;
7685 }
7686 resultobj = SWIG_Py_Void();
7687 return resultobj;
7688 fail:
7689 return NULL;
7690 }
7691
7692
7693 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7694 PyObject *resultobj = 0;
7695 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7696 bool result;
7697 void *argp1 = 0 ;
7698 int res1 = 0 ;
7699 PyObject *swig_obj[1] ;
7700
7701 if (!args) SWIG_fail;
7702 swig_obj[0] = args;
7703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7704 if (!SWIG_IsOK(res1)) {
7705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'");
7706 }
7707 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7708 {
7709 result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk();
7710 if (PyErr_Occurred()) SWIG_fail;
7711 }
7712 {
7713 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7714 }
7715 return resultobj;
7716 fail:
7717 return NULL;
7718 }
7719
7720
7721 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7722 PyObject *resultobj = 0;
7723 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7724 void *argp1 = 0 ;
7725 int res1 = 0 ;
7726 PyObject *swig_obj[1] ;
7727
7728 if (!args) SWIG_fail;
7729 swig_obj[0] = args;
7730 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7731 if (!SWIG_IsOK(res1)) {
7732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7733 }
7734 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7735 {
7736 wxNativePixelData_Accessor_nextPixel(arg1);
7737 if (PyErr_Occurred()) SWIG_fail;
7738 }
7739 resultobj = SWIG_Py_Void();
7740 return resultobj;
7741 fail:
7742 return NULL;
7743 }
7744
7745
7746 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj = 0;
7748 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7749 wxNativePixelData *arg2 = 0 ;
7750 int arg3 ;
7751 int arg4 ;
7752 void *argp1 = 0 ;
7753 int res1 = 0 ;
7754 void *argp2 = 0 ;
7755 int res2 = 0 ;
7756 int val3 ;
7757 int ecode3 = 0 ;
7758 int val4 ;
7759 int ecode4 = 0 ;
7760 PyObject * obj0 = 0 ;
7761 PyObject * obj1 = 0 ;
7762 PyObject * obj2 = 0 ;
7763 PyObject * obj3 = 0 ;
7764 char * kwnames[] = {
7765 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7766 };
7767
7768 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7769 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7770 if (!SWIG_IsOK(res1)) {
7771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7772 }
7773 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7774 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7775 if (!SWIG_IsOK(res2)) {
7776 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7777 }
7778 if (!argp2) {
7779 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7780 }
7781 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7782 ecode3 = SWIG_AsVal_int(obj2, &val3);
7783 if (!SWIG_IsOK(ecode3)) {
7784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
7785 }
7786 arg3 = static_cast< int >(val3);
7787 ecode4 = SWIG_AsVal_int(obj3, &val4);
7788 if (!SWIG_IsOK(ecode4)) {
7789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
7790 }
7791 arg4 = static_cast< int >(val4);
7792 {
7793 (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4);
7794 if (PyErr_Occurred()) SWIG_fail;
7795 }
7796 resultobj = SWIG_Py_Void();
7797 return resultobj;
7798 fail:
7799 return NULL;
7800 }
7801
7802
7803 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7804 PyObject *resultobj = 0;
7805 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7806 wxNativePixelData *arg2 = 0 ;
7807 int arg3 ;
7808 void *argp1 = 0 ;
7809 int res1 = 0 ;
7810 void *argp2 = 0 ;
7811 int res2 = 0 ;
7812 int val3 ;
7813 int ecode3 = 0 ;
7814 PyObject * obj0 = 0 ;
7815 PyObject * obj1 = 0 ;
7816 PyObject * obj2 = 0 ;
7817 char * kwnames[] = {
7818 (char *) "self",(char *) "data",(char *) "x", NULL
7819 };
7820
7821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7822 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7823 if (!SWIG_IsOK(res1)) {
7824 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7825 }
7826 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7827 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7828 if (!SWIG_IsOK(res2)) {
7829 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7830 }
7831 if (!argp2) {
7832 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7833 }
7834 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7835 ecode3 = SWIG_AsVal_int(obj2, &val3);
7836 if (!SWIG_IsOK(ecode3)) {
7837 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
7838 }
7839 arg3 = static_cast< int >(val3);
7840 {
7841 (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_Py_Void();
7845 return resultobj;
7846 fail:
7847 return NULL;
7848 }
7849
7850
7851 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7852 PyObject *resultobj = 0;
7853 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7854 wxNativePixelData *arg2 = 0 ;
7855 int arg3 ;
7856 void *argp1 = 0 ;
7857 int res1 = 0 ;
7858 void *argp2 = 0 ;
7859 int res2 = 0 ;
7860 int val3 ;
7861 int ecode3 = 0 ;
7862 PyObject * obj0 = 0 ;
7863 PyObject * obj1 = 0 ;
7864 PyObject * obj2 = 0 ;
7865 char * kwnames[] = {
7866 (char *) "self",(char *) "data",(char *) "y", NULL
7867 };
7868
7869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7871 if (!SWIG_IsOK(res1)) {
7872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7873 }
7874 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7875 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7876 if (!SWIG_IsOK(res2)) {
7877 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7878 }
7879 if (!argp2) {
7880 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7881 }
7882 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7883 ecode3 = SWIG_AsVal_int(obj2, &val3);
7884 if (!SWIG_IsOK(ecode3)) {
7885 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
7886 }
7887 arg3 = static_cast< int >(val3);
7888 {
7889 (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3);
7890 if (PyErr_Occurred()) SWIG_fail;
7891 }
7892 resultobj = SWIG_Py_Void();
7893 return resultobj;
7894 fail:
7895 return NULL;
7896 }
7897
7898
7899 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7900 PyObject *resultobj = 0;
7901 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7902 wxNativePixelData *arg2 = 0 ;
7903 int arg3 ;
7904 int arg4 ;
7905 void *argp1 = 0 ;
7906 int res1 = 0 ;
7907 void *argp2 = 0 ;
7908 int res2 = 0 ;
7909 int val3 ;
7910 int ecode3 = 0 ;
7911 int val4 ;
7912 int ecode4 = 0 ;
7913 PyObject * obj0 = 0 ;
7914 PyObject * obj1 = 0 ;
7915 PyObject * obj2 = 0 ;
7916 PyObject * obj3 = 0 ;
7917 char * kwnames[] = {
7918 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
7919 };
7920
7921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7923 if (!SWIG_IsOK(res1)) {
7924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7925 }
7926 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7927 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0);
7928 if (!SWIG_IsOK(res2)) {
7929 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7930 }
7931 if (!argp2) {
7932 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'");
7933 }
7934 arg2 = reinterpret_cast< wxNativePixelData * >(argp2);
7935 ecode3 = SWIG_AsVal_int(obj2, &val3);
7936 if (!SWIG_IsOK(ecode3)) {
7937 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
7938 }
7939 arg3 = static_cast< int >(val3);
7940 ecode4 = SWIG_AsVal_int(obj3, &val4);
7941 if (!SWIG_IsOK(ecode4)) {
7942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
7943 }
7944 arg4 = static_cast< int >(val4);
7945 {
7946 (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4);
7947 if (PyErr_Occurred()) SWIG_fail;
7948 }
7949 resultobj = SWIG_Py_Void();
7950 return resultobj;
7951 fail:
7952 return NULL;
7953 }
7954
7955
7956 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7957 PyObject *resultobj = 0;
7958 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
7959 byte arg2 ;
7960 byte arg3 ;
7961 byte arg4 ;
7962 void *argp1 = 0 ;
7963 int res1 = 0 ;
7964 unsigned char val2 ;
7965 int ecode2 = 0 ;
7966 unsigned char val3 ;
7967 int ecode3 = 0 ;
7968 unsigned char val4 ;
7969 int ecode4 = 0 ;
7970 PyObject * obj0 = 0 ;
7971 PyObject * obj1 = 0 ;
7972 PyObject * obj2 = 0 ;
7973 PyObject * obj3 = 0 ;
7974 char * kwnames[] = {
7975 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
7976 };
7977
7978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
7980 if (!SWIG_IsOK(res1)) {
7981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
7982 }
7983 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
7984 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
7985 if (!SWIG_IsOK(ecode2)) {
7986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
7987 }
7988 arg2 = static_cast< byte >(val2);
7989 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
7990 if (!SWIG_IsOK(ecode3)) {
7991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
7992 }
7993 arg3 = static_cast< byte >(val3);
7994 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
7995 if (!SWIG_IsOK(ecode4)) {
7996 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
7997 }
7998 arg4 = static_cast< byte >(val4);
7999 {
8000 wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4);
8001 if (PyErr_Occurred()) SWIG_fail;
8002 }
8003 resultobj = SWIG_Py_Void();
8004 return resultobj;
8005 fail:
8006 return NULL;
8007 }
8008
8009
8010 SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8011 PyObject *resultobj = 0;
8012 wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ;
8013 PyObject *result = 0 ;
8014 void *argp1 = 0 ;
8015 int res1 = 0 ;
8016 PyObject *swig_obj[1] ;
8017
8018 if (!args) SWIG_fail;
8019 swig_obj[0] = args;
8020 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 );
8021 if (!SWIG_IsOK(res1)) {
8022 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'");
8023 }
8024 arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1);
8025 {
8026 result = (PyObject *)wxNativePixelData_Accessor_Get(arg1);
8027 if (PyErr_Occurred()) SWIG_fail;
8028 }
8029 resultobj = result;
8030 return resultobj;
8031 fail:
8032 return NULL;
8033 }
8034
8035
8036 SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8037 PyObject *obj;
8038 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8039 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj));
8040 return SWIG_Py_Void();
8041 }
8042
8043 SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8044 return SWIG_Python_InitShadowInstance(args);
8045 }
8046
8047 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8048 PyObject *resultobj = 0;
8049 wxBitmap *arg1 = 0 ;
8050 wxAlphaPixelData *result = 0 ;
8051 void *argp1 = 0 ;
8052 int res1 = 0 ;
8053
8054 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8056 if (!SWIG_IsOK(res1)) {
8057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8058 }
8059 if (!argp1) {
8060 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8061 }
8062 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8063 {
8064 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1);
8065 if (PyErr_Occurred()) SWIG_fail;
8066 }
8067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8068 return resultobj;
8069 fail:
8070 return NULL;
8071 }
8072
8073
8074 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8075 PyObject *resultobj = 0;
8076 wxBitmap *arg1 = 0 ;
8077 wxRect *arg2 = 0 ;
8078 wxAlphaPixelData *result = 0 ;
8079 void *argp1 = 0 ;
8080 int res1 = 0 ;
8081 wxRect temp2 ;
8082
8083 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8084 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8085 if (!SWIG_IsOK(res1)) {
8086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8087 }
8088 if (!argp1) {
8089 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8090 }
8091 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8092 {
8093 arg2 = &temp2;
8094 if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail;
8095 }
8096 {
8097 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2);
8098 if (PyErr_Occurred()) SWIG_fail;
8099 }
8100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8101 return resultobj;
8102 fail:
8103 return NULL;
8104 }
8105
8106
8107 SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8108 PyObject *resultobj = 0;
8109 wxBitmap *arg1 = 0 ;
8110 wxPoint *arg2 = 0 ;
8111 wxSize *arg3 = 0 ;
8112 wxAlphaPixelData *result = 0 ;
8113 void *argp1 = 0 ;
8114 int res1 = 0 ;
8115 wxPoint temp2 ;
8116 wxSize temp3 ;
8117
8118 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
8119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8120 if (!SWIG_IsOK(res1)) {
8121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8122 }
8123 if (!argp1) {
8124 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'");
8125 }
8126 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8127 {
8128 arg2 = &temp2;
8129 if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail;
8130 }
8131 {
8132 arg3 = &temp3;
8133 if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail;
8134 }
8135 {
8136 result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3);
8137 if (PyErr_Occurred()) SWIG_fail;
8138 }
8139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 );
8140 return resultobj;
8141 fail:
8142 return NULL;
8143 }
8144
8145
8146 SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) {
8147 int argc;
8148 PyObject *argv[4];
8149
8150 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail;
8151 --argc;
8152 if (argc == 1) {
8153 return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv);
8154 }
8155 if (argc == 2) {
8156 return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv);
8157 }
8158 if (argc == 3) {
8159 return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv);
8160 }
8161
8162 fail:
8163 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'");
8164 return NULL;
8165 }
8166
8167
8168 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8169 PyObject *resultobj = 0;
8170 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8171 void *argp1 = 0 ;
8172 int res1 = 0 ;
8173 PyObject *swig_obj[1] ;
8174
8175 if (!args) SWIG_fail;
8176 swig_obj[0] = args;
8177 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 );
8178 if (!SWIG_IsOK(res1)) {
8179 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8180 }
8181 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8182 {
8183 delete arg1;
8184
8185 if (PyErr_Occurred()) SWIG_fail;
8186 }
8187 resultobj = SWIG_Py_Void();
8188 return resultobj;
8189 fail:
8190 return NULL;
8191 }
8192
8193
8194 SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8195 PyObject *resultobj = 0;
8196 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8197 wxAlphaPixelData_Accessor result;
8198 void *argp1 = 0 ;
8199 int res1 = 0 ;
8200 PyObject *swig_obj[1] ;
8201
8202 if (!args) SWIG_fail;
8203 swig_obj[0] = args;
8204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8205 if (!SWIG_IsOK(res1)) {
8206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'");
8207 }
8208 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8209 {
8210 result = ((wxAlphaPixelData const *)arg1)->GetPixels();
8211 if (PyErr_Occurred()) SWIG_fail;
8212 }
8213 resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 );
8214 return resultobj;
8215 fail:
8216 return NULL;
8217 }
8218
8219
8220 SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8221 PyObject *resultobj = 0;
8222 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8223 void *argp1 = 0 ;
8224 int res1 = 0 ;
8225 PyObject *swig_obj[1] ;
8226
8227 if (!args) SWIG_fail;
8228 swig_obj[0] = args;
8229 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8230 if (!SWIG_IsOK(res1)) {
8231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8232 }
8233 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8234 {
8235 (arg1)->UseAlpha();
8236 if (PyErr_Occurred()) SWIG_fail;
8237 }
8238 resultobj = SWIG_Py_Void();
8239 return resultobj;
8240 fail:
8241 return NULL;
8242 }
8243
8244
8245 SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8246 PyObject *resultobj = 0;
8247 wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ;
8248 bool result;
8249 void *argp1 = 0 ;
8250 int res1 = 0 ;
8251 PyObject *swig_obj[1] ;
8252
8253 if (!args) SWIG_fail;
8254 swig_obj[0] = args;
8255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 );
8256 if (!SWIG_IsOK(res1)) {
8257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'");
8258 }
8259 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8260 {
8261 result = (bool)wxAlphaPixelData___nonzero__(arg1);
8262 if (PyErr_Occurred()) SWIG_fail;
8263 }
8264 {
8265 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8266 }
8267 return resultobj;
8268 fail:
8269 return NULL;
8270 }
8271
8272
8273 SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8274 PyObject *obj;
8275 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8276 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj));
8277 return SWIG_Py_Void();
8278 }
8279
8280 SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8281 return SWIG_Python_InitShadowInstance(args);
8282 }
8283
8284 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8285 PyObject *resultobj = 0;
8286 wxAlphaPixelData *arg1 = 0 ;
8287 wxAlphaPixelData_Accessor *result = 0 ;
8288 void *argp1 = 0 ;
8289 int res1 = 0 ;
8290
8291 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
8292 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 );
8293 if (!SWIG_IsOK(res1)) {
8294 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8295 }
8296 if (!argp1) {
8297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'");
8298 }
8299 arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1);
8300 {
8301 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8305 return resultobj;
8306 fail:
8307 return NULL;
8308 }
8309
8310
8311 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
8312 PyObject *resultobj = 0;
8313 wxBitmap *arg1 = 0 ;
8314 wxAlphaPixelData *arg2 = 0 ;
8315 wxAlphaPixelData_Accessor *result = 0 ;
8316 void *argp1 = 0 ;
8317 int res1 = 0 ;
8318 void *argp2 = 0 ;
8319 int res2 = 0 ;
8320
8321 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
8322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 );
8323 if (!SWIG_IsOK(res1)) {
8324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8325 }
8326 if (!argp1) {
8327 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'");
8328 }
8329 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8330 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 );
8331 if (!SWIG_IsOK(res2)) {
8332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8333 }
8334 if (!argp2) {
8335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'");
8336 }
8337 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8338 {
8339 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2);
8340 if (PyErr_Occurred()) SWIG_fail;
8341 }
8342 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8343 return resultobj;
8344 fail:
8345 return NULL;
8346 }
8347
8348
8349 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
8350 PyObject *resultobj = 0;
8351 wxAlphaPixelData_Accessor *result = 0 ;
8352
8353 if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
8354 {
8355 result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor();
8356 if (PyErr_Occurred()) SWIG_fail;
8357 }
8358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 );
8359 return resultobj;
8360 fail:
8361 return NULL;
8362 }
8363
8364
8365 SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) {
8366 int argc;
8367 PyObject *argv[3];
8368
8369 if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail;
8370 --argc;
8371 if (argc == 0) {
8372 return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv);
8373 }
8374 if (argc == 1) {
8375 return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv);
8376 }
8377 if (argc == 2) {
8378 return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv);
8379 }
8380
8381 fail:
8382 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'");
8383 return NULL;
8384 }
8385
8386
8387 SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8388 PyObject *resultobj = 0;
8389 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8390 void *argp1 = 0 ;
8391 int res1 = 0 ;
8392 PyObject *swig_obj[1] ;
8393
8394 if (!args) SWIG_fail;
8395 swig_obj[0] = args;
8396 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 );
8397 if (!SWIG_IsOK(res1)) {
8398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8399 }
8400 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8401 {
8402 delete arg1;
8403
8404 if (PyErr_Occurred()) SWIG_fail;
8405 }
8406 resultobj = SWIG_Py_Void();
8407 return resultobj;
8408 fail:
8409 return NULL;
8410 }
8411
8412
8413 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8414 PyObject *resultobj = 0;
8415 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8416 wxAlphaPixelData *arg2 = 0 ;
8417 void *argp1 = 0 ;
8418 int res1 = 0 ;
8419 void *argp2 = 0 ;
8420 int res2 = 0 ;
8421 PyObject * obj0 = 0 ;
8422 PyObject * obj1 = 0 ;
8423 char * kwnames[] = {
8424 (char *) "self",(char *) "data", NULL
8425 };
8426
8427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail;
8428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8429 if (!SWIG_IsOK(res1)) {
8430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8431 }
8432 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8434 if (!SWIG_IsOK(res2)) {
8435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8436 }
8437 if (!argp2) {
8438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8439 }
8440 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8441 {
8442 (arg1)->Reset((wxAlphaPixelData const &)*arg2);
8443 if (PyErr_Occurred()) SWIG_fail;
8444 }
8445 resultobj = SWIG_Py_Void();
8446 return resultobj;
8447 fail:
8448 return NULL;
8449 }
8450
8451
8452 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8453 PyObject *resultobj = 0;
8454 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8455 bool result;
8456 void *argp1 = 0 ;
8457 int res1 = 0 ;
8458 PyObject *swig_obj[1] ;
8459
8460 if (!args) SWIG_fail;
8461 swig_obj[0] = args;
8462 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8463 if (!SWIG_IsOK(res1)) {
8464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'");
8465 }
8466 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8467 {
8468 result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk();
8469 if (PyErr_Occurred()) SWIG_fail;
8470 }
8471 {
8472 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8473 }
8474 return resultobj;
8475 fail:
8476 return NULL;
8477 }
8478
8479
8480 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8481 PyObject *resultobj = 0;
8482 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8483 void *argp1 = 0 ;
8484 int res1 = 0 ;
8485 PyObject *swig_obj[1] ;
8486
8487 if (!args) SWIG_fail;
8488 swig_obj[0] = args;
8489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8490 if (!SWIG_IsOK(res1)) {
8491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8492 }
8493 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8494 {
8495 wxAlphaPixelData_Accessor_nextPixel(arg1);
8496 if (PyErr_Occurred()) SWIG_fail;
8497 }
8498 resultobj = SWIG_Py_Void();
8499 return resultobj;
8500 fail:
8501 return NULL;
8502 }
8503
8504
8505 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8506 PyObject *resultobj = 0;
8507 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8508 wxAlphaPixelData *arg2 = 0 ;
8509 int arg3 ;
8510 int arg4 ;
8511 void *argp1 = 0 ;
8512 int res1 = 0 ;
8513 void *argp2 = 0 ;
8514 int res2 = 0 ;
8515 int val3 ;
8516 int ecode3 = 0 ;
8517 int val4 ;
8518 int ecode4 = 0 ;
8519 PyObject * obj0 = 0 ;
8520 PyObject * obj1 = 0 ;
8521 PyObject * obj2 = 0 ;
8522 PyObject * obj3 = 0 ;
8523 char * kwnames[] = {
8524 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8525 };
8526
8527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8529 if (!SWIG_IsOK(res1)) {
8530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8531 }
8532 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8534 if (!SWIG_IsOK(res2)) {
8535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8536 }
8537 if (!argp2) {
8538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8539 }
8540 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8541 ecode3 = SWIG_AsVal_int(obj2, &val3);
8542 if (!SWIG_IsOK(ecode3)) {
8543 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'");
8544 }
8545 arg3 = static_cast< int >(val3);
8546 ecode4 = SWIG_AsVal_int(obj3, &val4);
8547 if (!SWIG_IsOK(ecode4)) {
8548 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'");
8549 }
8550 arg4 = static_cast< int >(val4);
8551 {
8552 (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4);
8553 if (PyErr_Occurred()) SWIG_fail;
8554 }
8555 resultobj = SWIG_Py_Void();
8556 return resultobj;
8557 fail:
8558 return NULL;
8559 }
8560
8561
8562 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj = 0;
8564 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8565 wxAlphaPixelData *arg2 = 0 ;
8566 int arg3 ;
8567 void *argp1 = 0 ;
8568 int res1 = 0 ;
8569 void *argp2 = 0 ;
8570 int res2 = 0 ;
8571 int val3 ;
8572 int ecode3 = 0 ;
8573 PyObject * obj0 = 0 ;
8574 PyObject * obj1 = 0 ;
8575 PyObject * obj2 = 0 ;
8576 char * kwnames[] = {
8577 (char *) "self",(char *) "data",(char *) "x", NULL
8578 };
8579
8580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8582 if (!SWIG_IsOK(res1)) {
8583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8584 }
8585 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8586 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8587 if (!SWIG_IsOK(res2)) {
8588 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8589 }
8590 if (!argp2) {
8591 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8592 }
8593 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8594 ecode3 = SWIG_AsVal_int(obj2, &val3);
8595 if (!SWIG_IsOK(ecode3)) {
8596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'");
8597 }
8598 arg3 = static_cast< int >(val3);
8599 {
8600 (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3);
8601 if (PyErr_Occurred()) SWIG_fail;
8602 }
8603 resultobj = SWIG_Py_Void();
8604 return resultobj;
8605 fail:
8606 return NULL;
8607 }
8608
8609
8610 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8611 PyObject *resultobj = 0;
8612 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8613 wxAlphaPixelData *arg2 = 0 ;
8614 int arg3 ;
8615 void *argp1 = 0 ;
8616 int res1 = 0 ;
8617 void *argp2 = 0 ;
8618 int res2 = 0 ;
8619 int val3 ;
8620 int ecode3 = 0 ;
8621 PyObject * obj0 = 0 ;
8622 PyObject * obj1 = 0 ;
8623 PyObject * obj2 = 0 ;
8624 char * kwnames[] = {
8625 (char *) "self",(char *) "data",(char *) "y", NULL
8626 };
8627
8628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8630 if (!SWIG_IsOK(res1)) {
8631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8632 }
8633 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8634 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8635 if (!SWIG_IsOK(res2)) {
8636 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8637 }
8638 if (!argp2) {
8639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8640 }
8641 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8642 ecode3 = SWIG_AsVal_int(obj2, &val3);
8643 if (!SWIG_IsOK(ecode3)) {
8644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'");
8645 }
8646 arg3 = static_cast< int >(val3);
8647 {
8648 (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3);
8649 if (PyErr_Occurred()) SWIG_fail;
8650 }
8651 resultobj = SWIG_Py_Void();
8652 return resultobj;
8653 fail:
8654 return NULL;
8655 }
8656
8657
8658 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8659 PyObject *resultobj = 0;
8660 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8661 wxAlphaPixelData *arg2 = 0 ;
8662 int arg3 ;
8663 int arg4 ;
8664 void *argp1 = 0 ;
8665 int res1 = 0 ;
8666 void *argp2 = 0 ;
8667 int res2 = 0 ;
8668 int val3 ;
8669 int ecode3 = 0 ;
8670 int val4 ;
8671 int ecode4 = 0 ;
8672 PyObject * obj0 = 0 ;
8673 PyObject * obj1 = 0 ;
8674 PyObject * obj2 = 0 ;
8675 PyObject * obj3 = 0 ;
8676 char * kwnames[] = {
8677 (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL
8678 };
8679
8680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8682 if (!SWIG_IsOK(res1)) {
8683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8684 }
8685 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8686 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0);
8687 if (!SWIG_IsOK(res2)) {
8688 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8689 }
8690 if (!argp2) {
8691 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'");
8692 }
8693 arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2);
8694 ecode3 = SWIG_AsVal_int(obj2, &val3);
8695 if (!SWIG_IsOK(ecode3)) {
8696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'");
8697 }
8698 arg3 = static_cast< int >(val3);
8699 ecode4 = SWIG_AsVal_int(obj3, &val4);
8700 if (!SWIG_IsOK(ecode4)) {
8701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'");
8702 }
8703 arg4 = static_cast< int >(val4);
8704 {
8705 (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4);
8706 if (PyErr_Occurred()) SWIG_fail;
8707 }
8708 resultobj = SWIG_Py_Void();
8709 return resultobj;
8710 fail:
8711 return NULL;
8712 }
8713
8714
8715 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8716 PyObject *resultobj = 0;
8717 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8718 byte arg2 ;
8719 byte arg3 ;
8720 byte arg4 ;
8721 byte arg5 ;
8722 void *argp1 = 0 ;
8723 int res1 = 0 ;
8724 unsigned char val2 ;
8725 int ecode2 = 0 ;
8726 unsigned char val3 ;
8727 int ecode3 = 0 ;
8728 unsigned char val4 ;
8729 int ecode4 = 0 ;
8730 unsigned char val5 ;
8731 int ecode5 = 0 ;
8732 PyObject * obj0 = 0 ;
8733 PyObject * obj1 = 0 ;
8734 PyObject * obj2 = 0 ;
8735 PyObject * obj3 = 0 ;
8736 PyObject * obj4 = 0 ;
8737 char * kwnames[] = {
8738 (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL
8739 };
8740
8741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8742 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8743 if (!SWIG_IsOK(res1)) {
8744 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8745 }
8746 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8747 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
8748 if (!SWIG_IsOK(ecode2)) {
8749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'");
8750 }
8751 arg2 = static_cast< byte >(val2);
8752 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
8753 if (!SWIG_IsOK(ecode3)) {
8754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'");
8755 }
8756 arg3 = static_cast< byte >(val3);
8757 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
8758 if (!SWIG_IsOK(ecode4)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'");
8760 }
8761 arg4 = static_cast< byte >(val4);
8762 ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5);
8763 if (!SWIG_IsOK(ecode5)) {
8764 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'");
8765 }
8766 arg5 = static_cast< byte >(val5);
8767 {
8768 wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5);
8769 if (PyErr_Occurred()) SWIG_fail;
8770 }
8771 resultobj = SWIG_Py_Void();
8772 return resultobj;
8773 fail:
8774 return NULL;
8775 }
8776
8777
8778 SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8779 PyObject *resultobj = 0;
8780 wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ;
8781 PyObject *result = 0 ;
8782 void *argp1 = 0 ;
8783 int res1 = 0 ;
8784 PyObject *swig_obj[1] ;
8785
8786 if (!args) SWIG_fail;
8787 swig_obj[0] = args;
8788 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 );
8789 if (!SWIG_IsOK(res1)) {
8790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'");
8791 }
8792 arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1);
8793 {
8794 result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1);
8795 if (PyErr_Occurred()) SWIG_fail;
8796 }
8797 resultobj = result;
8798 return resultobj;
8799 fail:
8800 return NULL;
8801 }
8802
8803
8804 SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8805 PyObject *obj;
8806 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8807 SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj));
8808 return SWIG_Py_Void();
8809 }
8810
8811 SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8812 return SWIG_Python_InitShadowInstance(args);
8813 }
8814
8815 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8816 PyObject *resultobj = 0;
8817 wxBitmap *arg1 = 0 ;
8818 wxColour const &arg2_defvalue = wxNullColour ;
8819 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
8820 wxMask *result = 0 ;
8821 void *argp1 = 0 ;
8822 int res1 = 0 ;
8823 wxColour temp2 ;
8824 PyObject * obj0 = 0 ;
8825 PyObject * obj1 = 0 ;
8826 char * kwnames[] = {
8827 (char *) "bitmap",(char *) "colour", NULL
8828 };
8829
8830 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
8831 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8832 if (!SWIG_IsOK(res1)) {
8833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8834 }
8835 if (!argp1) {
8836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8837 }
8838 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8839 if (obj1) {
8840 {
8841 arg2 = &temp2;
8842 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8843 }
8844 }
8845 {
8846 if (!wxPyCheckForApp()) SWIG_fail;
8847 PyThreadState* __tstate = wxPyBeginAllowThreads();
8848 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
8849 wxPyEndAllowThreads(__tstate);
8850 if (PyErr_Occurred()) SWIG_fail;
8851 }
8852 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
8853 return resultobj;
8854 fail:
8855 return NULL;
8856 }
8857
8858
8859 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8860 PyObject *resultobj = 0;
8861 wxMask *arg1 = (wxMask *) 0 ;
8862 void *argp1 = 0 ;
8863 int res1 = 0 ;
8864 PyObject *swig_obj[1] ;
8865
8866 if (!args) SWIG_fail;
8867 swig_obj[0] = args;
8868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
8869 if (!SWIG_IsOK(res1)) {
8870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
8871 }
8872 arg1 = reinterpret_cast< wxMask * >(argp1);
8873 {
8874 delete arg1;
8875
8876 if (PyErr_Occurred()) SWIG_fail;
8877 }
8878 resultobj = SWIG_Py_Void();
8879 return resultobj;
8880 fail:
8881 return NULL;
8882 }
8883
8884
8885 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8886 PyObject *obj;
8887 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8888 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
8889 return SWIG_Py_Void();
8890 }
8891
8892 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8893 return SWIG_Python_InitShadowInstance(args);
8894 }
8895
8896 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8897 PyObject *resultobj = 0;
8898 wxString *arg1 = 0 ;
8899 wxBitmapType arg2 ;
8900 int arg3 = (int) -1 ;
8901 int arg4 = (int) -1 ;
8902 wxIcon *result = 0 ;
8903 bool temp1 = false ;
8904 int val2 ;
8905 int ecode2 = 0 ;
8906 int val3 ;
8907 int ecode3 = 0 ;
8908 int val4 ;
8909 int ecode4 = 0 ;
8910 PyObject * obj0 = 0 ;
8911 PyObject * obj1 = 0 ;
8912 PyObject * obj2 = 0 ;
8913 PyObject * obj3 = 0 ;
8914 char * kwnames[] = {
8915 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
8916 };
8917
8918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8919 {
8920 arg1 = wxString_in_helper(obj0);
8921 if (arg1 == NULL) SWIG_fail;
8922 temp1 = true;
8923 }
8924 ecode2 = SWIG_AsVal_int(obj1, &val2);
8925 if (!SWIG_IsOK(ecode2)) {
8926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
8927 }
8928 arg2 = static_cast< wxBitmapType >(val2);
8929 if (obj2) {
8930 ecode3 = SWIG_AsVal_int(obj2, &val3);
8931 if (!SWIG_IsOK(ecode3)) {
8932 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
8933 }
8934 arg3 = static_cast< int >(val3);
8935 }
8936 if (obj3) {
8937 ecode4 = SWIG_AsVal_int(obj3, &val4);
8938 if (!SWIG_IsOK(ecode4)) {
8939 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
8940 }
8941 arg4 = static_cast< int >(val4);
8942 }
8943 {
8944 if (!wxPyCheckForApp()) SWIG_fail;
8945 PyThreadState* __tstate = wxPyBeginAllowThreads();
8946 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
8947 wxPyEndAllowThreads(__tstate);
8948 if (PyErr_Occurred()) SWIG_fail;
8949 }
8950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
8951 {
8952 if (temp1)
8953 delete arg1;
8954 }
8955 return resultobj;
8956 fail:
8957 {
8958 if (temp1)
8959 delete arg1;
8960 }
8961 return NULL;
8962 }
8963
8964
8965 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8966 PyObject *resultobj = 0;
8967 wxIcon *arg1 = (wxIcon *) 0 ;
8968 void *argp1 = 0 ;
8969 int res1 = 0 ;
8970 PyObject *swig_obj[1] ;
8971
8972 if (!args) SWIG_fail;
8973 swig_obj[0] = args;
8974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
8975 if (!SWIG_IsOK(res1)) {
8976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
8977 }
8978 arg1 = reinterpret_cast< wxIcon * >(argp1);
8979 {
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 delete arg1;
8982
8983 wxPyEndAllowThreads(__tstate);
8984 if (PyErr_Occurred()) SWIG_fail;
8985 }
8986 resultobj = SWIG_Py_Void();
8987 return resultobj;
8988 fail:
8989 return NULL;
8990 }
8991
8992
8993 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8994 PyObject *resultobj = 0;
8995 wxIcon *result = 0 ;
8996
8997 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
8998 {
8999 if (!wxPyCheckForApp()) SWIG_fail;
9000 PyThreadState* __tstate = wxPyBeginAllowThreads();
9001 result = (wxIcon *)new wxIcon();
9002 wxPyEndAllowThreads(__tstate);
9003 if (PyErr_Occurred()) SWIG_fail;
9004 }
9005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9006 return resultobj;
9007 fail:
9008 return NULL;
9009 }
9010
9011
9012 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9013 PyObject *resultobj = 0;
9014 wxIconLocation *arg1 = 0 ;
9015 wxIcon *result = 0 ;
9016 void *argp1 = 0 ;
9017 int res1 = 0 ;
9018 PyObject * obj0 = 0 ;
9019 char * kwnames[] = {
9020 (char *) "loc", NULL
9021 };
9022
9023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
9024 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
9025 if (!SWIG_IsOK(res1)) {
9026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9027 }
9028 if (!argp1) {
9029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
9030 }
9031 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9032 {
9033 if (!wxPyCheckForApp()) SWIG_fail;
9034 PyThreadState* __tstate = wxPyBeginAllowThreads();
9035 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
9036 wxPyEndAllowThreads(__tstate);
9037 if (PyErr_Occurred()) SWIG_fail;
9038 }
9039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9040 return resultobj;
9041 fail:
9042 return NULL;
9043 }
9044
9045
9046 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9047 PyObject *resultobj = 0;
9048 wxBitmap *arg1 = 0 ;
9049 wxIcon *result = 0 ;
9050 void *argp1 = 0 ;
9051 int res1 = 0 ;
9052 PyObject * obj0 = 0 ;
9053 char * kwnames[] = {
9054 (char *) "bmp", NULL
9055 };
9056
9057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
9058 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
9059 if (!SWIG_IsOK(res1)) {
9060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9061 }
9062 if (!argp1) {
9063 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
9064 }
9065 arg1 = reinterpret_cast< wxBitmap * >(argp1);
9066 {
9067 if (!wxPyCheckForApp()) SWIG_fail;
9068 PyThreadState* __tstate = wxPyBeginAllowThreads();
9069 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
9070 wxPyEndAllowThreads(__tstate);
9071 if (PyErr_Occurred()) SWIG_fail;
9072 }
9073 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9074 return resultobj;
9075 fail:
9076 return NULL;
9077 }
9078
9079
9080 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9081 PyObject *resultobj = 0;
9082 PyObject *arg1 = (PyObject *) 0 ;
9083 wxIcon *result = 0 ;
9084 PyObject * obj0 = 0 ;
9085 char * kwnames[] = {
9086 (char *) "listOfStrings", NULL
9087 };
9088
9089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
9090 arg1 = obj0;
9091 {
9092 if (!wxPyCheckForApp()) SWIG_fail;
9093 PyThreadState* __tstate = wxPyBeginAllowThreads();
9094 result = (wxIcon *)new_wxIcon(arg1);
9095 wxPyEndAllowThreads(__tstate);
9096 if (PyErr_Occurred()) SWIG_fail;
9097 }
9098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
9099 return resultobj;
9100 fail:
9101 return NULL;
9102 }
9103
9104
9105 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9106 PyObject *resultobj = 0;
9107 wxIcon *arg1 = (wxIcon *) 0 ;
9108 wxString *arg2 = 0 ;
9109 wxBitmapType arg3 ;
9110 bool result;
9111 void *argp1 = 0 ;
9112 int res1 = 0 ;
9113 bool temp2 = false ;
9114 int val3 ;
9115 int ecode3 = 0 ;
9116 PyObject * obj0 = 0 ;
9117 PyObject * obj1 = 0 ;
9118 PyObject * obj2 = 0 ;
9119 char * kwnames[] = {
9120 (char *) "self",(char *) "name",(char *) "type", NULL
9121 };
9122
9123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9125 if (!SWIG_IsOK(res1)) {
9126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
9127 }
9128 arg1 = reinterpret_cast< wxIcon * >(argp1);
9129 {
9130 arg2 = wxString_in_helper(obj1);
9131 if (arg2 == NULL) SWIG_fail;
9132 temp2 = true;
9133 }
9134 ecode3 = SWIG_AsVal_int(obj2, &val3);
9135 if (!SWIG_IsOK(ecode3)) {
9136 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
9137 }
9138 arg3 = static_cast< wxBitmapType >(val3);
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 {
9146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9147 }
9148 {
9149 if (temp2)
9150 delete arg2;
9151 }
9152 return resultobj;
9153 fail:
9154 {
9155 if (temp2)
9156 delete arg2;
9157 }
9158 return NULL;
9159 }
9160
9161
9162 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9163 PyObject *resultobj = 0;
9164 wxIcon *arg1 = (wxIcon *) 0 ;
9165 long result;
9166 void *argp1 = 0 ;
9167 int res1 = 0 ;
9168 PyObject *swig_obj[1] ;
9169
9170 if (!args) SWIG_fail;
9171 swig_obj[0] = args;
9172 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9173 if (!SWIG_IsOK(res1)) {
9174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9175 }
9176 arg1 = reinterpret_cast< wxIcon * >(argp1);
9177 {
9178 PyThreadState* __tstate = wxPyBeginAllowThreads();
9179 result = (long)(arg1)->GetHandle();
9180 wxPyEndAllowThreads(__tstate);
9181 if (PyErr_Occurred()) SWIG_fail;
9182 }
9183 resultobj = SWIG_From_long(static_cast< long >(result));
9184 return resultobj;
9185 fail:
9186 return NULL;
9187 }
9188
9189
9190 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9191 PyObject *resultobj = 0;
9192 wxIcon *arg1 = (wxIcon *) 0 ;
9193 long arg2 ;
9194 void *argp1 = 0 ;
9195 int res1 = 0 ;
9196 long val2 ;
9197 int ecode2 = 0 ;
9198 PyObject * obj0 = 0 ;
9199 PyObject * obj1 = 0 ;
9200 char * kwnames[] = {
9201 (char *) "self",(char *) "handle", NULL
9202 };
9203
9204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
9205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9206 if (!SWIG_IsOK(res1)) {
9207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
9208 }
9209 arg1 = reinterpret_cast< wxIcon * >(argp1);
9210 ecode2 = SWIG_AsVal_long(obj1, &val2);
9211 if (!SWIG_IsOK(ecode2)) {
9212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
9213 }
9214 arg2 = static_cast< long >(val2);
9215 {
9216 PyThreadState* __tstate = wxPyBeginAllowThreads();
9217 wxIcon_SetHandle(arg1,arg2);
9218 wxPyEndAllowThreads(__tstate);
9219 if (PyErr_Occurred()) SWIG_fail;
9220 }
9221 resultobj = SWIG_Py_Void();
9222 return resultobj;
9223 fail:
9224 return NULL;
9225 }
9226
9227
9228 SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9229 PyObject *resultobj = 0;
9230 wxIcon *arg1 = (wxIcon *) 0 ;
9231 bool result;
9232 void *argp1 = 0 ;
9233 int res1 = 0 ;
9234 PyObject *swig_obj[1] ;
9235
9236 if (!args) SWIG_fail;
9237 swig_obj[0] = args;
9238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9239 if (!SWIG_IsOK(res1)) {
9240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'");
9241 }
9242 arg1 = reinterpret_cast< wxIcon * >(argp1);
9243 {
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 result = (bool)(arg1)->IsOk();
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 {
9250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9251 }
9252 return resultobj;
9253 fail:
9254 return NULL;
9255 }
9256
9257
9258 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9259 PyObject *resultobj = 0;
9260 wxIcon *arg1 = (wxIcon *) 0 ;
9261 int result;
9262 void *argp1 = 0 ;
9263 int res1 = 0 ;
9264 PyObject *swig_obj[1] ;
9265
9266 if (!args) SWIG_fail;
9267 swig_obj[0] = args;
9268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9269 if (!SWIG_IsOK(res1)) {
9270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9271 }
9272 arg1 = reinterpret_cast< wxIcon * >(argp1);
9273 {
9274 PyThreadState* __tstate = wxPyBeginAllowThreads();
9275 result = (int)(arg1)->GetWidth();
9276 wxPyEndAllowThreads(__tstate);
9277 if (PyErr_Occurred()) SWIG_fail;
9278 }
9279 resultobj = SWIG_From_int(static_cast< int >(result));
9280 return resultobj;
9281 fail:
9282 return NULL;
9283 }
9284
9285
9286 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9287 PyObject *resultobj = 0;
9288 wxIcon *arg1 = (wxIcon *) 0 ;
9289 int result;
9290 void *argp1 = 0 ;
9291 int res1 = 0 ;
9292 PyObject *swig_obj[1] ;
9293
9294 if (!args) SWIG_fail;
9295 swig_obj[0] = args;
9296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9297 if (!SWIG_IsOK(res1)) {
9298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9299 }
9300 arg1 = reinterpret_cast< wxIcon * >(argp1);
9301 {
9302 PyThreadState* __tstate = wxPyBeginAllowThreads();
9303 result = (int)(arg1)->GetHeight();
9304 wxPyEndAllowThreads(__tstate);
9305 if (PyErr_Occurred()) SWIG_fail;
9306 }
9307 resultobj = SWIG_From_int(static_cast< int >(result));
9308 return resultobj;
9309 fail:
9310 return NULL;
9311 }
9312
9313
9314 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9315 PyObject *resultobj = 0;
9316 wxIcon *arg1 = (wxIcon *) 0 ;
9317 int result;
9318 void *argp1 = 0 ;
9319 int res1 = 0 ;
9320 PyObject *swig_obj[1] ;
9321
9322 if (!args) SWIG_fail;
9323 swig_obj[0] = args;
9324 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9327 }
9328 arg1 = reinterpret_cast< wxIcon * >(argp1);
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 result = (int)(arg1)->GetDepth();
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 resultobj = SWIG_From_int(static_cast< int >(result));
9336 return resultobj;
9337 fail:
9338 return NULL;
9339 }
9340
9341
9342 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9343 PyObject *resultobj = 0;
9344 wxIcon *arg1 = (wxIcon *) 0 ;
9345 int arg2 ;
9346 void *argp1 = 0 ;
9347 int res1 = 0 ;
9348 int val2 ;
9349 int ecode2 = 0 ;
9350 PyObject * obj0 = 0 ;
9351 PyObject * obj1 = 0 ;
9352 char * kwnames[] = {
9353 (char *) "self",(char *) "w", NULL
9354 };
9355
9356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
9357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9358 if (!SWIG_IsOK(res1)) {
9359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
9360 }
9361 arg1 = reinterpret_cast< wxIcon * >(argp1);
9362 ecode2 = SWIG_AsVal_int(obj1, &val2);
9363 if (!SWIG_IsOK(ecode2)) {
9364 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
9365 }
9366 arg2 = static_cast< int >(val2);
9367 {
9368 PyThreadState* __tstate = wxPyBeginAllowThreads();
9369 (arg1)->SetWidth(arg2);
9370 wxPyEndAllowThreads(__tstate);
9371 if (PyErr_Occurred()) SWIG_fail;
9372 }
9373 resultobj = SWIG_Py_Void();
9374 return resultobj;
9375 fail:
9376 return NULL;
9377 }
9378
9379
9380 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9381 PyObject *resultobj = 0;
9382 wxIcon *arg1 = (wxIcon *) 0 ;
9383 int arg2 ;
9384 void *argp1 = 0 ;
9385 int res1 = 0 ;
9386 int val2 ;
9387 int ecode2 = 0 ;
9388 PyObject * obj0 = 0 ;
9389 PyObject * obj1 = 0 ;
9390 char * kwnames[] = {
9391 (char *) "self",(char *) "h", NULL
9392 };
9393
9394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
9395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9396 if (!SWIG_IsOK(res1)) {
9397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
9398 }
9399 arg1 = reinterpret_cast< wxIcon * >(argp1);
9400 ecode2 = SWIG_AsVal_int(obj1, &val2);
9401 if (!SWIG_IsOK(ecode2)) {
9402 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
9403 }
9404 arg2 = static_cast< int >(val2);
9405 {
9406 PyThreadState* __tstate = wxPyBeginAllowThreads();
9407 (arg1)->SetHeight(arg2);
9408 wxPyEndAllowThreads(__tstate);
9409 if (PyErr_Occurred()) SWIG_fail;
9410 }
9411 resultobj = SWIG_Py_Void();
9412 return resultobj;
9413 fail:
9414 return NULL;
9415 }
9416
9417
9418 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9419 PyObject *resultobj = 0;
9420 wxIcon *arg1 = (wxIcon *) 0 ;
9421 int arg2 ;
9422 void *argp1 = 0 ;
9423 int res1 = 0 ;
9424 int val2 ;
9425 int ecode2 = 0 ;
9426 PyObject * obj0 = 0 ;
9427 PyObject * obj1 = 0 ;
9428 char * kwnames[] = {
9429 (char *) "self",(char *) "d", NULL
9430 };
9431
9432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
9433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9434 if (!SWIG_IsOK(res1)) {
9435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
9436 }
9437 arg1 = reinterpret_cast< wxIcon * >(argp1);
9438 ecode2 = SWIG_AsVal_int(obj1, &val2);
9439 if (!SWIG_IsOK(ecode2)) {
9440 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
9441 }
9442 arg2 = static_cast< int >(val2);
9443 {
9444 PyThreadState* __tstate = wxPyBeginAllowThreads();
9445 (arg1)->SetDepth(arg2);
9446 wxPyEndAllowThreads(__tstate);
9447 if (PyErr_Occurred()) SWIG_fail;
9448 }
9449 resultobj = SWIG_Py_Void();
9450 return resultobj;
9451 fail:
9452 return NULL;
9453 }
9454
9455
9456 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9457 PyObject *resultobj = 0;
9458 wxIcon *arg1 = (wxIcon *) 0 ;
9459 wxSize *arg2 = 0 ;
9460 void *argp1 = 0 ;
9461 int res1 = 0 ;
9462 wxSize temp2 ;
9463 PyObject * obj0 = 0 ;
9464 PyObject * obj1 = 0 ;
9465 char * kwnames[] = {
9466 (char *) "self",(char *) "size", NULL
9467 };
9468
9469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
9470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9471 if (!SWIG_IsOK(res1)) {
9472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
9473 }
9474 arg1 = reinterpret_cast< wxIcon * >(argp1);
9475 {
9476 arg2 = &temp2;
9477 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
9478 }
9479 {
9480 PyThreadState* __tstate = wxPyBeginAllowThreads();
9481 (arg1)->SetSize((wxSize const &)*arg2);
9482 wxPyEndAllowThreads(__tstate);
9483 if (PyErr_Occurred()) SWIG_fail;
9484 }
9485 resultobj = SWIG_Py_Void();
9486 return resultobj;
9487 fail:
9488 return NULL;
9489 }
9490
9491
9492 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9493 PyObject *resultobj = 0;
9494 wxIcon *arg1 = (wxIcon *) 0 ;
9495 wxBitmap *arg2 = 0 ;
9496 void *argp1 = 0 ;
9497 int res1 = 0 ;
9498 void *argp2 = 0 ;
9499 int res2 = 0 ;
9500 PyObject * obj0 = 0 ;
9501 PyObject * obj1 = 0 ;
9502 char * kwnames[] = {
9503 (char *) "self",(char *) "bmp", NULL
9504 };
9505
9506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
9508 if (!SWIG_IsOK(res1)) {
9509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
9510 }
9511 arg1 = reinterpret_cast< wxIcon * >(argp1);
9512 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9513 if (!SWIG_IsOK(res2)) {
9514 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9515 }
9516 if (!argp2) {
9517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9518 }
9519 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9520 {
9521 PyThreadState* __tstate = wxPyBeginAllowThreads();
9522 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
9523 wxPyEndAllowThreads(__tstate);
9524 if (PyErr_Occurred()) SWIG_fail;
9525 }
9526 resultobj = SWIG_Py_Void();
9527 return resultobj;
9528 fail:
9529 return NULL;
9530 }
9531
9532
9533 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9534 PyObject *obj;
9535 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9536 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
9537 return SWIG_Py_Void();
9538 }
9539
9540 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9541 return SWIG_Python_InitShadowInstance(args);
9542 }
9543
9544 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9545 PyObject *resultobj = 0;
9546 wxString *arg1 = (wxString *) &wxPyEmptyString ;
9547 int arg2 = (int) 0 ;
9548 wxIconLocation *result = 0 ;
9549 bool temp1 = false ;
9550 int val2 ;
9551 int ecode2 = 0 ;
9552 PyObject * obj0 = 0 ;
9553 PyObject * obj1 = 0 ;
9554 char * kwnames[] = {
9555 (char *) "filename",(char *) "num", NULL
9556 };
9557
9558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
9559 if (obj0) {
9560 {
9561 arg1 = wxString_in_helper(obj0);
9562 if (arg1 == NULL) SWIG_fail;
9563 temp1 = true;
9564 }
9565 }
9566 if (obj1) {
9567 ecode2 = SWIG_AsVal_int(obj1, &val2);
9568 if (!SWIG_IsOK(ecode2)) {
9569 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
9570 }
9571 arg2 = static_cast< int >(val2);
9572 }
9573 {
9574 PyThreadState* __tstate = wxPyBeginAllowThreads();
9575 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
9576 wxPyEndAllowThreads(__tstate);
9577 if (PyErr_Occurred()) SWIG_fail;
9578 }
9579 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
9580 {
9581 if (temp1)
9582 delete arg1;
9583 }
9584 return resultobj;
9585 fail:
9586 {
9587 if (temp1)
9588 delete arg1;
9589 }
9590 return NULL;
9591 }
9592
9593
9594 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9595 PyObject *resultobj = 0;
9596 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9597 void *argp1 = 0 ;
9598 int res1 = 0 ;
9599 PyObject *swig_obj[1] ;
9600
9601 if (!args) SWIG_fail;
9602 swig_obj[0] = args;
9603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
9604 if (!SWIG_IsOK(res1)) {
9605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9606 }
9607 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9608 {
9609 PyThreadState* __tstate = wxPyBeginAllowThreads();
9610 delete arg1;
9611
9612 wxPyEndAllowThreads(__tstate);
9613 if (PyErr_Occurred()) SWIG_fail;
9614 }
9615 resultobj = SWIG_Py_Void();
9616 return resultobj;
9617 fail:
9618 return NULL;
9619 }
9620
9621
9622 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9623 PyObject *resultobj = 0;
9624 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9625 bool result;
9626 void *argp1 = 0 ;
9627 int res1 = 0 ;
9628 PyObject *swig_obj[1] ;
9629
9630 if (!args) SWIG_fail;
9631 swig_obj[0] = args;
9632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9633 if (!SWIG_IsOK(res1)) {
9634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9635 }
9636 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9637 {
9638 PyThreadState* __tstate = wxPyBeginAllowThreads();
9639 result = (bool)((wxIconLocation const *)arg1)->IsOk();
9640 wxPyEndAllowThreads(__tstate);
9641 if (PyErr_Occurred()) SWIG_fail;
9642 }
9643 {
9644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9645 }
9646 return resultobj;
9647 fail:
9648 return NULL;
9649 }
9650
9651
9652 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9653 PyObject *resultobj = 0;
9654 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9655 wxString *arg2 = 0 ;
9656 void *argp1 = 0 ;
9657 int res1 = 0 ;
9658 bool temp2 = false ;
9659 PyObject * obj0 = 0 ;
9660 PyObject * obj1 = 0 ;
9661 char * kwnames[] = {
9662 (char *) "self",(char *) "filename", NULL
9663 };
9664
9665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
9666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9667 if (!SWIG_IsOK(res1)) {
9668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9669 }
9670 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9671 {
9672 arg2 = wxString_in_helper(obj1);
9673 if (arg2 == NULL) SWIG_fail;
9674 temp2 = true;
9675 }
9676 {
9677 PyThreadState* __tstate = wxPyBeginAllowThreads();
9678 (arg1)->SetFileName((wxString const &)*arg2);
9679 wxPyEndAllowThreads(__tstate);
9680 if (PyErr_Occurred()) SWIG_fail;
9681 }
9682 resultobj = SWIG_Py_Void();
9683 {
9684 if (temp2)
9685 delete arg2;
9686 }
9687 return resultobj;
9688 fail:
9689 {
9690 if (temp2)
9691 delete arg2;
9692 }
9693 return NULL;
9694 }
9695
9696
9697 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9698 PyObject *resultobj = 0;
9699 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9700 wxString *result = 0 ;
9701 void *argp1 = 0 ;
9702 int res1 = 0 ;
9703 PyObject *swig_obj[1] ;
9704
9705 if (!args) SWIG_fail;
9706 swig_obj[0] = args;
9707 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9708 if (!SWIG_IsOK(res1)) {
9709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
9710 }
9711 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9712 {
9713 PyThreadState* __tstate = wxPyBeginAllowThreads();
9714 {
9715 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
9716 result = (wxString *) &_result_ref;
9717 }
9718 wxPyEndAllowThreads(__tstate);
9719 if (PyErr_Occurred()) SWIG_fail;
9720 }
9721 {
9722 #if wxUSE_UNICODE
9723 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
9724 #else
9725 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
9726 #endif
9727 }
9728 return resultobj;
9729 fail:
9730 return NULL;
9731 }
9732
9733
9734 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9735 PyObject *resultobj = 0;
9736 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9737 int arg2 ;
9738 void *argp1 = 0 ;
9739 int res1 = 0 ;
9740 int val2 ;
9741 int ecode2 = 0 ;
9742 PyObject * obj0 = 0 ;
9743 PyObject * obj1 = 0 ;
9744 char * kwnames[] = {
9745 (char *) "self",(char *) "num", NULL
9746 };
9747
9748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
9749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9750 if (!SWIG_IsOK(res1)) {
9751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9752 }
9753 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9754 ecode2 = SWIG_AsVal_int(obj1, &val2);
9755 if (!SWIG_IsOK(ecode2)) {
9756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
9757 }
9758 arg2 = static_cast< int >(val2);
9759 {
9760 PyThreadState* __tstate = wxPyBeginAllowThreads();
9761 wxIconLocation_SetIndex(arg1,arg2);
9762 wxPyEndAllowThreads(__tstate);
9763 if (PyErr_Occurred()) SWIG_fail;
9764 }
9765 resultobj = SWIG_Py_Void();
9766 return resultobj;
9767 fail:
9768 return NULL;
9769 }
9770
9771
9772 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9773 PyObject *resultobj = 0;
9774 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
9775 int result;
9776 void *argp1 = 0 ;
9777 int res1 = 0 ;
9778 PyObject *swig_obj[1] ;
9779
9780 if (!args) SWIG_fail;
9781 swig_obj[0] = args;
9782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
9783 if (!SWIG_IsOK(res1)) {
9784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
9785 }
9786 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
9787 {
9788 PyThreadState* __tstate = wxPyBeginAllowThreads();
9789 result = (int)wxIconLocation_GetIndex(arg1);
9790 wxPyEndAllowThreads(__tstate);
9791 if (PyErr_Occurred()) SWIG_fail;
9792 }
9793 resultobj = SWIG_From_int(static_cast< int >(result));
9794 return resultobj;
9795 fail:
9796 return NULL;
9797 }
9798
9799
9800 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9801 PyObject *obj;
9802 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9803 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
9804 return SWIG_Py_Void();
9805 }
9806
9807 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9808 return SWIG_Python_InitShadowInstance(args);
9809 }
9810
9811 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9812 PyObject *resultobj = 0;
9813 wxIconBundle *result = 0 ;
9814
9815 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
9816 {
9817 PyThreadState* __tstate = wxPyBeginAllowThreads();
9818 result = (wxIconBundle *)new wxIconBundle();
9819 wxPyEndAllowThreads(__tstate);
9820 if (PyErr_Occurred()) SWIG_fail;
9821 }
9822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
9823 return resultobj;
9824 fail:
9825 return NULL;
9826 }
9827
9828
9829 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9830 PyObject *resultobj = 0;
9831 wxString *arg1 = 0 ;
9832 long arg2 ;
9833 wxIconBundle *result = 0 ;
9834 bool temp1 = false ;
9835 long val2 ;
9836 int ecode2 = 0 ;
9837 PyObject * obj0 = 0 ;
9838 PyObject * obj1 = 0 ;
9839 char * kwnames[] = {
9840 (char *) "file",(char *) "type", NULL
9841 };
9842
9843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
9844 {
9845 arg1 = wxString_in_helper(obj0);
9846 if (arg1 == NULL) SWIG_fail;
9847 temp1 = true;
9848 }
9849 ecode2 = SWIG_AsVal_long(obj1, &val2);
9850 if (!SWIG_IsOK(ecode2)) {
9851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
9852 }
9853 arg2 = static_cast< long >(val2);
9854 {
9855 PyThreadState* __tstate = wxPyBeginAllowThreads();
9856 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
9857 wxPyEndAllowThreads(__tstate);
9858 if (PyErr_Occurred()) SWIG_fail;
9859 }
9860 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9861 {
9862 if (temp1)
9863 delete arg1;
9864 }
9865 return resultobj;
9866 fail:
9867 {
9868 if (temp1)
9869 delete arg1;
9870 }
9871 return NULL;
9872 }
9873
9874
9875 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9876 PyObject *resultobj = 0;
9877 wxIcon *arg1 = 0 ;
9878 wxIconBundle *result = 0 ;
9879 void *argp1 = 0 ;
9880 int res1 = 0 ;
9881 PyObject * obj0 = 0 ;
9882 char * kwnames[] = {
9883 (char *) "icon", NULL
9884 };
9885
9886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
9887 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
9888 if (!SWIG_IsOK(res1)) {
9889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9890 }
9891 if (!argp1) {
9892 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
9893 }
9894 arg1 = reinterpret_cast< wxIcon * >(argp1);
9895 {
9896 PyThreadState* __tstate = wxPyBeginAllowThreads();
9897 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
9898 wxPyEndAllowThreads(__tstate);
9899 if (PyErr_Occurred()) SWIG_fail;
9900 }
9901 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
9902 return resultobj;
9903 fail:
9904 return NULL;
9905 }
9906
9907
9908 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9909 PyObject *resultobj = 0;
9910 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9911 void *argp1 = 0 ;
9912 int res1 = 0 ;
9913 PyObject *swig_obj[1] ;
9914
9915 if (!args) SWIG_fail;
9916 swig_obj[0] = args;
9917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
9918 if (!SWIG_IsOK(res1)) {
9919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9920 }
9921 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9922 {
9923 PyThreadState* __tstate = wxPyBeginAllowThreads();
9924 delete arg1;
9925
9926 wxPyEndAllowThreads(__tstate);
9927 if (PyErr_Occurred()) SWIG_fail;
9928 }
9929 resultobj = SWIG_Py_Void();
9930 return resultobj;
9931 fail:
9932 return NULL;
9933 }
9934
9935
9936 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9937 PyObject *resultobj = 0;
9938 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9939 wxIcon *arg2 = 0 ;
9940 void *argp1 = 0 ;
9941 int res1 = 0 ;
9942 void *argp2 = 0 ;
9943 int res2 = 0 ;
9944 PyObject * obj0 = 0 ;
9945 PyObject * obj1 = 0 ;
9946 char * kwnames[] = {
9947 (char *) "self",(char *) "icon", NULL
9948 };
9949
9950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
9951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9952 if (!SWIG_IsOK(res1)) {
9953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9954 }
9955 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
9956 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
9957 if (!SWIG_IsOK(res2)) {
9958 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9959 }
9960 if (!argp2) {
9961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
9962 }
9963 arg2 = reinterpret_cast< wxIcon * >(argp2);
9964 {
9965 PyThreadState* __tstate = wxPyBeginAllowThreads();
9966 (arg1)->AddIcon((wxIcon const &)*arg2);
9967 wxPyEndAllowThreads(__tstate);
9968 if (PyErr_Occurred()) SWIG_fail;
9969 }
9970 resultobj = SWIG_Py_Void();
9971 return resultobj;
9972 fail:
9973 return NULL;
9974 }
9975
9976
9977 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9978 PyObject *resultobj = 0;
9979 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
9980 wxString *arg2 = 0 ;
9981 long arg3 ;
9982 void *argp1 = 0 ;
9983 int res1 = 0 ;
9984 bool temp2 = false ;
9985 long val3 ;
9986 int ecode3 = 0 ;
9987 PyObject * obj0 = 0 ;
9988 PyObject * obj1 = 0 ;
9989 PyObject * obj2 = 0 ;
9990 char * kwnames[] = {
9991 (char *) "self",(char *) "file",(char *) "type", NULL
9992 };
9993
9994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
9995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
9996 if (!SWIG_IsOK(res1)) {
9997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
9998 }
9999 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10000 {
10001 arg2 = wxString_in_helper(obj1);
10002 if (arg2 == NULL) SWIG_fail;
10003 temp2 = true;
10004 }
10005 ecode3 = SWIG_AsVal_long(obj2, &val3);
10006 if (!SWIG_IsOK(ecode3)) {
10007 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
10008 }
10009 arg3 = static_cast< long >(val3);
10010 {
10011 PyThreadState* __tstate = wxPyBeginAllowThreads();
10012 (arg1)->AddIcon((wxString const &)*arg2,arg3);
10013 wxPyEndAllowThreads(__tstate);
10014 if (PyErr_Occurred()) SWIG_fail;
10015 }
10016 resultobj = SWIG_Py_Void();
10017 {
10018 if (temp2)
10019 delete arg2;
10020 }
10021 return resultobj;
10022 fail:
10023 {
10024 if (temp2)
10025 delete arg2;
10026 }
10027 return NULL;
10028 }
10029
10030
10031 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10032 PyObject *resultobj = 0;
10033 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
10034 wxSize *arg2 = 0 ;
10035 wxIcon *result = 0 ;
10036 void *argp1 = 0 ;
10037 int res1 = 0 ;
10038 wxSize temp2 ;
10039 PyObject * obj0 = 0 ;
10040 PyObject * obj1 = 0 ;
10041 char * kwnames[] = {
10042 (char *) "self",(char *) "size", NULL
10043 };
10044
10045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
10046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
10047 if (!SWIG_IsOK(res1)) {
10048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
10049 }
10050 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
10051 {
10052 arg2 = &temp2;
10053 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10054 }
10055 {
10056 PyThreadState* __tstate = wxPyBeginAllowThreads();
10057 {
10058 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
10059 result = (wxIcon *) &_result_ref;
10060 }
10061 wxPyEndAllowThreads(__tstate);
10062 if (PyErr_Occurred()) SWIG_fail;
10063 }
10064 {
10065 wxIcon* resultptr = new wxIcon(*result);
10066 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
10067 }
10068 return resultobj;
10069 fail:
10070 return NULL;
10071 }
10072
10073
10074 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10075 PyObject *obj;
10076 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10077 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
10078 return SWIG_Py_Void();
10079 }
10080
10081 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10082 return SWIG_Python_InitShadowInstance(args);
10083 }
10084
10085 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10086 PyObject *resultobj = 0;
10087 wxString *arg1 = 0 ;
10088 long arg2 ;
10089 int arg3 = (int) 0 ;
10090 int arg4 = (int) 0 ;
10091 wxCursor *result = 0 ;
10092 bool temp1 = false ;
10093 long val2 ;
10094 int ecode2 = 0 ;
10095 int val3 ;
10096 int ecode3 = 0 ;
10097 int val4 ;
10098 int ecode4 = 0 ;
10099 PyObject * obj0 = 0 ;
10100 PyObject * obj1 = 0 ;
10101 PyObject * obj2 = 0 ;
10102 PyObject * obj3 = 0 ;
10103 char * kwnames[] = {
10104 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
10105 };
10106
10107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10108 {
10109 arg1 = wxString_in_helper(obj0);
10110 if (arg1 == NULL) SWIG_fail;
10111 temp1 = true;
10112 }
10113 ecode2 = SWIG_AsVal_long(obj1, &val2);
10114 if (!SWIG_IsOK(ecode2)) {
10115 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
10116 }
10117 arg2 = static_cast< long >(val2);
10118 if (obj2) {
10119 ecode3 = SWIG_AsVal_int(obj2, &val3);
10120 if (!SWIG_IsOK(ecode3)) {
10121 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
10122 }
10123 arg3 = static_cast< int >(val3);
10124 }
10125 if (obj3) {
10126 ecode4 = SWIG_AsVal_int(obj3, &val4);
10127 if (!SWIG_IsOK(ecode4)) {
10128 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
10129 }
10130 arg4 = static_cast< int >(val4);
10131 }
10132 {
10133 if (!wxPyCheckForApp()) SWIG_fail;
10134 PyThreadState* __tstate = wxPyBeginAllowThreads();
10135 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
10136 wxPyEndAllowThreads(__tstate);
10137 if (PyErr_Occurred()) SWIG_fail;
10138 }
10139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
10140 {
10141 if (temp1)
10142 delete arg1;
10143 }
10144 return resultobj;
10145 fail:
10146 {
10147 if (temp1)
10148 delete arg1;
10149 }
10150 return NULL;
10151 }
10152
10153
10154 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *resultobj = 0;
10156 wxCursor *arg1 = (wxCursor *) 0 ;
10157 void *argp1 = 0 ;
10158 int res1 = 0 ;
10159 PyObject *swig_obj[1] ;
10160
10161 if (!args) SWIG_fail;
10162 swig_obj[0] = args;
10163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
10164 if (!SWIG_IsOK(res1)) {
10165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
10166 }
10167 arg1 = reinterpret_cast< wxCursor * >(argp1);
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 delete arg1;
10171
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_Py_Void();
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10183 PyObject *resultobj = 0;
10184 int arg1 ;
10185 wxCursor *result = 0 ;
10186 int val1 ;
10187 int ecode1 = 0 ;
10188 PyObject * obj0 = 0 ;
10189 char * kwnames[] = {
10190 (char *) "id", NULL
10191 };
10192
10193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
10194 ecode1 = SWIG_AsVal_int(obj0, &val1);
10195 if (!SWIG_IsOK(ecode1)) {
10196 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
10197 }
10198 arg1 = static_cast< int >(val1);
10199 {
10200 if (!wxPyCheckForApp()) SWIG_fail;
10201 PyThreadState* __tstate = wxPyBeginAllowThreads();
10202 result = (wxCursor *)new wxCursor(arg1);
10203 wxPyEndAllowThreads(__tstate);
10204 if (PyErr_Occurred()) SWIG_fail;
10205 }
10206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10207 return resultobj;
10208 fail:
10209 return NULL;
10210 }
10211
10212
10213 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10214 PyObject *resultobj = 0;
10215 wxImage *arg1 = 0 ;
10216 wxCursor *result = 0 ;
10217 void *argp1 = 0 ;
10218 int res1 = 0 ;
10219 PyObject * obj0 = 0 ;
10220 char * kwnames[] = {
10221 (char *) "image", NULL
10222 };
10223
10224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
10225 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
10226 if (!SWIG_IsOK(res1)) {
10227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10228 }
10229 if (!argp1) {
10230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
10231 }
10232 arg1 = reinterpret_cast< wxImage * >(argp1);
10233 {
10234 if (!wxPyCheckForApp()) SWIG_fail;
10235 PyThreadState* __tstate = wxPyBeginAllowThreads();
10236 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
10237 wxPyEndAllowThreads(__tstate);
10238 if (PyErr_Occurred()) SWIG_fail;
10239 }
10240 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
10241 return resultobj;
10242 fail:
10243 return NULL;
10244 }
10245
10246
10247 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10248 PyObject *resultobj = 0;
10249 wxCursor *arg1 = (wxCursor *) 0 ;
10250 long result;
10251 void *argp1 = 0 ;
10252 int res1 = 0 ;
10253 PyObject *swig_obj[1] ;
10254
10255 if (!args) SWIG_fail;
10256 swig_obj[0] = args;
10257 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10258 if (!SWIG_IsOK(res1)) {
10259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10260 }
10261 arg1 = reinterpret_cast< wxCursor * >(argp1);
10262 {
10263 PyThreadState* __tstate = wxPyBeginAllowThreads();
10264 result = (long)(arg1)->GetHandle();
10265 wxPyEndAllowThreads(__tstate);
10266 if (PyErr_Occurred()) SWIG_fail;
10267 }
10268 resultobj = SWIG_From_long(static_cast< long >(result));
10269 return resultobj;
10270 fail:
10271 return NULL;
10272 }
10273
10274
10275 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10276 PyObject *resultobj = 0;
10277 wxCursor *arg1 = (wxCursor *) 0 ;
10278 long arg2 ;
10279 void *argp1 = 0 ;
10280 int res1 = 0 ;
10281 long val2 ;
10282 int ecode2 = 0 ;
10283 PyObject * obj0 = 0 ;
10284 PyObject * obj1 = 0 ;
10285 char * kwnames[] = {
10286 (char *) "self",(char *) "handle", NULL
10287 };
10288
10289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
10290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10291 if (!SWIG_IsOK(res1)) {
10292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
10293 }
10294 arg1 = reinterpret_cast< wxCursor * >(argp1);
10295 ecode2 = SWIG_AsVal_long(obj1, &val2);
10296 if (!SWIG_IsOK(ecode2)) {
10297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
10298 }
10299 arg2 = static_cast< long >(val2);
10300 {
10301 PyThreadState* __tstate = wxPyBeginAllowThreads();
10302 wxCursor_SetHandle(arg1,arg2);
10303 wxPyEndAllowThreads(__tstate);
10304 if (PyErr_Occurred()) SWIG_fail;
10305 }
10306 resultobj = SWIG_Py_Void();
10307 return resultobj;
10308 fail:
10309 return NULL;
10310 }
10311
10312
10313 SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10314 PyObject *resultobj = 0;
10315 wxCursor *arg1 = (wxCursor *) 0 ;
10316 bool result;
10317 void *argp1 = 0 ;
10318 int res1 = 0 ;
10319 PyObject *swig_obj[1] ;
10320
10321 if (!args) SWIG_fail;
10322 swig_obj[0] = args;
10323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10324 if (!SWIG_IsOK(res1)) {
10325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'");
10326 }
10327 arg1 = reinterpret_cast< wxCursor * >(argp1);
10328 {
10329 PyThreadState* __tstate = wxPyBeginAllowThreads();
10330 result = (bool)(arg1)->IsOk();
10331 wxPyEndAllowThreads(__tstate);
10332 if (PyErr_Occurred()) SWIG_fail;
10333 }
10334 {
10335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10336 }
10337 return resultobj;
10338 fail:
10339 return NULL;
10340 }
10341
10342
10343 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10344 PyObject *resultobj = 0;
10345 wxCursor *arg1 = (wxCursor *) 0 ;
10346 int result;
10347 void *argp1 = 0 ;
10348 int res1 = 0 ;
10349 PyObject *swig_obj[1] ;
10350
10351 if (!args) SWIG_fail;
10352 swig_obj[0] = args;
10353 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10354 if (!SWIG_IsOK(res1)) {
10355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10356 }
10357 arg1 = reinterpret_cast< wxCursor * >(argp1);
10358 {
10359 PyThreadState* __tstate = wxPyBeginAllowThreads();
10360 result = (int)(arg1)->GetWidth();
10361 wxPyEndAllowThreads(__tstate);
10362 if (PyErr_Occurred()) SWIG_fail;
10363 }
10364 resultobj = SWIG_From_int(static_cast< int >(result));
10365 return resultobj;
10366 fail:
10367 return NULL;
10368 }
10369
10370
10371 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10372 PyObject *resultobj = 0;
10373 wxCursor *arg1 = (wxCursor *) 0 ;
10374 int result;
10375 void *argp1 = 0 ;
10376 int res1 = 0 ;
10377 PyObject *swig_obj[1] ;
10378
10379 if (!args) SWIG_fail;
10380 swig_obj[0] = args;
10381 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10382 if (!SWIG_IsOK(res1)) {
10383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10384 }
10385 arg1 = reinterpret_cast< wxCursor * >(argp1);
10386 {
10387 PyThreadState* __tstate = wxPyBeginAllowThreads();
10388 result = (int)(arg1)->GetHeight();
10389 wxPyEndAllowThreads(__tstate);
10390 if (PyErr_Occurred()) SWIG_fail;
10391 }
10392 resultobj = SWIG_From_int(static_cast< int >(result));
10393 return resultobj;
10394 fail:
10395 return NULL;
10396 }
10397
10398
10399 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10400 PyObject *resultobj = 0;
10401 wxCursor *arg1 = (wxCursor *) 0 ;
10402 int result;
10403 void *argp1 = 0 ;
10404 int res1 = 0 ;
10405 PyObject *swig_obj[1] ;
10406
10407 if (!args) SWIG_fail;
10408 swig_obj[0] = args;
10409 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10412 }
10413 arg1 = reinterpret_cast< wxCursor * >(argp1);
10414 {
10415 PyThreadState* __tstate = wxPyBeginAllowThreads();
10416 result = (int)(arg1)->GetDepth();
10417 wxPyEndAllowThreads(__tstate);
10418 if (PyErr_Occurred()) SWIG_fail;
10419 }
10420 resultobj = SWIG_From_int(static_cast< int >(result));
10421 return resultobj;
10422 fail:
10423 return NULL;
10424 }
10425
10426
10427 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10428 PyObject *resultobj = 0;
10429 wxCursor *arg1 = (wxCursor *) 0 ;
10430 int arg2 ;
10431 void *argp1 = 0 ;
10432 int res1 = 0 ;
10433 int val2 ;
10434 int ecode2 = 0 ;
10435 PyObject * obj0 = 0 ;
10436 PyObject * obj1 = 0 ;
10437 char * kwnames[] = {
10438 (char *) "self",(char *) "w", NULL
10439 };
10440
10441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
10442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10443 if (!SWIG_IsOK(res1)) {
10444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
10445 }
10446 arg1 = reinterpret_cast< wxCursor * >(argp1);
10447 ecode2 = SWIG_AsVal_int(obj1, &val2);
10448 if (!SWIG_IsOK(ecode2)) {
10449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
10450 }
10451 arg2 = static_cast< int >(val2);
10452 {
10453 PyThreadState* __tstate = wxPyBeginAllowThreads();
10454 (arg1)->SetWidth(arg2);
10455 wxPyEndAllowThreads(__tstate);
10456 if (PyErr_Occurred()) SWIG_fail;
10457 }
10458 resultobj = SWIG_Py_Void();
10459 return resultobj;
10460 fail:
10461 return NULL;
10462 }
10463
10464
10465 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10466 PyObject *resultobj = 0;
10467 wxCursor *arg1 = (wxCursor *) 0 ;
10468 int arg2 ;
10469 void *argp1 = 0 ;
10470 int res1 = 0 ;
10471 int val2 ;
10472 int ecode2 = 0 ;
10473 PyObject * obj0 = 0 ;
10474 PyObject * obj1 = 0 ;
10475 char * kwnames[] = {
10476 (char *) "self",(char *) "h", NULL
10477 };
10478
10479 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
10480 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10481 if (!SWIG_IsOK(res1)) {
10482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
10483 }
10484 arg1 = reinterpret_cast< wxCursor * >(argp1);
10485 ecode2 = SWIG_AsVal_int(obj1, &val2);
10486 if (!SWIG_IsOK(ecode2)) {
10487 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
10488 }
10489 arg2 = static_cast< int >(val2);
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 (arg1)->SetHeight(arg2);
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = SWIG_Py_Void();
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10504 PyObject *resultobj = 0;
10505 wxCursor *arg1 = (wxCursor *) 0 ;
10506 int arg2 ;
10507 void *argp1 = 0 ;
10508 int res1 = 0 ;
10509 int val2 ;
10510 int ecode2 = 0 ;
10511 PyObject * obj0 = 0 ;
10512 PyObject * obj1 = 0 ;
10513 char * kwnames[] = {
10514 (char *) "self",(char *) "d", NULL
10515 };
10516
10517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
10518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10519 if (!SWIG_IsOK(res1)) {
10520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
10521 }
10522 arg1 = reinterpret_cast< wxCursor * >(argp1);
10523 ecode2 = SWIG_AsVal_int(obj1, &val2);
10524 if (!SWIG_IsOK(ecode2)) {
10525 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
10526 }
10527 arg2 = static_cast< int >(val2);
10528 {
10529 PyThreadState* __tstate = wxPyBeginAllowThreads();
10530 (arg1)->SetDepth(arg2);
10531 wxPyEndAllowThreads(__tstate);
10532 if (PyErr_Occurred()) SWIG_fail;
10533 }
10534 resultobj = SWIG_Py_Void();
10535 return resultobj;
10536 fail:
10537 return NULL;
10538 }
10539
10540
10541 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10542 PyObject *resultobj = 0;
10543 wxCursor *arg1 = (wxCursor *) 0 ;
10544 wxSize *arg2 = 0 ;
10545 void *argp1 = 0 ;
10546 int res1 = 0 ;
10547 wxSize temp2 ;
10548 PyObject * obj0 = 0 ;
10549 PyObject * obj1 = 0 ;
10550 char * kwnames[] = {
10551 (char *) "self",(char *) "size", NULL
10552 };
10553
10554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
10555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
10556 if (!SWIG_IsOK(res1)) {
10557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
10558 }
10559 arg1 = reinterpret_cast< wxCursor * >(argp1);
10560 {
10561 arg2 = &temp2;
10562 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10563 }
10564 {
10565 PyThreadState* __tstate = wxPyBeginAllowThreads();
10566 (arg1)->SetSize((wxSize const &)*arg2);
10567 wxPyEndAllowThreads(__tstate);
10568 if (PyErr_Occurred()) SWIG_fail;
10569 }
10570 resultobj = SWIG_Py_Void();
10571 return resultobj;
10572 fail:
10573 return NULL;
10574 }
10575
10576
10577 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10578 PyObject *obj;
10579 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10580 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
10581 return SWIG_Py_Void();
10582 }
10583
10584 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10585 return SWIG_Python_InitShadowInstance(args);
10586 }
10587
10588 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10589 PyObject *resultobj = 0;
10590 int arg1 = (int) 0 ;
10591 int arg2 = (int) 0 ;
10592 int arg3 = (int) 0 ;
10593 int arg4 = (int) 0 ;
10594 wxRegion *result = 0 ;
10595 int val1 ;
10596 int ecode1 = 0 ;
10597 int val2 ;
10598 int ecode2 = 0 ;
10599 int val3 ;
10600 int ecode3 = 0 ;
10601 int val4 ;
10602 int ecode4 = 0 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 PyObject * obj2 = 0 ;
10606 PyObject * obj3 = 0 ;
10607 char * kwnames[] = {
10608 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
10609 };
10610
10611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10612 if (obj0) {
10613 ecode1 = SWIG_AsVal_int(obj0, &val1);
10614 if (!SWIG_IsOK(ecode1)) {
10615 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
10616 }
10617 arg1 = static_cast< int >(val1);
10618 }
10619 if (obj1) {
10620 ecode2 = SWIG_AsVal_int(obj1, &val2);
10621 if (!SWIG_IsOK(ecode2)) {
10622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
10623 }
10624 arg2 = static_cast< int >(val2);
10625 }
10626 if (obj2) {
10627 ecode3 = SWIG_AsVal_int(obj2, &val3);
10628 if (!SWIG_IsOK(ecode3)) {
10629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
10630 }
10631 arg3 = static_cast< int >(val3);
10632 }
10633 if (obj3) {
10634 ecode4 = SWIG_AsVal_int(obj3, &val4);
10635 if (!SWIG_IsOK(ecode4)) {
10636 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
10637 }
10638 arg4 = static_cast< int >(val4);
10639 }
10640 {
10641 if (!wxPyCheckForApp()) SWIG_fail;
10642 PyThreadState* __tstate = wxPyBeginAllowThreads();
10643 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
10644 wxPyEndAllowThreads(__tstate);
10645 if (PyErr_Occurred()) SWIG_fail;
10646 }
10647 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
10648 return resultobj;
10649 fail:
10650 return NULL;
10651 }
10652
10653
10654 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10655 PyObject *resultobj = 0;
10656 wxBitmap *arg1 = 0 ;
10657 wxRegion *result = 0 ;
10658 void *argp1 = 0 ;
10659 int res1 = 0 ;
10660 PyObject * obj0 = 0 ;
10661 char * kwnames[] = {
10662 (char *) "bmp", NULL
10663 };
10664
10665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
10666 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10667 if (!SWIG_IsOK(res1)) {
10668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10669 }
10670 if (!argp1) {
10671 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10672 }
10673 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10674 {
10675 if (!wxPyCheckForApp()) SWIG_fail;
10676 PyThreadState* __tstate = wxPyBeginAllowThreads();
10677 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
10678 wxPyEndAllowThreads(__tstate);
10679 if (PyErr_Occurred()) SWIG_fail;
10680 }
10681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10682 return resultobj;
10683 fail:
10684 return NULL;
10685 }
10686
10687
10688 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10689 PyObject *resultobj = 0;
10690 wxBitmap *arg1 = 0 ;
10691 wxColour *arg2 = 0 ;
10692 int arg3 = (int) 0 ;
10693 wxRegion *result = 0 ;
10694 void *argp1 = 0 ;
10695 int res1 = 0 ;
10696 wxColour temp2 ;
10697 int val3 ;
10698 int ecode3 = 0 ;
10699 PyObject * obj0 = 0 ;
10700 PyObject * obj1 = 0 ;
10701 PyObject * obj2 = 0 ;
10702 char * kwnames[] = {
10703 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
10704 };
10705
10706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10707 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
10708 if (!SWIG_IsOK(res1)) {
10709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10710 }
10711 if (!argp1) {
10712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
10713 }
10714 arg1 = reinterpret_cast< wxBitmap * >(argp1);
10715 {
10716 arg2 = &temp2;
10717 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
10718 }
10719 if (obj2) {
10720 ecode3 = SWIG_AsVal_int(obj2, &val3);
10721 if (!SWIG_IsOK(ecode3)) {
10722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
10723 }
10724 arg3 = static_cast< int >(val3);
10725 }
10726 {
10727 if (!wxPyCheckForApp()) SWIG_fail;
10728 PyThreadState* __tstate = wxPyBeginAllowThreads();
10729 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
10730 wxPyEndAllowThreads(__tstate);
10731 if (PyErr_Occurred()) SWIG_fail;
10732 }
10733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10734 return resultobj;
10735 fail:
10736 return NULL;
10737 }
10738
10739
10740 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10741 PyObject *resultobj = 0;
10742 int arg1 ;
10743 wxPoint *arg2 = (wxPoint *) 0 ;
10744 int arg3 = (int) wxWINDING_RULE ;
10745 wxRegion *result = 0 ;
10746 int val3 ;
10747 int ecode3 = 0 ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 char * kwnames[] = {
10751 (char *) "points",(char *) "fillStyle", NULL
10752 };
10753
10754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
10755 {
10756 arg2 = wxPoint_LIST_helper(obj0, &arg1);
10757 if (arg2 == NULL) SWIG_fail;
10758 }
10759 if (obj1) {
10760 ecode3 = SWIG_AsVal_int(obj1, &val3);
10761 if (!SWIG_IsOK(ecode3)) {
10762 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
10763 }
10764 arg3 = static_cast< int >(val3);
10765 }
10766 {
10767 if (!wxPyCheckForApp()) SWIG_fail;
10768 PyThreadState* __tstate = wxPyBeginAllowThreads();
10769 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
10770 wxPyEndAllowThreads(__tstate);
10771 if (PyErr_Occurred()) SWIG_fail;
10772 }
10773 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
10774 {
10775 if (arg2) delete [] arg2;
10776 }
10777 return resultobj;
10778 fail:
10779 {
10780 if (arg2) delete [] arg2;
10781 }
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10787 PyObject *resultobj = 0;
10788 wxRegion *arg1 = (wxRegion *) 0 ;
10789 void *argp1 = 0 ;
10790 int res1 = 0 ;
10791 PyObject *swig_obj[1] ;
10792
10793 if (!args) SWIG_fail;
10794 swig_obj[0] = args;
10795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
10796 if (!SWIG_IsOK(res1)) {
10797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
10798 }
10799 arg1 = reinterpret_cast< wxRegion * >(argp1);
10800 {
10801 PyThreadState* __tstate = wxPyBeginAllowThreads();
10802 delete arg1;
10803
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 resultobj = SWIG_Py_Void();
10808 return resultobj;
10809 fail:
10810 return NULL;
10811 }
10812
10813
10814 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10815 PyObject *resultobj = 0;
10816 wxRegion *arg1 = (wxRegion *) 0 ;
10817 void *argp1 = 0 ;
10818 int res1 = 0 ;
10819 PyObject *swig_obj[1] ;
10820
10821 if (!args) SWIG_fail;
10822 swig_obj[0] = args;
10823 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10824 if (!SWIG_IsOK(res1)) {
10825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
10826 }
10827 arg1 = reinterpret_cast< wxRegion * >(argp1);
10828 {
10829 PyThreadState* __tstate = wxPyBeginAllowThreads();
10830 (arg1)->Clear();
10831 wxPyEndAllowThreads(__tstate);
10832 if (PyErr_Occurred()) SWIG_fail;
10833 }
10834 resultobj = SWIG_Py_Void();
10835 return resultobj;
10836 fail:
10837 return NULL;
10838 }
10839
10840
10841 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10842 PyObject *resultobj = 0;
10843 wxRegion *arg1 = (wxRegion *) 0 ;
10844 int arg2 ;
10845 int arg3 ;
10846 bool result;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 int val2 ;
10850 int ecode2 = 0 ;
10851 int val3 ;
10852 int ecode3 = 0 ;
10853 PyObject * obj0 = 0 ;
10854 PyObject * obj1 = 0 ;
10855 PyObject * obj2 = 0 ;
10856 char * kwnames[] = {
10857 (char *) "self",(char *) "x",(char *) "y", NULL
10858 };
10859
10860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10862 if (!SWIG_IsOK(res1)) {
10863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
10864 }
10865 arg1 = reinterpret_cast< wxRegion * >(argp1);
10866 ecode2 = SWIG_AsVal_int(obj1, &val2);
10867 if (!SWIG_IsOK(ecode2)) {
10868 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
10869 }
10870 arg2 = static_cast< int >(val2);
10871 ecode3 = SWIG_AsVal_int(obj2, &val3);
10872 if (!SWIG_IsOK(ecode3)) {
10873 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
10874 }
10875 arg3 = static_cast< int >(val3);
10876 {
10877 PyThreadState* __tstate = wxPyBeginAllowThreads();
10878 result = (bool)(arg1)->Offset(arg2,arg3);
10879 wxPyEndAllowThreads(__tstate);
10880 if (PyErr_Occurred()) SWIG_fail;
10881 }
10882 {
10883 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10884 }
10885 return resultobj;
10886 fail:
10887 return NULL;
10888 }
10889
10890
10891 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10892 PyObject *resultobj = 0;
10893 wxRegion *arg1 = (wxRegion *) 0 ;
10894 int arg2 ;
10895 int arg3 ;
10896 wxRegionContain result;
10897 void *argp1 = 0 ;
10898 int res1 = 0 ;
10899 int val2 ;
10900 int ecode2 = 0 ;
10901 int val3 ;
10902 int ecode3 = 0 ;
10903 PyObject * obj0 = 0 ;
10904 PyObject * obj1 = 0 ;
10905 PyObject * obj2 = 0 ;
10906 char * kwnames[] = {
10907 (char *) "self",(char *) "x",(char *) "y", NULL
10908 };
10909
10910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10912 if (!SWIG_IsOK(res1)) {
10913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
10914 }
10915 arg1 = reinterpret_cast< wxRegion * >(argp1);
10916 ecode2 = SWIG_AsVal_int(obj1, &val2);
10917 if (!SWIG_IsOK(ecode2)) {
10918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
10919 }
10920 arg2 = static_cast< int >(val2);
10921 ecode3 = SWIG_AsVal_int(obj2, &val3);
10922 if (!SWIG_IsOK(ecode3)) {
10923 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
10924 }
10925 arg3 = static_cast< int >(val3);
10926 {
10927 PyThreadState* __tstate = wxPyBeginAllowThreads();
10928 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
10929 wxPyEndAllowThreads(__tstate);
10930 if (PyErr_Occurred()) SWIG_fail;
10931 }
10932 resultobj = SWIG_From_int(static_cast< int >(result));
10933 return resultobj;
10934 fail:
10935 return NULL;
10936 }
10937
10938
10939 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10940 PyObject *resultobj = 0;
10941 wxRegion *arg1 = (wxRegion *) 0 ;
10942 wxPoint *arg2 = 0 ;
10943 wxRegionContain result;
10944 void *argp1 = 0 ;
10945 int res1 = 0 ;
10946 wxPoint temp2 ;
10947 PyObject * obj0 = 0 ;
10948 PyObject * obj1 = 0 ;
10949 char * kwnames[] = {
10950 (char *) "self",(char *) "pt", NULL
10951 };
10952
10953 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
10954 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10955 if (!SWIG_IsOK(res1)) {
10956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
10957 }
10958 arg1 = reinterpret_cast< wxRegion * >(argp1);
10959 {
10960 arg2 = &temp2;
10961 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
10962 }
10963 {
10964 PyThreadState* __tstate = wxPyBeginAllowThreads();
10965 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
10966 wxPyEndAllowThreads(__tstate);
10967 if (PyErr_Occurred()) SWIG_fail;
10968 }
10969 resultobj = SWIG_From_int(static_cast< int >(result));
10970 return resultobj;
10971 fail:
10972 return NULL;
10973 }
10974
10975
10976 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10977 PyObject *resultobj = 0;
10978 wxRegion *arg1 = (wxRegion *) 0 ;
10979 wxRect *arg2 = 0 ;
10980 wxRegionContain result;
10981 void *argp1 = 0 ;
10982 int res1 = 0 ;
10983 wxRect temp2 ;
10984 PyObject * obj0 = 0 ;
10985 PyObject * obj1 = 0 ;
10986 char * kwnames[] = {
10987 (char *) "self",(char *) "rect", NULL
10988 };
10989
10990 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
10991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
10992 if (!SWIG_IsOK(res1)) {
10993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
10994 }
10995 arg1 = reinterpret_cast< wxRegion * >(argp1);
10996 {
10997 arg2 = &temp2;
10998 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
10999 }
11000 {
11001 PyThreadState* __tstate = wxPyBeginAllowThreads();
11002 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
11003 wxPyEndAllowThreads(__tstate);
11004 if (PyErr_Occurred()) SWIG_fail;
11005 }
11006 resultobj = SWIG_From_int(static_cast< int >(result));
11007 return resultobj;
11008 fail:
11009 return NULL;
11010 }
11011
11012
11013 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11014 PyObject *resultobj = 0;
11015 wxRegion *arg1 = (wxRegion *) 0 ;
11016 int arg2 ;
11017 int arg3 ;
11018 int arg4 ;
11019 int arg5 ;
11020 wxRegionContain result;
11021 void *argp1 = 0 ;
11022 int res1 = 0 ;
11023 int val2 ;
11024 int ecode2 = 0 ;
11025 int val3 ;
11026 int ecode3 = 0 ;
11027 int val4 ;
11028 int ecode4 = 0 ;
11029 int val5 ;
11030 int ecode5 = 0 ;
11031 PyObject * obj0 = 0 ;
11032 PyObject * obj1 = 0 ;
11033 PyObject * obj2 = 0 ;
11034 PyObject * obj3 = 0 ;
11035 PyObject * obj4 = 0 ;
11036 char * kwnames[] = {
11037 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
11038 };
11039
11040 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11041 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11042 if (!SWIG_IsOK(res1)) {
11043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
11044 }
11045 arg1 = reinterpret_cast< wxRegion * >(argp1);
11046 ecode2 = SWIG_AsVal_int(obj1, &val2);
11047 if (!SWIG_IsOK(ecode2)) {
11048 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
11049 }
11050 arg2 = static_cast< int >(val2);
11051 ecode3 = SWIG_AsVal_int(obj2, &val3);
11052 if (!SWIG_IsOK(ecode3)) {
11053 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
11054 }
11055 arg3 = static_cast< int >(val3);
11056 ecode4 = SWIG_AsVal_int(obj3, &val4);
11057 if (!SWIG_IsOK(ecode4)) {
11058 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
11059 }
11060 arg4 = static_cast< int >(val4);
11061 ecode5 = SWIG_AsVal_int(obj4, &val5);
11062 if (!SWIG_IsOK(ecode5)) {
11063 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
11064 }
11065 arg5 = static_cast< int >(val5);
11066 {
11067 PyThreadState* __tstate = wxPyBeginAllowThreads();
11068 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
11069 wxPyEndAllowThreads(__tstate);
11070 if (PyErr_Occurred()) SWIG_fail;
11071 }
11072 resultobj = SWIG_From_int(static_cast< int >(result));
11073 return resultobj;
11074 fail:
11075 return NULL;
11076 }
11077
11078
11079 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11080 PyObject *resultobj = 0;
11081 wxRegion *arg1 = (wxRegion *) 0 ;
11082 wxRect result;
11083 void *argp1 = 0 ;
11084 int res1 = 0 ;
11085 PyObject *swig_obj[1] ;
11086
11087 if (!args) SWIG_fail;
11088 swig_obj[0] = args;
11089 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11090 if (!SWIG_IsOK(res1)) {
11091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
11092 }
11093 arg1 = reinterpret_cast< wxRegion * >(argp1);
11094 {
11095 PyThreadState* __tstate = wxPyBeginAllowThreads();
11096 result = (arg1)->GetBox();
11097 wxPyEndAllowThreads(__tstate);
11098 if (PyErr_Occurred()) SWIG_fail;
11099 }
11100 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
11101 return resultobj;
11102 fail:
11103 return NULL;
11104 }
11105
11106
11107 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11108 PyObject *resultobj = 0;
11109 wxRegion *arg1 = (wxRegion *) 0 ;
11110 int arg2 ;
11111 int arg3 ;
11112 int arg4 ;
11113 int arg5 ;
11114 bool result;
11115 void *argp1 = 0 ;
11116 int res1 = 0 ;
11117 int val2 ;
11118 int ecode2 = 0 ;
11119 int val3 ;
11120 int ecode3 = 0 ;
11121 int val4 ;
11122 int ecode4 = 0 ;
11123 int val5 ;
11124 int ecode5 = 0 ;
11125 PyObject * obj0 = 0 ;
11126 PyObject * obj1 = 0 ;
11127 PyObject * obj2 = 0 ;
11128 PyObject * obj3 = 0 ;
11129 PyObject * obj4 = 0 ;
11130 char * kwnames[] = {
11131 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11132 };
11133
11134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11136 if (!SWIG_IsOK(res1)) {
11137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
11138 }
11139 arg1 = reinterpret_cast< wxRegion * >(argp1);
11140 ecode2 = SWIG_AsVal_int(obj1, &val2);
11141 if (!SWIG_IsOK(ecode2)) {
11142 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
11143 }
11144 arg2 = static_cast< int >(val2);
11145 ecode3 = SWIG_AsVal_int(obj2, &val3);
11146 if (!SWIG_IsOK(ecode3)) {
11147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
11148 }
11149 arg3 = static_cast< int >(val3);
11150 ecode4 = SWIG_AsVal_int(obj3, &val4);
11151 if (!SWIG_IsOK(ecode4)) {
11152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
11153 }
11154 arg4 = static_cast< int >(val4);
11155 ecode5 = SWIG_AsVal_int(obj4, &val5);
11156 if (!SWIG_IsOK(ecode5)) {
11157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
11158 }
11159 arg5 = static_cast< int >(val5);
11160 {
11161 PyThreadState* __tstate = wxPyBeginAllowThreads();
11162 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
11163 wxPyEndAllowThreads(__tstate);
11164 if (PyErr_Occurred()) SWIG_fail;
11165 }
11166 {
11167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11168 }
11169 return resultobj;
11170 fail:
11171 return NULL;
11172 }
11173
11174
11175 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11176 PyObject *resultobj = 0;
11177 wxRegion *arg1 = (wxRegion *) 0 ;
11178 wxRect *arg2 = 0 ;
11179 bool result;
11180 void *argp1 = 0 ;
11181 int res1 = 0 ;
11182 wxRect temp2 ;
11183 PyObject * obj0 = 0 ;
11184 PyObject * obj1 = 0 ;
11185 char * kwnames[] = {
11186 (char *) "self",(char *) "rect", NULL
11187 };
11188
11189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
11190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11191 if (!SWIG_IsOK(res1)) {
11192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11193 }
11194 arg1 = reinterpret_cast< wxRegion * >(argp1);
11195 {
11196 arg2 = &temp2;
11197 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11198 }
11199 {
11200 PyThreadState* __tstate = wxPyBeginAllowThreads();
11201 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 {
11206 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11207 }
11208 return resultobj;
11209 fail:
11210 return NULL;
11211 }
11212
11213
11214 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11215 PyObject *resultobj = 0;
11216 wxRegion *arg1 = (wxRegion *) 0 ;
11217 wxRegion *arg2 = 0 ;
11218 bool result;
11219 void *argp1 = 0 ;
11220 int res1 = 0 ;
11221 void *argp2 = 0 ;
11222 int res2 = 0 ;
11223 PyObject * obj0 = 0 ;
11224 PyObject * obj1 = 0 ;
11225 char * kwnames[] = {
11226 (char *) "self",(char *) "region", NULL
11227 };
11228
11229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11231 if (!SWIG_IsOK(res1)) {
11232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11233 }
11234 arg1 = reinterpret_cast< wxRegion * >(argp1);
11235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11236 if (!SWIG_IsOK(res2)) {
11237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11238 }
11239 if (!argp2) {
11240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11241 }
11242 arg2 = reinterpret_cast< wxRegion * >(argp2);
11243 {
11244 PyThreadState* __tstate = wxPyBeginAllowThreads();
11245 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
11246 wxPyEndAllowThreads(__tstate);
11247 if (PyErr_Occurred()) SWIG_fail;
11248 }
11249 {
11250 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11251 }
11252 return resultobj;
11253 fail:
11254 return NULL;
11255 }
11256
11257
11258 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11259 PyObject *resultobj = 0;
11260 wxRegion *arg1 = (wxRegion *) 0 ;
11261 bool result;
11262 void *argp1 = 0 ;
11263 int res1 = 0 ;
11264 PyObject *swig_obj[1] ;
11265
11266 if (!args) SWIG_fail;
11267 swig_obj[0] = args;
11268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11269 if (!SWIG_IsOK(res1)) {
11270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
11271 }
11272 arg1 = reinterpret_cast< wxRegion * >(argp1);
11273 {
11274 PyThreadState* __tstate = wxPyBeginAllowThreads();
11275 result = (bool)(arg1)->IsEmpty();
11276 wxPyEndAllowThreads(__tstate);
11277 if (PyErr_Occurred()) SWIG_fail;
11278 }
11279 {
11280 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11281 }
11282 return resultobj;
11283 fail:
11284 return NULL;
11285 }
11286
11287
11288 SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11289 PyObject *resultobj = 0;
11290 wxRegion *arg1 = (wxRegion *) 0 ;
11291 wxRegion *arg2 = 0 ;
11292 bool result;
11293 void *argp1 = 0 ;
11294 int res1 = 0 ;
11295 void *argp2 = 0 ;
11296 int res2 = 0 ;
11297 PyObject * obj0 = 0 ;
11298 PyObject * obj1 = 0 ;
11299 char * kwnames[] = {
11300 (char *) "self",(char *) "region", NULL
11301 };
11302
11303 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail;
11304 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11305 if (!SWIG_IsOK(res1)) {
11306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'");
11307 }
11308 arg1 = reinterpret_cast< wxRegion * >(argp1);
11309 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11310 if (!SWIG_IsOK(res2)) {
11311 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11312 }
11313 if (!argp2) {
11314 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'");
11315 }
11316 arg2 = reinterpret_cast< wxRegion * >(argp2);
11317 {
11318 PyThreadState* __tstate = wxPyBeginAllowThreads();
11319 result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2);
11320 wxPyEndAllowThreads(__tstate);
11321 if (PyErr_Occurred()) SWIG_fail;
11322 }
11323 {
11324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11325 }
11326 return resultobj;
11327 fail:
11328 return NULL;
11329 }
11330
11331
11332 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11333 PyObject *resultobj = 0;
11334 wxRegion *arg1 = (wxRegion *) 0 ;
11335 int arg2 ;
11336 int arg3 ;
11337 int arg4 ;
11338 int arg5 ;
11339 bool result;
11340 void *argp1 = 0 ;
11341 int res1 = 0 ;
11342 int val2 ;
11343 int ecode2 = 0 ;
11344 int val3 ;
11345 int ecode3 = 0 ;
11346 int val4 ;
11347 int ecode4 = 0 ;
11348 int val5 ;
11349 int ecode5 = 0 ;
11350 PyObject * obj0 = 0 ;
11351 PyObject * obj1 = 0 ;
11352 PyObject * obj2 = 0 ;
11353 PyObject * obj3 = 0 ;
11354 PyObject * obj4 = 0 ;
11355 char * kwnames[] = {
11356 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11357 };
11358
11359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11361 if (!SWIG_IsOK(res1)) {
11362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
11363 }
11364 arg1 = reinterpret_cast< wxRegion * >(argp1);
11365 ecode2 = SWIG_AsVal_int(obj1, &val2);
11366 if (!SWIG_IsOK(ecode2)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
11368 }
11369 arg2 = static_cast< int >(val2);
11370 ecode3 = SWIG_AsVal_int(obj2, &val3);
11371 if (!SWIG_IsOK(ecode3)) {
11372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
11373 }
11374 arg3 = static_cast< int >(val3);
11375 ecode4 = SWIG_AsVal_int(obj3, &val4);
11376 if (!SWIG_IsOK(ecode4)) {
11377 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
11378 }
11379 arg4 = static_cast< int >(val4);
11380 ecode5 = SWIG_AsVal_int(obj4, &val5);
11381 if (!SWIG_IsOK(ecode5)) {
11382 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
11383 }
11384 arg5 = static_cast< int >(val5);
11385 {
11386 PyThreadState* __tstate = wxPyBeginAllowThreads();
11387 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
11388 wxPyEndAllowThreads(__tstate);
11389 if (PyErr_Occurred()) SWIG_fail;
11390 }
11391 {
11392 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11393 }
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11401 PyObject *resultobj = 0;
11402 wxRegion *arg1 = (wxRegion *) 0 ;
11403 wxRect *arg2 = 0 ;
11404 bool result;
11405 void *argp1 = 0 ;
11406 int res1 = 0 ;
11407 wxRect temp2 ;
11408 PyObject * obj0 = 0 ;
11409 PyObject * obj1 = 0 ;
11410 char * kwnames[] = {
11411 (char *) "self",(char *) "rect", NULL
11412 };
11413
11414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
11415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11416 if (!SWIG_IsOK(res1)) {
11417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11418 }
11419 arg1 = reinterpret_cast< wxRegion * >(argp1);
11420 {
11421 arg2 = &temp2;
11422 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11423 }
11424 {
11425 PyThreadState* __tstate = wxPyBeginAllowThreads();
11426 result = (bool)(arg1)->Union((wxRect const &)*arg2);
11427 wxPyEndAllowThreads(__tstate);
11428 if (PyErr_Occurred()) SWIG_fail;
11429 }
11430 {
11431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11432 }
11433 return resultobj;
11434 fail:
11435 return NULL;
11436 }
11437
11438
11439 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11440 PyObject *resultobj = 0;
11441 wxRegion *arg1 = (wxRegion *) 0 ;
11442 wxRegion *arg2 = 0 ;
11443 bool result;
11444 void *argp1 = 0 ;
11445 int res1 = 0 ;
11446 void *argp2 = 0 ;
11447 int res2 = 0 ;
11448 PyObject * obj0 = 0 ;
11449 PyObject * obj1 = 0 ;
11450 char * kwnames[] = {
11451 (char *) "self",(char *) "region", NULL
11452 };
11453
11454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11456 if (!SWIG_IsOK(res1)) {
11457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11458 }
11459 arg1 = reinterpret_cast< wxRegion * >(argp1);
11460 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11461 if (!SWIG_IsOK(res2)) {
11462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11463 }
11464 if (!argp2) {
11465 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11466 }
11467 arg2 = reinterpret_cast< wxRegion * >(argp2);
11468 {
11469 PyThreadState* __tstate = wxPyBeginAllowThreads();
11470 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
11471 wxPyEndAllowThreads(__tstate);
11472 if (PyErr_Occurred()) SWIG_fail;
11473 }
11474 {
11475 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11476 }
11477 return resultobj;
11478 fail:
11479 return NULL;
11480 }
11481
11482
11483 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11484 PyObject *resultobj = 0;
11485 wxRegion *arg1 = (wxRegion *) 0 ;
11486 int arg2 ;
11487 int arg3 ;
11488 int arg4 ;
11489 int arg5 ;
11490 bool result;
11491 void *argp1 = 0 ;
11492 int res1 = 0 ;
11493 int val2 ;
11494 int ecode2 = 0 ;
11495 int val3 ;
11496 int ecode3 = 0 ;
11497 int val4 ;
11498 int ecode4 = 0 ;
11499 int val5 ;
11500 int ecode5 = 0 ;
11501 PyObject * obj0 = 0 ;
11502 PyObject * obj1 = 0 ;
11503 PyObject * obj2 = 0 ;
11504 PyObject * obj3 = 0 ;
11505 PyObject * obj4 = 0 ;
11506 char * kwnames[] = {
11507 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11508 };
11509
11510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11512 if (!SWIG_IsOK(res1)) {
11513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
11514 }
11515 arg1 = reinterpret_cast< wxRegion * >(argp1);
11516 ecode2 = SWIG_AsVal_int(obj1, &val2);
11517 if (!SWIG_IsOK(ecode2)) {
11518 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
11519 }
11520 arg2 = static_cast< int >(val2);
11521 ecode3 = SWIG_AsVal_int(obj2, &val3);
11522 if (!SWIG_IsOK(ecode3)) {
11523 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
11524 }
11525 arg3 = static_cast< int >(val3);
11526 ecode4 = SWIG_AsVal_int(obj3, &val4);
11527 if (!SWIG_IsOK(ecode4)) {
11528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
11529 }
11530 arg4 = static_cast< int >(val4);
11531 ecode5 = SWIG_AsVal_int(obj4, &val5);
11532 if (!SWIG_IsOK(ecode5)) {
11533 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
11534 }
11535 arg5 = static_cast< int >(val5);
11536 {
11537 PyThreadState* __tstate = wxPyBeginAllowThreads();
11538 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
11539 wxPyEndAllowThreads(__tstate);
11540 if (PyErr_Occurred()) SWIG_fail;
11541 }
11542 {
11543 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11544 }
11545 return resultobj;
11546 fail:
11547 return NULL;
11548 }
11549
11550
11551 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11552 PyObject *resultobj = 0;
11553 wxRegion *arg1 = (wxRegion *) 0 ;
11554 wxRect *arg2 = 0 ;
11555 bool result;
11556 void *argp1 = 0 ;
11557 int res1 = 0 ;
11558 wxRect temp2 ;
11559 PyObject * obj0 = 0 ;
11560 PyObject * obj1 = 0 ;
11561 char * kwnames[] = {
11562 (char *) "self",(char *) "rect", NULL
11563 };
11564
11565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
11566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11567 if (!SWIG_IsOK(res1)) {
11568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11569 }
11570 arg1 = reinterpret_cast< wxRegion * >(argp1);
11571 {
11572 arg2 = &temp2;
11573 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11574 }
11575 {
11576 PyThreadState* __tstate = wxPyBeginAllowThreads();
11577 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
11578 wxPyEndAllowThreads(__tstate);
11579 if (PyErr_Occurred()) SWIG_fail;
11580 }
11581 {
11582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11583 }
11584 return resultobj;
11585 fail:
11586 return NULL;
11587 }
11588
11589
11590 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11591 PyObject *resultobj = 0;
11592 wxRegion *arg1 = (wxRegion *) 0 ;
11593 wxRegion *arg2 = 0 ;
11594 bool result;
11595 void *argp1 = 0 ;
11596 int res1 = 0 ;
11597 void *argp2 = 0 ;
11598 int res2 = 0 ;
11599 PyObject * obj0 = 0 ;
11600 PyObject * obj1 = 0 ;
11601 char * kwnames[] = {
11602 (char *) "self",(char *) "region", NULL
11603 };
11604
11605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11607 if (!SWIG_IsOK(res1)) {
11608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11609 }
11610 arg1 = reinterpret_cast< wxRegion * >(argp1);
11611 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11612 if (!SWIG_IsOK(res2)) {
11613 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11614 }
11615 if (!argp2) {
11616 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11617 }
11618 arg2 = reinterpret_cast< wxRegion * >(argp2);
11619 {
11620 PyThreadState* __tstate = wxPyBeginAllowThreads();
11621 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
11622 wxPyEndAllowThreads(__tstate);
11623 if (PyErr_Occurred()) SWIG_fail;
11624 }
11625 {
11626 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11627 }
11628 return resultobj;
11629 fail:
11630 return NULL;
11631 }
11632
11633
11634 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11635 PyObject *resultobj = 0;
11636 wxRegion *arg1 = (wxRegion *) 0 ;
11637 int arg2 ;
11638 int arg3 ;
11639 int arg4 ;
11640 int arg5 ;
11641 bool result;
11642 void *argp1 = 0 ;
11643 int res1 = 0 ;
11644 int val2 ;
11645 int ecode2 = 0 ;
11646 int val3 ;
11647 int ecode3 = 0 ;
11648 int val4 ;
11649 int ecode4 = 0 ;
11650 int val5 ;
11651 int ecode5 = 0 ;
11652 PyObject * obj0 = 0 ;
11653 PyObject * obj1 = 0 ;
11654 PyObject * obj2 = 0 ;
11655 PyObject * obj3 = 0 ;
11656 PyObject * obj4 = 0 ;
11657 char * kwnames[] = {
11658 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
11659 };
11660
11661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11663 if (!SWIG_IsOK(res1)) {
11664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
11665 }
11666 arg1 = reinterpret_cast< wxRegion * >(argp1);
11667 ecode2 = SWIG_AsVal_int(obj1, &val2);
11668 if (!SWIG_IsOK(ecode2)) {
11669 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
11670 }
11671 arg2 = static_cast< int >(val2);
11672 ecode3 = SWIG_AsVal_int(obj2, &val3);
11673 if (!SWIG_IsOK(ecode3)) {
11674 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
11675 }
11676 arg3 = static_cast< int >(val3);
11677 ecode4 = SWIG_AsVal_int(obj3, &val4);
11678 if (!SWIG_IsOK(ecode4)) {
11679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
11680 }
11681 arg4 = static_cast< int >(val4);
11682 ecode5 = SWIG_AsVal_int(obj4, &val5);
11683 if (!SWIG_IsOK(ecode5)) {
11684 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
11685 }
11686 arg5 = static_cast< int >(val5);
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 {
11694 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11695 }
11696 return resultobj;
11697 fail:
11698 return NULL;
11699 }
11700
11701
11702 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11703 PyObject *resultobj = 0;
11704 wxRegion *arg1 = (wxRegion *) 0 ;
11705 wxRect *arg2 = 0 ;
11706 bool result;
11707 void *argp1 = 0 ;
11708 int res1 = 0 ;
11709 wxRect temp2 ;
11710 PyObject * obj0 = 0 ;
11711 PyObject * obj1 = 0 ;
11712 char * kwnames[] = {
11713 (char *) "self",(char *) "rect", NULL
11714 };
11715
11716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
11717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11718 if (!SWIG_IsOK(res1)) {
11719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
11720 }
11721 arg1 = reinterpret_cast< wxRegion * >(argp1);
11722 {
11723 arg2 = &temp2;
11724 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
11725 }
11726 {
11727 PyThreadState* __tstate = wxPyBeginAllowThreads();
11728 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
11729 wxPyEndAllowThreads(__tstate);
11730 if (PyErr_Occurred()) SWIG_fail;
11731 }
11732 {
11733 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11734 }
11735 return resultobj;
11736 fail:
11737 return NULL;
11738 }
11739
11740
11741 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11742 PyObject *resultobj = 0;
11743 wxRegion *arg1 = (wxRegion *) 0 ;
11744 wxRegion *arg2 = 0 ;
11745 bool result;
11746 void *argp1 = 0 ;
11747 int res1 = 0 ;
11748 void *argp2 = 0 ;
11749 int res2 = 0 ;
11750 PyObject * obj0 = 0 ;
11751 PyObject * obj1 = 0 ;
11752 char * kwnames[] = {
11753 (char *) "self",(char *) "region", NULL
11754 };
11755
11756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
11757 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11758 if (!SWIG_IsOK(res1)) {
11759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
11760 }
11761 arg1 = reinterpret_cast< wxRegion * >(argp1);
11762 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
11763 if (!SWIG_IsOK(res2)) {
11764 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11765 }
11766 if (!argp2) {
11767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
11768 }
11769 arg2 = reinterpret_cast< wxRegion * >(argp2);
11770 {
11771 PyThreadState* __tstate = wxPyBeginAllowThreads();
11772 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
11773 wxPyEndAllowThreads(__tstate);
11774 if (PyErr_Occurred()) SWIG_fail;
11775 }
11776 {
11777 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11778 }
11779 return resultobj;
11780 fail:
11781 return NULL;
11782 }
11783
11784
11785 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11786 PyObject *resultobj = 0;
11787 wxRegion *arg1 = (wxRegion *) 0 ;
11788 SwigValueWrapper<wxBitmap > result;
11789 void *argp1 = 0 ;
11790 int res1 = 0 ;
11791 PyObject *swig_obj[1] ;
11792
11793 if (!args) SWIG_fail;
11794 swig_obj[0] = args;
11795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11796 if (!SWIG_IsOK(res1)) {
11797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11798 }
11799 arg1 = reinterpret_cast< wxRegion * >(argp1);
11800 {
11801 PyThreadState* __tstate = wxPyBeginAllowThreads();
11802 result = (arg1)->ConvertToBitmap();
11803 wxPyEndAllowThreads(__tstate);
11804 if (PyErr_Occurred()) SWIG_fail;
11805 }
11806 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
11807 return resultobj;
11808 fail:
11809 return NULL;
11810 }
11811
11812
11813 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11814 PyObject *resultobj = 0;
11815 wxRegion *arg1 = (wxRegion *) 0 ;
11816 wxBitmap *arg2 = 0 ;
11817 bool result;
11818 void *argp1 = 0 ;
11819 int res1 = 0 ;
11820 void *argp2 = 0 ;
11821 int res2 = 0 ;
11822 PyObject * obj0 = 0 ;
11823 PyObject * obj1 = 0 ;
11824 char * kwnames[] = {
11825 (char *) "self",(char *) "bmp", NULL
11826 };
11827
11828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
11829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11830 if (!SWIG_IsOK(res1)) {
11831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
11832 }
11833 arg1 = reinterpret_cast< wxRegion * >(argp1);
11834 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11835 if (!SWIG_IsOK(res2)) {
11836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11837 }
11838 if (!argp2) {
11839 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11840 }
11841 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11842 {
11843 PyThreadState* __tstate = wxPyBeginAllowThreads();
11844 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
11845 wxPyEndAllowThreads(__tstate);
11846 if (PyErr_Occurred()) SWIG_fail;
11847 }
11848 {
11849 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11850 }
11851 return resultobj;
11852 fail:
11853 return NULL;
11854 }
11855
11856
11857 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11858 PyObject *resultobj = 0;
11859 wxRegion *arg1 = (wxRegion *) 0 ;
11860 wxBitmap *arg2 = 0 ;
11861 wxColour *arg3 = 0 ;
11862 int arg4 = (int) 0 ;
11863 bool result;
11864 void *argp1 = 0 ;
11865 int res1 = 0 ;
11866 void *argp2 = 0 ;
11867 int res2 = 0 ;
11868 wxColour temp3 ;
11869 int val4 ;
11870 int ecode4 = 0 ;
11871 PyObject * obj0 = 0 ;
11872 PyObject * obj1 = 0 ;
11873 PyObject * obj2 = 0 ;
11874 PyObject * obj3 = 0 ;
11875 char * kwnames[] = {
11876 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
11877 };
11878
11879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11880 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
11881 if (!SWIG_IsOK(res1)) {
11882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
11883 }
11884 arg1 = reinterpret_cast< wxRegion * >(argp1);
11885 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
11886 if (!SWIG_IsOK(res2)) {
11887 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11888 }
11889 if (!argp2) {
11890 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
11891 }
11892 arg2 = reinterpret_cast< wxBitmap * >(argp2);
11893 {
11894 arg3 = &temp3;
11895 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
11896 }
11897 if (obj3) {
11898 ecode4 = SWIG_AsVal_int(obj3, &val4);
11899 if (!SWIG_IsOK(ecode4)) {
11900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
11901 }
11902 arg4 = static_cast< int >(val4);
11903 }
11904 {
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 {
11911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11912 }
11913 return resultobj;
11914 fail:
11915 return NULL;
11916 }
11917
11918
11919 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11920 PyObject *obj;
11921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11922 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
11923 return SWIG_Py_Void();
11924 }
11925
11926 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11927 return SWIG_Python_InitShadowInstance(args);
11928 }
11929
11930 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11931 PyObject *resultobj = 0;
11932 wxRegion *arg1 = 0 ;
11933 wxRegionIterator *result = 0 ;
11934 void *argp1 = 0 ;
11935 int res1 = 0 ;
11936 PyObject * obj0 = 0 ;
11937 char * kwnames[] = {
11938 (char *) "region", NULL
11939 };
11940
11941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
11942 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
11943 if (!SWIG_IsOK(res1)) {
11944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11945 }
11946 if (!argp1) {
11947 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
11948 }
11949 arg1 = reinterpret_cast< wxRegion * >(argp1);
11950 {
11951 if (!wxPyCheckForApp()) SWIG_fail;
11952 PyThreadState* __tstate = wxPyBeginAllowThreads();
11953 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
11954 wxPyEndAllowThreads(__tstate);
11955 if (PyErr_Occurred()) SWIG_fail;
11956 }
11957 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
11958 return resultobj;
11959 fail:
11960 return NULL;
11961 }
11962
11963
11964 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11965 PyObject *resultobj = 0;
11966 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11967 void *argp1 = 0 ;
11968 int res1 = 0 ;
11969 PyObject *swig_obj[1] ;
11970
11971 if (!args) SWIG_fail;
11972 swig_obj[0] = args;
11973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
11974 if (!SWIG_IsOK(res1)) {
11975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
11976 }
11977 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
11978 {
11979 PyThreadState* __tstate = wxPyBeginAllowThreads();
11980 delete arg1;
11981
11982 wxPyEndAllowThreads(__tstate);
11983 if (PyErr_Occurred()) SWIG_fail;
11984 }
11985 resultobj = SWIG_Py_Void();
11986 return resultobj;
11987 fail:
11988 return NULL;
11989 }
11990
11991
11992 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11993 PyObject *resultobj = 0;
11994 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
11995 int result;
11996 void *argp1 = 0 ;
11997 int res1 = 0 ;
11998 PyObject *swig_obj[1] ;
11999
12000 if (!args) SWIG_fail;
12001 swig_obj[0] = args;
12002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12003 if (!SWIG_IsOK(res1)) {
12004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12005 }
12006 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12007 {
12008 PyThreadState* __tstate = wxPyBeginAllowThreads();
12009 result = (int)(arg1)->GetX();
12010 wxPyEndAllowThreads(__tstate);
12011 if (PyErr_Occurred()) SWIG_fail;
12012 }
12013 resultobj = SWIG_From_int(static_cast< int >(result));
12014 return resultobj;
12015 fail:
12016 return NULL;
12017 }
12018
12019
12020 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12021 PyObject *resultobj = 0;
12022 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12023 int result;
12024 void *argp1 = 0 ;
12025 int res1 = 0 ;
12026 PyObject *swig_obj[1] ;
12027
12028 if (!args) SWIG_fail;
12029 swig_obj[0] = args;
12030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12031 if (!SWIG_IsOK(res1)) {
12032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12033 }
12034 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12035 {
12036 PyThreadState* __tstate = wxPyBeginAllowThreads();
12037 result = (int)(arg1)->GetY();
12038 wxPyEndAllowThreads(__tstate);
12039 if (PyErr_Occurred()) SWIG_fail;
12040 }
12041 resultobj = SWIG_From_int(static_cast< int >(result));
12042 return resultobj;
12043 fail:
12044 return NULL;
12045 }
12046
12047
12048 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12049 PyObject *resultobj = 0;
12050 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12051 int result;
12052 void *argp1 = 0 ;
12053 int res1 = 0 ;
12054 PyObject *swig_obj[1] ;
12055
12056 if (!args) SWIG_fail;
12057 swig_obj[0] = args;
12058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12059 if (!SWIG_IsOK(res1)) {
12060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12061 }
12062 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12063 {
12064 PyThreadState* __tstate = wxPyBeginAllowThreads();
12065 result = (int)(arg1)->GetW();
12066 wxPyEndAllowThreads(__tstate);
12067 if (PyErr_Occurred()) SWIG_fail;
12068 }
12069 resultobj = SWIG_From_int(static_cast< int >(result));
12070 return resultobj;
12071 fail:
12072 return NULL;
12073 }
12074
12075
12076 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12077 PyObject *resultobj = 0;
12078 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12079 int result;
12080 void *argp1 = 0 ;
12081 int res1 = 0 ;
12082 PyObject *swig_obj[1] ;
12083
12084 if (!args) SWIG_fail;
12085 swig_obj[0] = args;
12086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12087 if (!SWIG_IsOK(res1)) {
12088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12089 }
12090 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12091 {
12092 PyThreadState* __tstate = wxPyBeginAllowThreads();
12093 result = (int)(arg1)->GetWidth();
12094 wxPyEndAllowThreads(__tstate);
12095 if (PyErr_Occurred()) SWIG_fail;
12096 }
12097 resultobj = SWIG_From_int(static_cast< int >(result));
12098 return resultobj;
12099 fail:
12100 return NULL;
12101 }
12102
12103
12104 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12105 PyObject *resultobj = 0;
12106 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12107 int result;
12108 void *argp1 = 0 ;
12109 int res1 = 0 ;
12110 PyObject *swig_obj[1] ;
12111
12112 if (!args) SWIG_fail;
12113 swig_obj[0] = args;
12114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12115 if (!SWIG_IsOK(res1)) {
12116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12117 }
12118 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12119 {
12120 PyThreadState* __tstate = wxPyBeginAllowThreads();
12121 result = (int)(arg1)->GetH();
12122 wxPyEndAllowThreads(__tstate);
12123 if (PyErr_Occurred()) SWIG_fail;
12124 }
12125 resultobj = SWIG_From_int(static_cast< int >(result));
12126 return resultobj;
12127 fail:
12128 return NULL;
12129 }
12130
12131
12132 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12133 PyObject *resultobj = 0;
12134 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12135 int result;
12136 void *argp1 = 0 ;
12137 int res1 = 0 ;
12138 PyObject *swig_obj[1] ;
12139
12140 if (!args) SWIG_fail;
12141 swig_obj[0] = args;
12142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12143 if (!SWIG_IsOK(res1)) {
12144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12145 }
12146 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12147 {
12148 PyThreadState* __tstate = wxPyBeginAllowThreads();
12149 result = (int)(arg1)->GetHeight();
12150 wxPyEndAllowThreads(__tstate);
12151 if (PyErr_Occurred()) SWIG_fail;
12152 }
12153 resultobj = SWIG_From_int(static_cast< int >(result));
12154 return resultobj;
12155 fail:
12156 return NULL;
12157 }
12158
12159
12160 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12161 PyObject *resultobj = 0;
12162 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12163 wxRect result;
12164 void *argp1 = 0 ;
12165 int res1 = 0 ;
12166 PyObject *swig_obj[1] ;
12167
12168 if (!args) SWIG_fail;
12169 swig_obj[0] = args;
12170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12171 if (!SWIG_IsOK(res1)) {
12172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12173 }
12174 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12175 {
12176 PyThreadState* __tstate = wxPyBeginAllowThreads();
12177 result = (arg1)->GetRect();
12178 wxPyEndAllowThreads(__tstate);
12179 if (PyErr_Occurred()) SWIG_fail;
12180 }
12181 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
12182 return resultobj;
12183 fail:
12184 return NULL;
12185 }
12186
12187
12188 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12189 PyObject *resultobj = 0;
12190 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12191 bool result;
12192 void *argp1 = 0 ;
12193 int res1 = 0 ;
12194 PyObject *swig_obj[1] ;
12195
12196 if (!args) SWIG_fail;
12197 swig_obj[0] = args;
12198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12199 if (!SWIG_IsOK(res1)) {
12200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12201 }
12202 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12203 {
12204 PyThreadState* __tstate = wxPyBeginAllowThreads();
12205 result = (bool)(arg1)->HaveRects();
12206 wxPyEndAllowThreads(__tstate);
12207 if (PyErr_Occurred()) SWIG_fail;
12208 }
12209 {
12210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12211 }
12212 return resultobj;
12213 fail:
12214 return NULL;
12215 }
12216
12217
12218 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12219 PyObject *resultobj = 0;
12220 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12221 void *argp1 = 0 ;
12222 int res1 = 0 ;
12223 PyObject *swig_obj[1] ;
12224
12225 if (!args) SWIG_fail;
12226 swig_obj[0] = args;
12227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12228 if (!SWIG_IsOK(res1)) {
12229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12230 }
12231 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12232 {
12233 PyThreadState* __tstate = wxPyBeginAllowThreads();
12234 (arg1)->Reset();
12235 wxPyEndAllowThreads(__tstate);
12236 if (PyErr_Occurred()) SWIG_fail;
12237 }
12238 resultobj = SWIG_Py_Void();
12239 return resultobj;
12240 fail:
12241 return NULL;
12242 }
12243
12244
12245 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12246 PyObject *resultobj = 0;
12247 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12248 void *argp1 = 0 ;
12249 int res1 = 0 ;
12250 PyObject *swig_obj[1] ;
12251
12252 if (!args) SWIG_fail;
12253 swig_obj[0] = args;
12254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12255 if (!SWIG_IsOK(res1)) {
12256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12257 }
12258 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12259 {
12260 PyThreadState* __tstate = wxPyBeginAllowThreads();
12261 wxRegionIterator_Next(arg1);
12262 wxPyEndAllowThreads(__tstate);
12263 if (PyErr_Occurred()) SWIG_fail;
12264 }
12265 resultobj = SWIG_Py_Void();
12266 return resultobj;
12267 fail:
12268 return NULL;
12269 }
12270
12271
12272 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12273 PyObject *resultobj = 0;
12274 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
12275 bool result;
12276 void *argp1 = 0 ;
12277 int res1 = 0 ;
12278 PyObject *swig_obj[1] ;
12279
12280 if (!args) SWIG_fail;
12281 swig_obj[0] = args;
12282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
12283 if (!SWIG_IsOK(res1)) {
12284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
12285 }
12286 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
12287 {
12288 PyThreadState* __tstate = wxPyBeginAllowThreads();
12289 result = (bool)wxRegionIterator___nonzero__(arg1);
12290 wxPyEndAllowThreads(__tstate);
12291 if (PyErr_Occurred()) SWIG_fail;
12292 }
12293 {
12294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12295 }
12296 return resultobj;
12297 fail:
12298 return NULL;
12299 }
12300
12301
12302 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12303 PyObject *obj;
12304 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12305 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
12306 return SWIG_Py_Void();
12307 }
12308
12309 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12310 return SWIG_Python_InitShadowInstance(args);
12311 }
12312
12313 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12314 PyObject *resultobj = 0;
12315 wxNativeFontInfo *result = 0 ;
12316
12317 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = (wxNativeFontInfo *)new wxNativeFontInfo();
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
12325 return resultobj;
12326 fail:
12327 return NULL;
12328 }
12329
12330
12331 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12332 PyObject *resultobj = 0;
12333 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12334 void *argp1 = 0 ;
12335 int res1 = 0 ;
12336 PyObject *swig_obj[1] ;
12337
12338 if (!args) SWIG_fail;
12339 swig_obj[0] = args;
12340 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
12341 if (!SWIG_IsOK(res1)) {
12342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12343 }
12344 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12345 {
12346 PyThreadState* __tstate = wxPyBeginAllowThreads();
12347 delete arg1;
12348
12349 wxPyEndAllowThreads(__tstate);
12350 if (PyErr_Occurred()) SWIG_fail;
12351 }
12352 resultobj = SWIG_Py_Void();
12353 return resultobj;
12354 fail:
12355 return NULL;
12356 }
12357
12358
12359 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12360 PyObject *resultobj = 0;
12361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12362 void *argp1 = 0 ;
12363 int res1 = 0 ;
12364 PyObject *swig_obj[1] ;
12365
12366 if (!args) SWIG_fail;
12367 swig_obj[0] = args;
12368 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12369 if (!SWIG_IsOK(res1)) {
12370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12371 }
12372 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12373 {
12374 PyThreadState* __tstate = wxPyBeginAllowThreads();
12375 (arg1)->Init();
12376 wxPyEndAllowThreads(__tstate);
12377 if (PyErr_Occurred()) SWIG_fail;
12378 }
12379 resultobj = SWIG_Py_Void();
12380 return resultobj;
12381 fail:
12382 return NULL;
12383 }
12384
12385
12386 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12387 PyObject *resultobj = 0;
12388 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12389 wxFont *arg2 = 0 ;
12390 void *argp1 = 0 ;
12391 int res1 = 0 ;
12392 void *argp2 = 0 ;
12393 int res2 = 0 ;
12394 PyObject * obj0 = 0 ;
12395 PyObject * obj1 = 0 ;
12396 char * kwnames[] = {
12397 (char *) "self",(char *) "font", NULL
12398 };
12399
12400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
12401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12402 if (!SWIG_IsOK(res1)) {
12403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12404 }
12405 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12406 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
12407 if (!SWIG_IsOK(res2)) {
12408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12409 }
12410 if (!argp2) {
12411 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
12412 }
12413 arg2 = reinterpret_cast< wxFont * >(argp2);
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 (arg1)->InitFromFont((wxFont const &)*arg2);
12417 wxPyEndAllowThreads(__tstate);
12418 if (PyErr_Occurred()) SWIG_fail;
12419 }
12420 resultobj = SWIG_Py_Void();
12421 return resultobj;
12422 fail:
12423 return NULL;
12424 }
12425
12426
12427 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12428 PyObject *resultobj = 0;
12429 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12430 int result;
12431 void *argp1 = 0 ;
12432 int res1 = 0 ;
12433 PyObject *swig_obj[1] ;
12434
12435 if (!args) SWIG_fail;
12436 swig_obj[0] = args;
12437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12438 if (!SWIG_IsOK(res1)) {
12439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12440 }
12441 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12442 {
12443 PyThreadState* __tstate = wxPyBeginAllowThreads();
12444 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
12445 wxPyEndAllowThreads(__tstate);
12446 if (PyErr_Occurred()) SWIG_fail;
12447 }
12448 resultobj = SWIG_From_int(static_cast< int >(result));
12449 return resultobj;
12450 fail:
12451 return NULL;
12452 }
12453
12454
12455 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12456 PyObject *resultobj = 0;
12457 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12458 wxSize result;
12459 void *argp1 = 0 ;
12460 int res1 = 0 ;
12461 PyObject *swig_obj[1] ;
12462
12463 if (!args) SWIG_fail;
12464 swig_obj[0] = args;
12465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12466 if (!SWIG_IsOK(res1)) {
12467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12468 }
12469 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12470 {
12471 PyThreadState* __tstate = wxPyBeginAllowThreads();
12472 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
12473 wxPyEndAllowThreads(__tstate);
12474 if (PyErr_Occurred()) SWIG_fail;
12475 }
12476 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12477 return resultobj;
12478 fail:
12479 return NULL;
12480 }
12481
12482
12483 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12484 PyObject *resultobj = 0;
12485 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12486 wxFontStyle result;
12487 void *argp1 = 0 ;
12488 int res1 = 0 ;
12489 PyObject *swig_obj[1] ;
12490
12491 if (!args) SWIG_fail;
12492 swig_obj[0] = args;
12493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12494 if (!SWIG_IsOK(res1)) {
12495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12496 }
12497 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12498 {
12499 PyThreadState* __tstate = wxPyBeginAllowThreads();
12500 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
12501 wxPyEndAllowThreads(__tstate);
12502 if (PyErr_Occurred()) SWIG_fail;
12503 }
12504 resultobj = SWIG_From_int(static_cast< int >(result));
12505 return resultobj;
12506 fail:
12507 return NULL;
12508 }
12509
12510
12511 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12512 PyObject *resultobj = 0;
12513 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12514 wxFontWeight result;
12515 void *argp1 = 0 ;
12516 int res1 = 0 ;
12517 PyObject *swig_obj[1] ;
12518
12519 if (!args) SWIG_fail;
12520 swig_obj[0] = args;
12521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12522 if (!SWIG_IsOK(res1)) {
12523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12524 }
12525 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12526 {
12527 PyThreadState* __tstate = wxPyBeginAllowThreads();
12528 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
12529 wxPyEndAllowThreads(__tstate);
12530 if (PyErr_Occurred()) SWIG_fail;
12531 }
12532 resultobj = SWIG_From_int(static_cast< int >(result));
12533 return resultobj;
12534 fail:
12535 return NULL;
12536 }
12537
12538
12539 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12540 PyObject *resultobj = 0;
12541 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12542 bool result;
12543 void *argp1 = 0 ;
12544 int res1 = 0 ;
12545 PyObject *swig_obj[1] ;
12546
12547 if (!args) SWIG_fail;
12548 swig_obj[0] = args;
12549 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12550 if (!SWIG_IsOK(res1)) {
12551 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12552 }
12553 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12554 {
12555 PyThreadState* __tstate = wxPyBeginAllowThreads();
12556 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
12557 wxPyEndAllowThreads(__tstate);
12558 if (PyErr_Occurred()) SWIG_fail;
12559 }
12560 {
12561 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12562 }
12563 return resultobj;
12564 fail:
12565 return NULL;
12566 }
12567
12568
12569 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12570 PyObject *resultobj = 0;
12571 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12572 wxString result;
12573 void *argp1 = 0 ;
12574 int res1 = 0 ;
12575 PyObject *swig_obj[1] ;
12576
12577 if (!args) SWIG_fail;
12578 swig_obj[0] = args;
12579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12580 if (!SWIG_IsOK(res1)) {
12581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12582 }
12583 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12584 {
12585 PyThreadState* __tstate = wxPyBeginAllowThreads();
12586 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
12587 wxPyEndAllowThreads(__tstate);
12588 if (PyErr_Occurred()) SWIG_fail;
12589 }
12590 {
12591 #if wxUSE_UNICODE
12592 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12593 #else
12594 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12595 #endif
12596 }
12597 return resultobj;
12598 fail:
12599 return NULL;
12600 }
12601
12602
12603 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12604 PyObject *resultobj = 0;
12605 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12606 wxFontFamily result;
12607 void *argp1 = 0 ;
12608 int res1 = 0 ;
12609 PyObject *swig_obj[1] ;
12610
12611 if (!args) SWIG_fail;
12612 swig_obj[0] = args;
12613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12614 if (!SWIG_IsOK(res1)) {
12615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12616 }
12617 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12618 {
12619 PyThreadState* __tstate = wxPyBeginAllowThreads();
12620 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
12621 wxPyEndAllowThreads(__tstate);
12622 if (PyErr_Occurred()) SWIG_fail;
12623 }
12624 resultobj = SWIG_From_int(static_cast< int >(result));
12625 return resultobj;
12626 fail:
12627 return NULL;
12628 }
12629
12630
12631 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12632 PyObject *resultobj = 0;
12633 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12634 wxFontEncoding result;
12635 void *argp1 = 0 ;
12636 int res1 = 0 ;
12637 PyObject *swig_obj[1] ;
12638
12639 if (!args) SWIG_fail;
12640 swig_obj[0] = args;
12641 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12642 if (!SWIG_IsOK(res1)) {
12643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
12644 }
12645 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12646 {
12647 PyThreadState* __tstate = wxPyBeginAllowThreads();
12648 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
12649 wxPyEndAllowThreads(__tstate);
12650 if (PyErr_Occurred()) SWIG_fail;
12651 }
12652 resultobj = SWIG_From_int(static_cast< int >(result));
12653 return resultobj;
12654 fail:
12655 return NULL;
12656 }
12657
12658
12659 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12660 PyObject *resultobj = 0;
12661 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12662 int arg2 ;
12663 void *argp1 = 0 ;
12664 int res1 = 0 ;
12665 int val2 ;
12666 int ecode2 = 0 ;
12667 PyObject * obj0 = 0 ;
12668 PyObject * obj1 = 0 ;
12669 char * kwnames[] = {
12670 (char *) "self",(char *) "pointsize", NULL
12671 };
12672
12673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12675 if (!SWIG_IsOK(res1)) {
12676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12677 }
12678 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12679 ecode2 = SWIG_AsVal_int(obj1, &val2);
12680 if (!SWIG_IsOK(ecode2)) {
12681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12682 }
12683 arg2 = static_cast< int >(val2);
12684 {
12685 PyThreadState* __tstate = wxPyBeginAllowThreads();
12686 (arg1)->SetPointSize(arg2);
12687 wxPyEndAllowThreads(__tstate);
12688 if (PyErr_Occurred()) SWIG_fail;
12689 }
12690 resultobj = SWIG_Py_Void();
12691 return resultobj;
12692 fail:
12693 return NULL;
12694 }
12695
12696
12697 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12698 PyObject *resultobj = 0;
12699 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12700 wxSize *arg2 = 0 ;
12701 void *argp1 = 0 ;
12702 int res1 = 0 ;
12703 wxSize temp2 ;
12704 PyObject * obj0 = 0 ;
12705 PyObject * obj1 = 0 ;
12706 char * kwnames[] = {
12707 (char *) "self",(char *) "pixelSize", NULL
12708 };
12709
12710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12711 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12712 if (!SWIG_IsOK(res1)) {
12713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12714 }
12715 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12716 {
12717 arg2 = &temp2;
12718 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12719 }
12720 {
12721 PyThreadState* __tstate = wxPyBeginAllowThreads();
12722 (arg1)->SetPixelSize((wxSize const &)*arg2);
12723 wxPyEndAllowThreads(__tstate);
12724 if (PyErr_Occurred()) SWIG_fail;
12725 }
12726 resultobj = SWIG_Py_Void();
12727 return resultobj;
12728 fail:
12729 return NULL;
12730 }
12731
12732
12733 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12734 PyObject *resultobj = 0;
12735 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12736 wxFontStyle arg2 ;
12737 void *argp1 = 0 ;
12738 int res1 = 0 ;
12739 int val2 ;
12740 int ecode2 = 0 ;
12741 PyObject * obj0 = 0 ;
12742 PyObject * obj1 = 0 ;
12743 char * kwnames[] = {
12744 (char *) "self",(char *) "style", NULL
12745 };
12746
12747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12749 if (!SWIG_IsOK(res1)) {
12750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12751 }
12752 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12753 ecode2 = SWIG_AsVal_int(obj1, &val2);
12754 if (!SWIG_IsOK(ecode2)) {
12755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
12756 }
12757 arg2 = static_cast< wxFontStyle >(val2);
12758 {
12759 PyThreadState* __tstate = wxPyBeginAllowThreads();
12760 (arg1)->SetStyle(arg2);
12761 wxPyEndAllowThreads(__tstate);
12762 if (PyErr_Occurred()) SWIG_fail;
12763 }
12764 resultobj = SWIG_Py_Void();
12765 return resultobj;
12766 fail:
12767 return NULL;
12768 }
12769
12770
12771 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12772 PyObject *resultobj = 0;
12773 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12774 wxFontWeight arg2 ;
12775 void *argp1 = 0 ;
12776 int res1 = 0 ;
12777 int val2 ;
12778 int ecode2 = 0 ;
12779 PyObject * obj0 = 0 ;
12780 PyObject * obj1 = 0 ;
12781 char * kwnames[] = {
12782 (char *) "self",(char *) "weight", NULL
12783 };
12784
12785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12787 if (!SWIG_IsOK(res1)) {
12788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12789 }
12790 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12791 ecode2 = SWIG_AsVal_int(obj1, &val2);
12792 if (!SWIG_IsOK(ecode2)) {
12793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
12794 }
12795 arg2 = static_cast< wxFontWeight >(val2);
12796 {
12797 PyThreadState* __tstate = wxPyBeginAllowThreads();
12798 (arg1)->SetWeight(arg2);
12799 wxPyEndAllowThreads(__tstate);
12800 if (PyErr_Occurred()) SWIG_fail;
12801 }
12802 resultobj = SWIG_Py_Void();
12803 return resultobj;
12804 fail:
12805 return NULL;
12806 }
12807
12808
12809 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12810 PyObject *resultobj = 0;
12811 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12812 bool arg2 ;
12813 void *argp1 = 0 ;
12814 int res1 = 0 ;
12815 bool val2 ;
12816 int ecode2 = 0 ;
12817 PyObject * obj0 = 0 ;
12818 PyObject * obj1 = 0 ;
12819 char * kwnames[] = {
12820 (char *) "self",(char *) "underlined", NULL
12821 };
12822
12823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12825 if (!SWIG_IsOK(res1)) {
12826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12827 }
12828 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12829 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12830 if (!SWIG_IsOK(ecode2)) {
12831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12832 }
12833 arg2 = static_cast< bool >(val2);
12834 {
12835 PyThreadState* __tstate = wxPyBeginAllowThreads();
12836 (arg1)->SetUnderlined(arg2);
12837 wxPyEndAllowThreads(__tstate);
12838 if (PyErr_Occurred()) SWIG_fail;
12839 }
12840 resultobj = SWIG_Py_Void();
12841 return resultobj;
12842 fail:
12843 return NULL;
12844 }
12845
12846
12847 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12848 PyObject *resultobj = 0;
12849 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12850 wxString arg2 ;
12851 bool result;
12852 void *argp1 = 0 ;
12853 int res1 = 0 ;
12854 PyObject * obj0 = 0 ;
12855 PyObject * obj1 = 0 ;
12856 char * kwnames[] = {
12857 (char *) "self",(char *) "facename", NULL
12858 };
12859
12860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12862 if (!SWIG_IsOK(res1)) {
12863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12864 }
12865 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12866 {
12867 wxString* sptr = wxString_in_helper(obj1);
12868 if (sptr == NULL) SWIG_fail;
12869 arg2 = *sptr;
12870 delete sptr;
12871 }
12872 {
12873 PyThreadState* __tstate = wxPyBeginAllowThreads();
12874 result = (bool)(arg1)->SetFaceName(arg2);
12875 wxPyEndAllowThreads(__tstate);
12876 if (PyErr_Occurred()) SWIG_fail;
12877 }
12878 {
12879 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12880 }
12881 return resultobj;
12882 fail:
12883 return NULL;
12884 }
12885
12886
12887 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12888 PyObject *resultobj = 0;
12889 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12890 wxFontFamily arg2 ;
12891 void *argp1 = 0 ;
12892 int res1 = 0 ;
12893 int val2 ;
12894 int ecode2 = 0 ;
12895 PyObject * obj0 = 0 ;
12896 PyObject * obj1 = 0 ;
12897 char * kwnames[] = {
12898 (char *) "self",(char *) "family", NULL
12899 };
12900
12901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12903 if (!SWIG_IsOK(res1)) {
12904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12905 }
12906 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12907 ecode2 = SWIG_AsVal_int(obj1, &val2);
12908 if (!SWIG_IsOK(ecode2)) {
12909 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
12910 }
12911 arg2 = static_cast< wxFontFamily >(val2);
12912 {
12913 PyThreadState* __tstate = wxPyBeginAllowThreads();
12914 (arg1)->SetFamily(arg2);
12915 wxPyEndAllowThreads(__tstate);
12916 if (PyErr_Occurred()) SWIG_fail;
12917 }
12918 resultobj = SWIG_Py_Void();
12919 return resultobj;
12920 fail:
12921 return NULL;
12922 }
12923
12924
12925 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12926 PyObject *resultobj = 0;
12927 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12928 wxFontEncoding arg2 ;
12929 void *argp1 = 0 ;
12930 int res1 = 0 ;
12931 int val2 ;
12932 int ecode2 = 0 ;
12933 PyObject * obj0 = 0 ;
12934 PyObject * obj1 = 0 ;
12935 char * kwnames[] = {
12936 (char *) "self",(char *) "encoding", NULL
12937 };
12938
12939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12941 if (!SWIG_IsOK(res1)) {
12942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12943 }
12944 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12945 ecode2 = SWIG_AsVal_int(obj1, &val2);
12946 if (!SWIG_IsOK(ecode2)) {
12947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12948 }
12949 arg2 = static_cast< wxFontEncoding >(val2);
12950 {
12951 PyThreadState* __tstate = wxPyBeginAllowThreads();
12952 (arg1)->SetEncoding(arg2);
12953 wxPyEndAllowThreads(__tstate);
12954 if (PyErr_Occurred()) SWIG_fail;
12955 }
12956 resultobj = SWIG_Py_Void();
12957 return resultobj;
12958 fail:
12959 return NULL;
12960 }
12961
12962
12963 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12964 PyObject *resultobj = 0;
12965 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
12966 wxString *arg2 = 0 ;
12967 bool result;
12968 void *argp1 = 0 ;
12969 int res1 = 0 ;
12970 bool temp2 = false ;
12971 PyObject * obj0 = 0 ;
12972 PyObject * obj1 = 0 ;
12973 char * kwnames[] = {
12974 (char *) "self",(char *) "s", NULL
12975 };
12976
12977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
12978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12979 if (!SWIG_IsOK(res1)) {
12980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
12981 }
12982 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
12983 {
12984 arg2 = wxString_in_helper(obj1);
12985 if (arg2 == NULL) SWIG_fail;
12986 temp2 = true;
12987 }
12988 {
12989 PyThreadState* __tstate = wxPyBeginAllowThreads();
12990 result = (bool)(arg1)->FromString((wxString const &)*arg2);
12991 wxPyEndAllowThreads(__tstate);
12992 if (PyErr_Occurred()) SWIG_fail;
12993 }
12994 {
12995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12996 }
12997 {
12998 if (temp2)
12999 delete arg2;
13000 }
13001 return resultobj;
13002 fail:
13003 {
13004 if (temp2)
13005 delete arg2;
13006 }
13007 return NULL;
13008 }
13009
13010
13011 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13012 PyObject *resultobj = 0;
13013 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13014 wxString result;
13015 void *argp1 = 0 ;
13016 int res1 = 0 ;
13017 PyObject *swig_obj[1] ;
13018
13019 if (!args) SWIG_fail;
13020 swig_obj[0] = args;
13021 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13022 if (!SWIG_IsOK(res1)) {
13023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13024 }
13025 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13026 {
13027 PyThreadState* __tstate = wxPyBeginAllowThreads();
13028 result = ((wxNativeFontInfo const *)arg1)->ToString();
13029 wxPyEndAllowThreads(__tstate);
13030 if (PyErr_Occurred()) SWIG_fail;
13031 }
13032 {
13033 #if wxUSE_UNICODE
13034 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13035 #else
13036 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13037 #endif
13038 }
13039 return resultobj;
13040 fail:
13041 return NULL;
13042 }
13043
13044
13045 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13046 PyObject *resultobj = 0;
13047 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13048 wxString result;
13049 void *argp1 = 0 ;
13050 int res1 = 0 ;
13051 PyObject *swig_obj[1] ;
13052
13053 if (!args) SWIG_fail;
13054 swig_obj[0] = args;
13055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13056 if (!SWIG_IsOK(res1)) {
13057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13058 }
13059 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13060 {
13061 PyThreadState* __tstate = wxPyBeginAllowThreads();
13062 result = wxNativeFontInfo___str__(arg1);
13063 wxPyEndAllowThreads(__tstate);
13064 if (PyErr_Occurred()) SWIG_fail;
13065 }
13066 {
13067 #if wxUSE_UNICODE
13068 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13069 #else
13070 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13071 #endif
13072 }
13073 return resultobj;
13074 fail:
13075 return NULL;
13076 }
13077
13078
13079 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13080 PyObject *resultobj = 0;
13081 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13082 wxString *arg2 = 0 ;
13083 bool result;
13084 void *argp1 = 0 ;
13085 int res1 = 0 ;
13086 bool temp2 = false ;
13087 PyObject * obj0 = 0 ;
13088 PyObject * obj1 = 0 ;
13089 char * kwnames[] = {
13090 (char *) "self",(char *) "s", NULL
13091 };
13092
13093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
13094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13095 if (!SWIG_IsOK(res1)) {
13096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
13097 }
13098 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13099 {
13100 arg2 = wxString_in_helper(obj1);
13101 if (arg2 == NULL) SWIG_fail;
13102 temp2 = true;
13103 }
13104 {
13105 PyThreadState* __tstate = wxPyBeginAllowThreads();
13106 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
13107 wxPyEndAllowThreads(__tstate);
13108 if (PyErr_Occurred()) SWIG_fail;
13109 }
13110 {
13111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13112 }
13113 {
13114 if (temp2)
13115 delete arg2;
13116 }
13117 return resultobj;
13118 fail:
13119 {
13120 if (temp2)
13121 delete arg2;
13122 }
13123 return NULL;
13124 }
13125
13126
13127 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13128 PyObject *resultobj = 0;
13129 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
13130 wxString result;
13131 void *argp1 = 0 ;
13132 int res1 = 0 ;
13133 PyObject *swig_obj[1] ;
13134
13135 if (!args) SWIG_fail;
13136 swig_obj[0] = args;
13137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
13138 if (!SWIG_IsOK(res1)) {
13139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
13140 }
13141 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
13142 {
13143 PyThreadState* __tstate = wxPyBeginAllowThreads();
13144 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
13145 wxPyEndAllowThreads(__tstate);
13146 if (PyErr_Occurred()) SWIG_fail;
13147 }
13148 {
13149 #if wxUSE_UNICODE
13150 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13151 #else
13152 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13153 #endif
13154 }
13155 return resultobj;
13156 fail:
13157 return NULL;
13158 }
13159
13160
13161 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13162 PyObject *obj;
13163 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13164 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
13165 return SWIG_Py_Void();
13166 }
13167
13168 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13169 return SWIG_Python_InitShadowInstance(args);
13170 }
13171
13172 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13173 PyObject *resultobj = 0;
13174 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13175 wxString *arg2 = (wxString *) 0 ;
13176 void *argp1 = 0 ;
13177 int res1 = 0 ;
13178 bool temp2 = false ;
13179 PyObject *swig_obj[2] ;
13180
13181 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
13182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13183 if (!SWIG_IsOK(res1)) {
13184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13185 }
13186 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13187 {
13188 arg2 = wxString_in_helper(swig_obj[1]);
13189 if (arg2 == NULL) SWIG_fail;
13190 temp2 = true;
13191 }
13192 if (arg1) (arg1)->facename = *arg2;
13193
13194 resultobj = SWIG_Py_Void();
13195 {
13196 if (temp2)
13197 delete arg2;
13198 }
13199 return resultobj;
13200 fail:
13201 {
13202 if (temp2)
13203 delete arg2;
13204 }
13205 return NULL;
13206 }
13207
13208
13209 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13210 PyObject *resultobj = 0;
13211 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13212 wxString *result = 0 ;
13213 void *argp1 = 0 ;
13214 int res1 = 0 ;
13215 PyObject *swig_obj[1] ;
13216
13217 if (!args) SWIG_fail;
13218 swig_obj[0] = args;
13219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13220 if (!SWIG_IsOK(res1)) {
13221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13222 }
13223 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13224 result = (wxString *)& ((arg1)->facename);
13225 {
13226 #if wxUSE_UNICODE
13227 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13228 #else
13229 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13230 #endif
13231 }
13232 return resultobj;
13233 fail:
13234 return NULL;
13235 }
13236
13237
13238 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13239 PyObject *resultobj = 0;
13240 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13241 wxFontEncoding arg2 ;
13242 void *argp1 = 0 ;
13243 int res1 = 0 ;
13244 int val2 ;
13245 int ecode2 = 0 ;
13246 PyObject *swig_obj[2] ;
13247
13248 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
13249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13250 if (!SWIG_IsOK(res1)) {
13251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13252 }
13253 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13254 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13255 if (!SWIG_IsOK(ecode2)) {
13256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13257 }
13258 arg2 = static_cast< wxFontEncoding >(val2);
13259 if (arg1) (arg1)->encoding = arg2;
13260
13261 resultobj = SWIG_Py_Void();
13262 return resultobj;
13263 fail:
13264 return NULL;
13265 }
13266
13267
13268 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13269 PyObject *resultobj = 0;
13270 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13271 wxFontEncoding result;
13272 void *argp1 = 0 ;
13273 int res1 = 0 ;
13274 PyObject *swig_obj[1] ;
13275
13276 if (!args) SWIG_fail;
13277 swig_obj[0] = args;
13278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13279 if (!SWIG_IsOK(res1)) {
13280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13281 }
13282 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13283 result = (wxFontEncoding) ((arg1)->encoding);
13284 resultobj = SWIG_From_int(static_cast< int >(result));
13285 return resultobj;
13286 fail:
13287 return NULL;
13288 }
13289
13290
13291 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13292 PyObject *resultobj = 0;
13293 wxNativeEncodingInfo *result = 0 ;
13294
13295 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
13296 {
13297 PyThreadState* __tstate = wxPyBeginAllowThreads();
13298 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
13299 wxPyEndAllowThreads(__tstate);
13300 if (PyErr_Occurred()) SWIG_fail;
13301 }
13302 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
13303 return resultobj;
13304 fail:
13305 return NULL;
13306 }
13307
13308
13309 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13310 PyObject *resultobj = 0;
13311 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13312 void *argp1 = 0 ;
13313 int res1 = 0 ;
13314 PyObject *swig_obj[1] ;
13315
13316 if (!args) SWIG_fail;
13317 swig_obj[0] = args;
13318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
13319 if (!SWIG_IsOK(res1)) {
13320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13321 }
13322 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13323 {
13324 PyThreadState* __tstate = wxPyBeginAllowThreads();
13325 delete arg1;
13326
13327 wxPyEndAllowThreads(__tstate);
13328 if (PyErr_Occurred()) SWIG_fail;
13329 }
13330 resultobj = SWIG_Py_Void();
13331 return resultobj;
13332 fail:
13333 return NULL;
13334 }
13335
13336
13337 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13338 PyObject *resultobj = 0;
13339 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13340 wxString *arg2 = 0 ;
13341 bool result;
13342 void *argp1 = 0 ;
13343 int res1 = 0 ;
13344 bool temp2 = false ;
13345 PyObject * obj0 = 0 ;
13346 PyObject * obj1 = 0 ;
13347 char * kwnames[] = {
13348 (char *) "self",(char *) "s", NULL
13349 };
13350
13351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
13352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13353 if (!SWIG_IsOK(res1)) {
13354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
13355 }
13356 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13357 {
13358 arg2 = wxString_in_helper(obj1);
13359 if (arg2 == NULL) SWIG_fail;
13360 temp2 = true;
13361 }
13362 {
13363 PyThreadState* __tstate = wxPyBeginAllowThreads();
13364 result = (bool)(arg1)->FromString((wxString const &)*arg2);
13365 wxPyEndAllowThreads(__tstate);
13366 if (PyErr_Occurred()) SWIG_fail;
13367 }
13368 {
13369 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13370 }
13371 {
13372 if (temp2)
13373 delete arg2;
13374 }
13375 return resultobj;
13376 fail:
13377 {
13378 if (temp2)
13379 delete arg2;
13380 }
13381 return NULL;
13382 }
13383
13384
13385 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13386 PyObject *resultobj = 0;
13387 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
13388 wxString result;
13389 void *argp1 = 0 ;
13390 int res1 = 0 ;
13391 PyObject *swig_obj[1] ;
13392
13393 if (!args) SWIG_fail;
13394 swig_obj[0] = args;
13395 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13396 if (!SWIG_IsOK(res1)) {
13397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
13398 }
13399 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13400 {
13401 PyThreadState* __tstate = wxPyBeginAllowThreads();
13402 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
13403 wxPyEndAllowThreads(__tstate);
13404 if (PyErr_Occurred()) SWIG_fail;
13405 }
13406 {
13407 #if wxUSE_UNICODE
13408 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13409 #else
13410 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13411 #endif
13412 }
13413 return resultobj;
13414 fail:
13415 return NULL;
13416 }
13417
13418
13419 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13420 PyObject *obj;
13421 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13422 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
13423 return SWIG_Py_Void();
13424 }
13425
13426 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13427 return SWIG_Python_InitShadowInstance(args);
13428 }
13429
13430 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13431 PyObject *resultobj = 0;
13432 wxFontEncoding arg1 ;
13433 wxNativeEncodingInfo *result = 0 ;
13434 int val1 ;
13435 int ecode1 = 0 ;
13436 PyObject * obj0 = 0 ;
13437 char * kwnames[] = {
13438 (char *) "encoding", NULL
13439 };
13440
13441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
13442 ecode1 = SWIG_AsVal_int(obj0, &val1);
13443 if (!SWIG_IsOK(ecode1)) {
13444 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13445 }
13446 arg1 = static_cast< wxFontEncoding >(val1);
13447 {
13448 PyThreadState* __tstate = wxPyBeginAllowThreads();
13449 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
13450 wxPyEndAllowThreads(__tstate);
13451 if (PyErr_Occurred()) SWIG_fail;
13452 }
13453 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
13454 return resultobj;
13455 fail:
13456 return NULL;
13457 }
13458
13459
13460 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13461 PyObject *resultobj = 0;
13462 wxNativeEncodingInfo *arg1 = 0 ;
13463 bool result;
13464 void *argp1 = 0 ;
13465 int res1 = 0 ;
13466 PyObject * obj0 = 0 ;
13467 char * kwnames[] = {
13468 (char *) "info", NULL
13469 };
13470
13471 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
13472 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
13473 if (!SWIG_IsOK(res1)) {
13474 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13475 }
13476 if (!argp1) {
13477 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
13478 }
13479 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 {
13487 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13488 }
13489 return resultobj;
13490 fail:
13491 return NULL;
13492 }
13493
13494
13495 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13496 PyObject *resultobj = 0;
13497 wxFontMapper *result = 0 ;
13498
13499 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
13500 {
13501 PyThreadState* __tstate = wxPyBeginAllowThreads();
13502 result = (wxFontMapper *)new wxFontMapper();
13503 wxPyEndAllowThreads(__tstate);
13504 if (PyErr_Occurred()) SWIG_fail;
13505 }
13506 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
13507 return resultobj;
13508 fail:
13509 return NULL;
13510 }
13511
13512
13513 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13514 PyObject *resultobj = 0;
13515 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13516 void *argp1 = 0 ;
13517 int res1 = 0 ;
13518 PyObject *swig_obj[1] ;
13519
13520 if (!args) SWIG_fail;
13521 swig_obj[0] = args;
13522 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
13523 if (!SWIG_IsOK(res1)) {
13524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13525 }
13526 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13527 {
13528 PyThreadState* __tstate = wxPyBeginAllowThreads();
13529 delete arg1;
13530
13531 wxPyEndAllowThreads(__tstate);
13532 if (PyErr_Occurred()) SWIG_fail;
13533 }
13534 resultobj = SWIG_Py_Void();
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxFontMapper *result = 0 ;
13544
13545 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
13546 {
13547 PyThreadState* __tstate = wxPyBeginAllowThreads();
13548 result = (wxFontMapper *)wxFontMapper::Get();
13549 wxPyEndAllowThreads(__tstate);
13550 if (PyErr_Occurred()) SWIG_fail;
13551 }
13552 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13553 return resultobj;
13554 fail:
13555 return NULL;
13556 }
13557
13558
13559 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13560 PyObject *resultobj = 0;
13561 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13562 wxFontMapper *result = 0 ;
13563 void *argp1 = 0 ;
13564 int res1 = 0 ;
13565 PyObject * obj0 = 0 ;
13566 char * kwnames[] = {
13567 (char *) "mapper", NULL
13568 };
13569
13570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
13571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13572 if (!SWIG_IsOK(res1)) {
13573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13574 }
13575 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (wxFontMapper *)wxFontMapper::Set(arg1);
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
13583 return resultobj;
13584 fail:
13585 return NULL;
13586 }
13587
13588
13589 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13590 PyObject *resultobj = 0;
13591 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13592 wxString *arg2 = 0 ;
13593 bool arg3 = (bool) true ;
13594 wxFontEncoding result;
13595 void *argp1 = 0 ;
13596 int res1 = 0 ;
13597 bool temp2 = false ;
13598 bool val3 ;
13599 int ecode3 = 0 ;
13600 PyObject * obj0 = 0 ;
13601 PyObject * obj1 = 0 ;
13602 PyObject * obj2 = 0 ;
13603 char * kwnames[] = {
13604 (char *) "self",(char *) "charset",(char *) "interactive", NULL
13605 };
13606
13607 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13608 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13609 if (!SWIG_IsOK(res1)) {
13610 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13611 }
13612 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13613 {
13614 arg2 = wxString_in_helper(obj1);
13615 if (arg2 == NULL) SWIG_fail;
13616 temp2 = true;
13617 }
13618 if (obj2) {
13619 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13620 if (!SWIG_IsOK(ecode3)) {
13621 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
13622 }
13623 arg3 = static_cast< bool >(val3);
13624 }
13625 {
13626 PyThreadState* __tstate = wxPyBeginAllowThreads();
13627 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
13628 wxPyEndAllowThreads(__tstate);
13629 if (PyErr_Occurred()) SWIG_fail;
13630 }
13631 resultobj = SWIG_From_int(static_cast< int >(result));
13632 {
13633 if (temp2)
13634 delete arg2;
13635 }
13636 return resultobj;
13637 fail:
13638 {
13639 if (temp2)
13640 delete arg2;
13641 }
13642 return NULL;
13643 }
13644
13645
13646 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13647 PyObject *resultobj = 0;
13648 size_t result;
13649
13650 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
13658 return resultobj;
13659 fail:
13660 return NULL;
13661 }
13662
13663
13664 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13665 PyObject *resultobj = 0;
13666 size_t arg1 ;
13667 wxFontEncoding result;
13668 size_t val1 ;
13669 int ecode1 = 0 ;
13670 PyObject * obj0 = 0 ;
13671 char * kwnames[] = {
13672 (char *) "n", NULL
13673 };
13674
13675 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
13676 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
13677 if (!SWIG_IsOK(ecode1)) {
13678 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
13679 }
13680 arg1 = static_cast< size_t >(val1);
13681 {
13682 PyThreadState* __tstate = wxPyBeginAllowThreads();
13683 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
13684 wxPyEndAllowThreads(__tstate);
13685 if (PyErr_Occurred()) SWIG_fail;
13686 }
13687 resultobj = SWIG_From_int(static_cast< int >(result));
13688 return resultobj;
13689 fail:
13690 return NULL;
13691 }
13692
13693
13694 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13695 PyObject *resultobj = 0;
13696 wxFontEncoding arg1 ;
13697 wxString result;
13698 int val1 ;
13699 int ecode1 = 0 ;
13700 PyObject * obj0 = 0 ;
13701 char * kwnames[] = {
13702 (char *) "encoding", NULL
13703 };
13704
13705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
13706 ecode1 = SWIG_AsVal_int(obj0, &val1);
13707 if (!SWIG_IsOK(ecode1)) {
13708 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13709 }
13710 arg1 = static_cast< wxFontEncoding >(val1);
13711 {
13712 PyThreadState* __tstate = wxPyBeginAllowThreads();
13713 result = wxFontMapper::GetEncodingName(arg1);
13714 wxPyEndAllowThreads(__tstate);
13715 if (PyErr_Occurred()) SWIG_fail;
13716 }
13717 {
13718 #if wxUSE_UNICODE
13719 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13720 #else
13721 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13722 #endif
13723 }
13724 return resultobj;
13725 fail:
13726 return NULL;
13727 }
13728
13729
13730 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13731 PyObject *resultobj = 0;
13732 wxFontEncoding arg1 ;
13733 wxString result;
13734 int val1 ;
13735 int ecode1 = 0 ;
13736 PyObject * obj0 = 0 ;
13737 char * kwnames[] = {
13738 (char *) "encoding", NULL
13739 };
13740
13741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
13742 ecode1 = SWIG_AsVal_int(obj0, &val1);
13743 if (!SWIG_IsOK(ecode1)) {
13744 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13745 }
13746 arg1 = static_cast< wxFontEncoding >(val1);
13747 {
13748 PyThreadState* __tstate = wxPyBeginAllowThreads();
13749 result = wxFontMapper::GetEncodingDescription(arg1);
13750 wxPyEndAllowThreads(__tstate);
13751 if (PyErr_Occurred()) SWIG_fail;
13752 }
13753 {
13754 #if wxUSE_UNICODE
13755 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13756 #else
13757 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13758 #endif
13759 }
13760 return resultobj;
13761 fail:
13762 return NULL;
13763 }
13764
13765
13766 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13767 PyObject *resultobj = 0;
13768 wxString *arg1 = 0 ;
13769 wxFontEncoding result;
13770 bool temp1 = false ;
13771 PyObject * obj0 = 0 ;
13772 char * kwnames[] = {
13773 (char *) "name", NULL
13774 };
13775
13776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
13777 {
13778 arg1 = wxString_in_helper(obj0);
13779 if (arg1 == NULL) SWIG_fail;
13780 temp1 = true;
13781 }
13782 {
13783 PyThreadState* __tstate = wxPyBeginAllowThreads();
13784 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
13785 wxPyEndAllowThreads(__tstate);
13786 if (PyErr_Occurred()) SWIG_fail;
13787 }
13788 resultobj = SWIG_From_int(static_cast< int >(result));
13789 {
13790 if (temp1)
13791 delete arg1;
13792 }
13793 return resultobj;
13794 fail:
13795 {
13796 if (temp1)
13797 delete arg1;
13798 }
13799 return NULL;
13800 }
13801
13802
13803 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13804 PyObject *resultobj = 0;
13805 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13806 wxString *arg2 = 0 ;
13807 void *argp1 = 0 ;
13808 int res1 = 0 ;
13809 bool temp2 = false ;
13810 PyObject * obj0 = 0 ;
13811 PyObject * obj1 = 0 ;
13812 char * kwnames[] = {
13813 (char *) "self",(char *) "prefix", NULL
13814 };
13815
13816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
13817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13818 if (!SWIG_IsOK(res1)) {
13819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13820 }
13821 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13822 {
13823 arg2 = wxString_in_helper(obj1);
13824 if (arg2 == NULL) SWIG_fail;
13825 temp2 = true;
13826 }
13827 {
13828 PyThreadState* __tstate = wxPyBeginAllowThreads();
13829 (arg1)->SetConfigPath((wxString const &)*arg2);
13830 wxPyEndAllowThreads(__tstate);
13831 if (PyErr_Occurred()) SWIG_fail;
13832 }
13833 resultobj = SWIG_Py_Void();
13834 {
13835 if (temp2)
13836 delete arg2;
13837 }
13838 return resultobj;
13839 fail:
13840 {
13841 if (temp2)
13842 delete arg2;
13843 }
13844 return NULL;
13845 }
13846
13847
13848 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13849 PyObject *resultobj = 0;
13850 wxString result;
13851
13852 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
13853 {
13854 PyThreadState* __tstate = wxPyBeginAllowThreads();
13855 result = wxFontMapper::GetDefaultConfigPath();
13856 wxPyEndAllowThreads(__tstate);
13857 if (PyErr_Occurred()) SWIG_fail;
13858 }
13859 {
13860 #if wxUSE_UNICODE
13861 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13862 #else
13863 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13864 #endif
13865 }
13866 return resultobj;
13867 fail:
13868 return NULL;
13869 }
13870
13871
13872 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13873 PyObject *resultobj = 0;
13874 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13875 wxFontEncoding arg2 ;
13876 wxString const &arg3_defvalue = wxPyEmptyString ;
13877 wxString *arg3 = (wxString *) &arg3_defvalue ;
13878 bool arg4 = (bool) true ;
13879 PyObject *result = 0 ;
13880 void *argp1 = 0 ;
13881 int res1 = 0 ;
13882 int val2 ;
13883 int ecode2 = 0 ;
13884 bool temp3 = false ;
13885 bool val4 ;
13886 int ecode4 = 0 ;
13887 PyObject * obj0 = 0 ;
13888 PyObject * obj1 = 0 ;
13889 PyObject * obj2 = 0 ;
13890 PyObject * obj3 = 0 ;
13891 char * kwnames[] = {
13892 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
13893 };
13894
13895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13897 if (!SWIG_IsOK(res1)) {
13898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13899 }
13900 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13901 ecode2 = SWIG_AsVal_int(obj1, &val2);
13902 if (!SWIG_IsOK(ecode2)) {
13903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13904 }
13905 arg2 = static_cast< wxFontEncoding >(val2);
13906 if (obj2) {
13907 {
13908 arg3 = wxString_in_helper(obj2);
13909 if (arg3 == NULL) SWIG_fail;
13910 temp3 = true;
13911 }
13912 }
13913 if (obj3) {
13914 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13915 if (!SWIG_IsOK(ecode4)) {
13916 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
13917 }
13918 arg4 = static_cast< bool >(val4);
13919 }
13920 {
13921 PyThreadState* __tstate = wxPyBeginAllowThreads();
13922 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
13923 wxPyEndAllowThreads(__tstate);
13924 if (PyErr_Occurred()) SWIG_fail;
13925 }
13926 resultobj = result;
13927 {
13928 if (temp3)
13929 delete arg3;
13930 }
13931 return resultobj;
13932 fail:
13933 {
13934 if (temp3)
13935 delete arg3;
13936 }
13937 return NULL;
13938 }
13939
13940
13941 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13942 PyObject *resultobj = 0;
13943 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
13944 wxFontEncoding arg2 ;
13945 wxString const &arg3_defvalue = wxPyEmptyString ;
13946 wxString *arg3 = (wxString *) &arg3_defvalue ;
13947 bool result;
13948 void *argp1 = 0 ;
13949 int res1 = 0 ;
13950 int val2 ;
13951 int ecode2 = 0 ;
13952 bool temp3 = false ;
13953 PyObject * obj0 = 0 ;
13954 PyObject * obj1 = 0 ;
13955 PyObject * obj2 = 0 ;
13956 char * kwnames[] = {
13957 (char *) "self",(char *) "encoding",(char *) "facename", NULL
13958 };
13959
13960 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13961 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
13962 if (!SWIG_IsOK(res1)) {
13963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
13964 }
13965 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
13966 ecode2 = SWIG_AsVal_int(obj1, &val2);
13967 if (!SWIG_IsOK(ecode2)) {
13968 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13969 }
13970 arg2 = static_cast< wxFontEncoding >(val2);
13971 if (obj2) {
13972 {
13973 arg3 = wxString_in_helper(obj2);
13974 if (arg3 == NULL) SWIG_fail;
13975 temp3 = true;
13976 }
13977 }
13978 {
13979 PyThreadState* __tstate = wxPyBeginAllowThreads();
13980 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
13981 wxPyEndAllowThreads(__tstate);
13982 if (PyErr_Occurred()) SWIG_fail;
13983 }
13984 {
13985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13986 }
13987 {
13988 if (temp3)
13989 delete arg3;
13990 }
13991 return resultobj;
13992 fail:
13993 {
13994 if (temp3)
13995 delete arg3;
13996 }
13997 return NULL;
13998 }
13999
14000
14001 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14002 PyObject *resultobj = 0;
14003 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14004 wxWindow *arg2 = (wxWindow *) 0 ;
14005 void *argp1 = 0 ;
14006 int res1 = 0 ;
14007 void *argp2 = 0 ;
14008 int res2 = 0 ;
14009 PyObject * obj0 = 0 ;
14010 PyObject * obj1 = 0 ;
14011 char * kwnames[] = {
14012 (char *) "self",(char *) "parent", NULL
14013 };
14014
14015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
14016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14017 if (!SWIG_IsOK(res1)) {
14018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14019 }
14020 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14021 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
14022 if (!SWIG_IsOK(res2)) {
14023 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
14024 }
14025 arg2 = reinterpret_cast< wxWindow * >(argp2);
14026 {
14027 PyThreadState* __tstate = wxPyBeginAllowThreads();
14028 (arg1)->SetDialogParent(arg2);
14029 wxPyEndAllowThreads(__tstate);
14030 if (PyErr_Occurred()) SWIG_fail;
14031 }
14032 resultobj = SWIG_Py_Void();
14033 return resultobj;
14034 fail:
14035 return NULL;
14036 }
14037
14038
14039 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14040 PyObject *resultobj = 0;
14041 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
14042 wxString *arg2 = 0 ;
14043 void *argp1 = 0 ;
14044 int res1 = 0 ;
14045 bool temp2 = false ;
14046 PyObject * obj0 = 0 ;
14047 PyObject * obj1 = 0 ;
14048 char * kwnames[] = {
14049 (char *) "self",(char *) "title", NULL
14050 };
14051
14052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
14053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
14054 if (!SWIG_IsOK(res1)) {
14055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
14056 }
14057 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
14058 {
14059 arg2 = wxString_in_helper(obj1);
14060 if (arg2 == NULL) SWIG_fail;
14061 temp2 = true;
14062 }
14063 {
14064 PyThreadState* __tstate = wxPyBeginAllowThreads();
14065 (arg1)->SetDialogTitle((wxString const &)*arg2);
14066 wxPyEndAllowThreads(__tstate);
14067 if (PyErr_Occurred()) SWIG_fail;
14068 }
14069 resultobj = SWIG_Py_Void();
14070 {
14071 if (temp2)
14072 delete arg2;
14073 }
14074 return resultobj;
14075 fail:
14076 {
14077 if (temp2)
14078 delete arg2;
14079 }
14080 return NULL;
14081 }
14082
14083
14084 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14085 PyObject *obj;
14086 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14087 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
14088 return SWIG_Py_Void();
14089 }
14090
14091 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14092 return SWIG_Python_InitShadowInstance(args);
14093 }
14094
14095 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14096 PyObject *resultobj = 0;
14097 int arg1 ;
14098 int arg2 ;
14099 int arg3 ;
14100 int arg4 ;
14101 bool arg5 = (bool) false ;
14102 wxString const &arg6_defvalue = wxPyEmptyString ;
14103 wxString *arg6 = (wxString *) &arg6_defvalue ;
14104 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14105 wxFont *result = 0 ;
14106 int val1 ;
14107 int ecode1 = 0 ;
14108 int val2 ;
14109 int ecode2 = 0 ;
14110 int val3 ;
14111 int ecode3 = 0 ;
14112 int val4 ;
14113 int ecode4 = 0 ;
14114 bool val5 ;
14115 int ecode5 = 0 ;
14116 bool temp6 = false ;
14117 int val7 ;
14118 int ecode7 = 0 ;
14119 PyObject * obj0 = 0 ;
14120 PyObject * obj1 = 0 ;
14121 PyObject * obj2 = 0 ;
14122 PyObject * obj3 = 0 ;
14123 PyObject * obj4 = 0 ;
14124 PyObject * obj5 = 0 ;
14125 PyObject * obj6 = 0 ;
14126 char * kwnames[] = {
14127 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
14128 };
14129
14130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14131 ecode1 = SWIG_AsVal_int(obj0, &val1);
14132 if (!SWIG_IsOK(ecode1)) {
14133 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
14134 }
14135 arg1 = static_cast< int >(val1);
14136 ecode2 = SWIG_AsVal_int(obj1, &val2);
14137 if (!SWIG_IsOK(ecode2)) {
14138 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
14139 }
14140 arg2 = static_cast< int >(val2);
14141 ecode3 = SWIG_AsVal_int(obj2, &val3);
14142 if (!SWIG_IsOK(ecode3)) {
14143 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
14144 }
14145 arg3 = static_cast< int >(val3);
14146 ecode4 = SWIG_AsVal_int(obj3, &val4);
14147 if (!SWIG_IsOK(ecode4)) {
14148 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
14149 }
14150 arg4 = static_cast< int >(val4);
14151 if (obj4) {
14152 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14153 if (!SWIG_IsOK(ecode5)) {
14154 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
14155 }
14156 arg5 = static_cast< bool >(val5);
14157 }
14158 if (obj5) {
14159 {
14160 arg6 = wxString_in_helper(obj5);
14161 if (arg6 == NULL) SWIG_fail;
14162 temp6 = true;
14163 }
14164 }
14165 if (obj6) {
14166 ecode7 = SWIG_AsVal_int(obj6, &val7);
14167 if (!SWIG_IsOK(ecode7)) {
14168 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14169 }
14170 arg7 = static_cast< wxFontEncoding >(val7);
14171 }
14172 {
14173 if (!wxPyCheckForApp()) SWIG_fail;
14174 PyThreadState* __tstate = wxPyBeginAllowThreads();
14175 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14176 wxPyEndAllowThreads(__tstate);
14177 if (PyErr_Occurred()) SWIG_fail;
14178 }
14179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
14180 {
14181 if (temp6)
14182 delete arg6;
14183 }
14184 return resultobj;
14185 fail:
14186 {
14187 if (temp6)
14188 delete arg6;
14189 }
14190 return NULL;
14191 }
14192
14193
14194 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14195 PyObject *resultobj = 0;
14196 wxFont *arg1 = (wxFont *) 0 ;
14197 void *argp1 = 0 ;
14198 int res1 = 0 ;
14199 PyObject *swig_obj[1] ;
14200
14201 if (!args) SWIG_fail;
14202 swig_obj[0] = args;
14203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
14204 if (!SWIG_IsOK(res1)) {
14205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
14206 }
14207 arg1 = reinterpret_cast< wxFont * >(argp1);
14208 {
14209 PyThreadState* __tstate = wxPyBeginAllowThreads();
14210 delete arg1;
14211
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_Py_Void();
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14223 PyObject *resultobj = 0;
14224 wxNativeFontInfo *arg1 = 0 ;
14225 wxFont *result = 0 ;
14226 void *argp1 = 0 ;
14227 int res1 = 0 ;
14228 PyObject * obj0 = 0 ;
14229 char * kwnames[] = {
14230 (char *) "info", NULL
14231 };
14232
14233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
14234 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
14235 if (!SWIG_IsOK(res1)) {
14236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14237 }
14238 if (!argp1) {
14239 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
14240 }
14241 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
14242 {
14243 if (!wxPyCheckForApp()) SWIG_fail;
14244 PyThreadState* __tstate = wxPyBeginAllowThreads();
14245 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
14246 wxPyEndAllowThreads(__tstate);
14247 if (PyErr_Occurred()) SWIG_fail;
14248 }
14249 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14250 return resultobj;
14251 fail:
14252 return NULL;
14253 }
14254
14255
14256 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14257 PyObject *resultobj = 0;
14258 wxString *arg1 = 0 ;
14259 wxFont *result = 0 ;
14260 bool temp1 = false ;
14261 PyObject * obj0 = 0 ;
14262 char * kwnames[] = {
14263 (char *) "info", NULL
14264 };
14265
14266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
14267 {
14268 arg1 = wxString_in_helper(obj0);
14269 if (arg1 == NULL) SWIG_fail;
14270 temp1 = true;
14271 }
14272 {
14273 if (!wxPyCheckForApp()) SWIG_fail;
14274 PyThreadState* __tstate = wxPyBeginAllowThreads();
14275 result = (wxFont *)new_wxFont((wxString const &)*arg1);
14276 wxPyEndAllowThreads(__tstate);
14277 if (PyErr_Occurred()) SWIG_fail;
14278 }
14279 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14280 {
14281 if (temp1)
14282 delete arg1;
14283 }
14284 return resultobj;
14285 fail:
14286 {
14287 if (temp1)
14288 delete arg1;
14289 }
14290 return NULL;
14291 }
14292
14293
14294 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14295 PyObject *resultobj = 0;
14296 int arg1 ;
14297 wxFontFamily arg2 ;
14298 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14299 wxString const &arg4_defvalue = wxPyEmptyString ;
14300 wxString *arg4 = (wxString *) &arg4_defvalue ;
14301 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14302 wxFont *result = 0 ;
14303 int val1 ;
14304 int ecode1 = 0 ;
14305 int val2 ;
14306 int ecode2 = 0 ;
14307 int val3 ;
14308 int ecode3 = 0 ;
14309 bool temp4 = false ;
14310 int val5 ;
14311 int ecode5 = 0 ;
14312 PyObject * obj0 = 0 ;
14313 PyObject * obj1 = 0 ;
14314 PyObject * obj2 = 0 ;
14315 PyObject * obj3 = 0 ;
14316 PyObject * obj4 = 0 ;
14317 char * kwnames[] = {
14318 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14319 };
14320
14321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14322 ecode1 = SWIG_AsVal_int(obj0, &val1);
14323 if (!SWIG_IsOK(ecode1)) {
14324 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
14325 }
14326 arg1 = static_cast< int >(val1);
14327 ecode2 = SWIG_AsVal_int(obj1, &val2);
14328 if (!SWIG_IsOK(ecode2)) {
14329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
14330 }
14331 arg2 = static_cast< wxFontFamily >(val2);
14332 if (obj2) {
14333 ecode3 = SWIG_AsVal_int(obj2, &val3);
14334 if (!SWIG_IsOK(ecode3)) {
14335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
14336 }
14337 arg3 = static_cast< int >(val3);
14338 }
14339 if (obj3) {
14340 {
14341 arg4 = wxString_in_helper(obj3);
14342 if (arg4 == NULL) SWIG_fail;
14343 temp4 = true;
14344 }
14345 }
14346 if (obj4) {
14347 ecode5 = SWIG_AsVal_int(obj4, &val5);
14348 if (!SWIG_IsOK(ecode5)) {
14349 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14350 }
14351 arg5 = static_cast< wxFontEncoding >(val5);
14352 }
14353 {
14354 if (!wxPyCheckForApp()) SWIG_fail;
14355 PyThreadState* __tstate = wxPyBeginAllowThreads();
14356 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14357 wxPyEndAllowThreads(__tstate);
14358 if (PyErr_Occurred()) SWIG_fail;
14359 }
14360 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14361 {
14362 if (temp4)
14363 delete arg4;
14364 }
14365 return resultobj;
14366 fail:
14367 {
14368 if (temp4)
14369 delete arg4;
14370 }
14371 return NULL;
14372 }
14373
14374
14375 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14376 PyObject *resultobj = 0;
14377 wxSize *arg1 = 0 ;
14378 int arg2 ;
14379 int arg3 ;
14380 int arg4 ;
14381 bool arg5 = (bool) false ;
14382 wxString const &arg6_defvalue = wxEmptyString ;
14383 wxString *arg6 = (wxString *) &arg6_defvalue ;
14384 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14385 wxFont *result = 0 ;
14386 wxSize temp1 ;
14387 int val2 ;
14388 int ecode2 = 0 ;
14389 int val3 ;
14390 int ecode3 = 0 ;
14391 int val4 ;
14392 int ecode4 = 0 ;
14393 bool val5 ;
14394 int ecode5 = 0 ;
14395 bool temp6 = false ;
14396 int val7 ;
14397 int ecode7 = 0 ;
14398 PyObject * obj0 = 0 ;
14399 PyObject * obj1 = 0 ;
14400 PyObject * obj2 = 0 ;
14401 PyObject * obj3 = 0 ;
14402 PyObject * obj4 = 0 ;
14403 PyObject * obj5 = 0 ;
14404 PyObject * obj6 = 0 ;
14405 char * kwnames[] = {
14406 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
14407 };
14408
14409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14410 {
14411 arg1 = &temp1;
14412 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14413 }
14414 ecode2 = SWIG_AsVal_int(obj1, &val2);
14415 if (!SWIG_IsOK(ecode2)) {
14416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
14417 }
14418 arg2 = static_cast< int >(val2);
14419 ecode3 = SWIG_AsVal_int(obj2, &val3);
14420 if (!SWIG_IsOK(ecode3)) {
14421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14422 }
14423 arg3 = static_cast< int >(val3);
14424 ecode4 = SWIG_AsVal_int(obj3, &val4);
14425 if (!SWIG_IsOK(ecode4)) {
14426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
14427 }
14428 arg4 = static_cast< int >(val4);
14429 if (obj4) {
14430 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14431 if (!SWIG_IsOK(ecode5)) {
14432 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
14433 }
14434 arg5 = static_cast< bool >(val5);
14435 }
14436 if (obj5) {
14437 {
14438 arg6 = wxString_in_helper(obj5);
14439 if (arg6 == NULL) SWIG_fail;
14440 temp6 = true;
14441 }
14442 }
14443 if (obj6) {
14444 ecode7 = SWIG_AsVal_int(obj6, &val7);
14445 if (!SWIG_IsOK(ecode7)) {
14446 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
14447 }
14448 arg7 = static_cast< wxFontEncoding >(val7);
14449 }
14450 {
14451 if (!wxPyCheckForApp()) SWIG_fail;
14452 PyThreadState* __tstate = wxPyBeginAllowThreads();
14453 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
14454 wxPyEndAllowThreads(__tstate);
14455 if (PyErr_Occurred()) SWIG_fail;
14456 }
14457 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14458 {
14459 if (temp6)
14460 delete arg6;
14461 }
14462 return resultobj;
14463 fail:
14464 {
14465 if (temp6)
14466 delete arg6;
14467 }
14468 return NULL;
14469 }
14470
14471
14472 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14473 PyObject *resultobj = 0;
14474 wxSize *arg1 = 0 ;
14475 wxFontFamily arg2 ;
14476 int arg3 = (int) wxFONTFLAG_DEFAULT ;
14477 wxString const &arg4_defvalue = wxEmptyString ;
14478 wxString *arg4 = (wxString *) &arg4_defvalue ;
14479 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
14480 wxFont *result = 0 ;
14481 wxSize temp1 ;
14482 int val2 ;
14483 int ecode2 = 0 ;
14484 int val3 ;
14485 int ecode3 = 0 ;
14486 bool temp4 = false ;
14487 int val5 ;
14488 int ecode5 = 0 ;
14489 PyObject * obj0 = 0 ;
14490 PyObject * obj1 = 0 ;
14491 PyObject * obj2 = 0 ;
14492 PyObject * obj3 = 0 ;
14493 PyObject * obj4 = 0 ;
14494 char * kwnames[] = {
14495 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
14496 };
14497
14498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14499 {
14500 arg1 = &temp1;
14501 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
14502 }
14503 ecode2 = SWIG_AsVal_int(obj1, &val2);
14504 if (!SWIG_IsOK(ecode2)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
14506 }
14507 arg2 = static_cast< wxFontFamily >(val2);
14508 if (obj2) {
14509 ecode3 = SWIG_AsVal_int(obj2, &val3);
14510 if (!SWIG_IsOK(ecode3)) {
14511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
14512 }
14513 arg3 = static_cast< int >(val3);
14514 }
14515 if (obj3) {
14516 {
14517 arg4 = wxString_in_helper(obj3);
14518 if (arg4 == NULL) SWIG_fail;
14519 temp4 = true;
14520 }
14521 }
14522 if (obj4) {
14523 ecode5 = SWIG_AsVal_int(obj4, &val5);
14524 if (!SWIG_IsOK(ecode5)) {
14525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
14526 }
14527 arg5 = static_cast< wxFontEncoding >(val5);
14528 }
14529 {
14530 if (!wxPyCheckForApp()) SWIG_fail;
14531 PyThreadState* __tstate = wxPyBeginAllowThreads();
14532 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
14533 wxPyEndAllowThreads(__tstate);
14534 if (PyErr_Occurred()) SWIG_fail;
14535 }
14536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
14537 {
14538 if (temp4)
14539 delete arg4;
14540 }
14541 return resultobj;
14542 fail:
14543 {
14544 if (temp4)
14545 delete arg4;
14546 }
14547 return NULL;
14548 }
14549
14550
14551 SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14552 PyObject *resultobj = 0;
14553 wxFont *arg1 = (wxFont *) 0 ;
14554 bool result;
14555 void *argp1 = 0 ;
14556 int res1 = 0 ;
14557 PyObject *swig_obj[1] ;
14558
14559 if (!args) SWIG_fail;
14560 swig_obj[0] = args;
14561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14562 if (!SWIG_IsOK(res1)) {
14563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'");
14564 }
14565 arg1 = reinterpret_cast< wxFont * >(argp1);
14566 {
14567 PyThreadState* __tstate = wxPyBeginAllowThreads();
14568 result = (bool)((wxFont const *)arg1)->IsOk();
14569 wxPyEndAllowThreads(__tstate);
14570 if (PyErr_Occurred()) SWIG_fail;
14571 }
14572 {
14573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14574 }
14575 return resultobj;
14576 fail:
14577 return NULL;
14578 }
14579
14580
14581 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14582 PyObject *resultobj = 0;
14583 wxFont *arg1 = (wxFont *) 0 ;
14584 wxFont *arg2 = (wxFont *) 0 ;
14585 bool result;
14586 void *argp1 = 0 ;
14587 int res1 = 0 ;
14588 void *argp2 = 0 ;
14589 int res2 = 0 ;
14590 PyObject * obj0 = 0 ;
14591 PyObject * obj1 = 0 ;
14592 char * kwnames[] = {
14593 (char *) "self",(char *) "other", NULL
14594 };
14595
14596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
14597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14598 if (!SWIG_IsOK(res1)) {
14599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
14600 }
14601 arg1 = reinterpret_cast< wxFont * >(argp1);
14602 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14603 if (!SWIG_IsOK(res2)) {
14604 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
14605 }
14606 arg2 = reinterpret_cast< wxFont * >(argp2);
14607 {
14608 PyThreadState* __tstate = wxPyBeginAllowThreads();
14609 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
14610 wxPyEndAllowThreads(__tstate);
14611 if (PyErr_Occurred()) SWIG_fail;
14612 }
14613 {
14614 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14615 }
14616 return resultobj;
14617 fail:
14618 return NULL;
14619 }
14620
14621
14622 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14623 PyObject *resultobj = 0;
14624 wxFont *arg1 = (wxFont *) 0 ;
14625 wxFont *arg2 = (wxFont *) 0 ;
14626 bool result;
14627 void *argp1 = 0 ;
14628 int res1 = 0 ;
14629 void *argp2 = 0 ;
14630 int res2 = 0 ;
14631 PyObject * obj0 = 0 ;
14632 PyObject * obj1 = 0 ;
14633 char * kwnames[] = {
14634 (char *) "self",(char *) "other", NULL
14635 };
14636
14637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
14638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14639 if (!SWIG_IsOK(res1)) {
14640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
14641 }
14642 arg1 = reinterpret_cast< wxFont * >(argp1);
14643 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
14644 if (!SWIG_IsOK(res2)) {
14645 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
14646 }
14647 arg2 = reinterpret_cast< wxFont * >(argp2);
14648 {
14649 PyThreadState* __tstate = wxPyBeginAllowThreads();
14650 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
14651 wxPyEndAllowThreads(__tstate);
14652 if (PyErr_Occurred()) SWIG_fail;
14653 }
14654 {
14655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14656 }
14657 return resultobj;
14658 fail:
14659 return NULL;
14660 }
14661
14662
14663 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14664 PyObject *resultobj = 0;
14665 wxFont *arg1 = (wxFont *) 0 ;
14666 int result;
14667 void *argp1 = 0 ;
14668 int res1 = 0 ;
14669 PyObject *swig_obj[1] ;
14670
14671 if (!args) SWIG_fail;
14672 swig_obj[0] = args;
14673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14674 if (!SWIG_IsOK(res1)) {
14675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14676 }
14677 arg1 = reinterpret_cast< wxFont * >(argp1);
14678 {
14679 PyThreadState* __tstate = wxPyBeginAllowThreads();
14680 result = (int)((wxFont const *)arg1)->GetPointSize();
14681 wxPyEndAllowThreads(__tstate);
14682 if (PyErr_Occurred()) SWIG_fail;
14683 }
14684 resultobj = SWIG_From_int(static_cast< int >(result));
14685 return resultobj;
14686 fail:
14687 return NULL;
14688 }
14689
14690
14691 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14692 PyObject *resultobj = 0;
14693 wxFont *arg1 = (wxFont *) 0 ;
14694 wxSize result;
14695 void *argp1 = 0 ;
14696 int res1 = 0 ;
14697 PyObject *swig_obj[1] ;
14698
14699 if (!args) SWIG_fail;
14700 swig_obj[0] = args;
14701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14702 if (!SWIG_IsOK(res1)) {
14703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
14704 }
14705 arg1 = reinterpret_cast< wxFont * >(argp1);
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 result = ((wxFont const *)arg1)->GetPixelSize();
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
14713 return resultobj;
14714 fail:
14715 return NULL;
14716 }
14717
14718
14719 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14720 PyObject *resultobj = 0;
14721 wxFont *arg1 = (wxFont *) 0 ;
14722 bool result;
14723 void *argp1 = 0 ;
14724 int res1 = 0 ;
14725 PyObject *swig_obj[1] ;
14726
14727 if (!args) SWIG_fail;
14728 swig_obj[0] = args;
14729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14730 if (!SWIG_IsOK(res1)) {
14731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
14732 }
14733 arg1 = reinterpret_cast< wxFont * >(argp1);
14734 {
14735 PyThreadState* __tstate = wxPyBeginAllowThreads();
14736 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
14737 wxPyEndAllowThreads(__tstate);
14738 if (PyErr_Occurred()) SWIG_fail;
14739 }
14740 {
14741 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14742 }
14743 return resultobj;
14744 fail:
14745 return NULL;
14746 }
14747
14748
14749 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14750 PyObject *resultobj = 0;
14751 wxFont *arg1 = (wxFont *) 0 ;
14752 int result;
14753 void *argp1 = 0 ;
14754 int res1 = 0 ;
14755 PyObject *swig_obj[1] ;
14756
14757 if (!args) SWIG_fail;
14758 swig_obj[0] = args;
14759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14760 if (!SWIG_IsOK(res1)) {
14761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
14762 }
14763 arg1 = reinterpret_cast< wxFont * >(argp1);
14764 {
14765 PyThreadState* __tstate = wxPyBeginAllowThreads();
14766 result = (int)((wxFont const *)arg1)->GetFamily();
14767 wxPyEndAllowThreads(__tstate);
14768 if (PyErr_Occurred()) SWIG_fail;
14769 }
14770 resultobj = SWIG_From_int(static_cast< int >(result));
14771 return resultobj;
14772 fail:
14773 return NULL;
14774 }
14775
14776
14777 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14778 PyObject *resultobj = 0;
14779 wxFont *arg1 = (wxFont *) 0 ;
14780 int result;
14781 void *argp1 = 0 ;
14782 int res1 = 0 ;
14783 PyObject *swig_obj[1] ;
14784
14785 if (!args) SWIG_fail;
14786 swig_obj[0] = args;
14787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14788 if (!SWIG_IsOK(res1)) {
14789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
14790 }
14791 arg1 = reinterpret_cast< wxFont * >(argp1);
14792 {
14793 PyThreadState* __tstate = wxPyBeginAllowThreads();
14794 result = (int)((wxFont const *)arg1)->GetStyle();
14795 wxPyEndAllowThreads(__tstate);
14796 if (PyErr_Occurred()) SWIG_fail;
14797 }
14798 resultobj = SWIG_From_int(static_cast< int >(result));
14799 return resultobj;
14800 fail:
14801 return NULL;
14802 }
14803
14804
14805 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14806 PyObject *resultobj = 0;
14807 wxFont *arg1 = (wxFont *) 0 ;
14808 int result;
14809 void *argp1 = 0 ;
14810 int res1 = 0 ;
14811 PyObject *swig_obj[1] ;
14812
14813 if (!args) SWIG_fail;
14814 swig_obj[0] = args;
14815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14816 if (!SWIG_IsOK(res1)) {
14817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
14818 }
14819 arg1 = reinterpret_cast< wxFont * >(argp1);
14820 {
14821 PyThreadState* __tstate = wxPyBeginAllowThreads();
14822 result = (int)((wxFont const *)arg1)->GetWeight();
14823 wxPyEndAllowThreads(__tstate);
14824 if (PyErr_Occurred()) SWIG_fail;
14825 }
14826 resultobj = SWIG_From_int(static_cast< int >(result));
14827 return resultobj;
14828 fail:
14829 return NULL;
14830 }
14831
14832
14833 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14834 PyObject *resultobj = 0;
14835 wxFont *arg1 = (wxFont *) 0 ;
14836 bool result;
14837 void *argp1 = 0 ;
14838 int res1 = 0 ;
14839 PyObject *swig_obj[1] ;
14840
14841 if (!args) SWIG_fail;
14842 swig_obj[0] = args;
14843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14844 if (!SWIG_IsOK(res1)) {
14845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
14846 }
14847 arg1 = reinterpret_cast< wxFont * >(argp1);
14848 {
14849 PyThreadState* __tstate = wxPyBeginAllowThreads();
14850 result = (bool)((wxFont const *)arg1)->GetUnderlined();
14851 wxPyEndAllowThreads(__tstate);
14852 if (PyErr_Occurred()) SWIG_fail;
14853 }
14854 {
14855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14856 }
14857 return resultobj;
14858 fail:
14859 return NULL;
14860 }
14861
14862
14863 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14864 PyObject *resultobj = 0;
14865 wxFont *arg1 = (wxFont *) 0 ;
14866 wxString result;
14867 void *argp1 = 0 ;
14868 int res1 = 0 ;
14869 PyObject *swig_obj[1] ;
14870
14871 if (!args) SWIG_fail;
14872 swig_obj[0] = args;
14873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14874 if (!SWIG_IsOK(res1)) {
14875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
14876 }
14877 arg1 = reinterpret_cast< wxFont * >(argp1);
14878 {
14879 PyThreadState* __tstate = wxPyBeginAllowThreads();
14880 result = ((wxFont const *)arg1)->GetFaceName();
14881 wxPyEndAllowThreads(__tstate);
14882 if (PyErr_Occurred()) SWIG_fail;
14883 }
14884 {
14885 #if wxUSE_UNICODE
14886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14887 #else
14888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14889 #endif
14890 }
14891 return resultobj;
14892 fail:
14893 return NULL;
14894 }
14895
14896
14897 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14898 PyObject *resultobj = 0;
14899 wxFont *arg1 = (wxFont *) 0 ;
14900 wxFontEncoding result;
14901 void *argp1 = 0 ;
14902 int res1 = 0 ;
14903 PyObject *swig_obj[1] ;
14904
14905 if (!args) SWIG_fail;
14906 swig_obj[0] = args;
14907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14908 if (!SWIG_IsOK(res1)) {
14909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
14910 }
14911 arg1 = reinterpret_cast< wxFont * >(argp1);
14912 {
14913 PyThreadState* __tstate = wxPyBeginAllowThreads();
14914 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
14915 wxPyEndAllowThreads(__tstate);
14916 if (PyErr_Occurred()) SWIG_fail;
14917 }
14918 resultobj = SWIG_From_int(static_cast< int >(result));
14919 return resultobj;
14920 fail:
14921 return NULL;
14922 }
14923
14924
14925 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14926 PyObject *resultobj = 0;
14927 wxFont *arg1 = (wxFont *) 0 ;
14928 wxNativeFontInfo *result = 0 ;
14929 void *argp1 = 0 ;
14930 int res1 = 0 ;
14931 PyObject *swig_obj[1] ;
14932
14933 if (!args) SWIG_fail;
14934 swig_obj[0] = args;
14935 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14936 if (!SWIG_IsOK(res1)) {
14937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
14938 }
14939 arg1 = reinterpret_cast< wxFont * >(argp1);
14940 {
14941 PyThreadState* __tstate = wxPyBeginAllowThreads();
14942 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
14943 wxPyEndAllowThreads(__tstate);
14944 if (PyErr_Occurred()) SWIG_fail;
14945 }
14946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
14947 return resultobj;
14948 fail:
14949 return NULL;
14950 }
14951
14952
14953 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14954 PyObject *resultobj = 0;
14955 wxFont *arg1 = (wxFont *) 0 ;
14956 bool result;
14957 void *argp1 = 0 ;
14958 int res1 = 0 ;
14959 PyObject *swig_obj[1] ;
14960
14961 if (!args) SWIG_fail;
14962 swig_obj[0] = args;
14963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14964 if (!SWIG_IsOK(res1)) {
14965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
14966 }
14967 arg1 = reinterpret_cast< wxFont * >(argp1);
14968 {
14969 PyThreadState* __tstate = wxPyBeginAllowThreads();
14970 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
14971 wxPyEndAllowThreads(__tstate);
14972 if (PyErr_Occurred()) SWIG_fail;
14973 }
14974 {
14975 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14976 }
14977 return resultobj;
14978 fail:
14979 return NULL;
14980 }
14981
14982
14983 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14984 PyObject *resultobj = 0;
14985 wxFont *arg1 = (wxFont *) 0 ;
14986 wxString result;
14987 void *argp1 = 0 ;
14988 int res1 = 0 ;
14989 PyObject *swig_obj[1] ;
14990
14991 if (!args) SWIG_fail;
14992 swig_obj[0] = args;
14993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
14994 if (!SWIG_IsOK(res1)) {
14995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
14996 }
14997 arg1 = reinterpret_cast< wxFont * >(argp1);
14998 {
14999 PyThreadState* __tstate = wxPyBeginAllowThreads();
15000 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
15001 wxPyEndAllowThreads(__tstate);
15002 if (PyErr_Occurred()) SWIG_fail;
15003 }
15004 {
15005 #if wxUSE_UNICODE
15006 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15007 #else
15008 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15009 #endif
15010 }
15011 return resultobj;
15012 fail:
15013 return NULL;
15014 }
15015
15016
15017 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15018 PyObject *resultobj = 0;
15019 wxFont *arg1 = (wxFont *) 0 ;
15020 wxString result;
15021 void *argp1 = 0 ;
15022 int res1 = 0 ;
15023 PyObject *swig_obj[1] ;
15024
15025 if (!args) SWIG_fail;
15026 swig_obj[0] = args;
15027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15028 if (!SWIG_IsOK(res1)) {
15029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
15030 }
15031 arg1 = reinterpret_cast< wxFont * >(argp1);
15032 {
15033 PyThreadState* __tstate = wxPyBeginAllowThreads();
15034 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
15035 wxPyEndAllowThreads(__tstate);
15036 if (PyErr_Occurred()) SWIG_fail;
15037 }
15038 {
15039 #if wxUSE_UNICODE
15040 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15041 #else
15042 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15043 #endif
15044 }
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj = 0;
15053 wxFont *arg1 = (wxFont *) 0 ;
15054 int arg2 ;
15055 void *argp1 = 0 ;
15056 int res1 = 0 ;
15057 int val2 ;
15058 int ecode2 = 0 ;
15059 PyObject * obj0 = 0 ;
15060 PyObject * obj1 = 0 ;
15061 char * kwnames[] = {
15062 (char *) "self",(char *) "pointSize", NULL
15063 };
15064
15065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
15066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15067 if (!SWIG_IsOK(res1)) {
15068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
15069 }
15070 arg1 = reinterpret_cast< wxFont * >(argp1);
15071 ecode2 = SWIG_AsVal_int(obj1, &val2);
15072 if (!SWIG_IsOK(ecode2)) {
15073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
15074 }
15075 arg2 = static_cast< int >(val2);
15076 {
15077 PyThreadState* __tstate = wxPyBeginAllowThreads();
15078 (arg1)->SetPointSize(arg2);
15079 wxPyEndAllowThreads(__tstate);
15080 if (PyErr_Occurred()) SWIG_fail;
15081 }
15082 resultobj = SWIG_Py_Void();
15083 return resultobj;
15084 fail:
15085 return NULL;
15086 }
15087
15088
15089 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15090 PyObject *resultobj = 0;
15091 wxFont *arg1 = (wxFont *) 0 ;
15092 wxSize *arg2 = 0 ;
15093 void *argp1 = 0 ;
15094 int res1 = 0 ;
15095 wxSize temp2 ;
15096 PyObject * obj0 = 0 ;
15097 PyObject * obj1 = 0 ;
15098 char * kwnames[] = {
15099 (char *) "self",(char *) "pixelSize", NULL
15100 };
15101
15102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
15103 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15104 if (!SWIG_IsOK(res1)) {
15105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
15106 }
15107 arg1 = reinterpret_cast< wxFont * >(argp1);
15108 {
15109 arg2 = &temp2;
15110 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
15111 }
15112 {
15113 PyThreadState* __tstate = wxPyBeginAllowThreads();
15114 (arg1)->SetPixelSize((wxSize const &)*arg2);
15115 wxPyEndAllowThreads(__tstate);
15116 if (PyErr_Occurred()) SWIG_fail;
15117 }
15118 resultobj = SWIG_Py_Void();
15119 return resultobj;
15120 fail:
15121 return NULL;
15122 }
15123
15124
15125 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15126 PyObject *resultobj = 0;
15127 wxFont *arg1 = (wxFont *) 0 ;
15128 int arg2 ;
15129 void *argp1 = 0 ;
15130 int res1 = 0 ;
15131 int val2 ;
15132 int ecode2 = 0 ;
15133 PyObject * obj0 = 0 ;
15134 PyObject * obj1 = 0 ;
15135 char * kwnames[] = {
15136 (char *) "self",(char *) "family", NULL
15137 };
15138
15139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
15140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15141 if (!SWIG_IsOK(res1)) {
15142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
15143 }
15144 arg1 = reinterpret_cast< wxFont * >(argp1);
15145 ecode2 = SWIG_AsVal_int(obj1, &val2);
15146 if (!SWIG_IsOK(ecode2)) {
15147 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
15148 }
15149 arg2 = static_cast< int >(val2);
15150 {
15151 PyThreadState* __tstate = wxPyBeginAllowThreads();
15152 (arg1)->SetFamily(arg2);
15153 wxPyEndAllowThreads(__tstate);
15154 if (PyErr_Occurred()) SWIG_fail;
15155 }
15156 resultobj = SWIG_Py_Void();
15157 return resultobj;
15158 fail:
15159 return NULL;
15160 }
15161
15162
15163 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15164 PyObject *resultobj = 0;
15165 wxFont *arg1 = (wxFont *) 0 ;
15166 int arg2 ;
15167 void *argp1 = 0 ;
15168 int res1 = 0 ;
15169 int val2 ;
15170 int ecode2 = 0 ;
15171 PyObject * obj0 = 0 ;
15172 PyObject * obj1 = 0 ;
15173 char * kwnames[] = {
15174 (char *) "self",(char *) "style", NULL
15175 };
15176
15177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
15178 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15179 if (!SWIG_IsOK(res1)) {
15180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
15181 }
15182 arg1 = reinterpret_cast< wxFont * >(argp1);
15183 ecode2 = SWIG_AsVal_int(obj1, &val2);
15184 if (!SWIG_IsOK(ecode2)) {
15185 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
15186 }
15187 arg2 = static_cast< int >(val2);
15188 {
15189 PyThreadState* __tstate = wxPyBeginAllowThreads();
15190 (arg1)->SetStyle(arg2);
15191 wxPyEndAllowThreads(__tstate);
15192 if (PyErr_Occurred()) SWIG_fail;
15193 }
15194 resultobj = SWIG_Py_Void();
15195 return resultobj;
15196 fail:
15197 return NULL;
15198 }
15199
15200
15201 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15202 PyObject *resultobj = 0;
15203 wxFont *arg1 = (wxFont *) 0 ;
15204 int arg2 ;
15205 void *argp1 = 0 ;
15206 int res1 = 0 ;
15207 int val2 ;
15208 int ecode2 = 0 ;
15209 PyObject * obj0 = 0 ;
15210 PyObject * obj1 = 0 ;
15211 char * kwnames[] = {
15212 (char *) "self",(char *) "weight", NULL
15213 };
15214
15215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
15216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15217 if (!SWIG_IsOK(res1)) {
15218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
15219 }
15220 arg1 = reinterpret_cast< wxFont * >(argp1);
15221 ecode2 = SWIG_AsVal_int(obj1, &val2);
15222 if (!SWIG_IsOK(ecode2)) {
15223 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
15224 }
15225 arg2 = static_cast< int >(val2);
15226 {
15227 PyThreadState* __tstate = wxPyBeginAllowThreads();
15228 (arg1)->SetWeight(arg2);
15229 wxPyEndAllowThreads(__tstate);
15230 if (PyErr_Occurred()) SWIG_fail;
15231 }
15232 resultobj = SWIG_Py_Void();
15233 return resultobj;
15234 fail:
15235 return NULL;
15236 }
15237
15238
15239 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15240 PyObject *resultobj = 0;
15241 wxFont *arg1 = (wxFont *) 0 ;
15242 wxString *arg2 = 0 ;
15243 bool result;
15244 void *argp1 = 0 ;
15245 int res1 = 0 ;
15246 bool temp2 = false ;
15247 PyObject * obj0 = 0 ;
15248 PyObject * obj1 = 0 ;
15249 char * kwnames[] = {
15250 (char *) "self",(char *) "faceName", NULL
15251 };
15252
15253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
15254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15255 if (!SWIG_IsOK(res1)) {
15256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
15257 }
15258 arg1 = reinterpret_cast< wxFont * >(argp1);
15259 {
15260 arg2 = wxString_in_helper(obj1);
15261 if (arg2 == NULL) SWIG_fail;
15262 temp2 = true;
15263 }
15264 {
15265 PyThreadState* __tstate = wxPyBeginAllowThreads();
15266 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
15267 wxPyEndAllowThreads(__tstate);
15268 if (PyErr_Occurred()) SWIG_fail;
15269 }
15270 {
15271 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15272 }
15273 {
15274 if (temp2)
15275 delete arg2;
15276 }
15277 return resultobj;
15278 fail:
15279 {
15280 if (temp2)
15281 delete arg2;
15282 }
15283 return NULL;
15284 }
15285
15286
15287 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15288 PyObject *resultobj = 0;
15289 wxFont *arg1 = (wxFont *) 0 ;
15290 bool arg2 ;
15291 void *argp1 = 0 ;
15292 int res1 = 0 ;
15293 bool val2 ;
15294 int ecode2 = 0 ;
15295 PyObject * obj0 = 0 ;
15296 PyObject * obj1 = 0 ;
15297 char * kwnames[] = {
15298 (char *) "self",(char *) "underlined", NULL
15299 };
15300
15301 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
15302 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15303 if (!SWIG_IsOK(res1)) {
15304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
15305 }
15306 arg1 = reinterpret_cast< wxFont * >(argp1);
15307 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15308 if (!SWIG_IsOK(ecode2)) {
15309 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
15310 }
15311 arg2 = static_cast< bool >(val2);
15312 {
15313 PyThreadState* __tstate = wxPyBeginAllowThreads();
15314 (arg1)->SetUnderlined(arg2);
15315 wxPyEndAllowThreads(__tstate);
15316 if (PyErr_Occurred()) SWIG_fail;
15317 }
15318 resultobj = SWIG_Py_Void();
15319 return resultobj;
15320 fail:
15321 return NULL;
15322 }
15323
15324
15325 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15326 PyObject *resultobj = 0;
15327 wxFont *arg1 = (wxFont *) 0 ;
15328 wxFontEncoding arg2 ;
15329 void *argp1 = 0 ;
15330 int res1 = 0 ;
15331 int val2 ;
15332 int ecode2 = 0 ;
15333 PyObject * obj0 = 0 ;
15334 PyObject * obj1 = 0 ;
15335 char * kwnames[] = {
15336 (char *) "self",(char *) "encoding", NULL
15337 };
15338
15339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
15340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15341 if (!SWIG_IsOK(res1)) {
15342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
15343 }
15344 arg1 = reinterpret_cast< wxFont * >(argp1);
15345 ecode2 = SWIG_AsVal_int(obj1, &val2);
15346 if (!SWIG_IsOK(ecode2)) {
15347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15348 }
15349 arg2 = static_cast< wxFontEncoding >(val2);
15350 {
15351 PyThreadState* __tstate = wxPyBeginAllowThreads();
15352 (arg1)->SetEncoding(arg2);
15353 wxPyEndAllowThreads(__tstate);
15354 if (PyErr_Occurred()) SWIG_fail;
15355 }
15356 resultobj = SWIG_Py_Void();
15357 return resultobj;
15358 fail:
15359 return NULL;
15360 }
15361
15362
15363 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15364 PyObject *resultobj = 0;
15365 wxFont *arg1 = (wxFont *) 0 ;
15366 wxNativeFontInfo *arg2 = 0 ;
15367 void *argp1 = 0 ;
15368 int res1 = 0 ;
15369 void *argp2 = 0 ;
15370 int res2 = 0 ;
15371 PyObject * obj0 = 0 ;
15372 PyObject * obj1 = 0 ;
15373 char * kwnames[] = {
15374 (char *) "self",(char *) "info", NULL
15375 };
15376
15377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
15378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15379 if (!SWIG_IsOK(res1)) {
15380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
15381 }
15382 arg1 = reinterpret_cast< wxFont * >(argp1);
15383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
15384 if (!SWIG_IsOK(res2)) {
15385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15386 }
15387 if (!argp2) {
15388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
15389 }
15390 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
15391 {
15392 PyThreadState* __tstate = wxPyBeginAllowThreads();
15393 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
15394 wxPyEndAllowThreads(__tstate);
15395 if (PyErr_Occurred()) SWIG_fail;
15396 }
15397 resultobj = SWIG_Py_Void();
15398 return resultobj;
15399 fail:
15400 return NULL;
15401 }
15402
15403
15404 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15405 PyObject *resultobj = 0;
15406 wxFont *arg1 = (wxFont *) 0 ;
15407 wxString *arg2 = 0 ;
15408 bool result;
15409 void *argp1 = 0 ;
15410 int res1 = 0 ;
15411 bool temp2 = false ;
15412 PyObject * obj0 = 0 ;
15413 PyObject * obj1 = 0 ;
15414 char * kwnames[] = {
15415 (char *) "self",(char *) "info", NULL
15416 };
15417
15418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
15419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15420 if (!SWIG_IsOK(res1)) {
15421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
15422 }
15423 arg1 = reinterpret_cast< wxFont * >(argp1);
15424 {
15425 arg2 = wxString_in_helper(obj1);
15426 if (arg2 == NULL) SWIG_fail;
15427 temp2 = true;
15428 }
15429 {
15430 PyThreadState* __tstate = wxPyBeginAllowThreads();
15431 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
15432 wxPyEndAllowThreads(__tstate);
15433 if (PyErr_Occurred()) SWIG_fail;
15434 }
15435 {
15436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15437 }
15438 {
15439 if (temp2)
15440 delete arg2;
15441 }
15442 return resultobj;
15443 fail:
15444 {
15445 if (temp2)
15446 delete arg2;
15447 }
15448 return NULL;
15449 }
15450
15451
15452 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15453 PyObject *resultobj = 0;
15454 wxFont *arg1 = (wxFont *) 0 ;
15455 wxString *arg2 = 0 ;
15456 bool result;
15457 void *argp1 = 0 ;
15458 int res1 = 0 ;
15459 bool temp2 = false ;
15460 PyObject * obj0 = 0 ;
15461 PyObject * obj1 = 0 ;
15462 char * kwnames[] = {
15463 (char *) "self",(char *) "info", NULL
15464 };
15465
15466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
15467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15468 if (!SWIG_IsOK(res1)) {
15469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
15470 }
15471 arg1 = reinterpret_cast< wxFont * >(argp1);
15472 {
15473 arg2 = wxString_in_helper(obj1);
15474 if (arg2 == NULL) SWIG_fail;
15475 temp2 = true;
15476 }
15477 {
15478 PyThreadState* __tstate = wxPyBeginAllowThreads();
15479 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
15480 wxPyEndAllowThreads(__tstate);
15481 if (PyErr_Occurred()) SWIG_fail;
15482 }
15483 {
15484 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15485 }
15486 {
15487 if (temp2)
15488 delete arg2;
15489 }
15490 return resultobj;
15491 fail:
15492 {
15493 if (temp2)
15494 delete arg2;
15495 }
15496 return NULL;
15497 }
15498
15499
15500 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15501 PyObject *resultobj = 0;
15502 wxFont *arg1 = (wxFont *) 0 ;
15503 wxString result;
15504 void *argp1 = 0 ;
15505 int res1 = 0 ;
15506 PyObject *swig_obj[1] ;
15507
15508 if (!args) SWIG_fail;
15509 swig_obj[0] = args;
15510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15511 if (!SWIG_IsOK(res1)) {
15512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
15513 }
15514 arg1 = reinterpret_cast< wxFont * >(argp1);
15515 {
15516 PyThreadState* __tstate = wxPyBeginAllowThreads();
15517 result = ((wxFont const *)arg1)->GetFamilyString();
15518 wxPyEndAllowThreads(__tstate);
15519 if (PyErr_Occurred()) SWIG_fail;
15520 }
15521 {
15522 #if wxUSE_UNICODE
15523 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15524 #else
15525 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15526 #endif
15527 }
15528 return resultobj;
15529 fail:
15530 return NULL;
15531 }
15532
15533
15534 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15535 PyObject *resultobj = 0;
15536 wxFont *arg1 = (wxFont *) 0 ;
15537 wxString result;
15538 void *argp1 = 0 ;
15539 int res1 = 0 ;
15540 PyObject *swig_obj[1] ;
15541
15542 if (!args) SWIG_fail;
15543 swig_obj[0] = args;
15544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15545 if (!SWIG_IsOK(res1)) {
15546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
15547 }
15548 arg1 = reinterpret_cast< wxFont * >(argp1);
15549 {
15550 PyThreadState* __tstate = wxPyBeginAllowThreads();
15551 result = ((wxFont const *)arg1)->GetStyleString();
15552 wxPyEndAllowThreads(__tstate);
15553 if (PyErr_Occurred()) SWIG_fail;
15554 }
15555 {
15556 #if wxUSE_UNICODE
15557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15558 #else
15559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15560 #endif
15561 }
15562 return resultobj;
15563 fail:
15564 return NULL;
15565 }
15566
15567
15568 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15569 PyObject *resultobj = 0;
15570 wxFont *arg1 = (wxFont *) 0 ;
15571 wxString result;
15572 void *argp1 = 0 ;
15573 int res1 = 0 ;
15574 PyObject *swig_obj[1] ;
15575
15576 if (!args) SWIG_fail;
15577 swig_obj[0] = args;
15578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
15581 }
15582 arg1 = reinterpret_cast< wxFont * >(argp1);
15583 {
15584 PyThreadState* __tstate = wxPyBeginAllowThreads();
15585 result = ((wxFont const *)arg1)->GetWeightString();
15586 wxPyEndAllowThreads(__tstate);
15587 if (PyErr_Occurred()) SWIG_fail;
15588 }
15589 {
15590 #if wxUSE_UNICODE
15591 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
15592 #else
15593 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
15594 #endif
15595 }
15596 return resultobj;
15597 fail:
15598 return NULL;
15599 }
15600
15601
15602 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15603 PyObject *resultobj = 0;
15604 wxFont *arg1 = (wxFont *) 0 ;
15605 bool arg2 = (bool) true ;
15606 void *argp1 = 0 ;
15607 int res1 = 0 ;
15608 bool val2 ;
15609 int ecode2 = 0 ;
15610 PyObject * obj0 = 0 ;
15611 PyObject * obj1 = 0 ;
15612 char * kwnames[] = {
15613 (char *) "self",(char *) "no", NULL
15614 };
15615
15616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
15617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15618 if (!SWIG_IsOK(res1)) {
15619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
15620 }
15621 arg1 = reinterpret_cast< wxFont * >(argp1);
15622 if (obj1) {
15623 ecode2 = SWIG_AsVal_bool(obj1, &val2);
15624 if (!SWIG_IsOK(ecode2)) {
15625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
15626 }
15627 arg2 = static_cast< bool >(val2);
15628 }
15629 {
15630 PyThreadState* __tstate = wxPyBeginAllowThreads();
15631 (arg1)->SetNoAntiAliasing(arg2);
15632 wxPyEndAllowThreads(__tstate);
15633 if (PyErr_Occurred()) SWIG_fail;
15634 }
15635 resultobj = SWIG_Py_Void();
15636 return resultobj;
15637 fail:
15638 return NULL;
15639 }
15640
15641
15642 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15643 PyObject *resultobj = 0;
15644 wxFont *arg1 = (wxFont *) 0 ;
15645 bool result;
15646 void *argp1 = 0 ;
15647 int res1 = 0 ;
15648 PyObject *swig_obj[1] ;
15649
15650 if (!args) SWIG_fail;
15651 swig_obj[0] = args;
15652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
15653 if (!SWIG_IsOK(res1)) {
15654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
15655 }
15656 arg1 = reinterpret_cast< wxFont * >(argp1);
15657 {
15658 PyThreadState* __tstate = wxPyBeginAllowThreads();
15659 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
15660 wxPyEndAllowThreads(__tstate);
15661 if (PyErr_Occurred()) SWIG_fail;
15662 }
15663 {
15664 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15665 }
15666 return resultobj;
15667 fail:
15668 return NULL;
15669 }
15670
15671
15672 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15673 PyObject *resultobj = 0;
15674 wxFontEncoding result;
15675
15676 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
15677 {
15678 if (!wxPyCheckForApp()) SWIG_fail;
15679 PyThreadState* __tstate = wxPyBeginAllowThreads();
15680 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
15681 wxPyEndAllowThreads(__tstate);
15682 if (PyErr_Occurred()) SWIG_fail;
15683 }
15684 resultobj = SWIG_From_int(static_cast< int >(result));
15685 return resultobj;
15686 fail:
15687 return NULL;
15688 }
15689
15690
15691 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15692 PyObject *resultobj = 0;
15693 wxFontEncoding arg1 ;
15694 int val1 ;
15695 int ecode1 = 0 ;
15696 PyObject * obj0 = 0 ;
15697 char * kwnames[] = {
15698 (char *) "encoding", NULL
15699 };
15700
15701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
15702 ecode1 = SWIG_AsVal_int(obj0, &val1);
15703 if (!SWIG_IsOK(ecode1)) {
15704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15705 }
15706 arg1 = static_cast< wxFontEncoding >(val1);
15707 {
15708 if (!wxPyCheckForApp()) SWIG_fail;
15709 PyThreadState* __tstate = wxPyBeginAllowThreads();
15710 wxFont::SetDefaultEncoding(arg1);
15711 wxPyEndAllowThreads(__tstate);
15712 if (PyErr_Occurred()) SWIG_fail;
15713 }
15714 resultobj = SWIG_Py_Void();
15715 return resultobj;
15716 fail:
15717 return NULL;
15718 }
15719
15720
15721 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15722 PyObject *obj;
15723 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15724 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
15725 return SWIG_Py_Void();
15726 }
15727
15728 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15729 return SWIG_Python_InitShadowInstance(args);
15730 }
15731
15732 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15733 PyObject *resultobj = 0;
15734 wxPyFontEnumerator *result = 0 ;
15735
15736 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
15737 {
15738 if (!wxPyCheckForApp()) SWIG_fail;
15739 PyThreadState* __tstate = wxPyBeginAllowThreads();
15740 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
15741 wxPyEndAllowThreads(__tstate);
15742 if (PyErr_Occurred()) SWIG_fail;
15743 }
15744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
15745 return resultobj;
15746 fail:
15747 return NULL;
15748 }
15749
15750
15751 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15752 PyObject *resultobj = 0;
15753 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15754 void *argp1 = 0 ;
15755 int res1 = 0 ;
15756 PyObject *swig_obj[1] ;
15757
15758 if (!args) SWIG_fail;
15759 swig_obj[0] = args;
15760 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
15761 if (!SWIG_IsOK(res1)) {
15762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15763 }
15764 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15765 {
15766 PyThreadState* __tstate = wxPyBeginAllowThreads();
15767 delete arg1;
15768
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 resultobj = SWIG_Py_Void();
15773 return resultobj;
15774 fail:
15775 return NULL;
15776 }
15777
15778
15779 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15780 PyObject *resultobj = 0;
15781 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15782 PyObject *arg2 = (PyObject *) 0 ;
15783 PyObject *arg3 = (PyObject *) 0 ;
15784 bool arg4 ;
15785 void *argp1 = 0 ;
15786 int res1 = 0 ;
15787 bool val4 ;
15788 int ecode4 = 0 ;
15789 PyObject * obj0 = 0 ;
15790 PyObject * obj1 = 0 ;
15791 PyObject * obj2 = 0 ;
15792 PyObject * obj3 = 0 ;
15793 char * kwnames[] = {
15794 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
15795 };
15796
15797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15799 if (!SWIG_IsOK(res1)) {
15800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15801 }
15802 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15803 arg2 = obj1;
15804 arg3 = obj2;
15805 ecode4 = SWIG_AsVal_bool(obj3, &val4);
15806 if (!SWIG_IsOK(ecode4)) {
15807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
15808 }
15809 arg4 = static_cast< bool >(val4);
15810 {
15811 PyThreadState* __tstate = wxPyBeginAllowThreads();
15812 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
15813 wxPyEndAllowThreads(__tstate);
15814 if (PyErr_Occurred()) SWIG_fail;
15815 }
15816 resultobj = SWIG_Py_Void();
15817 return resultobj;
15818 fail:
15819 return NULL;
15820 }
15821
15822
15823 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15824 PyObject *resultobj = 0;
15825 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15826 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
15827 bool arg3 = (bool) false ;
15828 bool result;
15829 void *argp1 = 0 ;
15830 int res1 = 0 ;
15831 int val2 ;
15832 int ecode2 = 0 ;
15833 bool val3 ;
15834 int ecode3 = 0 ;
15835 PyObject * obj0 = 0 ;
15836 PyObject * obj1 = 0 ;
15837 PyObject * obj2 = 0 ;
15838 char * kwnames[] = {
15839 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
15840 };
15841
15842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15844 if (!SWIG_IsOK(res1)) {
15845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15846 }
15847 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15848 if (obj1) {
15849 ecode2 = SWIG_AsVal_int(obj1, &val2);
15850 if (!SWIG_IsOK(ecode2)) {
15851 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15852 }
15853 arg2 = static_cast< wxFontEncoding >(val2);
15854 }
15855 if (obj2) {
15856 ecode3 = SWIG_AsVal_bool(obj2, &val3);
15857 if (!SWIG_IsOK(ecode3)) {
15858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
15859 }
15860 arg3 = static_cast< bool >(val3);
15861 }
15862 {
15863 PyThreadState* __tstate = wxPyBeginAllowThreads();
15864 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
15865 wxPyEndAllowThreads(__tstate);
15866 if (PyErr_Occurred()) SWIG_fail;
15867 }
15868 {
15869 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15870 }
15871 return resultobj;
15872 fail:
15873 return NULL;
15874 }
15875
15876
15877 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15878 PyObject *resultobj = 0;
15879 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
15880 wxString const &arg2_defvalue = wxPyEmptyString ;
15881 wxString *arg2 = (wxString *) &arg2_defvalue ;
15882 bool result;
15883 void *argp1 = 0 ;
15884 int res1 = 0 ;
15885 bool temp2 = false ;
15886 PyObject * obj0 = 0 ;
15887 PyObject * obj1 = 0 ;
15888 char * kwnames[] = {
15889 (char *) "self",(char *) "facename", NULL
15890 };
15891
15892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
15893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
15894 if (!SWIG_IsOK(res1)) {
15895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
15896 }
15897 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
15898 if (obj1) {
15899 {
15900 arg2 = wxString_in_helper(obj1);
15901 if (arg2 == NULL) SWIG_fail;
15902 temp2 = true;
15903 }
15904 }
15905 {
15906 PyThreadState* __tstate = wxPyBeginAllowThreads();
15907 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
15908 wxPyEndAllowThreads(__tstate);
15909 if (PyErr_Occurred()) SWIG_fail;
15910 }
15911 {
15912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15913 }
15914 {
15915 if (temp2)
15916 delete arg2;
15917 }
15918 return resultobj;
15919 fail:
15920 {
15921 if (temp2)
15922 delete arg2;
15923 }
15924 return NULL;
15925 }
15926
15927
15928 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15929 PyObject *resultobj = 0;
15930 PyObject *result = 0 ;
15931
15932 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
15933 {
15934 PyThreadState* __tstate = wxPyBeginAllowThreads();
15935 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
15936 wxPyEndAllowThreads(__tstate);
15937 if (PyErr_Occurred()) SWIG_fail;
15938 }
15939 resultobj = result;
15940 return resultobj;
15941 fail:
15942 return NULL;
15943 }
15944
15945
15946 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15947 PyObject *resultobj = 0;
15948 PyObject *result = 0 ;
15949
15950 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
15951 {
15952 PyThreadState* __tstate = wxPyBeginAllowThreads();
15953 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
15954 wxPyEndAllowThreads(__tstate);
15955 if (PyErr_Occurred()) SWIG_fail;
15956 }
15957 resultobj = result;
15958 return resultobj;
15959 fail:
15960 return NULL;
15961 }
15962
15963
15964 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15965 PyObject *resultobj = 0;
15966 wxString *arg1 = 0 ;
15967 bool result;
15968 bool temp1 = false ;
15969 PyObject * obj0 = 0 ;
15970 char * kwnames[] = {
15971 (char *) "str", NULL
15972 };
15973
15974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
15975 {
15976 arg1 = wxString_in_helper(obj0);
15977 if (arg1 == NULL) SWIG_fail;
15978 temp1 = true;
15979 }
15980 {
15981 PyThreadState* __tstate = wxPyBeginAllowThreads();
15982 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
15983 wxPyEndAllowThreads(__tstate);
15984 if (PyErr_Occurred()) SWIG_fail;
15985 }
15986 {
15987 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15988 }
15989 {
15990 if (temp1)
15991 delete arg1;
15992 }
15993 return resultobj;
15994 fail:
15995 {
15996 if (temp1)
15997 delete arg1;
15998 }
15999 return NULL;
16000 }
16001
16002
16003 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16004 PyObject *obj;
16005 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16006 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
16007 return SWIG_Py_Void();
16008 }
16009
16010 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16011 return SWIG_Python_InitShadowInstance(args);
16012 }
16013
16014 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16015 PyObject *resultobj = 0;
16016 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16017 int arg2 ;
16018 void *argp1 = 0 ;
16019 int res1 = 0 ;
16020 int val2 ;
16021 int ecode2 = 0 ;
16022 PyObject *swig_obj[2] ;
16023
16024 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
16025 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16026 if (!SWIG_IsOK(res1)) {
16027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16028 }
16029 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16030 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
16031 if (!SWIG_IsOK(ecode2)) {
16032 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
16033 }
16034 arg2 = static_cast< int >(val2);
16035 if (arg1) (arg1)->Language = arg2;
16036
16037 resultobj = SWIG_Py_Void();
16038 return resultobj;
16039 fail:
16040 return NULL;
16041 }
16042
16043
16044 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16045 PyObject *resultobj = 0;
16046 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16047 int result;
16048 void *argp1 = 0 ;
16049 int res1 = 0 ;
16050 PyObject *swig_obj[1] ;
16051
16052 if (!args) SWIG_fail;
16053 swig_obj[0] = args;
16054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16055 if (!SWIG_IsOK(res1)) {
16056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16057 }
16058 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16059 result = (int) ((arg1)->Language);
16060 resultobj = SWIG_From_int(static_cast< int >(result));
16061 return resultobj;
16062 fail:
16063 return NULL;
16064 }
16065
16066
16067 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16068 PyObject *resultobj = 0;
16069 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16070 wxString *arg2 = (wxString *) 0 ;
16071 void *argp1 = 0 ;
16072 int res1 = 0 ;
16073 bool temp2 = false ;
16074 PyObject *swig_obj[2] ;
16075
16076 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
16077 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16078 if (!SWIG_IsOK(res1)) {
16079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16080 }
16081 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16082 {
16083 arg2 = wxString_in_helper(swig_obj[1]);
16084 if (arg2 == NULL) SWIG_fail;
16085 temp2 = true;
16086 }
16087 if (arg1) (arg1)->CanonicalName = *arg2;
16088
16089 resultobj = SWIG_Py_Void();
16090 {
16091 if (temp2)
16092 delete arg2;
16093 }
16094 return resultobj;
16095 fail:
16096 {
16097 if (temp2)
16098 delete arg2;
16099 }
16100 return NULL;
16101 }
16102
16103
16104 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16105 PyObject *resultobj = 0;
16106 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16107 wxString *result = 0 ;
16108 void *argp1 = 0 ;
16109 int res1 = 0 ;
16110 PyObject *swig_obj[1] ;
16111
16112 if (!args) SWIG_fail;
16113 swig_obj[0] = args;
16114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16115 if (!SWIG_IsOK(res1)) {
16116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16117 }
16118 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16119 result = (wxString *)& ((arg1)->CanonicalName);
16120 {
16121 #if wxUSE_UNICODE
16122 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16123 #else
16124 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16125 #endif
16126 }
16127 return resultobj;
16128 fail:
16129 return NULL;
16130 }
16131
16132
16133 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16134 PyObject *resultobj = 0;
16135 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16136 wxString *arg2 = (wxString *) 0 ;
16137 void *argp1 = 0 ;
16138 int res1 = 0 ;
16139 bool temp2 = false ;
16140 PyObject *swig_obj[2] ;
16141
16142 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
16143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16144 if (!SWIG_IsOK(res1)) {
16145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16146 }
16147 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16148 {
16149 arg2 = wxString_in_helper(swig_obj[1]);
16150 if (arg2 == NULL) SWIG_fail;
16151 temp2 = true;
16152 }
16153 if (arg1) (arg1)->Description = *arg2;
16154
16155 resultobj = SWIG_Py_Void();
16156 {
16157 if (temp2)
16158 delete arg2;
16159 }
16160 return resultobj;
16161 fail:
16162 {
16163 if (temp2)
16164 delete arg2;
16165 }
16166 return NULL;
16167 }
16168
16169
16170 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16171 PyObject *resultobj = 0;
16172 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
16173 wxString *result = 0 ;
16174 void *argp1 = 0 ;
16175 int res1 = 0 ;
16176 PyObject *swig_obj[1] ;
16177
16178 if (!args) SWIG_fail;
16179 swig_obj[0] = args;
16180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16181 if (!SWIG_IsOK(res1)) {
16182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
16183 }
16184 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16185 result = (wxString *)& ((arg1)->Description);
16186 {
16187 #if wxUSE_UNICODE
16188 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
16189 #else
16190 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
16191 #endif
16192 }
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16200 PyObject *obj;
16201 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
16202 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
16203 return SWIG_Py_Void();
16204 }
16205
16206 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16207 PyObject *resultobj = 0;
16208 int arg1 = (int) -1 ;
16209 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16210 wxLocale *result = 0 ;
16211 int val1 ;
16212 int ecode1 = 0 ;
16213 int val2 ;
16214 int ecode2 = 0 ;
16215 PyObject * obj0 = 0 ;
16216 PyObject * obj1 = 0 ;
16217 char * kwnames[] = {
16218 (char *) "language",(char *) "flags", NULL
16219 };
16220
16221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
16222 if (obj0) {
16223 ecode1 = SWIG_AsVal_int(obj0, &val1);
16224 if (!SWIG_IsOK(ecode1)) {
16225 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
16226 }
16227 arg1 = static_cast< int >(val1);
16228 }
16229 if (obj1) {
16230 ecode2 = SWIG_AsVal_int(obj1, &val2);
16231 if (!SWIG_IsOK(ecode2)) {
16232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
16233 }
16234 arg2 = static_cast< int >(val2);
16235 }
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 result = (wxLocale *)new_wxLocale(arg1,arg2);
16239 wxPyEndAllowThreads(__tstate);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 }
16242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
16243 return resultobj;
16244 fail:
16245 return NULL;
16246 }
16247
16248
16249 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16250 PyObject *resultobj = 0;
16251 wxLocale *arg1 = (wxLocale *) 0 ;
16252 void *argp1 = 0 ;
16253 int res1 = 0 ;
16254 PyObject *swig_obj[1] ;
16255
16256 if (!args) SWIG_fail;
16257 swig_obj[0] = args;
16258 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
16259 if (!SWIG_IsOK(res1)) {
16260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
16261 }
16262 arg1 = reinterpret_cast< wxLocale * >(argp1);
16263 {
16264 PyThreadState* __tstate = wxPyBeginAllowThreads();
16265 delete arg1;
16266
16267 wxPyEndAllowThreads(__tstate);
16268 if (PyErr_Occurred()) SWIG_fail;
16269 }
16270 resultobj = SWIG_Py_Void();
16271 return resultobj;
16272 fail:
16273 return NULL;
16274 }
16275
16276
16277 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16278 PyObject *resultobj = 0;
16279 wxLocale *arg1 = (wxLocale *) 0 ;
16280 wxString *arg2 = 0 ;
16281 wxString const &arg3_defvalue = wxPyEmptyString ;
16282 wxString *arg3 = (wxString *) &arg3_defvalue ;
16283 wxString const &arg4_defvalue = wxPyEmptyString ;
16284 wxString *arg4 = (wxString *) &arg4_defvalue ;
16285 bool arg5 = (bool) true ;
16286 bool arg6 = (bool) false ;
16287 bool result;
16288 void *argp1 = 0 ;
16289 int res1 = 0 ;
16290 bool temp2 = false ;
16291 bool temp3 = false ;
16292 bool temp4 = false ;
16293 bool val5 ;
16294 int ecode5 = 0 ;
16295 bool val6 ;
16296 int ecode6 = 0 ;
16297 PyObject * obj0 = 0 ;
16298 PyObject * obj1 = 0 ;
16299 PyObject * obj2 = 0 ;
16300 PyObject * obj3 = 0 ;
16301 PyObject * obj4 = 0 ;
16302 PyObject * obj5 = 0 ;
16303 char * kwnames[] = {
16304 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
16305 };
16306
16307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16309 if (!SWIG_IsOK(res1)) {
16310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
16311 }
16312 arg1 = reinterpret_cast< wxLocale * >(argp1);
16313 {
16314 arg2 = wxString_in_helper(obj1);
16315 if (arg2 == NULL) SWIG_fail;
16316 temp2 = true;
16317 }
16318 if (obj2) {
16319 {
16320 arg3 = wxString_in_helper(obj2);
16321 if (arg3 == NULL) SWIG_fail;
16322 temp3 = true;
16323 }
16324 }
16325 if (obj3) {
16326 {
16327 arg4 = wxString_in_helper(obj3);
16328 if (arg4 == NULL) SWIG_fail;
16329 temp4 = true;
16330 }
16331 }
16332 if (obj4) {
16333 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16334 if (!SWIG_IsOK(ecode5)) {
16335 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
16336 }
16337 arg5 = static_cast< bool >(val5);
16338 }
16339 if (obj5) {
16340 ecode6 = SWIG_AsVal_bool(obj5, &val6);
16341 if (!SWIG_IsOK(ecode6)) {
16342 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
16343 }
16344 arg6 = static_cast< bool >(val6);
16345 }
16346 {
16347 PyThreadState* __tstate = wxPyBeginAllowThreads();
16348 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
16349 wxPyEndAllowThreads(__tstate);
16350 if (PyErr_Occurred()) SWIG_fail;
16351 }
16352 {
16353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16354 }
16355 {
16356 if (temp2)
16357 delete arg2;
16358 }
16359 {
16360 if (temp3)
16361 delete arg3;
16362 }
16363 {
16364 if (temp4)
16365 delete arg4;
16366 }
16367 return resultobj;
16368 fail:
16369 {
16370 if (temp2)
16371 delete arg2;
16372 }
16373 {
16374 if (temp3)
16375 delete arg3;
16376 }
16377 {
16378 if (temp4)
16379 delete arg4;
16380 }
16381 return NULL;
16382 }
16383
16384
16385 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16386 PyObject *resultobj = 0;
16387 wxLocale *arg1 = (wxLocale *) 0 ;
16388 int arg2 = (int) wxLANGUAGE_DEFAULT ;
16389 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
16390 bool result;
16391 void *argp1 = 0 ;
16392 int res1 = 0 ;
16393 int val2 ;
16394 int ecode2 = 0 ;
16395 int val3 ;
16396 int ecode3 = 0 ;
16397 PyObject * obj0 = 0 ;
16398 PyObject * obj1 = 0 ;
16399 PyObject * obj2 = 0 ;
16400 char * kwnames[] = {
16401 (char *) "self",(char *) "language",(char *) "flags", NULL
16402 };
16403
16404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16406 if (!SWIG_IsOK(res1)) {
16407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
16408 }
16409 arg1 = reinterpret_cast< wxLocale * >(argp1);
16410 if (obj1) {
16411 ecode2 = SWIG_AsVal_int(obj1, &val2);
16412 if (!SWIG_IsOK(ecode2)) {
16413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
16414 }
16415 arg2 = static_cast< int >(val2);
16416 }
16417 if (obj2) {
16418 ecode3 = SWIG_AsVal_int(obj2, &val3);
16419 if (!SWIG_IsOK(ecode3)) {
16420 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
16421 }
16422 arg3 = static_cast< int >(val3);
16423 }
16424 {
16425 PyThreadState* __tstate = wxPyBeginAllowThreads();
16426 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
16427 wxPyEndAllowThreads(__tstate);
16428 if (PyErr_Occurred()) SWIG_fail;
16429 }
16430 {
16431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16432 }
16433 return resultobj;
16434 fail:
16435 return NULL;
16436 }
16437
16438
16439 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16440 PyObject *resultobj = 0;
16441 int result;
16442
16443 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
16444 {
16445 PyThreadState* __tstate = wxPyBeginAllowThreads();
16446 result = (int)wxLocale::GetSystemLanguage();
16447 wxPyEndAllowThreads(__tstate);
16448 if (PyErr_Occurred()) SWIG_fail;
16449 }
16450 resultobj = SWIG_From_int(static_cast< int >(result));
16451 return resultobj;
16452 fail:
16453 return NULL;
16454 }
16455
16456
16457 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16458 PyObject *resultobj = 0;
16459 wxFontEncoding result;
16460
16461 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
16462 {
16463 PyThreadState* __tstate = wxPyBeginAllowThreads();
16464 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
16465 wxPyEndAllowThreads(__tstate);
16466 if (PyErr_Occurred()) SWIG_fail;
16467 }
16468 resultobj = SWIG_From_int(static_cast< int >(result));
16469 return resultobj;
16470 fail:
16471 return NULL;
16472 }
16473
16474
16475 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16476 PyObject *resultobj = 0;
16477 wxString result;
16478
16479 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
16480 {
16481 PyThreadState* __tstate = wxPyBeginAllowThreads();
16482 result = wxLocale::GetSystemEncodingName();
16483 wxPyEndAllowThreads(__tstate);
16484 if (PyErr_Occurred()) SWIG_fail;
16485 }
16486 {
16487 #if wxUSE_UNICODE
16488 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16489 #else
16490 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16491 #endif
16492 }
16493 return resultobj;
16494 fail:
16495 return NULL;
16496 }
16497
16498
16499 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16500 PyObject *resultobj = 0;
16501 wxLocale *arg1 = (wxLocale *) 0 ;
16502 bool result;
16503 void *argp1 = 0 ;
16504 int res1 = 0 ;
16505 PyObject *swig_obj[1] ;
16506
16507 if (!args) SWIG_fail;
16508 swig_obj[0] = args;
16509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16510 if (!SWIG_IsOK(res1)) {
16511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
16512 }
16513 arg1 = reinterpret_cast< wxLocale * >(argp1);
16514 {
16515 PyThreadState* __tstate = wxPyBeginAllowThreads();
16516 result = (bool)((wxLocale const *)arg1)->IsOk();
16517 wxPyEndAllowThreads(__tstate);
16518 if (PyErr_Occurred()) SWIG_fail;
16519 }
16520 {
16521 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16522 }
16523 return resultobj;
16524 fail:
16525 return NULL;
16526 }
16527
16528
16529 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16530 PyObject *resultobj = 0;
16531 wxLocale *arg1 = (wxLocale *) 0 ;
16532 wxString result;
16533 void *argp1 = 0 ;
16534 int res1 = 0 ;
16535 PyObject *swig_obj[1] ;
16536
16537 if (!args) SWIG_fail;
16538 swig_obj[0] = args;
16539 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16540 if (!SWIG_IsOK(res1)) {
16541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
16542 }
16543 arg1 = reinterpret_cast< wxLocale * >(argp1);
16544 {
16545 PyThreadState* __tstate = wxPyBeginAllowThreads();
16546 result = ((wxLocale const *)arg1)->GetLocale();
16547 wxPyEndAllowThreads(__tstate);
16548 if (PyErr_Occurred()) SWIG_fail;
16549 }
16550 {
16551 #if wxUSE_UNICODE
16552 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16553 #else
16554 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16555 #endif
16556 }
16557 return resultobj;
16558 fail:
16559 return NULL;
16560 }
16561
16562
16563 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16564 PyObject *resultobj = 0;
16565 wxLocale *arg1 = (wxLocale *) 0 ;
16566 int result;
16567 void *argp1 = 0 ;
16568 int res1 = 0 ;
16569 PyObject *swig_obj[1] ;
16570
16571 if (!args) SWIG_fail;
16572 swig_obj[0] = args;
16573 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16574 if (!SWIG_IsOK(res1)) {
16575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
16576 }
16577 arg1 = reinterpret_cast< wxLocale * >(argp1);
16578 {
16579 PyThreadState* __tstate = wxPyBeginAllowThreads();
16580 result = (int)((wxLocale const *)arg1)->GetLanguage();
16581 wxPyEndAllowThreads(__tstate);
16582 if (PyErr_Occurred()) SWIG_fail;
16583 }
16584 resultobj = SWIG_From_int(static_cast< int >(result));
16585 return resultobj;
16586 fail:
16587 return NULL;
16588 }
16589
16590
16591 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16592 PyObject *resultobj = 0;
16593 wxLocale *arg1 = (wxLocale *) 0 ;
16594 wxString result;
16595 void *argp1 = 0 ;
16596 int res1 = 0 ;
16597 PyObject *swig_obj[1] ;
16598
16599 if (!args) SWIG_fail;
16600 swig_obj[0] = args;
16601 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16602 if (!SWIG_IsOK(res1)) {
16603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16604 }
16605 arg1 = reinterpret_cast< wxLocale * >(argp1);
16606 {
16607 PyThreadState* __tstate = wxPyBeginAllowThreads();
16608 result = ((wxLocale const *)arg1)->GetSysName();
16609 wxPyEndAllowThreads(__tstate);
16610 if (PyErr_Occurred()) SWIG_fail;
16611 }
16612 {
16613 #if wxUSE_UNICODE
16614 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16615 #else
16616 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16617 #endif
16618 }
16619 return resultobj;
16620 fail:
16621 return NULL;
16622 }
16623
16624
16625 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
16626 PyObject *resultobj = 0;
16627 wxLocale *arg1 = (wxLocale *) 0 ;
16628 wxString result;
16629 void *argp1 = 0 ;
16630 int res1 = 0 ;
16631 PyObject *swig_obj[1] ;
16632
16633 if (!args) SWIG_fail;
16634 swig_obj[0] = args;
16635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16636 if (!SWIG_IsOK(res1)) {
16637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
16638 }
16639 arg1 = reinterpret_cast< wxLocale * >(argp1);
16640 {
16641 PyThreadState* __tstate = wxPyBeginAllowThreads();
16642 result = ((wxLocale const *)arg1)->GetCanonicalName();
16643 wxPyEndAllowThreads(__tstate);
16644 if (PyErr_Occurred()) SWIG_fail;
16645 }
16646 {
16647 #if wxUSE_UNICODE
16648 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16649 #else
16650 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16651 #endif
16652 }
16653 return resultobj;
16654 fail:
16655 return NULL;
16656 }
16657
16658
16659 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16660 PyObject *resultobj = 0;
16661 wxString *arg1 = 0 ;
16662 bool temp1 = false ;
16663 PyObject * obj0 = 0 ;
16664 char * kwnames[] = {
16665 (char *) "prefix", NULL
16666 };
16667
16668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
16669 {
16670 arg1 = wxString_in_helper(obj0);
16671 if (arg1 == NULL) SWIG_fail;
16672 temp1 = true;
16673 }
16674 {
16675 PyThreadState* __tstate = wxPyBeginAllowThreads();
16676 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
16677 wxPyEndAllowThreads(__tstate);
16678 if (PyErr_Occurred()) SWIG_fail;
16679 }
16680 resultobj = SWIG_Py_Void();
16681 {
16682 if (temp1)
16683 delete arg1;
16684 }
16685 return resultobj;
16686 fail:
16687 {
16688 if (temp1)
16689 delete arg1;
16690 }
16691 return NULL;
16692 }
16693
16694
16695 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16696 PyObject *resultobj = 0;
16697 wxLocale *arg1 = (wxLocale *) 0 ;
16698 wxString *arg2 = 0 ;
16699 bool result;
16700 void *argp1 = 0 ;
16701 int res1 = 0 ;
16702 bool temp2 = false ;
16703 PyObject * obj0 = 0 ;
16704 PyObject * obj1 = 0 ;
16705 char * kwnames[] = {
16706 (char *) "self",(char *) "szDomain", NULL
16707 };
16708
16709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
16710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16711 if (!SWIG_IsOK(res1)) {
16712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
16713 }
16714 arg1 = reinterpret_cast< wxLocale * >(argp1);
16715 {
16716 arg2 = wxString_in_helper(obj1);
16717 if (arg2 == NULL) SWIG_fail;
16718 temp2 = true;
16719 }
16720 {
16721 PyThreadState* __tstate = wxPyBeginAllowThreads();
16722 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
16723 wxPyEndAllowThreads(__tstate);
16724 if (PyErr_Occurred()) SWIG_fail;
16725 }
16726 {
16727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16728 }
16729 {
16730 if (temp2)
16731 delete arg2;
16732 }
16733 return resultobj;
16734 fail:
16735 {
16736 if (temp2)
16737 delete arg2;
16738 }
16739 return NULL;
16740 }
16741
16742
16743 SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16744 PyObject *resultobj = 0;
16745 int arg1 ;
16746 bool result;
16747 int val1 ;
16748 int ecode1 = 0 ;
16749 PyObject * obj0 = 0 ;
16750 char * kwnames[] = {
16751 (char *) "lang", NULL
16752 };
16753
16754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail;
16755 ecode1 = SWIG_AsVal_int(obj0, &val1);
16756 if (!SWIG_IsOK(ecode1)) {
16757 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'");
16758 }
16759 arg1 = static_cast< int >(val1);
16760 {
16761 PyThreadState* __tstate = wxPyBeginAllowThreads();
16762 result = (bool)wxLocale::IsAvailable(arg1);
16763 wxPyEndAllowThreads(__tstate);
16764 if (PyErr_Occurred()) SWIG_fail;
16765 }
16766 {
16767 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16768 }
16769 return resultobj;
16770 fail:
16771 return NULL;
16772 }
16773
16774
16775 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16776 PyObject *resultobj = 0;
16777 wxLocale *arg1 = (wxLocale *) 0 ;
16778 wxString *arg2 = 0 ;
16779 bool result;
16780 void *argp1 = 0 ;
16781 int res1 = 0 ;
16782 bool temp2 = false ;
16783 PyObject * obj0 = 0 ;
16784 PyObject * obj1 = 0 ;
16785 char * kwnames[] = {
16786 (char *) "self",(char *) "szDomain", NULL
16787 };
16788
16789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
16790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16791 if (!SWIG_IsOK(res1)) {
16792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
16793 }
16794 arg1 = reinterpret_cast< wxLocale * >(argp1);
16795 {
16796 arg2 = wxString_in_helper(obj1);
16797 if (arg2 == NULL) SWIG_fail;
16798 temp2 = true;
16799 }
16800 {
16801 PyThreadState* __tstate = wxPyBeginAllowThreads();
16802 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
16803 wxPyEndAllowThreads(__tstate);
16804 if (PyErr_Occurred()) SWIG_fail;
16805 }
16806 {
16807 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16808 }
16809 {
16810 if (temp2)
16811 delete arg2;
16812 }
16813 return resultobj;
16814 fail:
16815 {
16816 if (temp2)
16817 delete arg2;
16818 }
16819 return NULL;
16820 }
16821
16822
16823 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16824 PyObject *resultobj = 0;
16825 int arg1 ;
16826 wxLanguageInfo *result = 0 ;
16827 int val1 ;
16828 int ecode1 = 0 ;
16829 PyObject * obj0 = 0 ;
16830 char * kwnames[] = {
16831 (char *) "lang", NULL
16832 };
16833
16834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
16835 ecode1 = SWIG_AsVal_int(obj0, &val1);
16836 if (!SWIG_IsOK(ecode1)) {
16837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
16838 }
16839 arg1 = static_cast< int >(val1);
16840 {
16841 PyThreadState* __tstate = wxPyBeginAllowThreads();
16842 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
16843 wxPyEndAllowThreads(__tstate);
16844 if (PyErr_Occurred()) SWIG_fail;
16845 }
16846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16847 return resultobj;
16848 fail:
16849 return NULL;
16850 }
16851
16852
16853 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16854 PyObject *resultobj = 0;
16855 int arg1 ;
16856 wxString result;
16857 int val1 ;
16858 int ecode1 = 0 ;
16859 PyObject * obj0 = 0 ;
16860 char * kwnames[] = {
16861 (char *) "lang", NULL
16862 };
16863
16864 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
16865 ecode1 = SWIG_AsVal_int(obj0, &val1);
16866 if (!SWIG_IsOK(ecode1)) {
16867 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
16868 }
16869 arg1 = static_cast< int >(val1);
16870 {
16871 PyThreadState* __tstate = wxPyBeginAllowThreads();
16872 result = wxLocale::GetLanguageName(arg1);
16873 wxPyEndAllowThreads(__tstate);
16874 if (PyErr_Occurred()) SWIG_fail;
16875 }
16876 {
16877 #if wxUSE_UNICODE
16878 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
16879 #else
16880 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
16881 #endif
16882 }
16883 return resultobj;
16884 fail:
16885 return NULL;
16886 }
16887
16888
16889 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16890 PyObject *resultobj = 0;
16891 wxString *arg1 = 0 ;
16892 wxLanguageInfo *result = 0 ;
16893 bool temp1 = false ;
16894 PyObject * obj0 = 0 ;
16895 char * kwnames[] = {
16896 (char *) "locale", NULL
16897 };
16898
16899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
16900 {
16901 arg1 = wxString_in_helper(obj0);
16902 if (arg1 == NULL) SWIG_fail;
16903 temp1 = true;
16904 }
16905 {
16906 PyThreadState* __tstate = wxPyBeginAllowThreads();
16907 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
16908 wxPyEndAllowThreads(__tstate);
16909 if (PyErr_Occurred()) SWIG_fail;
16910 }
16911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
16912 {
16913 if (temp1)
16914 delete arg1;
16915 }
16916 return resultobj;
16917 fail:
16918 {
16919 if (temp1)
16920 delete arg1;
16921 }
16922 return NULL;
16923 }
16924
16925
16926 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16927 PyObject *resultobj = 0;
16928 wxLanguageInfo *arg1 = 0 ;
16929 void *argp1 = 0 ;
16930 int res1 = 0 ;
16931 PyObject * obj0 = 0 ;
16932 char * kwnames[] = {
16933 (char *) "info", NULL
16934 };
16935
16936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
16937 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
16938 if (!SWIG_IsOK(res1)) {
16939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16940 }
16941 if (!argp1) {
16942 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
16943 }
16944 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
16945 {
16946 PyThreadState* __tstate = wxPyBeginAllowThreads();
16947 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
16948 wxPyEndAllowThreads(__tstate);
16949 if (PyErr_Occurred()) SWIG_fail;
16950 }
16951 resultobj = SWIG_Py_Void();
16952 return resultobj;
16953 fail:
16954 return NULL;
16955 }
16956
16957
16958 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16959 PyObject *resultobj = 0;
16960 wxLocale *arg1 = (wxLocale *) 0 ;
16961 wxString *arg2 = 0 ;
16962 wxString const &arg3_defvalue = wxPyEmptyString ;
16963 wxString *arg3 = (wxString *) &arg3_defvalue ;
16964 wxString result;
16965 void *argp1 = 0 ;
16966 int res1 = 0 ;
16967 bool temp2 = false ;
16968 bool temp3 = false ;
16969 PyObject * obj0 = 0 ;
16970 PyObject * obj1 = 0 ;
16971 PyObject * obj2 = 0 ;
16972 char * kwnames[] = {
16973 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
16974 };
16975
16976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
16978 if (!SWIG_IsOK(res1)) {
16979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
16980 }
16981 arg1 = reinterpret_cast< wxLocale * >(argp1);
16982 {
16983 arg2 = wxString_in_helper(obj1);
16984 if (arg2 == NULL) SWIG_fail;
16985 temp2 = true;
16986 }
16987 if (obj2) {
16988 {
16989 arg3 = wxString_in_helper(obj2);
16990 if (arg3 == NULL) SWIG_fail;
16991 temp3 = true;
16992 }
16993 }
16994 {
16995 PyThreadState* __tstate = wxPyBeginAllowThreads();
16996 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
16997 wxPyEndAllowThreads(__tstate);
16998 if (PyErr_Occurred()) SWIG_fail;
16999 }
17000 {
17001 #if wxUSE_UNICODE
17002 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17003 #else
17004 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17005 #endif
17006 }
17007 {
17008 if (temp2)
17009 delete arg2;
17010 }
17011 {
17012 if (temp3)
17013 delete arg3;
17014 }
17015 return resultobj;
17016 fail:
17017 {
17018 if (temp2)
17019 delete arg2;
17020 }
17021 {
17022 if (temp3)
17023 delete arg3;
17024 }
17025 return NULL;
17026 }
17027
17028
17029 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17030 PyObject *resultobj = 0;
17031 wxLocale *arg1 = (wxLocale *) 0 ;
17032 wxString *result = 0 ;
17033 void *argp1 = 0 ;
17034 int res1 = 0 ;
17035 PyObject *swig_obj[1] ;
17036
17037 if (!args) SWIG_fail;
17038 swig_obj[0] = args;
17039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
17040 if (!SWIG_IsOK(res1)) {
17041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
17042 }
17043 arg1 = reinterpret_cast< wxLocale * >(argp1);
17044 {
17045 PyThreadState* __tstate = wxPyBeginAllowThreads();
17046 {
17047 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
17048 result = (wxString *) &_result_ref;
17049 }
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
17053 {
17054 #if wxUSE_UNICODE
17055 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
17056 #else
17057 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
17058 #endif
17059 }
17060 return resultobj;
17061 fail:
17062 return NULL;
17063 }
17064
17065
17066 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17067 PyObject *obj;
17068 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17069 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
17070 return SWIG_Py_Void();
17071 }
17072
17073 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17074 return SWIG_Python_InitShadowInstance(args);
17075 }
17076
17077 SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17078 PyObject *resultobj = 0;
17079 int arg1 = (int) -1 ;
17080 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
17081 wxPyLocale *result = 0 ;
17082 int val1 ;
17083 int ecode1 = 0 ;
17084 int val2 ;
17085 int ecode2 = 0 ;
17086 PyObject * obj0 = 0 ;
17087 PyObject * obj1 = 0 ;
17088 char * kwnames[] = {
17089 (char *) "language",(char *) "flags", NULL
17090 };
17091
17092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail;
17093 if (obj0) {
17094 ecode1 = SWIG_AsVal_int(obj0, &val1);
17095 if (!SWIG_IsOK(ecode1)) {
17096 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'");
17097 }
17098 arg1 = static_cast< int >(val1);
17099 }
17100 if (obj1) {
17101 ecode2 = SWIG_AsVal_int(obj1, &val2);
17102 if (!SWIG_IsOK(ecode2)) {
17103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'");
17104 }
17105 arg2 = static_cast< int >(val2);
17106 }
17107 {
17108 PyThreadState* __tstate = wxPyBeginAllowThreads();
17109 result = (wxPyLocale *)new_wxPyLocale(arg1,arg2);
17110 wxPyEndAllowThreads(__tstate);
17111 if (PyErr_Occurred()) SWIG_fail;
17112 }
17113 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 );
17114 return resultobj;
17115 fail:
17116 return NULL;
17117 }
17118
17119
17120 SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17121 PyObject *resultobj = 0;
17122 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17123 void *argp1 = 0 ;
17124 int res1 = 0 ;
17125 PyObject *swig_obj[1] ;
17126
17127 if (!args) SWIG_fail;
17128 swig_obj[0] = args;
17129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 );
17130 if (!SWIG_IsOK(res1)) {
17131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17132 }
17133 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17134 {
17135 PyThreadState* __tstate = wxPyBeginAllowThreads();
17136 delete arg1;
17137
17138 wxPyEndAllowThreads(__tstate);
17139 if (PyErr_Occurred()) SWIG_fail;
17140 }
17141 resultobj = SWIG_Py_Void();
17142 return resultobj;
17143 fail:
17144 return NULL;
17145 }
17146
17147
17148 SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17149 PyObject *resultobj = 0;
17150 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17151 PyObject *arg2 = (PyObject *) 0 ;
17152 PyObject *arg3 = (PyObject *) 0 ;
17153 void *argp1 = 0 ;
17154 int res1 = 0 ;
17155 PyObject * obj0 = 0 ;
17156 PyObject * obj1 = 0 ;
17157 PyObject * obj2 = 0 ;
17158 char * kwnames[] = {
17159 (char *) "self",(char *) "self",(char *) "_class", NULL
17160 };
17161
17162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17164 if (!SWIG_IsOK(res1)) {
17165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'");
17166 }
17167 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17168 arg2 = obj1;
17169 arg3 = obj2;
17170 {
17171 PyThreadState* __tstate = wxPyBeginAllowThreads();
17172 (arg1)->_setCallbackInfo(arg2,arg3);
17173 wxPyEndAllowThreads(__tstate);
17174 if (PyErr_Occurred()) SWIG_fail;
17175 }
17176 resultobj = SWIG_Py_Void();
17177 return resultobj;
17178 fail:
17179 return NULL;
17180 }
17181
17182
17183 SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17184 PyObject *resultobj = 0;
17185 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17186 wxChar *arg2 = (wxChar *) 0 ;
17187 wxChar *arg3 = (wxChar *) NULL ;
17188 wxChar *result = 0 ;
17189 void *argp1 = 0 ;
17190 int res1 = 0 ;
17191 void *argp2 = 0 ;
17192 int res2 = 0 ;
17193 void *argp3 = 0 ;
17194 int res3 = 0 ;
17195 PyObject * obj0 = 0 ;
17196 PyObject * obj1 = 0 ;
17197 PyObject * obj2 = 0 ;
17198 char * kwnames[] = {
17199 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
17200 };
17201
17202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17204 if (!SWIG_IsOK(res1)) {
17205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17206 }
17207 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17208 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17209 if (!SWIG_IsOK(res2)) {
17210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'");
17211 }
17212 arg2 = reinterpret_cast< wxChar * >(argp2);
17213 if (obj2) {
17214 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17215 if (!SWIG_IsOK(res3)) {
17216 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'");
17217 }
17218 arg3 = reinterpret_cast< wxChar * >(argp3);
17219 }
17220 {
17221 PyThreadState* __tstate = wxPyBeginAllowThreads();
17222 result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3);
17223 wxPyEndAllowThreads(__tstate);
17224 if (PyErr_Occurred()) SWIG_fail;
17225 }
17226 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17227 return resultobj;
17228 fail:
17229 return NULL;
17230 }
17231
17232
17233 SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17234 PyObject *resultobj = 0;
17235 wxPyLocale *arg1 = (wxPyLocale *) 0 ;
17236 wxChar *arg2 = (wxChar *) 0 ;
17237 wxChar *arg3 = (wxChar *) 0 ;
17238 size_t arg4 ;
17239 wxChar *arg5 = (wxChar *) NULL ;
17240 wxChar *result = 0 ;
17241 void *argp1 = 0 ;
17242 int res1 = 0 ;
17243 void *argp2 = 0 ;
17244 int res2 = 0 ;
17245 void *argp3 = 0 ;
17246 int res3 = 0 ;
17247 size_t val4 ;
17248 int ecode4 = 0 ;
17249 void *argp5 = 0 ;
17250 int res5 = 0 ;
17251 PyObject * obj0 = 0 ;
17252 PyObject * obj1 = 0 ;
17253 PyObject * obj2 = 0 ;
17254 PyObject * obj3 = 0 ;
17255 PyObject * obj4 = 0 ;
17256 char * kwnames[] = {
17257 (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL
17258 };
17259
17260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 );
17262 if (!SWIG_IsOK(res1)) {
17263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'");
17264 }
17265 arg1 = reinterpret_cast< wxPyLocale * >(argp1);
17266 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 );
17267 if (!SWIG_IsOK(res2)) {
17268 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'");
17269 }
17270 arg2 = reinterpret_cast< wxChar * >(argp2);
17271 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 );
17272 if (!SWIG_IsOK(res3)) {
17273 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'");
17274 }
17275 arg3 = reinterpret_cast< wxChar * >(argp3);
17276 ecode4 = SWIG_AsVal_size_t(obj3, &val4);
17277 if (!SWIG_IsOK(ecode4)) {
17278 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'");
17279 }
17280 arg4 = static_cast< size_t >(val4);
17281 if (obj4) {
17282 res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 );
17283 if (!SWIG_IsOK(res5)) {
17284 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'");
17285 }
17286 arg5 = reinterpret_cast< wxChar * >(argp5);
17287 }
17288 {
17289 PyThreadState* __tstate = wxPyBeginAllowThreads();
17290 result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5);
17291 wxPyEndAllowThreads(__tstate);
17292 if (PyErr_Occurred()) SWIG_fail;
17293 }
17294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 );
17295 return resultobj;
17296 fail:
17297 return NULL;
17298 }
17299
17300
17301 SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17302 PyObject *obj;
17303 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17304 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj));
17305 return SWIG_Py_Void();
17306 }
17307
17308 SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17309 return SWIG_Python_InitShadowInstance(args);
17310 }
17311
17312 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17313 PyObject *resultobj = 0;
17314 wxLocale *result = 0 ;
17315
17316 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
17317 {
17318 PyThreadState* __tstate = wxPyBeginAllowThreads();
17319 result = (wxLocale *)wxGetLocale();
17320 wxPyEndAllowThreads(__tstate);
17321 if (PyErr_Occurred()) SWIG_fail;
17322 }
17323 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
17324 return resultobj;
17325 fail:
17326 return NULL;
17327 }
17328
17329
17330 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17331 PyObject *resultobj = 0;
17332 wxString *arg1 = 0 ;
17333 wxString result;
17334 bool temp1 = false ;
17335
17336 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
17337 {
17338 arg1 = wxString_in_helper(swig_obj[0]);
17339 if (arg1 == NULL) SWIG_fail;
17340 temp1 = true;
17341 }
17342 {
17343 PyThreadState* __tstate = wxPyBeginAllowThreads();
17344 result = wxGetTranslation((wxString const &)*arg1);
17345 wxPyEndAllowThreads(__tstate);
17346 if (PyErr_Occurred()) SWIG_fail;
17347 }
17348 {
17349 #if wxUSE_UNICODE
17350 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17351 #else
17352 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17353 #endif
17354 }
17355 {
17356 if (temp1)
17357 delete arg1;
17358 }
17359 return resultobj;
17360 fail:
17361 {
17362 if (temp1)
17363 delete arg1;
17364 }
17365 return NULL;
17366 }
17367
17368
17369 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17370 PyObject *resultobj = 0;
17371 wxString *arg1 = 0 ;
17372 wxString *arg2 = 0 ;
17373 wxString result;
17374 bool temp1 = false ;
17375 bool temp2 = false ;
17376
17377 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
17378 {
17379 arg1 = wxString_in_helper(swig_obj[0]);
17380 if (arg1 == NULL) SWIG_fail;
17381 temp1 = true;
17382 }
17383 {
17384 arg2 = wxString_in_helper(swig_obj[1]);
17385 if (arg2 == NULL) SWIG_fail;
17386 temp2 = true;
17387 }
17388 {
17389 PyThreadState* __tstate = wxPyBeginAllowThreads();
17390 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2);
17391 wxPyEndAllowThreads(__tstate);
17392 if (PyErr_Occurred()) SWIG_fail;
17393 }
17394 {
17395 #if wxUSE_UNICODE
17396 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17397 #else
17398 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17399 #endif
17400 }
17401 {
17402 if (temp1)
17403 delete arg1;
17404 }
17405 {
17406 if (temp2)
17407 delete arg2;
17408 }
17409 return resultobj;
17410 fail:
17411 {
17412 if (temp1)
17413 delete arg1;
17414 }
17415 {
17416 if (temp2)
17417 delete arg2;
17418 }
17419 return NULL;
17420 }
17421
17422
17423 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17424 PyObject *resultobj = 0;
17425 wxString *arg1 = 0 ;
17426 wxString *arg2 = 0 ;
17427 size_t arg3 ;
17428 wxString result;
17429 bool temp1 = false ;
17430 bool temp2 = false ;
17431 size_t val3 ;
17432 int ecode3 = 0 ;
17433
17434 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
17435 {
17436 arg1 = wxString_in_helper(swig_obj[0]);
17437 if (arg1 == NULL) SWIG_fail;
17438 temp1 = true;
17439 }
17440 {
17441 arg2 = wxString_in_helper(swig_obj[1]);
17442 if (arg2 == NULL) SWIG_fail;
17443 temp2 = true;
17444 }
17445 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17446 if (!SWIG_IsOK(ecode3)) {
17447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17448 }
17449 arg3 = static_cast< size_t >(val3);
17450 {
17451 PyThreadState* __tstate = wxPyBeginAllowThreads();
17452 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
17453 wxPyEndAllowThreads(__tstate);
17454 if (PyErr_Occurred()) SWIG_fail;
17455 }
17456 {
17457 #if wxUSE_UNICODE
17458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17459 #else
17460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17461 #endif
17462 }
17463 {
17464 if (temp1)
17465 delete arg1;
17466 }
17467 {
17468 if (temp2)
17469 delete arg2;
17470 }
17471 return resultobj;
17472 fail:
17473 {
17474 if (temp1)
17475 delete arg1;
17476 }
17477 {
17478 if (temp2)
17479 delete arg2;
17480 }
17481 return NULL;
17482 }
17483
17484
17485 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
17486 PyObject *resultobj = 0;
17487 wxString *arg1 = 0 ;
17488 wxString *arg2 = 0 ;
17489 size_t arg3 ;
17490 wxString *arg4 = 0 ;
17491 wxString result;
17492 bool temp1 = false ;
17493 bool temp2 = false ;
17494 size_t val3 ;
17495 int ecode3 = 0 ;
17496 bool temp4 = false ;
17497
17498 if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
17499 {
17500 arg1 = wxString_in_helper(swig_obj[0]);
17501 if (arg1 == NULL) SWIG_fail;
17502 temp1 = true;
17503 }
17504 {
17505 arg2 = wxString_in_helper(swig_obj[1]);
17506 if (arg2 == NULL) SWIG_fail;
17507 temp2 = true;
17508 }
17509 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
17510 if (!SWIG_IsOK(ecode3)) {
17511 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
17512 }
17513 arg3 = static_cast< size_t >(val3);
17514 {
17515 arg4 = wxString_in_helper(swig_obj[3]);
17516 if (arg4 == NULL) SWIG_fail;
17517 temp4 = true;
17518 }
17519 {
17520 PyThreadState* __tstate = wxPyBeginAllowThreads();
17521 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4);
17522 wxPyEndAllowThreads(__tstate);
17523 if (PyErr_Occurred()) SWIG_fail;
17524 }
17525 {
17526 #if wxUSE_UNICODE
17527 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17528 #else
17529 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17530 #endif
17531 }
17532 {
17533 if (temp1)
17534 delete arg1;
17535 }
17536 {
17537 if (temp2)
17538 delete arg2;
17539 }
17540 {
17541 if (temp4)
17542 delete arg4;
17543 }
17544 return resultobj;
17545 fail:
17546 {
17547 if (temp1)
17548 delete arg1;
17549 }
17550 {
17551 if (temp2)
17552 delete arg2;
17553 }
17554 {
17555 if (temp4)
17556 delete arg4;
17557 }
17558 return NULL;
17559 }
17560
17561
17562 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
17563 int argc;
17564 PyObject *argv[5];
17565
17566 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail;
17567 --argc;
17568 if (argc == 1) {
17569 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
17570 }
17571 if (argc == 2) {
17572 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
17573 }
17574 if (argc == 3) {
17575 return _wrap_GetTranslation__SWIG_2(self, argc, argv);
17576 }
17577 if (argc == 4) {
17578 return _wrap_GetTranslation__SWIG_3(self, argc, argv);
17579 }
17580
17581 fail:
17582 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
17583 return NULL;
17584 }
17585
17586
17587 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17588 PyObject *resultobj = 0;
17589 wxEncodingConverter *result = 0 ;
17590
17591 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
17592 {
17593 PyThreadState* __tstate = wxPyBeginAllowThreads();
17594 result = (wxEncodingConverter *)new wxEncodingConverter();
17595 wxPyEndAllowThreads(__tstate);
17596 if (PyErr_Occurred()) SWIG_fail;
17597 }
17598 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
17599 return resultobj;
17600 fail:
17601 return NULL;
17602 }
17603
17604
17605 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17606 PyObject *resultobj = 0;
17607 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17608 void *argp1 = 0 ;
17609 int res1 = 0 ;
17610 PyObject *swig_obj[1] ;
17611
17612 if (!args) SWIG_fail;
17613 swig_obj[0] = args;
17614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
17615 if (!SWIG_IsOK(res1)) {
17616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17617 }
17618 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17619 {
17620 PyThreadState* __tstate = wxPyBeginAllowThreads();
17621 delete arg1;
17622
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_Py_Void();
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17634 PyObject *resultobj = 0;
17635 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17636 wxFontEncoding arg2 ;
17637 wxFontEncoding arg3 ;
17638 int arg4 = (int) wxCONVERT_STRICT ;
17639 bool result;
17640 void *argp1 = 0 ;
17641 int res1 = 0 ;
17642 int val2 ;
17643 int ecode2 = 0 ;
17644 int val3 ;
17645 int ecode3 = 0 ;
17646 int val4 ;
17647 int ecode4 = 0 ;
17648 PyObject * obj0 = 0 ;
17649 PyObject * obj1 = 0 ;
17650 PyObject * obj2 = 0 ;
17651 PyObject * obj3 = 0 ;
17652 char * kwnames[] = {
17653 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
17654 };
17655
17656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17658 if (!SWIG_IsOK(res1)) {
17659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17660 }
17661 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17662 ecode2 = SWIG_AsVal_int(obj1, &val2);
17663 if (!SWIG_IsOK(ecode2)) {
17664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17665 }
17666 arg2 = static_cast< wxFontEncoding >(val2);
17667 ecode3 = SWIG_AsVal_int(obj2, &val3);
17668 if (!SWIG_IsOK(ecode3)) {
17669 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
17670 }
17671 arg3 = static_cast< wxFontEncoding >(val3);
17672 if (obj3) {
17673 ecode4 = SWIG_AsVal_int(obj3, &val4);
17674 if (!SWIG_IsOK(ecode4)) {
17675 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
17676 }
17677 arg4 = static_cast< int >(val4);
17678 }
17679 {
17680 PyThreadState* __tstate = wxPyBeginAllowThreads();
17681 result = (bool)(arg1)->Init(arg2,arg3,arg4);
17682 wxPyEndAllowThreads(__tstate);
17683 if (PyErr_Occurred()) SWIG_fail;
17684 }
17685 {
17686 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17687 }
17688 return resultobj;
17689 fail:
17690 return NULL;
17691 }
17692
17693
17694 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17695 PyObject *resultobj = 0;
17696 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
17697 wxString *arg2 = 0 ;
17698 wxString result;
17699 void *argp1 = 0 ;
17700 int res1 = 0 ;
17701 bool temp2 = false ;
17702 PyObject * obj0 = 0 ;
17703 PyObject * obj1 = 0 ;
17704 char * kwnames[] = {
17705 (char *) "self",(char *) "input", NULL
17706 };
17707
17708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
17709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
17710 if (!SWIG_IsOK(res1)) {
17711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
17712 }
17713 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
17714 {
17715 arg2 = wxString_in_helper(obj1);
17716 if (arg2 == NULL) SWIG_fail;
17717 temp2 = true;
17718 }
17719 {
17720 PyThreadState* __tstate = wxPyBeginAllowThreads();
17721 result = (arg1)->Convert((wxString const &)*arg2);
17722 wxPyEndAllowThreads(__tstate);
17723 if (PyErr_Occurred()) SWIG_fail;
17724 }
17725 {
17726 #if wxUSE_UNICODE
17727 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
17728 #else
17729 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
17730 #endif
17731 }
17732 {
17733 if (temp2)
17734 delete arg2;
17735 }
17736 return resultobj;
17737 fail:
17738 {
17739 if (temp2)
17740 delete arg2;
17741 }
17742 return NULL;
17743 }
17744
17745
17746 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17747 PyObject *resultobj = 0;
17748 wxFontEncoding arg1 ;
17749 int arg2 = (int) wxPLATFORM_CURRENT ;
17750 wxFontEncodingArray result;
17751 int val1 ;
17752 int ecode1 = 0 ;
17753 int val2 ;
17754 int ecode2 = 0 ;
17755 PyObject * obj0 = 0 ;
17756 PyObject * obj1 = 0 ;
17757 char * kwnames[] = {
17758 (char *) "enc",(char *) "platform", NULL
17759 };
17760
17761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
17762 ecode1 = SWIG_AsVal_int(obj0, &val1);
17763 if (!SWIG_IsOK(ecode1)) {
17764 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17765 }
17766 arg1 = static_cast< wxFontEncoding >(val1);
17767 if (obj1) {
17768 ecode2 = SWIG_AsVal_int(obj1, &val2);
17769 if (!SWIG_IsOK(ecode2)) {
17770 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
17771 }
17772 arg2 = static_cast< int >(val2);
17773 }
17774 {
17775 PyThreadState* __tstate = wxPyBeginAllowThreads();
17776 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
17777 wxPyEndAllowThreads(__tstate);
17778 if (PyErr_Occurred()) SWIG_fail;
17779 }
17780 {
17781 resultobj = PyList_New(0);
17782 for (size_t i=0; i < (&result)->GetCount(); i++) {
17783 PyObject* number = PyInt_FromLong((&result)->Item(i));
17784 PyList_Append(resultobj, number);
17785 Py_DECREF(number);
17786 }
17787 }
17788 return resultobj;
17789 fail:
17790 return NULL;
17791 }
17792
17793
17794 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17795 PyObject *resultobj = 0;
17796 wxFontEncoding arg1 ;
17797 wxFontEncodingArray result;
17798 int val1 ;
17799 int ecode1 = 0 ;
17800 PyObject * obj0 = 0 ;
17801 char * kwnames[] = {
17802 (char *) "enc", NULL
17803 };
17804
17805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
17806 ecode1 = SWIG_AsVal_int(obj0, &val1);
17807 if (!SWIG_IsOK(ecode1)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17809 }
17810 arg1 = static_cast< wxFontEncoding >(val1);
17811 {
17812 PyThreadState* __tstate = wxPyBeginAllowThreads();
17813 result = wxEncodingConverter::GetAllEquivalents(arg1);
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 {
17818 resultobj = PyList_New(0);
17819 for (size_t i=0; i < (&result)->GetCount(); i++) {
17820 PyObject* number = PyInt_FromLong((&result)->Item(i));
17821 PyList_Append(resultobj, number);
17822 Py_DECREF(number);
17823 }
17824 }
17825 return resultobj;
17826 fail:
17827 return NULL;
17828 }
17829
17830
17831 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17832 PyObject *resultobj = 0;
17833 wxFontEncoding arg1 ;
17834 wxFontEncoding arg2 ;
17835 bool result;
17836 int val1 ;
17837 int ecode1 = 0 ;
17838 int val2 ;
17839 int ecode2 = 0 ;
17840 PyObject * obj0 = 0 ;
17841 PyObject * obj1 = 0 ;
17842 char * kwnames[] = {
17843 (char *) "encIn",(char *) "encOut", NULL
17844 };
17845
17846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
17847 ecode1 = SWIG_AsVal_int(obj0, &val1);
17848 if (!SWIG_IsOK(ecode1)) {
17849 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
17850 }
17851 arg1 = static_cast< wxFontEncoding >(val1);
17852 ecode2 = SWIG_AsVal_int(obj1, &val2);
17853 if (!SWIG_IsOK(ecode2)) {
17854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
17855 }
17856 arg2 = static_cast< wxFontEncoding >(val2);
17857 {
17858 PyThreadState* __tstate = wxPyBeginAllowThreads();
17859 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
17860 wxPyEndAllowThreads(__tstate);
17861 if (PyErr_Occurred()) SWIG_fail;
17862 }
17863 {
17864 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17865 }
17866 return resultobj;
17867 fail:
17868 return NULL;
17869 }
17870
17871
17872 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17873 PyObject *obj;
17874 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
17875 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
17876 return SWIG_Py_Void();
17877 }
17878
17879 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17880 return SWIG_Python_InitShadowInstance(args);
17881 }
17882
17883 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17884 PyObject *resultobj = 0;
17885 wxDC *arg1 = (wxDC *) 0 ;
17886 void *argp1 = 0 ;
17887 int res1 = 0 ;
17888 PyObject *swig_obj[1] ;
17889
17890 if (!args) SWIG_fail;
17891 swig_obj[0] = args;
17892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
17893 if (!SWIG_IsOK(res1)) {
17894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
17895 }
17896 arg1 = reinterpret_cast< wxDC * >(argp1);
17897 {
17898 PyThreadState* __tstate = wxPyBeginAllowThreads();
17899 delete arg1;
17900
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 resultobj = SWIG_Py_Void();
17905 return resultobj;
17906 fail:
17907 return NULL;
17908 }
17909
17910
17911 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17912 PyObject *resultobj = 0;
17913 wxDC *arg1 = (wxDC *) 0 ;
17914 int arg2 ;
17915 int arg3 ;
17916 wxColour *arg4 = 0 ;
17917 int arg5 = (int) wxFLOOD_SURFACE ;
17918 bool result;
17919 void *argp1 = 0 ;
17920 int res1 = 0 ;
17921 int val2 ;
17922 int ecode2 = 0 ;
17923 int val3 ;
17924 int ecode3 = 0 ;
17925 wxColour temp4 ;
17926 int val5 ;
17927 int ecode5 = 0 ;
17928 PyObject * obj0 = 0 ;
17929 PyObject * obj1 = 0 ;
17930 PyObject * obj2 = 0 ;
17931 PyObject * obj3 = 0 ;
17932 PyObject * obj4 = 0 ;
17933 char * kwnames[] = {
17934 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
17935 };
17936
17937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17939 if (!SWIG_IsOK(res1)) {
17940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
17941 }
17942 arg1 = reinterpret_cast< wxDC * >(argp1);
17943 ecode2 = SWIG_AsVal_int(obj1, &val2);
17944 if (!SWIG_IsOK(ecode2)) {
17945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
17946 }
17947 arg2 = static_cast< int >(val2);
17948 ecode3 = SWIG_AsVal_int(obj2, &val3);
17949 if (!SWIG_IsOK(ecode3)) {
17950 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
17951 }
17952 arg3 = static_cast< int >(val3);
17953 {
17954 arg4 = &temp4;
17955 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
17956 }
17957 if (obj4) {
17958 ecode5 = SWIG_AsVal_int(obj4, &val5);
17959 if (!SWIG_IsOK(ecode5)) {
17960 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
17961 }
17962 arg5 = static_cast< int >(val5);
17963 }
17964 {
17965 PyThreadState* __tstate = wxPyBeginAllowThreads();
17966 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
17967 wxPyEndAllowThreads(__tstate);
17968 if (PyErr_Occurred()) SWIG_fail;
17969 }
17970 {
17971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17972 }
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj = 0;
17981 wxDC *arg1 = (wxDC *) 0 ;
17982 wxPoint *arg2 = 0 ;
17983 wxColour *arg3 = 0 ;
17984 int arg4 = (int) wxFLOOD_SURFACE ;
17985 bool result;
17986 void *argp1 = 0 ;
17987 int res1 = 0 ;
17988 wxPoint temp2 ;
17989 wxColour temp3 ;
17990 int val4 ;
17991 int ecode4 = 0 ;
17992 PyObject * obj0 = 0 ;
17993 PyObject * obj1 = 0 ;
17994 PyObject * obj2 = 0 ;
17995 PyObject * obj3 = 0 ;
17996 char * kwnames[] = {
17997 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
17998 };
17999
18000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18002 if (!SWIG_IsOK(res1)) {
18003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18004 }
18005 arg1 = reinterpret_cast< wxDC * >(argp1);
18006 {
18007 arg2 = &temp2;
18008 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18009 }
18010 {
18011 arg3 = &temp3;
18012 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18013 }
18014 if (obj3) {
18015 ecode4 = SWIG_AsVal_int(obj3, &val4);
18016 if (!SWIG_IsOK(ecode4)) {
18017 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
18018 }
18019 arg4 = static_cast< int >(val4);
18020 }
18021 {
18022 PyThreadState* __tstate = wxPyBeginAllowThreads();
18023 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
18024 wxPyEndAllowThreads(__tstate);
18025 if (PyErr_Occurred()) SWIG_fail;
18026 }
18027 {
18028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18029 }
18030 return resultobj;
18031 fail:
18032 return NULL;
18033 }
18034
18035
18036 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18037 PyObject *resultobj = 0;
18038 wxDC *arg1 = (wxDC *) 0 ;
18039 wxRect *arg2 = 0 ;
18040 wxColour *arg3 = 0 ;
18041 wxColour *arg4 = 0 ;
18042 wxPoint *arg5 = 0 ;
18043 void *argp1 = 0 ;
18044 int res1 = 0 ;
18045 wxRect temp2 ;
18046 wxColour temp3 ;
18047 wxColour temp4 ;
18048 wxPoint temp5 ;
18049 PyObject * obj0 = 0 ;
18050 PyObject * obj1 = 0 ;
18051 PyObject * obj2 = 0 ;
18052 PyObject * obj3 = 0 ;
18053 PyObject * obj4 = 0 ;
18054 char * kwnames[] = {
18055 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
18056 };
18057
18058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18060 if (!SWIG_IsOK(res1)) {
18061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
18062 }
18063 arg1 = reinterpret_cast< wxDC * >(argp1);
18064 {
18065 arg2 = &temp2;
18066 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18067 }
18068 {
18069 arg3 = &temp3;
18070 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18071 }
18072 {
18073 arg4 = &temp4;
18074 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18075 }
18076 {
18077 arg5 = &temp5;
18078 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
18079 }
18080 {
18081 PyThreadState* __tstate = wxPyBeginAllowThreads();
18082 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
18083 wxPyEndAllowThreads(__tstate);
18084 if (PyErr_Occurred()) SWIG_fail;
18085 }
18086 resultobj = SWIG_Py_Void();
18087 return resultobj;
18088 fail:
18089 return NULL;
18090 }
18091
18092
18093 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18094 PyObject *resultobj = 0;
18095 wxDC *arg1 = (wxDC *) 0 ;
18096 wxRect *arg2 = 0 ;
18097 wxColour *arg3 = 0 ;
18098 wxColour *arg4 = 0 ;
18099 wxDirection arg5 = (wxDirection) wxEAST ;
18100 void *argp1 = 0 ;
18101 int res1 = 0 ;
18102 wxRect temp2 ;
18103 wxColour temp3 ;
18104 wxColour temp4 ;
18105 int val5 ;
18106 int ecode5 = 0 ;
18107 PyObject * obj0 = 0 ;
18108 PyObject * obj1 = 0 ;
18109 PyObject * obj2 = 0 ;
18110 PyObject * obj3 = 0 ;
18111 PyObject * obj4 = 0 ;
18112 char * kwnames[] = {
18113 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
18114 };
18115
18116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18118 if (!SWIG_IsOK(res1)) {
18119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
18120 }
18121 arg1 = reinterpret_cast< wxDC * >(argp1);
18122 {
18123 arg2 = &temp2;
18124 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18125 }
18126 {
18127 arg3 = &temp3;
18128 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
18129 }
18130 {
18131 arg4 = &temp4;
18132 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
18133 }
18134 if (obj4) {
18135 ecode5 = SWIG_AsVal_int(obj4, &val5);
18136 if (!SWIG_IsOK(ecode5)) {
18137 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
18138 }
18139 arg5 = static_cast< wxDirection >(val5);
18140 }
18141 {
18142 PyThreadState* __tstate = wxPyBeginAllowThreads();
18143 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
18144 wxPyEndAllowThreads(__tstate);
18145 if (PyErr_Occurred()) SWIG_fail;
18146 }
18147 resultobj = SWIG_Py_Void();
18148 return resultobj;
18149 fail:
18150 return NULL;
18151 }
18152
18153
18154 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18155 PyObject *resultobj = 0;
18156 wxDC *arg1 = (wxDC *) 0 ;
18157 int arg2 ;
18158 int arg3 ;
18159 wxColour result;
18160 void *argp1 = 0 ;
18161 int res1 = 0 ;
18162 int val2 ;
18163 int ecode2 = 0 ;
18164 int val3 ;
18165 int ecode3 = 0 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 PyObject * obj2 = 0 ;
18169 char * kwnames[] = {
18170 (char *) "self",(char *) "x",(char *) "y", NULL
18171 };
18172
18173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18175 if (!SWIG_IsOK(res1)) {
18176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
18177 }
18178 arg1 = reinterpret_cast< wxDC * >(argp1);
18179 ecode2 = SWIG_AsVal_int(obj1, &val2);
18180 if (!SWIG_IsOK(ecode2)) {
18181 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
18182 }
18183 arg2 = static_cast< int >(val2);
18184 ecode3 = SWIG_AsVal_int(obj2, &val3);
18185 if (!SWIG_IsOK(ecode3)) {
18186 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
18187 }
18188 arg3 = static_cast< int >(val3);
18189 {
18190 PyThreadState* __tstate = wxPyBeginAllowThreads();
18191 result = wxDC_GetPixel(arg1,arg2,arg3);
18192 wxPyEndAllowThreads(__tstate);
18193 if (PyErr_Occurred()) SWIG_fail;
18194 }
18195 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18196 return resultobj;
18197 fail:
18198 return NULL;
18199 }
18200
18201
18202 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18203 PyObject *resultobj = 0;
18204 wxDC *arg1 = (wxDC *) 0 ;
18205 wxPoint *arg2 = 0 ;
18206 wxColour result;
18207 void *argp1 = 0 ;
18208 int res1 = 0 ;
18209 wxPoint temp2 ;
18210 PyObject * obj0 = 0 ;
18211 PyObject * obj1 = 0 ;
18212 char * kwnames[] = {
18213 (char *) "self",(char *) "pt", NULL
18214 };
18215
18216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18218 if (!SWIG_IsOK(res1)) {
18219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18220 }
18221 arg1 = reinterpret_cast< wxDC * >(argp1);
18222 {
18223 arg2 = &temp2;
18224 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18225 }
18226 {
18227 PyThreadState* __tstate = wxPyBeginAllowThreads();
18228 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
18229 wxPyEndAllowThreads(__tstate);
18230 if (PyErr_Occurred()) SWIG_fail;
18231 }
18232 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
18233 return resultobj;
18234 fail:
18235 return NULL;
18236 }
18237
18238
18239 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18240 PyObject *resultobj = 0;
18241 wxDC *arg1 = (wxDC *) 0 ;
18242 int arg2 ;
18243 int arg3 ;
18244 int arg4 ;
18245 int arg5 ;
18246 void *argp1 = 0 ;
18247 int res1 = 0 ;
18248 int val2 ;
18249 int ecode2 = 0 ;
18250 int val3 ;
18251 int ecode3 = 0 ;
18252 int val4 ;
18253 int ecode4 = 0 ;
18254 int val5 ;
18255 int ecode5 = 0 ;
18256 PyObject * obj0 = 0 ;
18257 PyObject * obj1 = 0 ;
18258 PyObject * obj2 = 0 ;
18259 PyObject * obj3 = 0 ;
18260 PyObject * obj4 = 0 ;
18261 char * kwnames[] = {
18262 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
18263 };
18264
18265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18267 if (!SWIG_IsOK(res1)) {
18268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
18269 }
18270 arg1 = reinterpret_cast< wxDC * >(argp1);
18271 ecode2 = SWIG_AsVal_int(obj1, &val2);
18272 if (!SWIG_IsOK(ecode2)) {
18273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
18274 }
18275 arg2 = static_cast< int >(val2);
18276 ecode3 = SWIG_AsVal_int(obj2, &val3);
18277 if (!SWIG_IsOK(ecode3)) {
18278 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
18279 }
18280 arg3 = static_cast< int >(val3);
18281 ecode4 = SWIG_AsVal_int(obj3, &val4);
18282 if (!SWIG_IsOK(ecode4)) {
18283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
18284 }
18285 arg4 = static_cast< int >(val4);
18286 ecode5 = SWIG_AsVal_int(obj4, &val5);
18287 if (!SWIG_IsOK(ecode5)) {
18288 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
18289 }
18290 arg5 = static_cast< int >(val5);
18291 {
18292 PyThreadState* __tstate = wxPyBeginAllowThreads();
18293 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
18294 wxPyEndAllowThreads(__tstate);
18295 if (PyErr_Occurred()) SWIG_fail;
18296 }
18297 resultobj = SWIG_Py_Void();
18298 return resultobj;
18299 fail:
18300 return NULL;
18301 }
18302
18303
18304 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18305 PyObject *resultobj = 0;
18306 wxDC *arg1 = (wxDC *) 0 ;
18307 wxPoint *arg2 = 0 ;
18308 wxPoint *arg3 = 0 ;
18309 void *argp1 = 0 ;
18310 int res1 = 0 ;
18311 wxPoint temp2 ;
18312 wxPoint temp3 ;
18313 PyObject * obj0 = 0 ;
18314 PyObject * obj1 = 0 ;
18315 PyObject * obj2 = 0 ;
18316 char * kwnames[] = {
18317 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
18318 };
18319
18320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18322 if (!SWIG_IsOK(res1)) {
18323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
18324 }
18325 arg1 = reinterpret_cast< wxDC * >(argp1);
18326 {
18327 arg2 = &temp2;
18328 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18329 }
18330 {
18331 arg3 = &temp3;
18332 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18333 }
18334 {
18335 PyThreadState* __tstate = wxPyBeginAllowThreads();
18336 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
18337 wxPyEndAllowThreads(__tstate);
18338 if (PyErr_Occurred()) SWIG_fail;
18339 }
18340 resultobj = SWIG_Py_Void();
18341 return resultobj;
18342 fail:
18343 return NULL;
18344 }
18345
18346
18347 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18348 PyObject *resultobj = 0;
18349 wxDC *arg1 = (wxDC *) 0 ;
18350 int arg2 ;
18351 int arg3 ;
18352 void *argp1 = 0 ;
18353 int res1 = 0 ;
18354 int val2 ;
18355 int ecode2 = 0 ;
18356 int val3 ;
18357 int ecode3 = 0 ;
18358 PyObject * obj0 = 0 ;
18359 PyObject * obj1 = 0 ;
18360 PyObject * obj2 = 0 ;
18361 char * kwnames[] = {
18362 (char *) "self",(char *) "x",(char *) "y", NULL
18363 };
18364
18365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18367 if (!SWIG_IsOK(res1)) {
18368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
18369 }
18370 arg1 = reinterpret_cast< wxDC * >(argp1);
18371 ecode2 = SWIG_AsVal_int(obj1, &val2);
18372 if (!SWIG_IsOK(ecode2)) {
18373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
18374 }
18375 arg2 = static_cast< int >(val2);
18376 ecode3 = SWIG_AsVal_int(obj2, &val3);
18377 if (!SWIG_IsOK(ecode3)) {
18378 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
18379 }
18380 arg3 = static_cast< int >(val3);
18381 {
18382 PyThreadState* __tstate = wxPyBeginAllowThreads();
18383 (arg1)->CrossHair(arg2,arg3);
18384 wxPyEndAllowThreads(__tstate);
18385 if (PyErr_Occurred()) SWIG_fail;
18386 }
18387 resultobj = SWIG_Py_Void();
18388 return resultobj;
18389 fail:
18390 return NULL;
18391 }
18392
18393
18394 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18395 PyObject *resultobj = 0;
18396 wxDC *arg1 = (wxDC *) 0 ;
18397 wxPoint *arg2 = 0 ;
18398 void *argp1 = 0 ;
18399 int res1 = 0 ;
18400 wxPoint temp2 ;
18401 PyObject * obj0 = 0 ;
18402 PyObject * obj1 = 0 ;
18403 char * kwnames[] = {
18404 (char *) "self",(char *) "pt", NULL
18405 };
18406
18407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18409 if (!SWIG_IsOK(res1)) {
18410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18411 }
18412 arg1 = reinterpret_cast< wxDC * >(argp1);
18413 {
18414 arg2 = &temp2;
18415 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18416 }
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 (arg1)->CrossHair((wxPoint const &)*arg2);
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 resultobj = SWIG_Py_Void();
18424 return resultobj;
18425 fail:
18426 return NULL;
18427 }
18428
18429
18430 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj = 0;
18432 wxDC *arg1 = (wxDC *) 0 ;
18433 int arg2 ;
18434 int arg3 ;
18435 int arg4 ;
18436 int arg5 ;
18437 int arg6 ;
18438 int arg7 ;
18439 void *argp1 = 0 ;
18440 int res1 = 0 ;
18441 int val2 ;
18442 int ecode2 = 0 ;
18443 int val3 ;
18444 int ecode3 = 0 ;
18445 int val4 ;
18446 int ecode4 = 0 ;
18447 int val5 ;
18448 int ecode5 = 0 ;
18449 int val6 ;
18450 int ecode6 = 0 ;
18451 int val7 ;
18452 int ecode7 = 0 ;
18453 PyObject * obj0 = 0 ;
18454 PyObject * obj1 = 0 ;
18455 PyObject * obj2 = 0 ;
18456 PyObject * obj3 = 0 ;
18457 PyObject * obj4 = 0 ;
18458 PyObject * obj5 = 0 ;
18459 PyObject * obj6 = 0 ;
18460 char * kwnames[] = {
18461 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
18462 };
18463
18464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18466 if (!SWIG_IsOK(res1)) {
18467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
18468 }
18469 arg1 = reinterpret_cast< wxDC * >(argp1);
18470 ecode2 = SWIG_AsVal_int(obj1, &val2);
18471 if (!SWIG_IsOK(ecode2)) {
18472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
18473 }
18474 arg2 = static_cast< int >(val2);
18475 ecode3 = SWIG_AsVal_int(obj2, &val3);
18476 if (!SWIG_IsOK(ecode3)) {
18477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
18478 }
18479 arg3 = static_cast< int >(val3);
18480 ecode4 = SWIG_AsVal_int(obj3, &val4);
18481 if (!SWIG_IsOK(ecode4)) {
18482 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
18483 }
18484 arg4 = static_cast< int >(val4);
18485 ecode5 = SWIG_AsVal_int(obj4, &val5);
18486 if (!SWIG_IsOK(ecode5)) {
18487 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
18488 }
18489 arg5 = static_cast< int >(val5);
18490 ecode6 = SWIG_AsVal_int(obj5, &val6);
18491 if (!SWIG_IsOK(ecode6)) {
18492 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
18493 }
18494 arg6 = static_cast< int >(val6);
18495 ecode7 = SWIG_AsVal_int(obj6, &val7);
18496 if (!SWIG_IsOK(ecode7)) {
18497 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
18498 }
18499 arg7 = static_cast< int >(val7);
18500 {
18501 PyThreadState* __tstate = wxPyBeginAllowThreads();
18502 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
18503 wxPyEndAllowThreads(__tstate);
18504 if (PyErr_Occurred()) SWIG_fail;
18505 }
18506 resultobj = SWIG_Py_Void();
18507 return resultobj;
18508 fail:
18509 return NULL;
18510 }
18511
18512
18513 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18514 PyObject *resultobj = 0;
18515 wxDC *arg1 = (wxDC *) 0 ;
18516 wxPoint *arg2 = 0 ;
18517 wxPoint *arg3 = 0 ;
18518 wxPoint *arg4 = 0 ;
18519 void *argp1 = 0 ;
18520 int res1 = 0 ;
18521 wxPoint temp2 ;
18522 wxPoint temp3 ;
18523 wxPoint temp4 ;
18524 PyObject * obj0 = 0 ;
18525 PyObject * obj1 = 0 ;
18526 PyObject * obj2 = 0 ;
18527 PyObject * obj3 = 0 ;
18528 char * kwnames[] = {
18529 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
18530 };
18531
18532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
18533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18534 if (!SWIG_IsOK(res1)) {
18535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18536 }
18537 arg1 = reinterpret_cast< wxDC * >(argp1);
18538 {
18539 arg2 = &temp2;
18540 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18541 }
18542 {
18543 arg3 = &temp3;
18544 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
18545 }
18546 {
18547 arg4 = &temp4;
18548 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
18549 }
18550 {
18551 PyThreadState* __tstate = wxPyBeginAllowThreads();
18552 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
18553 wxPyEndAllowThreads(__tstate);
18554 if (PyErr_Occurred()) SWIG_fail;
18555 }
18556 resultobj = SWIG_Py_Void();
18557 return resultobj;
18558 fail:
18559 return NULL;
18560 }
18561
18562
18563 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18564 PyObject *resultobj = 0;
18565 wxDC *arg1 = (wxDC *) 0 ;
18566 int arg2 ;
18567 int arg3 ;
18568 int arg4 ;
18569 int arg5 ;
18570 void *argp1 = 0 ;
18571 int res1 = 0 ;
18572 int val2 ;
18573 int ecode2 = 0 ;
18574 int val3 ;
18575 int ecode3 = 0 ;
18576 int val4 ;
18577 int ecode4 = 0 ;
18578 int val5 ;
18579 int ecode5 = 0 ;
18580 PyObject * obj0 = 0 ;
18581 PyObject * obj1 = 0 ;
18582 PyObject * obj2 = 0 ;
18583 PyObject * obj3 = 0 ;
18584 PyObject * obj4 = 0 ;
18585 char * kwnames[] = {
18586 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18587 };
18588
18589 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18590 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18591 if (!SWIG_IsOK(res1)) {
18592 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
18593 }
18594 arg1 = reinterpret_cast< wxDC * >(argp1);
18595 ecode2 = SWIG_AsVal_int(obj1, &val2);
18596 if (!SWIG_IsOK(ecode2)) {
18597 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
18598 }
18599 arg2 = static_cast< int >(val2);
18600 ecode3 = SWIG_AsVal_int(obj2, &val3);
18601 if (!SWIG_IsOK(ecode3)) {
18602 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
18603 }
18604 arg3 = static_cast< int >(val3);
18605 ecode4 = SWIG_AsVal_int(obj3, &val4);
18606 if (!SWIG_IsOK(ecode4)) {
18607 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
18608 }
18609 arg4 = static_cast< int >(val4);
18610 ecode5 = SWIG_AsVal_int(obj4, &val5);
18611 if (!SWIG_IsOK(ecode5)) {
18612 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
18613 }
18614 arg5 = static_cast< int >(val5);
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 resultobj = SWIG_Py_Void();
18622 return resultobj;
18623 fail:
18624 return NULL;
18625 }
18626
18627
18628 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18629 PyObject *resultobj = 0;
18630 wxDC *arg1 = (wxDC *) 0 ;
18631 wxRect *arg2 = 0 ;
18632 void *argp1 = 0 ;
18633 int res1 = 0 ;
18634 wxRect temp2 ;
18635 PyObject * obj0 = 0 ;
18636 PyObject * obj1 = 0 ;
18637 char * kwnames[] = {
18638 (char *) "self",(char *) "rect", NULL
18639 };
18640
18641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
18642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18643 if (!SWIG_IsOK(res1)) {
18644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
18645 }
18646 arg1 = reinterpret_cast< wxDC * >(argp1);
18647 {
18648 arg2 = &temp2;
18649 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18650 }
18651 {
18652 PyThreadState* __tstate = wxPyBeginAllowThreads();
18653 (arg1)->DrawCheckMark((wxRect const &)*arg2);
18654 wxPyEndAllowThreads(__tstate);
18655 if (PyErr_Occurred()) SWIG_fail;
18656 }
18657 resultobj = SWIG_Py_Void();
18658 return resultobj;
18659 fail:
18660 return NULL;
18661 }
18662
18663
18664 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18665 PyObject *resultobj = 0;
18666 wxDC *arg1 = (wxDC *) 0 ;
18667 int arg2 ;
18668 int arg3 ;
18669 int arg4 ;
18670 int arg5 ;
18671 double arg6 ;
18672 double arg7 ;
18673 void *argp1 = 0 ;
18674 int res1 = 0 ;
18675 int val2 ;
18676 int ecode2 = 0 ;
18677 int val3 ;
18678 int ecode3 = 0 ;
18679 int val4 ;
18680 int ecode4 = 0 ;
18681 int val5 ;
18682 int ecode5 = 0 ;
18683 double val6 ;
18684 int ecode6 = 0 ;
18685 double val7 ;
18686 int ecode7 = 0 ;
18687 PyObject * obj0 = 0 ;
18688 PyObject * obj1 = 0 ;
18689 PyObject * obj2 = 0 ;
18690 PyObject * obj3 = 0 ;
18691 PyObject * obj4 = 0 ;
18692 PyObject * obj5 = 0 ;
18693 PyObject * obj6 = 0 ;
18694 char * kwnames[] = {
18695 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
18696 };
18697
18698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
18699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18700 if (!SWIG_IsOK(res1)) {
18701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
18702 }
18703 arg1 = reinterpret_cast< wxDC * >(argp1);
18704 ecode2 = SWIG_AsVal_int(obj1, &val2);
18705 if (!SWIG_IsOK(ecode2)) {
18706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
18707 }
18708 arg2 = static_cast< int >(val2);
18709 ecode3 = SWIG_AsVal_int(obj2, &val3);
18710 if (!SWIG_IsOK(ecode3)) {
18711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
18712 }
18713 arg3 = static_cast< int >(val3);
18714 ecode4 = SWIG_AsVal_int(obj3, &val4);
18715 if (!SWIG_IsOK(ecode4)) {
18716 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
18717 }
18718 arg4 = static_cast< int >(val4);
18719 ecode5 = SWIG_AsVal_int(obj4, &val5);
18720 if (!SWIG_IsOK(ecode5)) {
18721 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
18722 }
18723 arg5 = static_cast< int >(val5);
18724 ecode6 = SWIG_AsVal_double(obj5, &val6);
18725 if (!SWIG_IsOK(ecode6)) {
18726 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
18727 }
18728 arg6 = static_cast< double >(val6);
18729 ecode7 = SWIG_AsVal_double(obj6, &val7);
18730 if (!SWIG_IsOK(ecode7)) {
18731 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
18732 }
18733 arg7 = static_cast< double >(val7);
18734 {
18735 PyThreadState* __tstate = wxPyBeginAllowThreads();
18736 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
18737 wxPyEndAllowThreads(__tstate);
18738 if (PyErr_Occurred()) SWIG_fail;
18739 }
18740 resultobj = SWIG_Py_Void();
18741 return resultobj;
18742 fail:
18743 return NULL;
18744 }
18745
18746
18747 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18748 PyObject *resultobj = 0;
18749 wxDC *arg1 = (wxDC *) 0 ;
18750 wxPoint *arg2 = 0 ;
18751 wxSize *arg3 = 0 ;
18752 double arg4 ;
18753 double arg5 ;
18754 void *argp1 = 0 ;
18755 int res1 = 0 ;
18756 wxPoint temp2 ;
18757 wxSize temp3 ;
18758 double val4 ;
18759 int ecode4 = 0 ;
18760 double val5 ;
18761 int ecode5 = 0 ;
18762 PyObject * obj0 = 0 ;
18763 PyObject * obj1 = 0 ;
18764 PyObject * obj2 = 0 ;
18765 PyObject * obj3 = 0 ;
18766 PyObject * obj4 = 0 ;
18767 char * kwnames[] = {
18768 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
18769 };
18770
18771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18773 if (!SWIG_IsOK(res1)) {
18774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
18775 }
18776 arg1 = reinterpret_cast< wxDC * >(argp1);
18777 {
18778 arg2 = &temp2;
18779 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18780 }
18781 {
18782 arg3 = &temp3;
18783 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
18784 }
18785 ecode4 = SWIG_AsVal_double(obj3, &val4);
18786 if (!SWIG_IsOK(ecode4)) {
18787 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
18788 }
18789 arg4 = static_cast< double >(val4);
18790 ecode5 = SWIG_AsVal_double(obj4, &val5);
18791 if (!SWIG_IsOK(ecode5)) {
18792 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
18793 }
18794 arg5 = static_cast< double >(val5);
18795 {
18796 PyThreadState* __tstate = wxPyBeginAllowThreads();
18797 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
18798 wxPyEndAllowThreads(__tstate);
18799 if (PyErr_Occurred()) SWIG_fail;
18800 }
18801 resultobj = SWIG_Py_Void();
18802 return resultobj;
18803 fail:
18804 return NULL;
18805 }
18806
18807
18808 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18809 PyObject *resultobj = 0;
18810 wxDC *arg1 = (wxDC *) 0 ;
18811 int arg2 ;
18812 int arg3 ;
18813 void *argp1 = 0 ;
18814 int res1 = 0 ;
18815 int val2 ;
18816 int ecode2 = 0 ;
18817 int val3 ;
18818 int ecode3 = 0 ;
18819 PyObject * obj0 = 0 ;
18820 PyObject * obj1 = 0 ;
18821 PyObject * obj2 = 0 ;
18822 char * kwnames[] = {
18823 (char *) "self",(char *) "x",(char *) "y", NULL
18824 };
18825
18826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18828 if (!SWIG_IsOK(res1)) {
18829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18830 }
18831 arg1 = reinterpret_cast< wxDC * >(argp1);
18832 ecode2 = SWIG_AsVal_int(obj1, &val2);
18833 if (!SWIG_IsOK(ecode2)) {
18834 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
18835 }
18836 arg2 = static_cast< int >(val2);
18837 ecode3 = SWIG_AsVal_int(obj2, &val3);
18838 if (!SWIG_IsOK(ecode3)) {
18839 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
18840 }
18841 arg3 = static_cast< int >(val3);
18842 {
18843 PyThreadState* __tstate = wxPyBeginAllowThreads();
18844 (arg1)->DrawPoint(arg2,arg3);
18845 wxPyEndAllowThreads(__tstate);
18846 if (PyErr_Occurred()) SWIG_fail;
18847 }
18848 resultobj = SWIG_Py_Void();
18849 return resultobj;
18850 fail:
18851 return NULL;
18852 }
18853
18854
18855 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18856 PyObject *resultobj = 0;
18857 wxDC *arg1 = (wxDC *) 0 ;
18858 wxPoint *arg2 = 0 ;
18859 void *argp1 = 0 ;
18860 int res1 = 0 ;
18861 wxPoint temp2 ;
18862 PyObject * obj0 = 0 ;
18863 PyObject * obj1 = 0 ;
18864 char * kwnames[] = {
18865 (char *) "self",(char *) "pt", NULL
18866 };
18867
18868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
18869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18870 if (!SWIG_IsOK(res1)) {
18871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
18872 }
18873 arg1 = reinterpret_cast< wxDC * >(argp1);
18874 {
18875 arg2 = &temp2;
18876 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
18877 }
18878 {
18879 PyThreadState* __tstate = wxPyBeginAllowThreads();
18880 (arg1)->DrawPoint((wxPoint const &)*arg2);
18881 wxPyEndAllowThreads(__tstate);
18882 if (PyErr_Occurred()) SWIG_fail;
18883 }
18884 resultobj = SWIG_Py_Void();
18885 return resultobj;
18886 fail:
18887 return NULL;
18888 }
18889
18890
18891 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18892 PyObject *resultobj = 0;
18893 wxDC *arg1 = (wxDC *) 0 ;
18894 int arg2 ;
18895 int arg3 ;
18896 int arg4 ;
18897 int arg5 ;
18898 void *argp1 = 0 ;
18899 int res1 = 0 ;
18900 int val2 ;
18901 int ecode2 = 0 ;
18902 int val3 ;
18903 int ecode3 = 0 ;
18904 int val4 ;
18905 int ecode4 = 0 ;
18906 int val5 ;
18907 int ecode5 = 0 ;
18908 PyObject * obj0 = 0 ;
18909 PyObject * obj1 = 0 ;
18910 PyObject * obj2 = 0 ;
18911 PyObject * obj3 = 0 ;
18912 PyObject * obj4 = 0 ;
18913 char * kwnames[] = {
18914 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
18915 };
18916
18917 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
18918 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18919 if (!SWIG_IsOK(res1)) {
18920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
18921 }
18922 arg1 = reinterpret_cast< wxDC * >(argp1);
18923 ecode2 = SWIG_AsVal_int(obj1, &val2);
18924 if (!SWIG_IsOK(ecode2)) {
18925 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
18926 }
18927 arg2 = static_cast< int >(val2);
18928 ecode3 = SWIG_AsVal_int(obj2, &val3);
18929 if (!SWIG_IsOK(ecode3)) {
18930 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
18931 }
18932 arg3 = static_cast< int >(val3);
18933 ecode4 = SWIG_AsVal_int(obj3, &val4);
18934 if (!SWIG_IsOK(ecode4)) {
18935 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
18936 }
18937 arg4 = static_cast< int >(val4);
18938 ecode5 = SWIG_AsVal_int(obj4, &val5);
18939 if (!SWIG_IsOK(ecode5)) {
18940 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
18941 }
18942 arg5 = static_cast< int >(val5);
18943 {
18944 PyThreadState* __tstate = wxPyBeginAllowThreads();
18945 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
18946 wxPyEndAllowThreads(__tstate);
18947 if (PyErr_Occurred()) SWIG_fail;
18948 }
18949 resultobj = SWIG_Py_Void();
18950 return resultobj;
18951 fail:
18952 return NULL;
18953 }
18954
18955
18956 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18957 PyObject *resultobj = 0;
18958 wxDC *arg1 = (wxDC *) 0 ;
18959 wxRect *arg2 = 0 ;
18960 void *argp1 = 0 ;
18961 int res1 = 0 ;
18962 wxRect temp2 ;
18963 PyObject * obj0 = 0 ;
18964 PyObject * obj1 = 0 ;
18965 char * kwnames[] = {
18966 (char *) "self",(char *) "rect", NULL
18967 };
18968
18969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
18970 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18971 if (!SWIG_IsOK(res1)) {
18972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
18973 }
18974 arg1 = reinterpret_cast< wxDC * >(argp1);
18975 {
18976 arg2 = &temp2;
18977 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
18978 }
18979 {
18980 PyThreadState* __tstate = wxPyBeginAllowThreads();
18981 (arg1)->DrawRectangle((wxRect const &)*arg2);
18982 wxPyEndAllowThreads(__tstate);
18983 if (PyErr_Occurred()) SWIG_fail;
18984 }
18985 resultobj = SWIG_Py_Void();
18986 return resultobj;
18987 fail:
18988 return NULL;
18989 }
18990
18991
18992 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18993 PyObject *resultobj = 0;
18994 wxDC *arg1 = (wxDC *) 0 ;
18995 wxPoint *arg2 = 0 ;
18996 wxSize *arg3 = 0 ;
18997 void *argp1 = 0 ;
18998 int res1 = 0 ;
18999 wxPoint temp2 ;
19000 wxSize temp3 ;
19001 PyObject * obj0 = 0 ;
19002 PyObject * obj1 = 0 ;
19003 PyObject * obj2 = 0 ;
19004 char * kwnames[] = {
19005 (char *) "self",(char *) "pt",(char *) "sz", NULL
19006 };
19007
19008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19010 if (!SWIG_IsOK(res1)) {
19011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19012 }
19013 arg1 = reinterpret_cast< wxDC * >(argp1);
19014 {
19015 arg2 = &temp2;
19016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19017 }
19018 {
19019 arg3 = &temp3;
19020 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19021 }
19022 {
19023 PyThreadState* __tstate = wxPyBeginAllowThreads();
19024 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
19025 wxPyEndAllowThreads(__tstate);
19026 if (PyErr_Occurred()) SWIG_fail;
19027 }
19028 resultobj = SWIG_Py_Void();
19029 return resultobj;
19030 fail:
19031 return NULL;
19032 }
19033
19034
19035 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19036 PyObject *resultobj = 0;
19037 wxDC *arg1 = (wxDC *) 0 ;
19038 int arg2 ;
19039 int arg3 ;
19040 int arg4 ;
19041 int arg5 ;
19042 double arg6 ;
19043 void *argp1 = 0 ;
19044 int res1 = 0 ;
19045 int val2 ;
19046 int ecode2 = 0 ;
19047 int val3 ;
19048 int ecode3 = 0 ;
19049 int val4 ;
19050 int ecode4 = 0 ;
19051 int val5 ;
19052 int ecode5 = 0 ;
19053 double val6 ;
19054 int ecode6 = 0 ;
19055 PyObject * obj0 = 0 ;
19056 PyObject * obj1 = 0 ;
19057 PyObject * obj2 = 0 ;
19058 PyObject * obj3 = 0 ;
19059 PyObject * obj4 = 0 ;
19060 PyObject * obj5 = 0 ;
19061 char * kwnames[] = {
19062 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
19063 };
19064
19065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
19066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19067 if (!SWIG_IsOK(res1)) {
19068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
19069 }
19070 arg1 = reinterpret_cast< wxDC * >(argp1);
19071 ecode2 = SWIG_AsVal_int(obj1, &val2);
19072 if (!SWIG_IsOK(ecode2)) {
19073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
19074 }
19075 arg2 = static_cast< int >(val2);
19076 ecode3 = SWIG_AsVal_int(obj2, &val3);
19077 if (!SWIG_IsOK(ecode3)) {
19078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
19079 }
19080 arg3 = static_cast< int >(val3);
19081 ecode4 = SWIG_AsVal_int(obj3, &val4);
19082 if (!SWIG_IsOK(ecode4)) {
19083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
19084 }
19085 arg4 = static_cast< int >(val4);
19086 ecode5 = SWIG_AsVal_int(obj4, &val5);
19087 if (!SWIG_IsOK(ecode5)) {
19088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
19089 }
19090 arg5 = static_cast< int >(val5);
19091 ecode6 = SWIG_AsVal_double(obj5, &val6);
19092 if (!SWIG_IsOK(ecode6)) {
19093 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
19094 }
19095 arg6 = static_cast< double >(val6);
19096 {
19097 PyThreadState* __tstate = wxPyBeginAllowThreads();
19098 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
19099 wxPyEndAllowThreads(__tstate);
19100 if (PyErr_Occurred()) SWIG_fail;
19101 }
19102 resultobj = SWIG_Py_Void();
19103 return resultobj;
19104 fail:
19105 return NULL;
19106 }
19107
19108
19109 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19110 PyObject *resultobj = 0;
19111 wxDC *arg1 = (wxDC *) 0 ;
19112 wxRect *arg2 = 0 ;
19113 double arg3 ;
19114 void *argp1 = 0 ;
19115 int res1 = 0 ;
19116 wxRect temp2 ;
19117 double val3 ;
19118 int ecode3 = 0 ;
19119 PyObject * obj0 = 0 ;
19120 PyObject * obj1 = 0 ;
19121 PyObject * obj2 = 0 ;
19122 char * kwnames[] = {
19123 (char *) "self",(char *) "r",(char *) "radius", NULL
19124 };
19125
19126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19128 if (!SWIG_IsOK(res1)) {
19129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
19130 }
19131 arg1 = reinterpret_cast< wxDC * >(argp1);
19132 {
19133 arg2 = &temp2;
19134 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19135 }
19136 ecode3 = SWIG_AsVal_double(obj2, &val3);
19137 if (!SWIG_IsOK(ecode3)) {
19138 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
19139 }
19140 arg3 = static_cast< double >(val3);
19141 {
19142 PyThreadState* __tstate = wxPyBeginAllowThreads();
19143 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
19144 wxPyEndAllowThreads(__tstate);
19145 if (PyErr_Occurred()) SWIG_fail;
19146 }
19147 resultobj = SWIG_Py_Void();
19148 return resultobj;
19149 fail:
19150 return NULL;
19151 }
19152
19153
19154 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19155 PyObject *resultobj = 0;
19156 wxDC *arg1 = (wxDC *) 0 ;
19157 wxPoint *arg2 = 0 ;
19158 wxSize *arg3 = 0 ;
19159 double arg4 ;
19160 void *argp1 = 0 ;
19161 int res1 = 0 ;
19162 wxPoint temp2 ;
19163 wxSize temp3 ;
19164 double val4 ;
19165 int ecode4 = 0 ;
19166 PyObject * obj0 = 0 ;
19167 PyObject * obj1 = 0 ;
19168 PyObject * obj2 = 0 ;
19169 PyObject * obj3 = 0 ;
19170 char * kwnames[] = {
19171 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
19172 };
19173
19174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19176 if (!SWIG_IsOK(res1)) {
19177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19178 }
19179 arg1 = reinterpret_cast< wxDC * >(argp1);
19180 {
19181 arg2 = &temp2;
19182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19183 }
19184 {
19185 arg3 = &temp3;
19186 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19187 }
19188 ecode4 = SWIG_AsVal_double(obj3, &val4);
19189 if (!SWIG_IsOK(ecode4)) {
19190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
19191 }
19192 arg4 = static_cast< double >(val4);
19193 {
19194 PyThreadState* __tstate = wxPyBeginAllowThreads();
19195 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
19196 wxPyEndAllowThreads(__tstate);
19197 if (PyErr_Occurred()) SWIG_fail;
19198 }
19199 resultobj = SWIG_Py_Void();
19200 return resultobj;
19201 fail:
19202 return NULL;
19203 }
19204
19205
19206 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19207 PyObject *resultobj = 0;
19208 wxDC *arg1 = (wxDC *) 0 ;
19209 int arg2 ;
19210 int arg3 ;
19211 int arg4 ;
19212 void *argp1 = 0 ;
19213 int res1 = 0 ;
19214 int val2 ;
19215 int ecode2 = 0 ;
19216 int val3 ;
19217 int ecode3 = 0 ;
19218 int val4 ;
19219 int ecode4 = 0 ;
19220 PyObject * obj0 = 0 ;
19221 PyObject * obj1 = 0 ;
19222 PyObject * obj2 = 0 ;
19223 PyObject * obj3 = 0 ;
19224 char * kwnames[] = {
19225 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
19226 };
19227
19228 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19229 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19230 if (!SWIG_IsOK(res1)) {
19231 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
19232 }
19233 arg1 = reinterpret_cast< wxDC * >(argp1);
19234 ecode2 = SWIG_AsVal_int(obj1, &val2);
19235 if (!SWIG_IsOK(ecode2)) {
19236 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
19237 }
19238 arg2 = static_cast< int >(val2);
19239 ecode3 = SWIG_AsVal_int(obj2, &val3);
19240 if (!SWIG_IsOK(ecode3)) {
19241 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
19242 }
19243 arg3 = static_cast< int >(val3);
19244 ecode4 = SWIG_AsVal_int(obj3, &val4);
19245 if (!SWIG_IsOK(ecode4)) {
19246 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
19247 }
19248 arg4 = static_cast< int >(val4);
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 (arg1)->DrawCircle(arg2,arg3,arg4);
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 resultobj = SWIG_Py_Void();
19256 return resultobj;
19257 fail:
19258 return NULL;
19259 }
19260
19261
19262 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19263 PyObject *resultobj = 0;
19264 wxDC *arg1 = (wxDC *) 0 ;
19265 wxPoint *arg2 = 0 ;
19266 int arg3 ;
19267 void *argp1 = 0 ;
19268 int res1 = 0 ;
19269 wxPoint temp2 ;
19270 int val3 ;
19271 int ecode3 = 0 ;
19272 PyObject * obj0 = 0 ;
19273 PyObject * obj1 = 0 ;
19274 PyObject * obj2 = 0 ;
19275 char * kwnames[] = {
19276 (char *) "self",(char *) "pt",(char *) "radius", NULL
19277 };
19278
19279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19281 if (!SWIG_IsOK(res1)) {
19282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
19283 }
19284 arg1 = reinterpret_cast< wxDC * >(argp1);
19285 {
19286 arg2 = &temp2;
19287 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19288 }
19289 ecode3 = SWIG_AsVal_int(obj2, &val3);
19290 if (!SWIG_IsOK(ecode3)) {
19291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
19292 }
19293 arg3 = static_cast< int >(val3);
19294 {
19295 PyThreadState* __tstate = wxPyBeginAllowThreads();
19296 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
19297 wxPyEndAllowThreads(__tstate);
19298 if (PyErr_Occurred()) SWIG_fail;
19299 }
19300 resultobj = SWIG_Py_Void();
19301 return resultobj;
19302 fail:
19303 return NULL;
19304 }
19305
19306
19307 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19308 PyObject *resultobj = 0;
19309 wxDC *arg1 = (wxDC *) 0 ;
19310 int arg2 ;
19311 int arg3 ;
19312 int arg4 ;
19313 int arg5 ;
19314 void *argp1 = 0 ;
19315 int res1 = 0 ;
19316 int val2 ;
19317 int ecode2 = 0 ;
19318 int val3 ;
19319 int ecode3 = 0 ;
19320 int val4 ;
19321 int ecode4 = 0 ;
19322 int val5 ;
19323 int ecode5 = 0 ;
19324 PyObject * obj0 = 0 ;
19325 PyObject * obj1 = 0 ;
19326 PyObject * obj2 = 0 ;
19327 PyObject * obj3 = 0 ;
19328 PyObject * obj4 = 0 ;
19329 char * kwnames[] = {
19330 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
19331 };
19332
19333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19335 if (!SWIG_IsOK(res1)) {
19336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
19337 }
19338 arg1 = reinterpret_cast< wxDC * >(argp1);
19339 ecode2 = SWIG_AsVal_int(obj1, &val2);
19340 if (!SWIG_IsOK(ecode2)) {
19341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
19342 }
19343 arg2 = static_cast< int >(val2);
19344 ecode3 = SWIG_AsVal_int(obj2, &val3);
19345 if (!SWIG_IsOK(ecode3)) {
19346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
19347 }
19348 arg3 = static_cast< int >(val3);
19349 ecode4 = SWIG_AsVal_int(obj3, &val4);
19350 if (!SWIG_IsOK(ecode4)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
19352 }
19353 arg4 = static_cast< int >(val4);
19354 ecode5 = SWIG_AsVal_int(obj4, &val5);
19355 if (!SWIG_IsOK(ecode5)) {
19356 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
19357 }
19358 arg5 = static_cast< int >(val5);
19359 {
19360 PyThreadState* __tstate = wxPyBeginAllowThreads();
19361 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
19362 wxPyEndAllowThreads(__tstate);
19363 if (PyErr_Occurred()) SWIG_fail;
19364 }
19365 resultobj = SWIG_Py_Void();
19366 return resultobj;
19367 fail:
19368 return NULL;
19369 }
19370
19371
19372 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19373 PyObject *resultobj = 0;
19374 wxDC *arg1 = (wxDC *) 0 ;
19375 wxRect *arg2 = 0 ;
19376 void *argp1 = 0 ;
19377 int res1 = 0 ;
19378 wxRect temp2 ;
19379 PyObject * obj0 = 0 ;
19380 PyObject * obj1 = 0 ;
19381 char * kwnames[] = {
19382 (char *) "self",(char *) "rect", NULL
19383 };
19384
19385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
19386 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19387 if (!SWIG_IsOK(res1)) {
19388 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
19389 }
19390 arg1 = reinterpret_cast< wxDC * >(argp1);
19391 {
19392 arg2 = &temp2;
19393 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
19394 }
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 (arg1)->DrawEllipse((wxRect const &)*arg2);
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 resultobj = SWIG_Py_Void();
19402 return resultobj;
19403 fail:
19404 return NULL;
19405 }
19406
19407
19408 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19409 PyObject *resultobj = 0;
19410 wxDC *arg1 = (wxDC *) 0 ;
19411 wxPoint *arg2 = 0 ;
19412 wxSize *arg3 = 0 ;
19413 void *argp1 = 0 ;
19414 int res1 = 0 ;
19415 wxPoint temp2 ;
19416 wxSize temp3 ;
19417 PyObject * obj0 = 0 ;
19418 PyObject * obj1 = 0 ;
19419 PyObject * obj2 = 0 ;
19420 char * kwnames[] = {
19421 (char *) "self",(char *) "pt",(char *) "sz", NULL
19422 };
19423
19424 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19425 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19426 if (!SWIG_IsOK(res1)) {
19427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
19428 }
19429 arg1 = reinterpret_cast< wxDC * >(argp1);
19430 {
19431 arg2 = &temp2;
19432 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19433 }
19434 {
19435 arg3 = &temp3;
19436 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
19437 }
19438 {
19439 PyThreadState* __tstate = wxPyBeginAllowThreads();
19440 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
19441 wxPyEndAllowThreads(__tstate);
19442 if (PyErr_Occurred()) SWIG_fail;
19443 }
19444 resultobj = SWIG_Py_Void();
19445 return resultobj;
19446 fail:
19447 return NULL;
19448 }
19449
19450
19451 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19452 PyObject *resultobj = 0;
19453 wxDC *arg1 = (wxDC *) 0 ;
19454 wxIcon *arg2 = 0 ;
19455 int arg3 ;
19456 int arg4 ;
19457 void *argp1 = 0 ;
19458 int res1 = 0 ;
19459 void *argp2 = 0 ;
19460 int res2 = 0 ;
19461 int val3 ;
19462 int ecode3 = 0 ;
19463 int val4 ;
19464 int ecode4 = 0 ;
19465 PyObject * obj0 = 0 ;
19466 PyObject * obj1 = 0 ;
19467 PyObject * obj2 = 0 ;
19468 PyObject * obj3 = 0 ;
19469 char * kwnames[] = {
19470 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
19471 };
19472
19473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19475 if (!SWIG_IsOK(res1)) {
19476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
19477 }
19478 arg1 = reinterpret_cast< wxDC * >(argp1);
19479 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19480 if (!SWIG_IsOK(res2)) {
19481 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19482 }
19483 if (!argp2) {
19484 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
19485 }
19486 arg2 = reinterpret_cast< wxIcon * >(argp2);
19487 ecode3 = SWIG_AsVal_int(obj2, &val3);
19488 if (!SWIG_IsOK(ecode3)) {
19489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
19490 }
19491 arg3 = static_cast< int >(val3);
19492 ecode4 = SWIG_AsVal_int(obj3, &val4);
19493 if (!SWIG_IsOK(ecode4)) {
19494 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
19495 }
19496 arg4 = static_cast< int >(val4);
19497 {
19498 PyThreadState* __tstate = wxPyBeginAllowThreads();
19499 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
19500 wxPyEndAllowThreads(__tstate);
19501 if (PyErr_Occurred()) SWIG_fail;
19502 }
19503 resultobj = SWIG_Py_Void();
19504 return resultobj;
19505 fail:
19506 return NULL;
19507 }
19508
19509
19510 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19511 PyObject *resultobj = 0;
19512 wxDC *arg1 = (wxDC *) 0 ;
19513 wxIcon *arg2 = 0 ;
19514 wxPoint *arg3 = 0 ;
19515 void *argp1 = 0 ;
19516 int res1 = 0 ;
19517 void *argp2 = 0 ;
19518 int res2 = 0 ;
19519 wxPoint temp3 ;
19520 PyObject * obj0 = 0 ;
19521 PyObject * obj1 = 0 ;
19522 PyObject * obj2 = 0 ;
19523 char * kwnames[] = {
19524 (char *) "self",(char *) "icon",(char *) "pt", NULL
19525 };
19526
19527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19529 if (!SWIG_IsOK(res1)) {
19530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19531 }
19532 arg1 = reinterpret_cast< wxDC * >(argp1);
19533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
19534 if (!SWIG_IsOK(res2)) {
19535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19536 }
19537 if (!argp2) {
19538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
19539 }
19540 arg2 = reinterpret_cast< wxIcon * >(argp2);
19541 {
19542 arg3 = &temp3;
19543 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19544 }
19545 {
19546 PyThreadState* __tstate = wxPyBeginAllowThreads();
19547 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
19548 wxPyEndAllowThreads(__tstate);
19549 if (PyErr_Occurred()) SWIG_fail;
19550 }
19551 resultobj = SWIG_Py_Void();
19552 return resultobj;
19553 fail:
19554 return NULL;
19555 }
19556
19557
19558 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19559 PyObject *resultobj = 0;
19560 wxDC *arg1 = (wxDC *) 0 ;
19561 wxBitmap *arg2 = 0 ;
19562 int arg3 ;
19563 int arg4 ;
19564 bool arg5 = (bool) false ;
19565 void *argp1 = 0 ;
19566 int res1 = 0 ;
19567 void *argp2 = 0 ;
19568 int res2 = 0 ;
19569 int val3 ;
19570 int ecode3 = 0 ;
19571 int val4 ;
19572 int ecode4 = 0 ;
19573 bool val5 ;
19574 int ecode5 = 0 ;
19575 PyObject * obj0 = 0 ;
19576 PyObject * obj1 = 0 ;
19577 PyObject * obj2 = 0 ;
19578 PyObject * obj3 = 0 ;
19579 PyObject * obj4 = 0 ;
19580 char * kwnames[] = {
19581 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
19582 };
19583
19584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19586 if (!SWIG_IsOK(res1)) {
19587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
19588 }
19589 arg1 = reinterpret_cast< wxDC * >(argp1);
19590 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19591 if (!SWIG_IsOK(res2)) {
19592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19593 }
19594 if (!argp2) {
19595 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19596 }
19597 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19598 ecode3 = SWIG_AsVal_int(obj2, &val3);
19599 if (!SWIG_IsOK(ecode3)) {
19600 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
19601 }
19602 arg3 = static_cast< int >(val3);
19603 ecode4 = SWIG_AsVal_int(obj3, &val4);
19604 if (!SWIG_IsOK(ecode4)) {
19605 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
19606 }
19607 arg4 = static_cast< int >(val4);
19608 if (obj4) {
19609 ecode5 = SWIG_AsVal_bool(obj4, &val5);
19610 if (!SWIG_IsOK(ecode5)) {
19611 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
19612 }
19613 arg5 = static_cast< bool >(val5);
19614 }
19615 {
19616 PyThreadState* __tstate = wxPyBeginAllowThreads();
19617 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
19618 wxPyEndAllowThreads(__tstate);
19619 if (PyErr_Occurred()) SWIG_fail;
19620 }
19621 resultobj = SWIG_Py_Void();
19622 return resultobj;
19623 fail:
19624 return NULL;
19625 }
19626
19627
19628 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19629 PyObject *resultobj = 0;
19630 wxDC *arg1 = (wxDC *) 0 ;
19631 wxBitmap *arg2 = 0 ;
19632 wxPoint *arg3 = 0 ;
19633 bool arg4 = (bool) false ;
19634 void *argp1 = 0 ;
19635 int res1 = 0 ;
19636 void *argp2 = 0 ;
19637 int res2 = 0 ;
19638 wxPoint temp3 ;
19639 bool val4 ;
19640 int ecode4 = 0 ;
19641 PyObject * obj0 = 0 ;
19642 PyObject * obj1 = 0 ;
19643 PyObject * obj2 = 0 ;
19644 PyObject * obj3 = 0 ;
19645 char * kwnames[] = {
19646 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
19647 };
19648
19649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19650 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19651 if (!SWIG_IsOK(res1)) {
19652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19653 }
19654 arg1 = reinterpret_cast< wxDC * >(argp1);
19655 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
19656 if (!SWIG_IsOK(res2)) {
19657 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19658 }
19659 if (!argp2) {
19660 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
19661 }
19662 arg2 = reinterpret_cast< wxBitmap * >(argp2);
19663 {
19664 arg3 = &temp3;
19665 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19666 }
19667 if (obj3) {
19668 ecode4 = SWIG_AsVal_bool(obj3, &val4);
19669 if (!SWIG_IsOK(ecode4)) {
19670 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
19671 }
19672 arg4 = static_cast< bool >(val4);
19673 }
19674 {
19675 PyThreadState* __tstate = wxPyBeginAllowThreads();
19676 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
19677 wxPyEndAllowThreads(__tstate);
19678 if (PyErr_Occurred()) SWIG_fail;
19679 }
19680 resultobj = SWIG_Py_Void();
19681 return resultobj;
19682 fail:
19683 return NULL;
19684 }
19685
19686
19687 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19688 PyObject *resultobj = 0;
19689 wxDC *arg1 = (wxDC *) 0 ;
19690 wxString *arg2 = 0 ;
19691 int arg3 ;
19692 int arg4 ;
19693 void *argp1 = 0 ;
19694 int res1 = 0 ;
19695 bool temp2 = false ;
19696 int val3 ;
19697 int ecode3 = 0 ;
19698 int val4 ;
19699 int ecode4 = 0 ;
19700 PyObject * obj0 = 0 ;
19701 PyObject * obj1 = 0 ;
19702 PyObject * obj2 = 0 ;
19703 PyObject * obj3 = 0 ;
19704 char * kwnames[] = {
19705 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
19706 };
19707
19708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19710 if (!SWIG_IsOK(res1)) {
19711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
19712 }
19713 arg1 = reinterpret_cast< wxDC * >(argp1);
19714 {
19715 arg2 = wxString_in_helper(obj1);
19716 if (arg2 == NULL) SWIG_fail;
19717 temp2 = true;
19718 }
19719 ecode3 = SWIG_AsVal_int(obj2, &val3);
19720 if (!SWIG_IsOK(ecode3)) {
19721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
19722 }
19723 arg3 = static_cast< int >(val3);
19724 ecode4 = SWIG_AsVal_int(obj3, &val4);
19725 if (!SWIG_IsOK(ecode4)) {
19726 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
19727 }
19728 arg4 = static_cast< int >(val4);
19729 {
19730 PyThreadState* __tstate = wxPyBeginAllowThreads();
19731 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
19732 wxPyEndAllowThreads(__tstate);
19733 if (PyErr_Occurred()) SWIG_fail;
19734 }
19735 resultobj = SWIG_Py_Void();
19736 {
19737 if (temp2)
19738 delete arg2;
19739 }
19740 return resultobj;
19741 fail:
19742 {
19743 if (temp2)
19744 delete arg2;
19745 }
19746 return NULL;
19747 }
19748
19749
19750 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19751 PyObject *resultobj = 0;
19752 wxDC *arg1 = (wxDC *) 0 ;
19753 wxString *arg2 = 0 ;
19754 wxPoint *arg3 = 0 ;
19755 void *argp1 = 0 ;
19756 int res1 = 0 ;
19757 bool temp2 = false ;
19758 wxPoint temp3 ;
19759 PyObject * obj0 = 0 ;
19760 PyObject * obj1 = 0 ;
19761 PyObject * obj2 = 0 ;
19762 char * kwnames[] = {
19763 (char *) "self",(char *) "text",(char *) "pt", NULL
19764 };
19765
19766 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19767 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19768 if (!SWIG_IsOK(res1)) {
19769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19770 }
19771 arg1 = reinterpret_cast< wxDC * >(argp1);
19772 {
19773 arg2 = wxString_in_helper(obj1);
19774 if (arg2 == NULL) SWIG_fail;
19775 temp2 = true;
19776 }
19777 {
19778 arg3 = &temp3;
19779 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19780 }
19781 {
19782 PyThreadState* __tstate = wxPyBeginAllowThreads();
19783 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
19784 wxPyEndAllowThreads(__tstate);
19785 if (PyErr_Occurred()) SWIG_fail;
19786 }
19787 resultobj = SWIG_Py_Void();
19788 {
19789 if (temp2)
19790 delete arg2;
19791 }
19792 return resultobj;
19793 fail:
19794 {
19795 if (temp2)
19796 delete arg2;
19797 }
19798 return NULL;
19799 }
19800
19801
19802 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19803 PyObject *resultobj = 0;
19804 wxDC *arg1 = (wxDC *) 0 ;
19805 wxString *arg2 = 0 ;
19806 int arg3 ;
19807 int arg4 ;
19808 double arg5 ;
19809 void *argp1 = 0 ;
19810 int res1 = 0 ;
19811 bool temp2 = false ;
19812 int val3 ;
19813 int ecode3 = 0 ;
19814 int val4 ;
19815 int ecode4 = 0 ;
19816 double val5 ;
19817 int ecode5 = 0 ;
19818 PyObject * obj0 = 0 ;
19819 PyObject * obj1 = 0 ;
19820 PyObject * obj2 = 0 ;
19821 PyObject * obj3 = 0 ;
19822 PyObject * obj4 = 0 ;
19823 char * kwnames[] = {
19824 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
19825 };
19826
19827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
19828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19829 if (!SWIG_IsOK(res1)) {
19830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
19831 }
19832 arg1 = reinterpret_cast< wxDC * >(argp1);
19833 {
19834 arg2 = wxString_in_helper(obj1);
19835 if (arg2 == NULL) SWIG_fail;
19836 temp2 = true;
19837 }
19838 ecode3 = SWIG_AsVal_int(obj2, &val3);
19839 if (!SWIG_IsOK(ecode3)) {
19840 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
19841 }
19842 arg3 = static_cast< int >(val3);
19843 ecode4 = SWIG_AsVal_int(obj3, &val4);
19844 if (!SWIG_IsOK(ecode4)) {
19845 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
19846 }
19847 arg4 = static_cast< int >(val4);
19848 ecode5 = SWIG_AsVal_double(obj4, &val5);
19849 if (!SWIG_IsOK(ecode5)) {
19850 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
19851 }
19852 arg5 = static_cast< double >(val5);
19853 {
19854 PyThreadState* __tstate = wxPyBeginAllowThreads();
19855 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
19856 wxPyEndAllowThreads(__tstate);
19857 if (PyErr_Occurred()) SWIG_fail;
19858 }
19859 resultobj = SWIG_Py_Void();
19860 {
19861 if (temp2)
19862 delete arg2;
19863 }
19864 return resultobj;
19865 fail:
19866 {
19867 if (temp2)
19868 delete arg2;
19869 }
19870 return NULL;
19871 }
19872
19873
19874 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19875 PyObject *resultobj = 0;
19876 wxDC *arg1 = (wxDC *) 0 ;
19877 wxString *arg2 = 0 ;
19878 wxPoint *arg3 = 0 ;
19879 double arg4 ;
19880 void *argp1 = 0 ;
19881 int res1 = 0 ;
19882 bool temp2 = false ;
19883 wxPoint temp3 ;
19884 double val4 ;
19885 int ecode4 = 0 ;
19886 PyObject * obj0 = 0 ;
19887 PyObject * obj1 = 0 ;
19888 PyObject * obj2 = 0 ;
19889 PyObject * obj3 = 0 ;
19890 char * kwnames[] = {
19891 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
19892 };
19893
19894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
19895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19896 if (!SWIG_IsOK(res1)) {
19897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19898 }
19899 arg1 = reinterpret_cast< wxDC * >(argp1);
19900 {
19901 arg2 = wxString_in_helper(obj1);
19902 if (arg2 == NULL) SWIG_fail;
19903 temp2 = true;
19904 }
19905 {
19906 arg3 = &temp3;
19907 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
19908 }
19909 ecode4 = SWIG_AsVal_double(obj3, &val4);
19910 if (!SWIG_IsOK(ecode4)) {
19911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
19912 }
19913 arg4 = static_cast< double >(val4);
19914 {
19915 PyThreadState* __tstate = wxPyBeginAllowThreads();
19916 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
19917 wxPyEndAllowThreads(__tstate);
19918 if (PyErr_Occurred()) SWIG_fail;
19919 }
19920 resultobj = SWIG_Py_Void();
19921 {
19922 if (temp2)
19923 delete arg2;
19924 }
19925 return resultobj;
19926 fail:
19927 {
19928 if (temp2)
19929 delete arg2;
19930 }
19931 return NULL;
19932 }
19933
19934
19935 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19936 PyObject *resultobj = 0;
19937 wxDC *arg1 = (wxDC *) 0 ;
19938 int arg2 ;
19939 int arg3 ;
19940 int arg4 ;
19941 int arg5 ;
19942 wxDC *arg6 = (wxDC *) 0 ;
19943 int arg7 ;
19944 int arg8 ;
19945 int arg9 = (int) wxCOPY ;
19946 bool arg10 = (bool) false ;
19947 int arg11 = (int) -1 ;
19948 int arg12 = (int) -1 ;
19949 bool result;
19950 void *argp1 = 0 ;
19951 int res1 = 0 ;
19952 int val2 ;
19953 int ecode2 = 0 ;
19954 int val3 ;
19955 int ecode3 = 0 ;
19956 int val4 ;
19957 int ecode4 = 0 ;
19958 int val5 ;
19959 int ecode5 = 0 ;
19960 void *argp6 = 0 ;
19961 int res6 = 0 ;
19962 int val7 ;
19963 int ecode7 = 0 ;
19964 int val8 ;
19965 int ecode8 = 0 ;
19966 int val9 ;
19967 int ecode9 = 0 ;
19968 bool val10 ;
19969 int ecode10 = 0 ;
19970 int val11 ;
19971 int ecode11 = 0 ;
19972 int val12 ;
19973 int ecode12 = 0 ;
19974 PyObject * obj0 = 0 ;
19975 PyObject * obj1 = 0 ;
19976 PyObject * obj2 = 0 ;
19977 PyObject * obj3 = 0 ;
19978 PyObject * obj4 = 0 ;
19979 PyObject * obj5 = 0 ;
19980 PyObject * obj6 = 0 ;
19981 PyObject * obj7 = 0 ;
19982 PyObject * obj8 = 0 ;
19983 PyObject * obj9 = 0 ;
19984 PyObject * obj10 = 0 ;
19985 PyObject * obj11 = 0 ;
19986 char * kwnames[] = {
19987 (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
19988 };
19989
19990 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;
19991 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19992 if (!SWIG_IsOK(res1)) {
19993 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
19994 }
19995 arg1 = reinterpret_cast< wxDC * >(argp1);
19996 ecode2 = SWIG_AsVal_int(obj1, &val2);
19997 if (!SWIG_IsOK(ecode2)) {
19998 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
19999 }
20000 arg2 = static_cast< int >(val2);
20001 ecode3 = SWIG_AsVal_int(obj2, &val3);
20002 if (!SWIG_IsOK(ecode3)) {
20003 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
20004 }
20005 arg3 = static_cast< int >(val3);
20006 ecode4 = SWIG_AsVal_int(obj3, &val4);
20007 if (!SWIG_IsOK(ecode4)) {
20008 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
20009 }
20010 arg4 = static_cast< int >(val4);
20011 ecode5 = SWIG_AsVal_int(obj4, &val5);
20012 if (!SWIG_IsOK(ecode5)) {
20013 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
20014 }
20015 arg5 = static_cast< int >(val5);
20016 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
20017 if (!SWIG_IsOK(res6)) {
20018 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
20019 }
20020 arg6 = reinterpret_cast< wxDC * >(argp6);
20021 ecode7 = SWIG_AsVal_int(obj6, &val7);
20022 if (!SWIG_IsOK(ecode7)) {
20023 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
20024 }
20025 arg7 = static_cast< int >(val7);
20026 ecode8 = SWIG_AsVal_int(obj7, &val8);
20027 if (!SWIG_IsOK(ecode8)) {
20028 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
20029 }
20030 arg8 = static_cast< int >(val8);
20031 if (obj8) {
20032 ecode9 = SWIG_AsVal_int(obj8, &val9);
20033 if (!SWIG_IsOK(ecode9)) {
20034 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
20035 }
20036 arg9 = static_cast< int >(val9);
20037 }
20038 if (obj9) {
20039 ecode10 = SWIG_AsVal_bool(obj9, &val10);
20040 if (!SWIG_IsOK(ecode10)) {
20041 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
20042 }
20043 arg10 = static_cast< bool >(val10);
20044 }
20045 if (obj10) {
20046 ecode11 = SWIG_AsVal_int(obj10, &val11);
20047 if (!SWIG_IsOK(ecode11)) {
20048 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
20049 }
20050 arg11 = static_cast< int >(val11);
20051 }
20052 if (obj11) {
20053 ecode12 = SWIG_AsVal_int(obj11, &val12);
20054 if (!SWIG_IsOK(ecode12)) {
20055 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
20056 }
20057 arg12 = static_cast< int >(val12);
20058 }
20059 {
20060 PyThreadState* __tstate = wxPyBeginAllowThreads();
20061 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
20062 wxPyEndAllowThreads(__tstate);
20063 if (PyErr_Occurred()) SWIG_fail;
20064 }
20065 {
20066 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20067 }
20068 return resultobj;
20069 fail:
20070 return NULL;
20071 }
20072
20073
20074 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20075 PyObject *resultobj = 0;
20076 wxDC *arg1 = (wxDC *) 0 ;
20077 wxPoint *arg2 = 0 ;
20078 wxSize *arg3 = 0 ;
20079 wxDC *arg4 = (wxDC *) 0 ;
20080 wxPoint *arg5 = 0 ;
20081 int arg6 = (int) wxCOPY ;
20082 bool arg7 = (bool) false ;
20083 wxPoint const &arg8_defvalue = wxDefaultPosition ;
20084 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
20085 bool result;
20086 void *argp1 = 0 ;
20087 int res1 = 0 ;
20088 wxPoint temp2 ;
20089 wxSize temp3 ;
20090 void *argp4 = 0 ;
20091 int res4 = 0 ;
20092 wxPoint temp5 ;
20093 int val6 ;
20094 int ecode6 = 0 ;
20095 bool val7 ;
20096 int ecode7 = 0 ;
20097 wxPoint temp8 ;
20098 PyObject * obj0 = 0 ;
20099 PyObject * obj1 = 0 ;
20100 PyObject * obj2 = 0 ;
20101 PyObject * obj3 = 0 ;
20102 PyObject * obj4 = 0 ;
20103 PyObject * obj5 = 0 ;
20104 PyObject * obj6 = 0 ;
20105 PyObject * obj7 = 0 ;
20106 char * kwnames[] = {
20107 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
20108 };
20109
20110 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
20111 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20112 if (!SWIG_IsOK(res1)) {
20113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20114 }
20115 arg1 = reinterpret_cast< wxDC * >(argp1);
20116 {
20117 arg2 = &temp2;
20118 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20119 }
20120 {
20121 arg3 = &temp3;
20122 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20123 }
20124 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
20125 if (!SWIG_IsOK(res4)) {
20126 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
20127 }
20128 arg4 = reinterpret_cast< wxDC * >(argp4);
20129 {
20130 arg5 = &temp5;
20131 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
20132 }
20133 if (obj5) {
20134 ecode6 = SWIG_AsVal_int(obj5, &val6);
20135 if (!SWIG_IsOK(ecode6)) {
20136 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
20137 }
20138 arg6 = static_cast< int >(val6);
20139 }
20140 if (obj6) {
20141 ecode7 = SWIG_AsVal_bool(obj6, &val7);
20142 if (!SWIG_IsOK(ecode7)) {
20143 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
20144 }
20145 arg7 = static_cast< bool >(val7);
20146 }
20147 if (obj7) {
20148 {
20149 arg8 = &temp8;
20150 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
20151 }
20152 }
20153 {
20154 PyThreadState* __tstate = wxPyBeginAllowThreads();
20155 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
20156 wxPyEndAllowThreads(__tstate);
20157 if (PyErr_Occurred()) SWIG_fail;
20158 }
20159 {
20160 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20161 }
20162 return resultobj;
20163 fail:
20164 return NULL;
20165 }
20166
20167
20168 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20169 PyObject *resultobj = 0;
20170 wxDC *arg1 = (wxDC *) 0 ;
20171 int arg2 ;
20172 int arg3 ;
20173 int arg4 ;
20174 int arg5 ;
20175 void *argp1 = 0 ;
20176 int res1 = 0 ;
20177 int val2 ;
20178 int ecode2 = 0 ;
20179 int val3 ;
20180 int ecode3 = 0 ;
20181 int val4 ;
20182 int ecode4 = 0 ;
20183 int val5 ;
20184 int ecode5 = 0 ;
20185 PyObject * obj0 = 0 ;
20186 PyObject * obj1 = 0 ;
20187 PyObject * obj2 = 0 ;
20188 PyObject * obj3 = 0 ;
20189 PyObject * obj4 = 0 ;
20190 char * kwnames[] = {
20191 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
20192 };
20193
20194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20196 if (!SWIG_IsOK(res1)) {
20197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20198 }
20199 arg1 = reinterpret_cast< wxDC * >(argp1);
20200 ecode2 = SWIG_AsVal_int(obj1, &val2);
20201 if (!SWIG_IsOK(ecode2)) {
20202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
20203 }
20204 arg2 = static_cast< int >(val2);
20205 ecode3 = SWIG_AsVal_int(obj2, &val3);
20206 if (!SWIG_IsOK(ecode3)) {
20207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
20208 }
20209 arg3 = static_cast< int >(val3);
20210 ecode4 = SWIG_AsVal_int(obj3, &val4);
20211 if (!SWIG_IsOK(ecode4)) {
20212 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
20213 }
20214 arg4 = static_cast< int >(val4);
20215 ecode5 = SWIG_AsVal_int(obj4, &val5);
20216 if (!SWIG_IsOK(ecode5)) {
20217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
20218 }
20219 arg5 = static_cast< int >(val5);
20220 {
20221 PyThreadState* __tstate = wxPyBeginAllowThreads();
20222 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
20223 wxPyEndAllowThreads(__tstate);
20224 if (PyErr_Occurred()) SWIG_fail;
20225 }
20226 resultobj = SWIG_Py_Void();
20227 return resultobj;
20228 fail:
20229 return NULL;
20230 }
20231
20232
20233 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj = 0;
20235 wxDC *arg1 = (wxDC *) 0 ;
20236 wxPoint *arg2 = 0 ;
20237 wxSize *arg3 = 0 ;
20238 void *argp1 = 0 ;
20239 int res1 = 0 ;
20240 wxPoint temp2 ;
20241 wxSize temp3 ;
20242 PyObject * obj0 = 0 ;
20243 PyObject * obj1 = 0 ;
20244 PyObject * obj2 = 0 ;
20245 char * kwnames[] = {
20246 (char *) "self",(char *) "pt",(char *) "sz", NULL
20247 };
20248
20249 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20250 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20251 if (!SWIG_IsOK(res1)) {
20252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
20253 }
20254 arg1 = reinterpret_cast< wxDC * >(argp1);
20255 {
20256 arg2 = &temp2;
20257 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20258 }
20259 {
20260 arg3 = &temp3;
20261 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
20262 }
20263 {
20264 PyThreadState* __tstate = wxPyBeginAllowThreads();
20265 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
20266 wxPyEndAllowThreads(__tstate);
20267 if (PyErr_Occurred()) SWIG_fail;
20268 }
20269 resultobj = SWIG_Py_Void();
20270 return resultobj;
20271 fail:
20272 return NULL;
20273 }
20274
20275
20276 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20277 PyObject *resultobj = 0;
20278 wxDC *arg1 = (wxDC *) 0 ;
20279 wxRegion *arg2 = 0 ;
20280 void *argp1 = 0 ;
20281 int res1 = 0 ;
20282 void *argp2 = 0 ;
20283 int res2 = 0 ;
20284 PyObject * obj0 = 0 ;
20285 PyObject * obj1 = 0 ;
20286 char * kwnames[] = {
20287 (char *) "self",(char *) "region", NULL
20288 };
20289
20290 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
20291 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20292 if (!SWIG_IsOK(res1)) {
20293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
20294 }
20295 arg1 = reinterpret_cast< wxDC * >(argp1);
20296 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
20297 if (!SWIG_IsOK(res2)) {
20298 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20299 }
20300 if (!argp2) {
20301 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
20302 }
20303 arg2 = reinterpret_cast< wxRegion * >(argp2);
20304 {
20305 PyThreadState* __tstate = wxPyBeginAllowThreads();
20306 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
20307 wxPyEndAllowThreads(__tstate);
20308 if (PyErr_Occurred()) SWIG_fail;
20309 }
20310 resultobj = SWIG_Py_Void();
20311 return resultobj;
20312 fail:
20313 return NULL;
20314 }
20315
20316
20317 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20318 PyObject *resultobj = 0;
20319 wxDC *arg1 = (wxDC *) 0 ;
20320 wxRect *arg2 = 0 ;
20321 void *argp1 = 0 ;
20322 int res1 = 0 ;
20323 wxRect temp2 ;
20324 PyObject * obj0 = 0 ;
20325 PyObject * obj1 = 0 ;
20326 char * kwnames[] = {
20327 (char *) "self",(char *) "rect", NULL
20328 };
20329
20330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
20331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20332 if (!SWIG_IsOK(res1)) {
20333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
20334 }
20335 arg1 = reinterpret_cast< wxDC * >(argp1);
20336 {
20337 arg2 = &temp2;
20338 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
20339 }
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 (arg1)->SetClippingRegion((wxRect const &)*arg2);
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 resultobj = SWIG_Py_Void();
20347 return resultobj;
20348 fail:
20349 return NULL;
20350 }
20351
20352
20353 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20354 PyObject *resultobj = 0;
20355 wxDC *arg1 = (wxDC *) 0 ;
20356 int arg2 ;
20357 wxPoint *arg3 = (wxPoint *) 0 ;
20358 int arg4 = (int) 0 ;
20359 int arg5 = (int) 0 ;
20360 void *argp1 = 0 ;
20361 int res1 = 0 ;
20362 int val4 ;
20363 int ecode4 = 0 ;
20364 int val5 ;
20365 int ecode5 = 0 ;
20366 PyObject * obj0 = 0 ;
20367 PyObject * obj1 = 0 ;
20368 PyObject * obj2 = 0 ;
20369 PyObject * obj3 = 0 ;
20370 char * kwnames[] = {
20371 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
20372 };
20373
20374 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20375 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20376 if (!SWIG_IsOK(res1)) {
20377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
20378 }
20379 arg1 = reinterpret_cast< wxDC * >(argp1);
20380 {
20381 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20382 if (arg3 == NULL) SWIG_fail;
20383 }
20384 if (obj2) {
20385 ecode4 = SWIG_AsVal_int(obj2, &val4);
20386 if (!SWIG_IsOK(ecode4)) {
20387 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
20388 }
20389 arg4 = static_cast< int >(val4);
20390 }
20391 if (obj3) {
20392 ecode5 = SWIG_AsVal_int(obj3, &val5);
20393 if (!SWIG_IsOK(ecode5)) {
20394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
20395 }
20396 arg5 = static_cast< int >(val5);
20397 }
20398 {
20399 PyThreadState* __tstate = wxPyBeginAllowThreads();
20400 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
20401 wxPyEndAllowThreads(__tstate);
20402 if (PyErr_Occurred()) SWIG_fail;
20403 }
20404 resultobj = SWIG_Py_Void();
20405 {
20406 if (arg3) delete [] arg3;
20407 }
20408 return resultobj;
20409 fail:
20410 {
20411 if (arg3) delete [] arg3;
20412 }
20413 return NULL;
20414 }
20415
20416
20417 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20418 PyObject *resultobj = 0;
20419 wxDC *arg1 = (wxDC *) 0 ;
20420 int arg2 ;
20421 wxPoint *arg3 = (wxPoint *) 0 ;
20422 int arg4 = (int) 0 ;
20423 int arg5 = (int) 0 ;
20424 int arg6 = (int) wxODDEVEN_RULE ;
20425 void *argp1 = 0 ;
20426 int res1 = 0 ;
20427 int val4 ;
20428 int ecode4 = 0 ;
20429 int val5 ;
20430 int ecode5 = 0 ;
20431 int val6 ;
20432 int ecode6 = 0 ;
20433 PyObject * obj0 = 0 ;
20434 PyObject * obj1 = 0 ;
20435 PyObject * obj2 = 0 ;
20436 PyObject * obj3 = 0 ;
20437 PyObject * obj4 = 0 ;
20438 char * kwnames[] = {
20439 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
20440 };
20441
20442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20444 if (!SWIG_IsOK(res1)) {
20445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
20446 }
20447 arg1 = reinterpret_cast< wxDC * >(argp1);
20448 {
20449 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20450 if (arg3 == NULL) SWIG_fail;
20451 }
20452 if (obj2) {
20453 ecode4 = SWIG_AsVal_int(obj2, &val4);
20454 if (!SWIG_IsOK(ecode4)) {
20455 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
20456 }
20457 arg4 = static_cast< int >(val4);
20458 }
20459 if (obj3) {
20460 ecode5 = SWIG_AsVal_int(obj3, &val5);
20461 if (!SWIG_IsOK(ecode5)) {
20462 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
20463 }
20464 arg5 = static_cast< int >(val5);
20465 }
20466 if (obj4) {
20467 ecode6 = SWIG_AsVal_int(obj4, &val6);
20468 if (!SWIG_IsOK(ecode6)) {
20469 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
20470 }
20471 arg6 = static_cast< int >(val6);
20472 }
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
20476 wxPyEndAllowThreads(__tstate);
20477 if (PyErr_Occurred()) SWIG_fail;
20478 }
20479 resultobj = SWIG_Py_Void();
20480 {
20481 if (arg3) delete [] arg3;
20482 }
20483 return resultobj;
20484 fail:
20485 {
20486 if (arg3) delete [] arg3;
20487 }
20488 return NULL;
20489 }
20490
20491
20492 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20493 PyObject *resultobj = 0;
20494 wxDC *arg1 = (wxDC *) 0 ;
20495 wxString *arg2 = 0 ;
20496 wxRect *arg3 = 0 ;
20497 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20498 int arg5 = (int) -1 ;
20499 void *argp1 = 0 ;
20500 int res1 = 0 ;
20501 bool temp2 = false ;
20502 wxRect temp3 ;
20503 int val4 ;
20504 int ecode4 = 0 ;
20505 int val5 ;
20506 int ecode5 = 0 ;
20507 PyObject * obj0 = 0 ;
20508 PyObject * obj1 = 0 ;
20509 PyObject * obj2 = 0 ;
20510 PyObject * obj3 = 0 ;
20511 PyObject * obj4 = 0 ;
20512 char * kwnames[] = {
20513 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20514 };
20515
20516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20518 if (!SWIG_IsOK(res1)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20520 }
20521 arg1 = reinterpret_cast< wxDC * >(argp1);
20522 {
20523 arg2 = wxString_in_helper(obj1);
20524 if (arg2 == NULL) SWIG_fail;
20525 temp2 = true;
20526 }
20527 {
20528 arg3 = &temp3;
20529 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
20530 }
20531 if (obj3) {
20532 ecode4 = SWIG_AsVal_int(obj3, &val4);
20533 if (!SWIG_IsOK(ecode4)) {
20534 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
20535 }
20536 arg4 = static_cast< int >(val4);
20537 }
20538 if (obj4) {
20539 ecode5 = SWIG_AsVal_int(obj4, &val5);
20540 if (!SWIG_IsOK(ecode5)) {
20541 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
20542 }
20543 arg5 = static_cast< int >(val5);
20544 }
20545 {
20546 PyThreadState* __tstate = wxPyBeginAllowThreads();
20547 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
20548 wxPyEndAllowThreads(__tstate);
20549 if (PyErr_Occurred()) SWIG_fail;
20550 }
20551 resultobj = SWIG_Py_Void();
20552 {
20553 if (temp2)
20554 delete arg2;
20555 }
20556 return resultobj;
20557 fail:
20558 {
20559 if (temp2)
20560 delete arg2;
20561 }
20562 return NULL;
20563 }
20564
20565
20566 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20567 PyObject *resultobj = 0;
20568 wxDC *arg1 = (wxDC *) 0 ;
20569 wxString *arg2 = 0 ;
20570 wxBitmap *arg3 = 0 ;
20571 wxRect *arg4 = 0 ;
20572 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
20573 int arg6 = (int) -1 ;
20574 wxRect result;
20575 void *argp1 = 0 ;
20576 int res1 = 0 ;
20577 bool temp2 = false ;
20578 void *argp3 = 0 ;
20579 int res3 = 0 ;
20580 wxRect temp4 ;
20581 int val5 ;
20582 int ecode5 = 0 ;
20583 int val6 ;
20584 int ecode6 = 0 ;
20585 PyObject * obj0 = 0 ;
20586 PyObject * obj1 = 0 ;
20587 PyObject * obj2 = 0 ;
20588 PyObject * obj3 = 0 ;
20589 PyObject * obj4 = 0 ;
20590 PyObject * obj5 = 0 ;
20591 char * kwnames[] = {
20592 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
20593 };
20594
20595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
20596 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20597 if (!SWIG_IsOK(res1)) {
20598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
20599 }
20600 arg1 = reinterpret_cast< wxDC * >(argp1);
20601 {
20602 arg2 = wxString_in_helper(obj1);
20603 if (arg2 == NULL) SWIG_fail;
20604 temp2 = true;
20605 }
20606 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
20607 if (!SWIG_IsOK(res3)) {
20608 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20609 }
20610 if (!argp3) {
20611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
20612 }
20613 arg3 = reinterpret_cast< wxBitmap * >(argp3);
20614 {
20615 arg4 = &temp4;
20616 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
20617 }
20618 if (obj4) {
20619 ecode5 = SWIG_AsVal_int(obj4, &val5);
20620 if (!SWIG_IsOK(ecode5)) {
20621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
20622 }
20623 arg5 = static_cast< int >(val5);
20624 }
20625 if (obj5) {
20626 ecode6 = SWIG_AsVal_int(obj5, &val6);
20627 if (!SWIG_IsOK(ecode6)) {
20628 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
20629 }
20630 arg6 = static_cast< int >(val6);
20631 }
20632 {
20633 PyThreadState* __tstate = wxPyBeginAllowThreads();
20634 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
20635 wxPyEndAllowThreads(__tstate);
20636 if (PyErr_Occurred()) SWIG_fail;
20637 }
20638 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
20639 {
20640 if (temp2)
20641 delete arg2;
20642 }
20643 return resultobj;
20644 fail:
20645 {
20646 if (temp2)
20647 delete arg2;
20648 }
20649 return NULL;
20650 }
20651
20652
20653 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20654 PyObject *resultobj = 0;
20655 wxDC *arg1 = (wxDC *) 0 ;
20656 int arg2 ;
20657 wxPoint *arg3 = (wxPoint *) 0 ;
20658 void *argp1 = 0 ;
20659 int res1 = 0 ;
20660 PyObject * obj0 = 0 ;
20661 PyObject * obj1 = 0 ;
20662 char * kwnames[] = {
20663 (char *) "self",(char *) "points", NULL
20664 };
20665
20666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
20667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20668 if (!SWIG_IsOK(res1)) {
20669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
20670 }
20671 arg1 = reinterpret_cast< wxDC * >(argp1);
20672 {
20673 arg3 = wxPoint_LIST_helper(obj1, &arg2);
20674 if (arg3 == NULL) SWIG_fail;
20675 }
20676 {
20677 PyThreadState* __tstate = wxPyBeginAllowThreads();
20678 (arg1)->DrawSpline(arg2,arg3);
20679 wxPyEndAllowThreads(__tstate);
20680 if (PyErr_Occurred()) SWIG_fail;
20681 }
20682 resultobj = SWIG_Py_Void();
20683 {
20684 if (arg3) delete [] arg3;
20685 }
20686 return resultobj;
20687 fail:
20688 {
20689 if (arg3) delete [] arg3;
20690 }
20691 return NULL;
20692 }
20693
20694
20695 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20696 PyObject *resultobj = 0;
20697 wxDC *arg1 = (wxDC *) 0 ;
20698 void *argp1 = 0 ;
20699 int res1 = 0 ;
20700 PyObject *swig_obj[1] ;
20701
20702 if (!args) SWIG_fail;
20703 swig_obj[0] = args;
20704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20705 if (!SWIG_IsOK(res1)) {
20706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
20707 }
20708 arg1 = reinterpret_cast< wxDC * >(argp1);
20709 {
20710 PyThreadState* __tstate = wxPyBeginAllowThreads();
20711 (arg1)->Clear();
20712 wxPyEndAllowThreads(__tstate);
20713 if (PyErr_Occurred()) SWIG_fail;
20714 }
20715 resultobj = SWIG_Py_Void();
20716 return resultobj;
20717 fail:
20718 return NULL;
20719 }
20720
20721
20722 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20723 PyObject *resultobj = 0;
20724 wxDC *arg1 = (wxDC *) 0 ;
20725 wxString *arg2 = 0 ;
20726 bool result;
20727 void *argp1 = 0 ;
20728 int res1 = 0 ;
20729 bool temp2 = false ;
20730 PyObject * obj0 = 0 ;
20731 PyObject * obj1 = 0 ;
20732 char * kwnames[] = {
20733 (char *) "self",(char *) "message", NULL
20734 };
20735
20736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
20737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20738 if (!SWIG_IsOK(res1)) {
20739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20740 }
20741 arg1 = reinterpret_cast< wxDC * >(argp1);
20742 {
20743 arg2 = wxString_in_helper(obj1);
20744 if (arg2 == NULL) SWIG_fail;
20745 temp2 = true;
20746 }
20747 {
20748 PyThreadState* __tstate = wxPyBeginAllowThreads();
20749 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
20750 wxPyEndAllowThreads(__tstate);
20751 if (PyErr_Occurred()) SWIG_fail;
20752 }
20753 {
20754 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20755 }
20756 {
20757 if (temp2)
20758 delete arg2;
20759 }
20760 return resultobj;
20761 fail:
20762 {
20763 if (temp2)
20764 delete arg2;
20765 }
20766 return NULL;
20767 }
20768
20769
20770 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20771 PyObject *resultobj = 0;
20772 wxDC *arg1 = (wxDC *) 0 ;
20773 void *argp1 = 0 ;
20774 int res1 = 0 ;
20775 PyObject *swig_obj[1] ;
20776
20777 if (!args) SWIG_fail;
20778 swig_obj[0] = args;
20779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20780 if (!SWIG_IsOK(res1)) {
20781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
20782 }
20783 arg1 = reinterpret_cast< wxDC * >(argp1);
20784 {
20785 PyThreadState* __tstate = wxPyBeginAllowThreads();
20786 (arg1)->EndDoc();
20787 wxPyEndAllowThreads(__tstate);
20788 if (PyErr_Occurred()) SWIG_fail;
20789 }
20790 resultobj = SWIG_Py_Void();
20791 return resultobj;
20792 fail:
20793 return NULL;
20794 }
20795
20796
20797 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20798 PyObject *resultobj = 0;
20799 wxDC *arg1 = (wxDC *) 0 ;
20800 void *argp1 = 0 ;
20801 int res1 = 0 ;
20802 PyObject *swig_obj[1] ;
20803
20804 if (!args) SWIG_fail;
20805 swig_obj[0] = args;
20806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20807 if (!SWIG_IsOK(res1)) {
20808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
20809 }
20810 arg1 = reinterpret_cast< wxDC * >(argp1);
20811 {
20812 PyThreadState* __tstate = wxPyBeginAllowThreads();
20813 (arg1)->StartPage();
20814 wxPyEndAllowThreads(__tstate);
20815 if (PyErr_Occurred()) SWIG_fail;
20816 }
20817 resultobj = SWIG_Py_Void();
20818 return resultobj;
20819 fail:
20820 return NULL;
20821 }
20822
20823
20824 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20825 PyObject *resultobj = 0;
20826 wxDC *arg1 = (wxDC *) 0 ;
20827 void *argp1 = 0 ;
20828 int res1 = 0 ;
20829 PyObject *swig_obj[1] ;
20830
20831 if (!args) SWIG_fail;
20832 swig_obj[0] = args;
20833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20834 if (!SWIG_IsOK(res1)) {
20835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
20836 }
20837 arg1 = reinterpret_cast< wxDC * >(argp1);
20838 {
20839 PyThreadState* __tstate = wxPyBeginAllowThreads();
20840 (arg1)->EndPage();
20841 wxPyEndAllowThreads(__tstate);
20842 if (PyErr_Occurred()) SWIG_fail;
20843 }
20844 resultobj = SWIG_Py_Void();
20845 return resultobj;
20846 fail:
20847 return NULL;
20848 }
20849
20850
20851 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20852 PyObject *resultobj = 0;
20853 wxDC *arg1 = (wxDC *) 0 ;
20854 wxFont *arg2 = 0 ;
20855 void *argp1 = 0 ;
20856 int res1 = 0 ;
20857 void *argp2 = 0 ;
20858 int res2 = 0 ;
20859 PyObject * obj0 = 0 ;
20860 PyObject * obj1 = 0 ;
20861 char * kwnames[] = {
20862 (char *) "self",(char *) "font", NULL
20863 };
20864
20865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
20866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20867 if (!SWIG_IsOK(res1)) {
20868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
20869 }
20870 arg1 = reinterpret_cast< wxDC * >(argp1);
20871 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
20872 if (!SWIG_IsOK(res2)) {
20873 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20874 }
20875 if (!argp2) {
20876 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
20877 }
20878 arg2 = reinterpret_cast< wxFont * >(argp2);
20879 {
20880 PyThreadState* __tstate = wxPyBeginAllowThreads();
20881 (arg1)->SetFont((wxFont const &)*arg2);
20882 wxPyEndAllowThreads(__tstate);
20883 if (PyErr_Occurred()) SWIG_fail;
20884 }
20885 resultobj = SWIG_Py_Void();
20886 return resultobj;
20887 fail:
20888 return NULL;
20889 }
20890
20891
20892 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20893 PyObject *resultobj = 0;
20894 wxDC *arg1 = (wxDC *) 0 ;
20895 wxPen *arg2 = 0 ;
20896 void *argp1 = 0 ;
20897 int res1 = 0 ;
20898 void *argp2 = 0 ;
20899 int res2 = 0 ;
20900 PyObject * obj0 = 0 ;
20901 PyObject * obj1 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "self",(char *) "pen", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
20910 }
20911 arg1 = reinterpret_cast< wxDC * >(argp1);
20912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
20913 if (!SWIG_IsOK(res2)) {
20914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20915 }
20916 if (!argp2) {
20917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
20918 }
20919 arg2 = reinterpret_cast< wxPen * >(argp2);
20920 {
20921 PyThreadState* __tstate = wxPyBeginAllowThreads();
20922 (arg1)->SetPen((wxPen const &)*arg2);
20923 wxPyEndAllowThreads(__tstate);
20924 if (PyErr_Occurred()) SWIG_fail;
20925 }
20926 resultobj = SWIG_Py_Void();
20927 return resultobj;
20928 fail:
20929 return NULL;
20930 }
20931
20932
20933 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20934 PyObject *resultobj = 0;
20935 wxDC *arg1 = (wxDC *) 0 ;
20936 wxBrush *arg2 = 0 ;
20937 void *argp1 = 0 ;
20938 int res1 = 0 ;
20939 void *argp2 = 0 ;
20940 int res2 = 0 ;
20941 PyObject * obj0 = 0 ;
20942 PyObject * obj1 = 0 ;
20943 char * kwnames[] = {
20944 (char *) "self",(char *) "brush", NULL
20945 };
20946
20947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
20948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20949 if (!SWIG_IsOK(res1)) {
20950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
20951 }
20952 arg1 = reinterpret_cast< wxDC * >(argp1);
20953 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20954 if (!SWIG_IsOK(res2)) {
20955 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20956 }
20957 if (!argp2) {
20958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
20959 }
20960 arg2 = reinterpret_cast< wxBrush * >(argp2);
20961 {
20962 PyThreadState* __tstate = wxPyBeginAllowThreads();
20963 (arg1)->SetBrush((wxBrush const &)*arg2);
20964 wxPyEndAllowThreads(__tstate);
20965 if (PyErr_Occurred()) SWIG_fail;
20966 }
20967 resultobj = SWIG_Py_Void();
20968 return resultobj;
20969 fail:
20970 return NULL;
20971 }
20972
20973
20974 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20975 PyObject *resultobj = 0;
20976 wxDC *arg1 = (wxDC *) 0 ;
20977 wxBrush *arg2 = 0 ;
20978 void *argp1 = 0 ;
20979 int res1 = 0 ;
20980 void *argp2 = 0 ;
20981 int res2 = 0 ;
20982 PyObject * obj0 = 0 ;
20983 PyObject * obj1 = 0 ;
20984 char * kwnames[] = {
20985 (char *) "self",(char *) "brush", NULL
20986 };
20987
20988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
20989 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20990 if (!SWIG_IsOK(res1)) {
20991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
20992 }
20993 arg1 = reinterpret_cast< wxDC * >(argp1);
20994 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
20995 if (!SWIG_IsOK(res2)) {
20996 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
20997 }
20998 if (!argp2) {
20999 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
21000 }
21001 arg2 = reinterpret_cast< wxBrush * >(argp2);
21002 {
21003 PyThreadState* __tstate = wxPyBeginAllowThreads();
21004 (arg1)->SetBackground((wxBrush const &)*arg2);
21005 wxPyEndAllowThreads(__tstate);
21006 if (PyErr_Occurred()) SWIG_fail;
21007 }
21008 resultobj = SWIG_Py_Void();
21009 return resultobj;
21010 fail:
21011 return NULL;
21012 }
21013
21014
21015 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21016 PyObject *resultobj = 0;
21017 wxDC *arg1 = (wxDC *) 0 ;
21018 int arg2 ;
21019 void *argp1 = 0 ;
21020 int res1 = 0 ;
21021 int val2 ;
21022 int ecode2 = 0 ;
21023 PyObject * obj0 = 0 ;
21024 PyObject * obj1 = 0 ;
21025 char * kwnames[] = {
21026 (char *) "self",(char *) "mode", NULL
21027 };
21028
21029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
21030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21031 if (!SWIG_IsOK(res1)) {
21032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
21033 }
21034 arg1 = reinterpret_cast< wxDC * >(argp1);
21035 ecode2 = SWIG_AsVal_int(obj1, &val2);
21036 if (!SWIG_IsOK(ecode2)) {
21037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
21038 }
21039 arg2 = static_cast< int >(val2);
21040 {
21041 PyThreadState* __tstate = wxPyBeginAllowThreads();
21042 (arg1)->SetBackgroundMode(arg2);
21043 wxPyEndAllowThreads(__tstate);
21044 if (PyErr_Occurred()) SWIG_fail;
21045 }
21046 resultobj = SWIG_Py_Void();
21047 return resultobj;
21048 fail:
21049 return NULL;
21050 }
21051
21052
21053 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21054 PyObject *resultobj = 0;
21055 wxDC *arg1 = (wxDC *) 0 ;
21056 wxPalette *arg2 = 0 ;
21057 void *argp1 = 0 ;
21058 int res1 = 0 ;
21059 void *argp2 = 0 ;
21060 int res2 = 0 ;
21061 PyObject * obj0 = 0 ;
21062 PyObject * obj1 = 0 ;
21063 char * kwnames[] = {
21064 (char *) "self",(char *) "palette", NULL
21065 };
21066
21067 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
21068 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21069 if (!SWIG_IsOK(res1)) {
21070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
21071 }
21072 arg1 = reinterpret_cast< wxDC * >(argp1);
21073 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
21074 if (!SWIG_IsOK(res2)) {
21075 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21076 }
21077 if (!argp2) {
21078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
21079 }
21080 arg2 = reinterpret_cast< wxPalette * >(argp2);
21081 {
21082 PyThreadState* __tstate = wxPyBeginAllowThreads();
21083 (arg1)->SetPalette((wxPalette const &)*arg2);
21084 wxPyEndAllowThreads(__tstate);
21085 if (PyErr_Occurred()) SWIG_fail;
21086 }
21087 resultobj = SWIG_Py_Void();
21088 return resultobj;
21089 fail:
21090 return NULL;
21091 }
21092
21093
21094 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21095 PyObject *resultobj = 0;
21096 wxDC *arg1 = (wxDC *) 0 ;
21097 void *argp1 = 0 ;
21098 int res1 = 0 ;
21099 PyObject *swig_obj[1] ;
21100
21101 if (!args) SWIG_fail;
21102 swig_obj[0] = args;
21103 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21104 if (!SWIG_IsOK(res1)) {
21105 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
21106 }
21107 arg1 = reinterpret_cast< wxDC * >(argp1);
21108 {
21109 PyThreadState* __tstate = wxPyBeginAllowThreads();
21110 (arg1)->DestroyClippingRegion();
21111 wxPyEndAllowThreads(__tstate);
21112 if (PyErr_Occurred()) SWIG_fail;
21113 }
21114 resultobj = SWIG_Py_Void();
21115 return resultobj;
21116 fail:
21117 return NULL;
21118 }
21119
21120
21121 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21122 PyObject *resultobj = 0;
21123 wxDC *arg1 = (wxDC *) 0 ;
21124 int *arg2 = (int *) 0 ;
21125 int *arg3 = (int *) 0 ;
21126 int *arg4 = (int *) 0 ;
21127 int *arg5 = (int *) 0 ;
21128 void *argp1 = 0 ;
21129 int res1 = 0 ;
21130 int temp2 ;
21131 int res2 = SWIG_TMPOBJ ;
21132 int temp3 ;
21133 int res3 = SWIG_TMPOBJ ;
21134 int temp4 ;
21135 int res4 = SWIG_TMPOBJ ;
21136 int temp5 ;
21137 int res5 = SWIG_TMPOBJ ;
21138 PyObject *swig_obj[1] ;
21139
21140 arg2 = &temp2;
21141 arg3 = &temp3;
21142 arg4 = &temp4;
21143 arg5 = &temp5;
21144 if (!args) SWIG_fail;
21145 swig_obj[0] = args;
21146 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21147 if (!SWIG_IsOK(res1)) {
21148 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
21149 }
21150 arg1 = reinterpret_cast< wxDC * >(argp1);
21151 {
21152 PyThreadState* __tstate = wxPyBeginAllowThreads();
21153 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
21154 wxPyEndAllowThreads(__tstate);
21155 if (PyErr_Occurred()) SWIG_fail;
21156 }
21157 resultobj = SWIG_Py_Void();
21158 if (SWIG_IsTmpObj(res2)) {
21159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21160 } else {
21161 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21163 }
21164 if (SWIG_IsTmpObj(res3)) {
21165 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21166 } else {
21167 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21168 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21169 }
21170 if (SWIG_IsTmpObj(res4)) {
21171 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21172 } else {
21173 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21174 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21175 }
21176 if (SWIG_IsTmpObj(res5)) {
21177 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21178 } else {
21179 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21180 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21181 }
21182 return resultobj;
21183 fail:
21184 return NULL;
21185 }
21186
21187
21188 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21189 PyObject *resultobj = 0;
21190 wxDC *arg1 = (wxDC *) 0 ;
21191 wxRect result;
21192 void *argp1 = 0 ;
21193 int res1 = 0 ;
21194 PyObject *swig_obj[1] ;
21195
21196 if (!args) SWIG_fail;
21197 swig_obj[0] = args;
21198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21199 if (!SWIG_IsOK(res1)) {
21200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
21201 }
21202 arg1 = reinterpret_cast< wxDC * >(argp1);
21203 {
21204 PyThreadState* __tstate = wxPyBeginAllowThreads();
21205 result = wxDC_GetClippingRect(arg1);
21206 wxPyEndAllowThreads(__tstate);
21207 if (PyErr_Occurred()) SWIG_fail;
21208 }
21209 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
21210 return resultobj;
21211 fail:
21212 return NULL;
21213 }
21214
21215
21216 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21217 PyObject *resultobj = 0;
21218 wxDC *arg1 = (wxDC *) 0 ;
21219 int result;
21220 void *argp1 = 0 ;
21221 int res1 = 0 ;
21222 PyObject *swig_obj[1] ;
21223
21224 if (!args) SWIG_fail;
21225 swig_obj[0] = args;
21226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21227 if (!SWIG_IsOK(res1)) {
21228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
21229 }
21230 arg1 = reinterpret_cast< wxDC * >(argp1);
21231 {
21232 PyThreadState* __tstate = wxPyBeginAllowThreads();
21233 result = (int)((wxDC const *)arg1)->GetCharHeight();
21234 wxPyEndAllowThreads(__tstate);
21235 if (PyErr_Occurred()) SWIG_fail;
21236 }
21237 resultobj = SWIG_From_int(static_cast< int >(result));
21238 return resultobj;
21239 fail:
21240 return NULL;
21241 }
21242
21243
21244 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21245 PyObject *resultobj = 0;
21246 wxDC *arg1 = (wxDC *) 0 ;
21247 int result;
21248 void *argp1 = 0 ;
21249 int res1 = 0 ;
21250 PyObject *swig_obj[1] ;
21251
21252 if (!args) SWIG_fail;
21253 swig_obj[0] = args;
21254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21255 if (!SWIG_IsOK(res1)) {
21256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
21257 }
21258 arg1 = reinterpret_cast< wxDC * >(argp1);
21259 {
21260 PyThreadState* __tstate = wxPyBeginAllowThreads();
21261 result = (int)((wxDC const *)arg1)->GetCharWidth();
21262 wxPyEndAllowThreads(__tstate);
21263 if (PyErr_Occurred()) SWIG_fail;
21264 }
21265 resultobj = SWIG_From_int(static_cast< int >(result));
21266 return resultobj;
21267 fail:
21268 return NULL;
21269 }
21270
21271
21272 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21273 PyObject *resultobj = 0;
21274 wxDC *arg1 = (wxDC *) 0 ;
21275 wxString *arg2 = 0 ;
21276 int *arg3 = (int *) 0 ;
21277 int *arg4 = (int *) 0 ;
21278 void *argp1 = 0 ;
21279 int res1 = 0 ;
21280 bool temp2 = false ;
21281 int temp3 ;
21282 int res3 = SWIG_TMPOBJ ;
21283 int temp4 ;
21284 int res4 = SWIG_TMPOBJ ;
21285 PyObject * obj0 = 0 ;
21286 PyObject * obj1 = 0 ;
21287 char * kwnames[] = {
21288 (char *) "self",(char *) "string", NULL
21289 };
21290
21291 arg3 = &temp3;
21292 arg4 = &temp4;
21293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
21294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21295 if (!SWIG_IsOK(res1)) {
21296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21297 }
21298 arg1 = reinterpret_cast< wxDC * >(argp1);
21299 {
21300 arg2 = wxString_in_helper(obj1);
21301 if (arg2 == NULL) SWIG_fail;
21302 temp2 = true;
21303 }
21304 {
21305 PyThreadState* __tstate = wxPyBeginAllowThreads();
21306 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
21307 wxPyEndAllowThreads(__tstate);
21308 if (PyErr_Occurred()) SWIG_fail;
21309 }
21310 resultobj = SWIG_Py_Void();
21311 if (SWIG_IsTmpObj(res3)) {
21312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21313 } else {
21314 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21315 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21316 }
21317 if (SWIG_IsTmpObj(res4)) {
21318 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21319 } else {
21320 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21321 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21322 }
21323 {
21324 if (temp2)
21325 delete arg2;
21326 }
21327 return resultobj;
21328 fail:
21329 {
21330 if (temp2)
21331 delete arg2;
21332 }
21333 return NULL;
21334 }
21335
21336
21337 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21338 PyObject *resultobj = 0;
21339 wxDC *arg1 = (wxDC *) 0 ;
21340 wxString *arg2 = 0 ;
21341 int *arg3 = (int *) 0 ;
21342 int *arg4 = (int *) 0 ;
21343 int *arg5 = (int *) 0 ;
21344 int *arg6 = (int *) 0 ;
21345 wxFont *arg7 = (wxFont *) NULL ;
21346 void *argp1 = 0 ;
21347 int res1 = 0 ;
21348 bool temp2 = false ;
21349 int temp3 ;
21350 int res3 = SWIG_TMPOBJ ;
21351 int temp4 ;
21352 int res4 = SWIG_TMPOBJ ;
21353 int temp5 ;
21354 int res5 = SWIG_TMPOBJ ;
21355 int temp6 ;
21356 int res6 = SWIG_TMPOBJ ;
21357 void *argp7 = 0 ;
21358 int res7 = 0 ;
21359 PyObject * obj0 = 0 ;
21360 PyObject * obj1 = 0 ;
21361 PyObject * obj2 = 0 ;
21362 char * kwnames[] = {
21363 (char *) "self",(char *) "string",(char *) "font", NULL
21364 };
21365
21366 arg3 = &temp3;
21367 arg4 = &temp4;
21368 arg5 = &temp5;
21369 arg6 = &temp6;
21370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21372 if (!SWIG_IsOK(res1)) {
21373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21374 }
21375 arg1 = reinterpret_cast< wxDC * >(argp1);
21376 {
21377 arg2 = wxString_in_helper(obj1);
21378 if (arg2 == NULL) SWIG_fail;
21379 temp2 = true;
21380 }
21381 if (obj2) {
21382 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
21383 if (!SWIG_IsOK(res7)) {
21384 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
21385 }
21386 arg7 = reinterpret_cast< wxFont * >(argp7);
21387 }
21388 {
21389 PyThreadState* __tstate = wxPyBeginAllowThreads();
21390 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
21391 wxPyEndAllowThreads(__tstate);
21392 if (PyErr_Occurred()) SWIG_fail;
21393 }
21394 resultobj = SWIG_Py_Void();
21395 if (SWIG_IsTmpObj(res3)) {
21396 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21397 } else {
21398 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21399 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21400 }
21401 if (SWIG_IsTmpObj(res4)) {
21402 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21403 } else {
21404 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21405 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21406 }
21407 if (SWIG_IsTmpObj(res5)) {
21408 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21409 } else {
21410 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21411 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21412 }
21413 if (SWIG_IsTmpObj(res6)) {
21414 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
21415 } else {
21416 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21417 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
21418 }
21419 {
21420 if (temp2)
21421 delete arg2;
21422 }
21423 return resultobj;
21424 fail:
21425 {
21426 if (temp2)
21427 delete arg2;
21428 }
21429 return NULL;
21430 }
21431
21432
21433 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21434 PyObject *resultobj = 0;
21435 wxDC *arg1 = (wxDC *) 0 ;
21436 wxString *arg2 = 0 ;
21437 int *arg3 = (int *) 0 ;
21438 int *arg4 = (int *) 0 ;
21439 int *arg5 = (int *) 0 ;
21440 wxFont *arg6 = (wxFont *) NULL ;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 bool temp2 = false ;
21444 int temp3 ;
21445 int res3 = SWIG_TMPOBJ ;
21446 int temp4 ;
21447 int res4 = SWIG_TMPOBJ ;
21448 int temp5 ;
21449 int res5 = SWIG_TMPOBJ ;
21450 void *argp6 = 0 ;
21451 int res6 = 0 ;
21452 PyObject * obj0 = 0 ;
21453 PyObject * obj1 = 0 ;
21454 PyObject * obj2 = 0 ;
21455 char * kwnames[] = {
21456 (char *) "self",(char *) "text",(char *) "font", NULL
21457 };
21458
21459 arg3 = &temp3;
21460 arg4 = &temp4;
21461 arg5 = &temp5;
21462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21464 if (!SWIG_IsOK(res1)) {
21465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
21466 }
21467 arg1 = reinterpret_cast< wxDC * >(argp1);
21468 {
21469 arg2 = wxString_in_helper(obj1);
21470 if (arg2 == NULL) SWIG_fail;
21471 temp2 = true;
21472 }
21473 if (obj2) {
21474 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
21475 if (!SWIG_IsOK(res6)) {
21476 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
21477 }
21478 arg6 = reinterpret_cast< wxFont * >(argp6);
21479 }
21480 {
21481 PyThreadState* __tstate = wxPyBeginAllowThreads();
21482 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
21483 wxPyEndAllowThreads(__tstate);
21484 if (PyErr_Occurred()) SWIG_fail;
21485 }
21486 resultobj = SWIG_Py_Void();
21487 if (SWIG_IsTmpObj(res3)) {
21488 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21489 } else {
21490 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21491 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21492 }
21493 if (SWIG_IsTmpObj(res4)) {
21494 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21495 } else {
21496 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21497 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21498 }
21499 if (SWIG_IsTmpObj(res5)) {
21500 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
21501 } else {
21502 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21503 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
21504 }
21505 {
21506 if (temp2)
21507 delete arg2;
21508 }
21509 return resultobj;
21510 fail:
21511 {
21512 if (temp2)
21513 delete arg2;
21514 }
21515 return NULL;
21516 }
21517
21518
21519 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21520 PyObject *resultobj = 0;
21521 wxDC *arg1 = (wxDC *) 0 ;
21522 wxString *arg2 = 0 ;
21523 wxArrayInt result;
21524 void *argp1 = 0 ;
21525 int res1 = 0 ;
21526 bool temp2 = false ;
21527 PyObject * obj0 = 0 ;
21528 PyObject * obj1 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "self",(char *) "text", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
21537 }
21538 arg1 = reinterpret_cast< wxDC * >(argp1);
21539 {
21540 arg2 = wxString_in_helper(obj1);
21541 if (arg2 == NULL) SWIG_fail;
21542 temp2 = true;
21543 }
21544 {
21545 PyThreadState* __tstate = wxPyBeginAllowThreads();
21546 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
21547 wxPyEndAllowThreads(__tstate);
21548 if (PyErr_Occurred()) SWIG_fail;
21549 }
21550 {
21551 resultobj = wxArrayInt2PyList_helper(result);
21552 }
21553 {
21554 if (temp2)
21555 delete arg2;
21556 }
21557 return resultobj;
21558 fail:
21559 {
21560 if (temp2)
21561 delete arg2;
21562 }
21563 return NULL;
21564 }
21565
21566
21567 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21568 PyObject *resultobj = 0;
21569 wxDC *arg1 = (wxDC *) 0 ;
21570 wxSize result;
21571 void *argp1 = 0 ;
21572 int res1 = 0 ;
21573 PyObject *swig_obj[1] ;
21574
21575 if (!args) SWIG_fail;
21576 swig_obj[0] = args;
21577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21578 if (!SWIG_IsOK(res1)) {
21579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
21580 }
21581 arg1 = reinterpret_cast< wxDC * >(argp1);
21582 {
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (arg1)->GetSize();
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21589 return resultobj;
21590 fail:
21591 return NULL;
21592 }
21593
21594
21595 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21596 PyObject *resultobj = 0;
21597 wxDC *arg1 = (wxDC *) 0 ;
21598 int *arg2 = (int *) 0 ;
21599 int *arg3 = (int *) 0 ;
21600 void *argp1 = 0 ;
21601 int res1 = 0 ;
21602 int temp2 ;
21603 int res2 = SWIG_TMPOBJ ;
21604 int temp3 ;
21605 int res3 = SWIG_TMPOBJ ;
21606 PyObject *swig_obj[1] ;
21607
21608 arg2 = &temp2;
21609 arg3 = &temp3;
21610 if (!args) SWIG_fail;
21611 swig_obj[0] = args;
21612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21613 if (!SWIG_IsOK(res1)) {
21614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
21615 }
21616 arg1 = reinterpret_cast< wxDC * >(argp1);
21617 {
21618 PyThreadState* __tstate = wxPyBeginAllowThreads();
21619 (arg1)->GetSize(arg2,arg3);
21620 wxPyEndAllowThreads(__tstate);
21621 if (PyErr_Occurred()) SWIG_fail;
21622 }
21623 resultobj = SWIG_Py_Void();
21624 if (SWIG_IsTmpObj(res2)) {
21625 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21626 } else {
21627 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21628 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21629 }
21630 if (SWIG_IsTmpObj(res3)) {
21631 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21632 } else {
21633 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21634 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21635 }
21636 return resultobj;
21637 fail:
21638 return NULL;
21639 }
21640
21641
21642 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21643 PyObject *resultobj = 0;
21644 wxDC *arg1 = (wxDC *) 0 ;
21645 wxSize result;
21646 void *argp1 = 0 ;
21647 int res1 = 0 ;
21648 PyObject *swig_obj[1] ;
21649
21650 if (!args) SWIG_fail;
21651 swig_obj[0] = args;
21652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21653 if (!SWIG_IsOK(res1)) {
21654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
21655 }
21656 arg1 = reinterpret_cast< wxDC * >(argp1);
21657 {
21658 PyThreadState* __tstate = wxPyBeginAllowThreads();
21659 result = ((wxDC const *)arg1)->GetSizeMM();
21660 wxPyEndAllowThreads(__tstate);
21661 if (PyErr_Occurred()) SWIG_fail;
21662 }
21663 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21664 return resultobj;
21665 fail:
21666 return NULL;
21667 }
21668
21669
21670 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21671 PyObject *resultobj = 0;
21672 wxDC *arg1 = (wxDC *) 0 ;
21673 int *arg2 = (int *) 0 ;
21674 int *arg3 = (int *) 0 ;
21675 void *argp1 = 0 ;
21676 int res1 = 0 ;
21677 int temp2 ;
21678 int res2 = SWIG_TMPOBJ ;
21679 int temp3 ;
21680 int res3 = SWIG_TMPOBJ ;
21681 PyObject *swig_obj[1] ;
21682
21683 arg2 = &temp2;
21684 arg3 = &temp3;
21685 if (!args) SWIG_fail;
21686 swig_obj[0] = args;
21687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21688 if (!SWIG_IsOK(res1)) {
21689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
21690 }
21691 arg1 = reinterpret_cast< wxDC * >(argp1);
21692 {
21693 PyThreadState* __tstate = wxPyBeginAllowThreads();
21694 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
21695 wxPyEndAllowThreads(__tstate);
21696 if (PyErr_Occurred()) SWIG_fail;
21697 }
21698 resultobj = SWIG_Py_Void();
21699 if (SWIG_IsTmpObj(res2)) {
21700 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
21701 } else {
21702 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21703 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
21704 }
21705 if (SWIG_IsTmpObj(res3)) {
21706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21707 } else {
21708 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21710 }
21711 return resultobj;
21712 fail:
21713 return NULL;
21714 }
21715
21716
21717 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21718 PyObject *resultobj = 0;
21719 wxDC *arg1 = (wxDC *) 0 ;
21720 int arg2 ;
21721 int result;
21722 void *argp1 = 0 ;
21723 int res1 = 0 ;
21724 int val2 ;
21725 int ecode2 = 0 ;
21726 PyObject * obj0 = 0 ;
21727 PyObject * obj1 = 0 ;
21728 char * kwnames[] = {
21729 (char *) "self",(char *) "x", NULL
21730 };
21731
21732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
21733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21734 if (!SWIG_IsOK(res1)) {
21735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
21736 }
21737 arg1 = reinterpret_cast< wxDC * >(argp1);
21738 ecode2 = SWIG_AsVal_int(obj1, &val2);
21739 if (!SWIG_IsOK(ecode2)) {
21740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
21741 }
21742 arg2 = static_cast< int >(val2);
21743 {
21744 PyThreadState* __tstate = wxPyBeginAllowThreads();
21745 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
21746 wxPyEndAllowThreads(__tstate);
21747 if (PyErr_Occurred()) SWIG_fail;
21748 }
21749 resultobj = SWIG_From_int(static_cast< int >(result));
21750 return resultobj;
21751 fail:
21752 return NULL;
21753 }
21754
21755
21756 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21757 PyObject *resultobj = 0;
21758 wxDC *arg1 = (wxDC *) 0 ;
21759 int arg2 ;
21760 int result;
21761 void *argp1 = 0 ;
21762 int res1 = 0 ;
21763 int val2 ;
21764 int ecode2 = 0 ;
21765 PyObject * obj0 = 0 ;
21766 PyObject * obj1 = 0 ;
21767 char * kwnames[] = {
21768 (char *) "self",(char *) "y", NULL
21769 };
21770
21771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
21772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21773 if (!SWIG_IsOK(res1)) {
21774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
21775 }
21776 arg1 = reinterpret_cast< wxDC * >(argp1);
21777 ecode2 = SWIG_AsVal_int(obj1, &val2);
21778 if (!SWIG_IsOK(ecode2)) {
21779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
21780 }
21781 arg2 = static_cast< int >(val2);
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
21785 wxPyEndAllowThreads(__tstate);
21786 if (PyErr_Occurred()) SWIG_fail;
21787 }
21788 resultobj = SWIG_From_int(static_cast< int >(result));
21789 return resultobj;
21790 fail:
21791 return NULL;
21792 }
21793
21794
21795 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21796 PyObject *resultobj = 0;
21797 wxDC *arg1 = (wxDC *) 0 ;
21798 int arg2 ;
21799 int result;
21800 void *argp1 = 0 ;
21801 int res1 = 0 ;
21802 int val2 ;
21803 int ecode2 = 0 ;
21804 PyObject * obj0 = 0 ;
21805 PyObject * obj1 = 0 ;
21806 char * kwnames[] = {
21807 (char *) "self",(char *) "x", NULL
21808 };
21809
21810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21812 if (!SWIG_IsOK(res1)) {
21813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21814 }
21815 arg1 = reinterpret_cast< wxDC * >(argp1);
21816 ecode2 = SWIG_AsVal_int(obj1, &val2);
21817 if (!SWIG_IsOK(ecode2)) {
21818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
21819 }
21820 arg2 = static_cast< int >(val2);
21821 {
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 resultobj = SWIG_From_int(static_cast< int >(result));
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = 0;
21836 wxDC *arg1 = (wxDC *) 0 ;
21837 int arg2 ;
21838 int result;
21839 void *argp1 = 0 ;
21840 int res1 = 0 ;
21841 int val2 ;
21842 int ecode2 = 0 ;
21843 PyObject * obj0 = 0 ;
21844 PyObject * obj1 = 0 ;
21845 char * kwnames[] = {
21846 (char *) "self",(char *) "y", NULL
21847 };
21848
21849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
21850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21851 if (!SWIG_IsOK(res1)) {
21852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21853 }
21854 arg1 = reinterpret_cast< wxDC * >(argp1);
21855 ecode2 = SWIG_AsVal_int(obj1, &val2);
21856 if (!SWIG_IsOK(ecode2)) {
21857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
21858 }
21859 arg2 = static_cast< int >(val2);
21860 {
21861 PyThreadState* __tstate = wxPyBeginAllowThreads();
21862 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
21863 wxPyEndAllowThreads(__tstate);
21864 if (PyErr_Occurred()) SWIG_fail;
21865 }
21866 resultobj = SWIG_From_int(static_cast< int >(result));
21867 return resultobj;
21868 fail:
21869 return NULL;
21870 }
21871
21872
21873 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21874 PyObject *resultobj = 0;
21875 wxDC *arg1 = (wxDC *) 0 ;
21876 int arg2 ;
21877 int result;
21878 void *argp1 = 0 ;
21879 int res1 = 0 ;
21880 int val2 ;
21881 int ecode2 = 0 ;
21882 PyObject * obj0 = 0 ;
21883 PyObject * obj1 = 0 ;
21884 char * kwnames[] = {
21885 (char *) "self",(char *) "x", NULL
21886 };
21887
21888 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
21889 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21890 if (!SWIG_IsOK(res1)) {
21891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
21892 }
21893 arg1 = reinterpret_cast< wxDC * >(argp1);
21894 ecode2 = SWIG_AsVal_int(obj1, &val2);
21895 if (!SWIG_IsOK(ecode2)) {
21896 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
21897 }
21898 arg2 = static_cast< int >(val2);
21899 {
21900 PyThreadState* __tstate = wxPyBeginAllowThreads();
21901 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
21902 wxPyEndAllowThreads(__tstate);
21903 if (PyErr_Occurred()) SWIG_fail;
21904 }
21905 resultobj = SWIG_From_int(static_cast< int >(result));
21906 return resultobj;
21907 fail:
21908 return NULL;
21909 }
21910
21911
21912 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21913 PyObject *resultobj = 0;
21914 wxDC *arg1 = (wxDC *) 0 ;
21915 int arg2 ;
21916 int result;
21917 void *argp1 = 0 ;
21918 int res1 = 0 ;
21919 int val2 ;
21920 int ecode2 = 0 ;
21921 PyObject * obj0 = 0 ;
21922 PyObject * obj1 = 0 ;
21923 char * kwnames[] = {
21924 (char *) "self",(char *) "y", NULL
21925 };
21926
21927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
21928 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21929 if (!SWIG_IsOK(res1)) {
21930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
21931 }
21932 arg1 = reinterpret_cast< wxDC * >(argp1);
21933 ecode2 = SWIG_AsVal_int(obj1, &val2);
21934 if (!SWIG_IsOK(ecode2)) {
21935 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
21936 }
21937 arg2 = static_cast< int >(val2);
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 resultobj = SWIG_From_int(static_cast< int >(result));
21945 return resultobj;
21946 fail:
21947 return NULL;
21948 }
21949
21950
21951 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21952 PyObject *resultobj = 0;
21953 wxDC *arg1 = (wxDC *) 0 ;
21954 int arg2 ;
21955 int result;
21956 void *argp1 = 0 ;
21957 int res1 = 0 ;
21958 int val2 ;
21959 int ecode2 = 0 ;
21960 PyObject * obj0 = 0 ;
21961 PyObject * obj1 = 0 ;
21962 char * kwnames[] = {
21963 (char *) "self",(char *) "x", NULL
21964 };
21965
21966 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
21967 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21968 if (!SWIG_IsOK(res1)) {
21969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
21970 }
21971 arg1 = reinterpret_cast< wxDC * >(argp1);
21972 ecode2 = SWIG_AsVal_int(obj1, &val2);
21973 if (!SWIG_IsOK(ecode2)) {
21974 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
21975 }
21976 arg2 = static_cast< int >(val2);
21977 {
21978 PyThreadState* __tstate = wxPyBeginAllowThreads();
21979 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
21980 wxPyEndAllowThreads(__tstate);
21981 if (PyErr_Occurred()) SWIG_fail;
21982 }
21983 resultobj = SWIG_From_int(static_cast< int >(result));
21984 return resultobj;
21985 fail:
21986 return NULL;
21987 }
21988
21989
21990 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21991 PyObject *resultobj = 0;
21992 wxDC *arg1 = (wxDC *) 0 ;
21993 int arg2 ;
21994 int result;
21995 void *argp1 = 0 ;
21996 int res1 = 0 ;
21997 int val2 ;
21998 int ecode2 = 0 ;
21999 PyObject * obj0 = 0 ;
22000 PyObject * obj1 = 0 ;
22001 char * kwnames[] = {
22002 (char *) "self",(char *) "y", NULL
22003 };
22004
22005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
22006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22007 if (!SWIG_IsOK(res1)) {
22008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
22009 }
22010 arg1 = reinterpret_cast< wxDC * >(argp1);
22011 ecode2 = SWIG_AsVal_int(obj1, &val2);
22012 if (!SWIG_IsOK(ecode2)) {
22013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
22014 }
22015 arg2 = static_cast< int >(val2);
22016 {
22017 PyThreadState* __tstate = wxPyBeginAllowThreads();
22018 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
22019 wxPyEndAllowThreads(__tstate);
22020 if (PyErr_Occurred()) SWIG_fail;
22021 }
22022 resultobj = SWIG_From_int(static_cast< int >(result));
22023 return resultobj;
22024 fail:
22025 return NULL;
22026 }
22027
22028
22029 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22030 PyObject *resultobj = 0;
22031 wxDC *arg1 = (wxDC *) 0 ;
22032 bool result;
22033 void *argp1 = 0 ;
22034 int res1 = 0 ;
22035 PyObject *swig_obj[1] ;
22036
22037 if (!args) SWIG_fail;
22038 swig_obj[0] = args;
22039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22040 if (!SWIG_IsOK(res1)) {
22041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
22042 }
22043 arg1 = reinterpret_cast< wxDC * >(argp1);
22044 {
22045 PyThreadState* __tstate = wxPyBeginAllowThreads();
22046 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
22047 wxPyEndAllowThreads(__tstate);
22048 if (PyErr_Occurred()) SWIG_fail;
22049 }
22050 {
22051 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22052 }
22053 return resultobj;
22054 fail:
22055 return NULL;
22056 }
22057
22058
22059 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22060 PyObject *resultobj = 0;
22061 wxDC *arg1 = (wxDC *) 0 ;
22062 bool result;
22063 void *argp1 = 0 ;
22064 int res1 = 0 ;
22065 PyObject *swig_obj[1] ;
22066
22067 if (!args) SWIG_fail;
22068 swig_obj[0] = args;
22069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22070 if (!SWIG_IsOK(res1)) {
22071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
22072 }
22073 arg1 = reinterpret_cast< wxDC * >(argp1);
22074 {
22075 PyThreadState* __tstate = wxPyBeginAllowThreads();
22076 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
22077 wxPyEndAllowThreads(__tstate);
22078 if (PyErr_Occurred()) SWIG_fail;
22079 }
22080 {
22081 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22082 }
22083 return resultobj;
22084 fail:
22085 return NULL;
22086 }
22087
22088
22089 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22090 PyObject *resultobj = 0;
22091 wxDC *arg1 = (wxDC *) 0 ;
22092 int result;
22093 void *argp1 = 0 ;
22094 int res1 = 0 ;
22095 PyObject *swig_obj[1] ;
22096
22097 if (!args) SWIG_fail;
22098 swig_obj[0] = args;
22099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22100 if (!SWIG_IsOK(res1)) {
22101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
22102 }
22103 arg1 = reinterpret_cast< wxDC * >(argp1);
22104 {
22105 PyThreadState* __tstate = wxPyBeginAllowThreads();
22106 result = (int)((wxDC const *)arg1)->GetDepth();
22107 wxPyEndAllowThreads(__tstate);
22108 if (PyErr_Occurred()) SWIG_fail;
22109 }
22110 resultobj = SWIG_From_int(static_cast< int >(result));
22111 return resultobj;
22112 fail:
22113 return NULL;
22114 }
22115
22116
22117 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22118 PyObject *resultobj = 0;
22119 wxDC *arg1 = (wxDC *) 0 ;
22120 wxSize result;
22121 void *argp1 = 0 ;
22122 int res1 = 0 ;
22123 PyObject *swig_obj[1] ;
22124
22125 if (!args) SWIG_fail;
22126 swig_obj[0] = args;
22127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22128 if (!SWIG_IsOK(res1)) {
22129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
22130 }
22131 arg1 = reinterpret_cast< wxDC * >(argp1);
22132 {
22133 PyThreadState* __tstate = wxPyBeginAllowThreads();
22134 result = ((wxDC const *)arg1)->GetPPI();
22135 wxPyEndAllowThreads(__tstate);
22136 if (PyErr_Occurred()) SWIG_fail;
22137 }
22138 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22139 return resultobj;
22140 fail:
22141 return NULL;
22142 }
22143
22144
22145 SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22146 PyObject *resultobj = 0;
22147 wxDC *arg1 = (wxDC *) 0 ;
22148 bool result;
22149 void *argp1 = 0 ;
22150 int res1 = 0 ;
22151 PyObject *swig_obj[1] ;
22152
22153 if (!args) SWIG_fail;
22154 swig_obj[0] = args;
22155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22156 if (!SWIG_IsOK(res1)) {
22157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'");
22158 }
22159 arg1 = reinterpret_cast< wxDC * >(argp1);
22160 {
22161 PyThreadState* __tstate = wxPyBeginAllowThreads();
22162 result = (bool)((wxDC const *)arg1)->IsOk();
22163 wxPyEndAllowThreads(__tstate);
22164 if (PyErr_Occurred()) SWIG_fail;
22165 }
22166 {
22167 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22168 }
22169 return resultobj;
22170 fail:
22171 return NULL;
22172 }
22173
22174
22175 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22176 PyObject *resultobj = 0;
22177 wxDC *arg1 = (wxDC *) 0 ;
22178 int result;
22179 void *argp1 = 0 ;
22180 int res1 = 0 ;
22181 PyObject *swig_obj[1] ;
22182
22183 if (!args) SWIG_fail;
22184 swig_obj[0] = args;
22185 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22186 if (!SWIG_IsOK(res1)) {
22187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22188 }
22189 arg1 = reinterpret_cast< wxDC * >(argp1);
22190 {
22191 PyThreadState* __tstate = wxPyBeginAllowThreads();
22192 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
22193 wxPyEndAllowThreads(__tstate);
22194 if (PyErr_Occurred()) SWIG_fail;
22195 }
22196 resultobj = SWIG_From_int(static_cast< int >(result));
22197 return resultobj;
22198 fail:
22199 return NULL;
22200 }
22201
22202
22203 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22204 PyObject *resultobj = 0;
22205 wxDC *arg1 = (wxDC *) 0 ;
22206 wxBrush *result = 0 ;
22207 void *argp1 = 0 ;
22208 int res1 = 0 ;
22209 PyObject *swig_obj[1] ;
22210
22211 if (!args) SWIG_fail;
22212 swig_obj[0] = args;
22213 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22214 if (!SWIG_IsOK(res1)) {
22215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22216 }
22217 arg1 = reinterpret_cast< wxDC * >(argp1);
22218 {
22219 PyThreadState* __tstate = wxPyBeginAllowThreads();
22220 {
22221 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
22222 result = (wxBrush *) &_result_ref;
22223 }
22224 wxPyEndAllowThreads(__tstate);
22225 if (PyErr_Occurred()) SWIG_fail;
22226 }
22227 {
22228 wxBrush* resultptr = new wxBrush(*result);
22229 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22230 }
22231 return resultobj;
22232 fail:
22233 return NULL;
22234 }
22235
22236
22237 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22238 PyObject *resultobj = 0;
22239 wxDC *arg1 = (wxDC *) 0 ;
22240 wxBrush *result = 0 ;
22241 void *argp1 = 0 ;
22242 int res1 = 0 ;
22243 PyObject *swig_obj[1] ;
22244
22245 if (!args) SWIG_fail;
22246 swig_obj[0] = args;
22247 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22248 if (!SWIG_IsOK(res1)) {
22249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
22250 }
22251 arg1 = reinterpret_cast< wxDC * >(argp1);
22252 {
22253 PyThreadState* __tstate = wxPyBeginAllowThreads();
22254 {
22255 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
22256 result = (wxBrush *) &_result_ref;
22257 }
22258 wxPyEndAllowThreads(__tstate);
22259 if (PyErr_Occurred()) SWIG_fail;
22260 }
22261 {
22262 wxBrush* resultptr = new wxBrush(*result);
22263 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
22264 }
22265 return resultobj;
22266 fail:
22267 return NULL;
22268 }
22269
22270
22271 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22272 PyObject *resultobj = 0;
22273 wxDC *arg1 = (wxDC *) 0 ;
22274 wxFont *result = 0 ;
22275 void *argp1 = 0 ;
22276 int res1 = 0 ;
22277 PyObject *swig_obj[1] ;
22278
22279 if (!args) SWIG_fail;
22280 swig_obj[0] = args;
22281 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22282 if (!SWIG_IsOK(res1)) {
22283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
22284 }
22285 arg1 = reinterpret_cast< wxDC * >(argp1);
22286 {
22287 PyThreadState* __tstate = wxPyBeginAllowThreads();
22288 {
22289 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
22290 result = (wxFont *) &_result_ref;
22291 }
22292 wxPyEndAllowThreads(__tstate);
22293 if (PyErr_Occurred()) SWIG_fail;
22294 }
22295 {
22296 wxFont* resultptr = new wxFont(*result);
22297 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
22298 }
22299 return resultobj;
22300 fail:
22301 return NULL;
22302 }
22303
22304
22305 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22306 PyObject *resultobj = 0;
22307 wxDC *arg1 = (wxDC *) 0 ;
22308 wxPen *result = 0 ;
22309 void *argp1 = 0 ;
22310 int res1 = 0 ;
22311 PyObject *swig_obj[1] ;
22312
22313 if (!args) SWIG_fail;
22314 swig_obj[0] = args;
22315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22316 if (!SWIG_IsOK(res1)) {
22317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
22318 }
22319 arg1 = reinterpret_cast< wxDC * >(argp1);
22320 {
22321 PyThreadState* __tstate = wxPyBeginAllowThreads();
22322 {
22323 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
22324 result = (wxPen *) &_result_ref;
22325 }
22326 wxPyEndAllowThreads(__tstate);
22327 if (PyErr_Occurred()) SWIG_fail;
22328 }
22329 {
22330 wxPen* resultptr = new wxPen(*result);
22331 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
22332 }
22333 return resultobj;
22334 fail:
22335 return NULL;
22336 }
22337
22338
22339 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22340 PyObject *resultobj = 0;
22341 wxDC *arg1 = (wxDC *) 0 ;
22342 wxColour *result = 0 ;
22343 void *argp1 = 0 ;
22344 int res1 = 0 ;
22345 PyObject *swig_obj[1] ;
22346
22347 if (!args) SWIG_fail;
22348 swig_obj[0] = args;
22349 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22350 if (!SWIG_IsOK(res1)) {
22351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
22352 }
22353 arg1 = reinterpret_cast< wxDC * >(argp1);
22354 {
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 {
22357 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
22358 result = (wxColour *) &_result_ref;
22359 }
22360 wxPyEndAllowThreads(__tstate);
22361 if (PyErr_Occurred()) SWIG_fail;
22362 }
22363 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22364 return resultobj;
22365 fail:
22366 return NULL;
22367 }
22368
22369
22370 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22371 PyObject *resultobj = 0;
22372 wxDC *arg1 = (wxDC *) 0 ;
22373 wxColour *result = 0 ;
22374 void *argp1 = 0 ;
22375 int res1 = 0 ;
22376 PyObject *swig_obj[1] ;
22377
22378 if (!args) SWIG_fail;
22379 swig_obj[0] = args;
22380 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22381 if (!SWIG_IsOK(res1)) {
22382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
22383 }
22384 arg1 = reinterpret_cast< wxDC * >(argp1);
22385 {
22386 PyThreadState* __tstate = wxPyBeginAllowThreads();
22387 {
22388 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
22389 result = (wxColour *) &_result_ref;
22390 }
22391 wxPyEndAllowThreads(__tstate);
22392 if (PyErr_Occurred()) SWIG_fail;
22393 }
22394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22395 return resultobj;
22396 fail:
22397 return NULL;
22398 }
22399
22400
22401 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22402 PyObject *resultobj = 0;
22403 wxDC *arg1 = (wxDC *) 0 ;
22404 wxColour *arg2 = 0 ;
22405 void *argp1 = 0 ;
22406 int res1 = 0 ;
22407 wxColour temp2 ;
22408 PyObject * obj0 = 0 ;
22409 PyObject * obj1 = 0 ;
22410 char * kwnames[] = {
22411 (char *) "self",(char *) "colour", NULL
22412 };
22413
22414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
22415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22416 if (!SWIG_IsOK(res1)) {
22417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
22418 }
22419 arg1 = reinterpret_cast< wxDC * >(argp1);
22420 {
22421 arg2 = &temp2;
22422 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22423 }
22424 {
22425 PyThreadState* __tstate = wxPyBeginAllowThreads();
22426 (arg1)->SetTextForeground((wxColour const &)*arg2);
22427 wxPyEndAllowThreads(__tstate);
22428 if (PyErr_Occurred()) SWIG_fail;
22429 }
22430 resultobj = SWIG_Py_Void();
22431 return resultobj;
22432 fail:
22433 return NULL;
22434 }
22435
22436
22437 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22438 PyObject *resultobj = 0;
22439 wxDC *arg1 = (wxDC *) 0 ;
22440 wxColour *arg2 = 0 ;
22441 void *argp1 = 0 ;
22442 int res1 = 0 ;
22443 wxColour temp2 ;
22444 PyObject * obj0 = 0 ;
22445 PyObject * obj1 = 0 ;
22446 char * kwnames[] = {
22447 (char *) "self",(char *) "colour", NULL
22448 };
22449
22450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
22451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22452 if (!SWIG_IsOK(res1)) {
22453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
22454 }
22455 arg1 = reinterpret_cast< wxDC * >(argp1);
22456 {
22457 arg2 = &temp2;
22458 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22459 }
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 (arg1)->SetTextBackground((wxColour const &)*arg2);
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_Py_Void();
22467 return resultobj;
22468 fail:
22469 return NULL;
22470 }
22471
22472
22473 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22474 PyObject *resultobj = 0;
22475 wxDC *arg1 = (wxDC *) 0 ;
22476 int result;
22477 void *argp1 = 0 ;
22478 int res1 = 0 ;
22479 PyObject *swig_obj[1] ;
22480
22481 if (!args) SWIG_fail;
22482 swig_obj[0] = args;
22483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22484 if (!SWIG_IsOK(res1)) {
22485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
22486 }
22487 arg1 = reinterpret_cast< wxDC * >(argp1);
22488 {
22489 PyThreadState* __tstate = wxPyBeginAllowThreads();
22490 result = (int)((wxDC const *)arg1)->GetMapMode();
22491 wxPyEndAllowThreads(__tstate);
22492 if (PyErr_Occurred()) SWIG_fail;
22493 }
22494 resultobj = SWIG_From_int(static_cast< int >(result));
22495 return resultobj;
22496 fail:
22497 return NULL;
22498 }
22499
22500
22501 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22502 PyObject *resultobj = 0;
22503 wxDC *arg1 = (wxDC *) 0 ;
22504 int arg2 ;
22505 void *argp1 = 0 ;
22506 int res1 = 0 ;
22507 int val2 ;
22508 int ecode2 = 0 ;
22509 PyObject * obj0 = 0 ;
22510 PyObject * obj1 = 0 ;
22511 char * kwnames[] = {
22512 (char *) "self",(char *) "mode", NULL
22513 };
22514
22515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
22516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22517 if (!SWIG_IsOK(res1)) {
22518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
22519 }
22520 arg1 = reinterpret_cast< wxDC * >(argp1);
22521 ecode2 = SWIG_AsVal_int(obj1, &val2);
22522 if (!SWIG_IsOK(ecode2)) {
22523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
22524 }
22525 arg2 = static_cast< int >(val2);
22526 {
22527 PyThreadState* __tstate = wxPyBeginAllowThreads();
22528 (arg1)->SetMapMode(arg2);
22529 wxPyEndAllowThreads(__tstate);
22530 if (PyErr_Occurred()) SWIG_fail;
22531 }
22532 resultobj = SWIG_Py_Void();
22533 return resultobj;
22534 fail:
22535 return NULL;
22536 }
22537
22538
22539 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22540 PyObject *resultobj = 0;
22541 wxDC *arg1 = (wxDC *) 0 ;
22542 double *arg2 = (double *) 0 ;
22543 double *arg3 = (double *) 0 ;
22544 void *argp1 = 0 ;
22545 int res1 = 0 ;
22546 double temp2 ;
22547 int res2 = SWIG_TMPOBJ ;
22548 double temp3 ;
22549 int res3 = SWIG_TMPOBJ ;
22550 PyObject *swig_obj[1] ;
22551
22552 arg2 = &temp2;
22553 arg3 = &temp3;
22554 if (!args) SWIG_fail;
22555 swig_obj[0] = args;
22556 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22557 if (!SWIG_IsOK(res1)) {
22558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
22559 }
22560 arg1 = reinterpret_cast< wxDC * >(argp1);
22561 {
22562 PyThreadState* __tstate = wxPyBeginAllowThreads();
22563 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
22564 wxPyEndAllowThreads(__tstate);
22565 if (PyErr_Occurred()) SWIG_fail;
22566 }
22567 resultobj = SWIG_Py_Void();
22568 if (SWIG_IsTmpObj(res2)) {
22569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22570 } else {
22571 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22573 }
22574 if (SWIG_IsTmpObj(res3)) {
22575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22576 } else {
22577 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22579 }
22580 return resultobj;
22581 fail:
22582 return NULL;
22583 }
22584
22585
22586 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22587 PyObject *resultobj = 0;
22588 wxDC *arg1 = (wxDC *) 0 ;
22589 double arg2 ;
22590 double arg3 ;
22591 void *argp1 = 0 ;
22592 int res1 = 0 ;
22593 double val2 ;
22594 int ecode2 = 0 ;
22595 double val3 ;
22596 int ecode3 = 0 ;
22597 PyObject * obj0 = 0 ;
22598 PyObject * obj1 = 0 ;
22599 PyObject * obj2 = 0 ;
22600 char * kwnames[] = {
22601 (char *) "self",(char *) "x",(char *) "y", NULL
22602 };
22603
22604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22606 if (!SWIG_IsOK(res1)) {
22607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
22608 }
22609 arg1 = reinterpret_cast< wxDC * >(argp1);
22610 ecode2 = SWIG_AsVal_double(obj1, &val2);
22611 if (!SWIG_IsOK(ecode2)) {
22612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
22613 }
22614 arg2 = static_cast< double >(val2);
22615 ecode3 = SWIG_AsVal_double(obj2, &val3);
22616 if (!SWIG_IsOK(ecode3)) {
22617 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
22618 }
22619 arg3 = static_cast< double >(val3);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 (arg1)->SetUserScale(arg2,arg3);
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_Py_Void();
22627 return resultobj;
22628 fail:
22629 return NULL;
22630 }
22631
22632
22633 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22634 PyObject *resultobj = 0;
22635 wxDC *arg1 = (wxDC *) 0 ;
22636 double *arg2 = (double *) 0 ;
22637 double *arg3 = (double *) 0 ;
22638 void *argp1 = 0 ;
22639 int res1 = 0 ;
22640 double temp2 ;
22641 int res2 = SWIG_TMPOBJ ;
22642 double temp3 ;
22643 int res3 = SWIG_TMPOBJ ;
22644 PyObject *swig_obj[1] ;
22645
22646 arg2 = &temp2;
22647 arg3 = &temp3;
22648 if (!args) SWIG_fail;
22649 swig_obj[0] = args;
22650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22651 if (!SWIG_IsOK(res1)) {
22652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22653 }
22654 arg1 = reinterpret_cast< wxDC * >(argp1);
22655 {
22656 PyThreadState* __tstate = wxPyBeginAllowThreads();
22657 (arg1)->GetLogicalScale(arg2,arg3);
22658 wxPyEndAllowThreads(__tstate);
22659 if (PyErr_Occurred()) SWIG_fail;
22660 }
22661 resultobj = SWIG_Py_Void();
22662 if (SWIG_IsTmpObj(res2)) {
22663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
22664 } else {
22665 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
22667 }
22668 if (SWIG_IsTmpObj(res3)) {
22669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
22670 } else {
22671 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
22673 }
22674 return resultobj;
22675 fail:
22676 return NULL;
22677 }
22678
22679
22680 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22681 PyObject *resultobj = 0;
22682 wxDC *arg1 = (wxDC *) 0 ;
22683 double arg2 ;
22684 double arg3 ;
22685 void *argp1 = 0 ;
22686 int res1 = 0 ;
22687 double val2 ;
22688 int ecode2 = 0 ;
22689 double val3 ;
22690 int ecode3 = 0 ;
22691 PyObject * obj0 = 0 ;
22692 PyObject * obj1 = 0 ;
22693 PyObject * obj2 = 0 ;
22694 char * kwnames[] = {
22695 (char *) "self",(char *) "x",(char *) "y", NULL
22696 };
22697
22698 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22699 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22700 if (!SWIG_IsOK(res1)) {
22701 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
22702 }
22703 arg1 = reinterpret_cast< wxDC * >(argp1);
22704 ecode2 = SWIG_AsVal_double(obj1, &val2);
22705 if (!SWIG_IsOK(ecode2)) {
22706 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
22707 }
22708 arg2 = static_cast< double >(val2);
22709 ecode3 = SWIG_AsVal_double(obj2, &val3);
22710 if (!SWIG_IsOK(ecode3)) {
22711 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
22712 }
22713 arg3 = static_cast< double >(val3);
22714 {
22715 PyThreadState* __tstate = wxPyBeginAllowThreads();
22716 (arg1)->SetLogicalScale(arg2,arg3);
22717 wxPyEndAllowThreads(__tstate);
22718 if (PyErr_Occurred()) SWIG_fail;
22719 }
22720 resultobj = SWIG_Py_Void();
22721 return resultobj;
22722 fail:
22723 return NULL;
22724 }
22725
22726
22727 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22728 PyObject *resultobj = 0;
22729 wxDC *arg1 = (wxDC *) 0 ;
22730 wxPoint result;
22731 void *argp1 = 0 ;
22732 int res1 = 0 ;
22733 PyObject *swig_obj[1] ;
22734
22735 if (!args) SWIG_fail;
22736 swig_obj[0] = args;
22737 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22738 if (!SWIG_IsOK(res1)) {
22739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22740 }
22741 arg1 = reinterpret_cast< wxDC * >(argp1);
22742 {
22743 PyThreadState* __tstate = wxPyBeginAllowThreads();
22744 result = ((wxDC const *)arg1)->GetLogicalOrigin();
22745 wxPyEndAllowThreads(__tstate);
22746 if (PyErr_Occurred()) SWIG_fail;
22747 }
22748 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22749 return resultobj;
22750 fail:
22751 return NULL;
22752 }
22753
22754
22755 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22756 PyObject *resultobj = 0;
22757 wxDC *arg1 = (wxDC *) 0 ;
22758 int *arg2 = (int *) 0 ;
22759 int *arg3 = (int *) 0 ;
22760 void *argp1 = 0 ;
22761 int res1 = 0 ;
22762 int temp2 ;
22763 int res2 = SWIG_TMPOBJ ;
22764 int temp3 ;
22765 int res3 = SWIG_TMPOBJ ;
22766 PyObject *swig_obj[1] ;
22767
22768 arg2 = &temp2;
22769 arg3 = &temp3;
22770 if (!args) SWIG_fail;
22771 swig_obj[0] = args;
22772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22773 if (!SWIG_IsOK(res1)) {
22774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22775 }
22776 arg1 = reinterpret_cast< wxDC * >(argp1);
22777 {
22778 PyThreadState* __tstate = wxPyBeginAllowThreads();
22779 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
22780 wxPyEndAllowThreads(__tstate);
22781 if (PyErr_Occurred()) SWIG_fail;
22782 }
22783 resultobj = SWIG_Py_Void();
22784 if (SWIG_IsTmpObj(res2)) {
22785 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22786 } else {
22787 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22788 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22789 }
22790 if (SWIG_IsTmpObj(res3)) {
22791 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22792 } else {
22793 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22794 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22795 }
22796 return resultobj;
22797 fail:
22798 return NULL;
22799 }
22800
22801
22802 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22803 PyObject *resultobj = 0;
22804 wxDC *arg1 = (wxDC *) 0 ;
22805 int arg2 ;
22806 int arg3 ;
22807 void *argp1 = 0 ;
22808 int res1 = 0 ;
22809 int val2 ;
22810 int ecode2 = 0 ;
22811 int val3 ;
22812 int ecode3 = 0 ;
22813 PyObject * obj0 = 0 ;
22814 PyObject * obj1 = 0 ;
22815 PyObject * obj2 = 0 ;
22816 char * kwnames[] = {
22817 (char *) "self",(char *) "x",(char *) "y", NULL
22818 };
22819
22820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22821 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22822 if (!SWIG_IsOK(res1)) {
22823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22824 }
22825 arg1 = reinterpret_cast< wxDC * >(argp1);
22826 ecode2 = SWIG_AsVal_int(obj1, &val2);
22827 if (!SWIG_IsOK(ecode2)) {
22828 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
22829 }
22830 arg2 = static_cast< int >(val2);
22831 ecode3 = SWIG_AsVal_int(obj2, &val3);
22832 if (!SWIG_IsOK(ecode3)) {
22833 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
22834 }
22835 arg3 = static_cast< int >(val3);
22836 {
22837 PyThreadState* __tstate = wxPyBeginAllowThreads();
22838 (arg1)->SetLogicalOrigin(arg2,arg3);
22839 wxPyEndAllowThreads(__tstate);
22840 if (PyErr_Occurred()) SWIG_fail;
22841 }
22842 resultobj = SWIG_Py_Void();
22843 return resultobj;
22844 fail:
22845 return NULL;
22846 }
22847
22848
22849 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22850 PyObject *resultobj = 0;
22851 wxDC *arg1 = (wxDC *) 0 ;
22852 wxPoint *arg2 = 0 ;
22853 void *argp1 = 0 ;
22854 int res1 = 0 ;
22855 wxPoint temp2 ;
22856 PyObject * obj0 = 0 ;
22857 PyObject * obj1 = 0 ;
22858 char * kwnames[] = {
22859 (char *) "self",(char *) "point", NULL
22860 };
22861
22862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
22863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22864 if (!SWIG_IsOK(res1)) {
22865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
22866 }
22867 arg1 = reinterpret_cast< wxDC * >(argp1);
22868 {
22869 arg2 = &temp2;
22870 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
22871 }
22872 {
22873 PyThreadState* __tstate = wxPyBeginAllowThreads();
22874 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
22875 wxPyEndAllowThreads(__tstate);
22876 if (PyErr_Occurred()) SWIG_fail;
22877 }
22878 resultobj = SWIG_Py_Void();
22879 return resultobj;
22880 fail:
22881 return NULL;
22882 }
22883
22884
22885 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22886 PyObject *resultobj = 0;
22887 wxDC *arg1 = (wxDC *) 0 ;
22888 wxPoint result;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 PyObject *swig_obj[1] ;
22892
22893 if (!args) SWIG_fail;
22894 swig_obj[0] = args;
22895 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22896 if (!SWIG_IsOK(res1)) {
22897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
22898 }
22899 arg1 = reinterpret_cast< wxDC * >(argp1);
22900 {
22901 PyThreadState* __tstate = wxPyBeginAllowThreads();
22902 result = ((wxDC const *)arg1)->GetDeviceOrigin();
22903 wxPyEndAllowThreads(__tstate);
22904 if (PyErr_Occurred()) SWIG_fail;
22905 }
22906 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
22907 return resultobj;
22908 fail:
22909 return NULL;
22910 }
22911
22912
22913 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22914 PyObject *resultobj = 0;
22915 wxDC *arg1 = (wxDC *) 0 ;
22916 int *arg2 = (int *) 0 ;
22917 int *arg3 = (int *) 0 ;
22918 void *argp1 = 0 ;
22919 int res1 = 0 ;
22920 int temp2 ;
22921 int res2 = SWIG_TMPOBJ ;
22922 int temp3 ;
22923 int res3 = SWIG_TMPOBJ ;
22924 PyObject *swig_obj[1] ;
22925
22926 arg2 = &temp2;
22927 arg3 = &temp3;
22928 if (!args) SWIG_fail;
22929 swig_obj[0] = args;
22930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22931 if (!SWIG_IsOK(res1)) {
22932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
22933 }
22934 arg1 = reinterpret_cast< wxDC * >(argp1);
22935 {
22936 PyThreadState* __tstate = wxPyBeginAllowThreads();
22937 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
22938 wxPyEndAllowThreads(__tstate);
22939 if (PyErr_Occurred()) SWIG_fail;
22940 }
22941 resultobj = SWIG_Py_Void();
22942 if (SWIG_IsTmpObj(res2)) {
22943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
22944 } else {
22945 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22946 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
22947 }
22948 if (SWIG_IsTmpObj(res3)) {
22949 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22950 } else {
22951 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22952 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22953 }
22954 return resultobj;
22955 fail:
22956 return NULL;
22957 }
22958
22959
22960 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22961 PyObject *resultobj = 0;
22962 wxDC *arg1 = (wxDC *) 0 ;
22963 int arg2 ;
22964 int arg3 ;
22965 void *argp1 = 0 ;
22966 int res1 = 0 ;
22967 int val2 ;
22968 int ecode2 = 0 ;
22969 int val3 ;
22970 int ecode3 = 0 ;
22971 PyObject * obj0 = 0 ;
22972 PyObject * obj1 = 0 ;
22973 PyObject * obj2 = 0 ;
22974 char * kwnames[] = {
22975 (char *) "self",(char *) "x",(char *) "y", NULL
22976 };
22977
22978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
22982 }
22983 arg1 = reinterpret_cast< wxDC * >(argp1);
22984 ecode2 = SWIG_AsVal_int(obj1, &val2);
22985 if (!SWIG_IsOK(ecode2)) {
22986 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
22987 }
22988 arg2 = static_cast< int >(val2);
22989 ecode3 = SWIG_AsVal_int(obj2, &val3);
22990 if (!SWIG_IsOK(ecode3)) {
22991 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
22992 }
22993 arg3 = static_cast< int >(val3);
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 (arg1)->SetDeviceOrigin(arg2,arg3);
22997 wxPyEndAllowThreads(__tstate);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 }
23000 resultobj = SWIG_Py_Void();
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23008 PyObject *resultobj = 0;
23009 wxDC *arg1 = (wxDC *) 0 ;
23010 wxPoint *arg2 = 0 ;
23011 void *argp1 = 0 ;
23012 int res1 = 0 ;
23013 wxPoint temp2 ;
23014 PyObject * obj0 = 0 ;
23015 PyObject * obj1 = 0 ;
23016 char * kwnames[] = {
23017 (char *) "self",(char *) "point", NULL
23018 };
23019
23020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23022 if (!SWIG_IsOK(res1)) {
23023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23024 }
23025 arg1 = reinterpret_cast< wxDC * >(argp1);
23026 {
23027 arg2 = &temp2;
23028 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23029 }
23030 {
23031 PyThreadState* __tstate = wxPyBeginAllowThreads();
23032 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
23033 wxPyEndAllowThreads(__tstate);
23034 if (PyErr_Occurred()) SWIG_fail;
23035 }
23036 resultobj = SWIG_Py_Void();
23037 return resultobj;
23038 fail:
23039 return NULL;
23040 }
23041
23042
23043 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23044 PyObject *resultobj = 0;
23045 wxDC *arg1 = (wxDC *) 0 ;
23046 bool arg2 ;
23047 bool arg3 ;
23048 void *argp1 = 0 ;
23049 int res1 = 0 ;
23050 bool val2 ;
23051 int ecode2 = 0 ;
23052 bool val3 ;
23053 int ecode3 = 0 ;
23054 PyObject * obj0 = 0 ;
23055 PyObject * obj1 = 0 ;
23056 PyObject * obj2 = 0 ;
23057 char * kwnames[] = {
23058 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
23059 };
23060
23061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23063 if (!SWIG_IsOK(res1)) {
23064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
23065 }
23066 arg1 = reinterpret_cast< wxDC * >(argp1);
23067 ecode2 = SWIG_AsVal_bool(obj1, &val2);
23068 if (!SWIG_IsOK(ecode2)) {
23069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
23070 }
23071 arg2 = static_cast< bool >(val2);
23072 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23073 if (!SWIG_IsOK(ecode3)) {
23074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
23075 }
23076 arg3 = static_cast< bool >(val3);
23077 {
23078 PyThreadState* __tstate = wxPyBeginAllowThreads();
23079 (arg1)->SetAxisOrientation(arg2,arg3);
23080 wxPyEndAllowThreads(__tstate);
23081 if (PyErr_Occurred()) SWIG_fail;
23082 }
23083 resultobj = SWIG_Py_Void();
23084 return resultobj;
23085 fail:
23086 return NULL;
23087 }
23088
23089
23090 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23091 PyObject *resultobj = 0;
23092 wxDC *arg1 = (wxDC *) 0 ;
23093 int result;
23094 void *argp1 = 0 ;
23095 int res1 = 0 ;
23096 PyObject *swig_obj[1] ;
23097
23098 if (!args) SWIG_fail;
23099 swig_obj[0] = args;
23100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23101 if (!SWIG_IsOK(res1)) {
23102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
23103 }
23104 arg1 = reinterpret_cast< wxDC * >(argp1);
23105 {
23106 PyThreadState* __tstate = wxPyBeginAllowThreads();
23107 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
23108 wxPyEndAllowThreads(__tstate);
23109 if (PyErr_Occurred()) SWIG_fail;
23110 }
23111 resultobj = SWIG_From_int(static_cast< int >(result));
23112 return resultobj;
23113 fail:
23114 return NULL;
23115 }
23116
23117
23118 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23119 PyObject *resultobj = 0;
23120 wxDC *arg1 = (wxDC *) 0 ;
23121 int arg2 ;
23122 void *argp1 = 0 ;
23123 int res1 = 0 ;
23124 int val2 ;
23125 int ecode2 = 0 ;
23126 PyObject * obj0 = 0 ;
23127 PyObject * obj1 = 0 ;
23128 char * kwnames[] = {
23129 (char *) "self",(char *) "function", NULL
23130 };
23131
23132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
23133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23134 if (!SWIG_IsOK(res1)) {
23135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
23136 }
23137 arg1 = reinterpret_cast< wxDC * >(argp1);
23138 ecode2 = SWIG_AsVal_int(obj1, &val2);
23139 if (!SWIG_IsOK(ecode2)) {
23140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
23141 }
23142 arg2 = static_cast< int >(val2);
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 (arg1)->SetLogicalFunction(arg2);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 resultobj = SWIG_Py_Void();
23150 return resultobj;
23151 fail:
23152 return NULL;
23153 }
23154
23155
23156 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23157 PyObject *resultobj = 0;
23158 wxDC *arg1 = (wxDC *) 0 ;
23159 void *argp1 = 0 ;
23160 int res1 = 0 ;
23161 PyObject *swig_obj[1] ;
23162
23163 if (!args) SWIG_fail;
23164 swig_obj[0] = args;
23165 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23166 if (!SWIG_IsOK(res1)) {
23167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
23168 }
23169 arg1 = reinterpret_cast< wxDC * >(argp1);
23170 {
23171 PyThreadState* __tstate = wxPyBeginAllowThreads();
23172 (arg1)->ComputeScaleAndOrigin();
23173 wxPyEndAllowThreads(__tstate);
23174 if (PyErr_Occurred()) SWIG_fail;
23175 }
23176 resultobj = SWIG_Py_Void();
23177 return resultobj;
23178 fail:
23179 return NULL;
23180 }
23181
23182
23183 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23184 PyObject *resultobj = 0;
23185 wxDC *arg1 = (wxDC *) 0 ;
23186 int arg2 ;
23187 int arg3 ;
23188 void *argp1 = 0 ;
23189 int res1 = 0 ;
23190 int val2 ;
23191 int ecode2 = 0 ;
23192 int val3 ;
23193 int ecode3 = 0 ;
23194 PyObject * obj0 = 0 ;
23195 PyObject * obj1 = 0 ;
23196 PyObject * obj2 = 0 ;
23197 char * kwnames[] = {
23198 (char *) "self",(char *) "x",(char *) "y", NULL
23199 };
23200
23201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23203 if (!SWIG_IsOK(res1)) {
23204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23205 }
23206 arg1 = reinterpret_cast< wxDC * >(argp1);
23207 ecode2 = SWIG_AsVal_int(obj1, &val2);
23208 if (!SWIG_IsOK(ecode2)) {
23209 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
23210 }
23211 arg2 = static_cast< int >(val2);
23212 ecode3 = SWIG_AsVal_int(obj2, &val3);
23213 if (!SWIG_IsOK(ecode3)) {
23214 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
23215 }
23216 arg3 = static_cast< int >(val3);
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 (arg1)->CalcBoundingBox(arg2,arg3);
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = SWIG_Py_Void();
23224 return resultobj;
23225 fail:
23226 return NULL;
23227 }
23228
23229
23230 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23231 PyObject *resultobj = 0;
23232 wxDC *arg1 = (wxDC *) 0 ;
23233 wxPoint *arg2 = 0 ;
23234 void *argp1 = 0 ;
23235 int res1 = 0 ;
23236 wxPoint temp2 ;
23237 PyObject * obj0 = 0 ;
23238 PyObject * obj1 = 0 ;
23239 char * kwnames[] = {
23240 (char *) "self",(char *) "point", NULL
23241 };
23242
23243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
23244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23245 if (!SWIG_IsOK(res1)) {
23246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
23247 }
23248 arg1 = reinterpret_cast< wxDC * >(argp1);
23249 {
23250 arg2 = &temp2;
23251 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
23252 }
23253 {
23254 PyThreadState* __tstate = wxPyBeginAllowThreads();
23255 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
23256 wxPyEndAllowThreads(__tstate);
23257 if (PyErr_Occurred()) SWIG_fail;
23258 }
23259 resultobj = SWIG_Py_Void();
23260 return resultobj;
23261 fail:
23262 return NULL;
23263 }
23264
23265
23266 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23267 PyObject *resultobj = 0;
23268 wxDC *arg1 = (wxDC *) 0 ;
23269 void *argp1 = 0 ;
23270 int res1 = 0 ;
23271 PyObject *swig_obj[1] ;
23272
23273 if (!args) SWIG_fail;
23274 swig_obj[0] = args;
23275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23276 if (!SWIG_IsOK(res1)) {
23277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23278 }
23279 arg1 = reinterpret_cast< wxDC * >(argp1);
23280 {
23281 PyThreadState* __tstate = wxPyBeginAllowThreads();
23282 (arg1)->ResetBoundingBox();
23283 wxPyEndAllowThreads(__tstate);
23284 if (PyErr_Occurred()) SWIG_fail;
23285 }
23286 resultobj = SWIG_Py_Void();
23287 return resultobj;
23288 fail:
23289 return NULL;
23290 }
23291
23292
23293 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23294 PyObject *resultobj = 0;
23295 wxDC *arg1 = (wxDC *) 0 ;
23296 int result;
23297 void *argp1 = 0 ;
23298 int res1 = 0 ;
23299 PyObject *swig_obj[1] ;
23300
23301 if (!args) SWIG_fail;
23302 swig_obj[0] = args;
23303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23304 if (!SWIG_IsOK(res1)) {
23305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
23306 }
23307 arg1 = reinterpret_cast< wxDC * >(argp1);
23308 {
23309 PyThreadState* __tstate = wxPyBeginAllowThreads();
23310 result = (int)((wxDC const *)arg1)->MinX();
23311 wxPyEndAllowThreads(__tstate);
23312 if (PyErr_Occurred()) SWIG_fail;
23313 }
23314 resultobj = SWIG_From_int(static_cast< int >(result));
23315 return resultobj;
23316 fail:
23317 return NULL;
23318 }
23319
23320
23321 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23322 PyObject *resultobj = 0;
23323 wxDC *arg1 = (wxDC *) 0 ;
23324 int result;
23325 void *argp1 = 0 ;
23326 int res1 = 0 ;
23327 PyObject *swig_obj[1] ;
23328
23329 if (!args) SWIG_fail;
23330 swig_obj[0] = args;
23331 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23332 if (!SWIG_IsOK(res1)) {
23333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
23334 }
23335 arg1 = reinterpret_cast< wxDC * >(argp1);
23336 {
23337 PyThreadState* __tstate = wxPyBeginAllowThreads();
23338 result = (int)((wxDC const *)arg1)->MaxX();
23339 wxPyEndAllowThreads(__tstate);
23340 if (PyErr_Occurred()) SWIG_fail;
23341 }
23342 resultobj = SWIG_From_int(static_cast< int >(result));
23343 return resultobj;
23344 fail:
23345 return NULL;
23346 }
23347
23348
23349 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23350 PyObject *resultobj = 0;
23351 wxDC *arg1 = (wxDC *) 0 ;
23352 int result;
23353 void *argp1 = 0 ;
23354 int res1 = 0 ;
23355 PyObject *swig_obj[1] ;
23356
23357 if (!args) SWIG_fail;
23358 swig_obj[0] = args;
23359 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23360 if (!SWIG_IsOK(res1)) {
23361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
23362 }
23363 arg1 = reinterpret_cast< wxDC * >(argp1);
23364 {
23365 PyThreadState* __tstate = wxPyBeginAllowThreads();
23366 result = (int)((wxDC const *)arg1)->MinY();
23367 wxPyEndAllowThreads(__tstate);
23368 if (PyErr_Occurred()) SWIG_fail;
23369 }
23370 resultobj = SWIG_From_int(static_cast< int >(result));
23371 return resultobj;
23372 fail:
23373 return NULL;
23374 }
23375
23376
23377 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23378 PyObject *resultobj = 0;
23379 wxDC *arg1 = (wxDC *) 0 ;
23380 int result;
23381 void *argp1 = 0 ;
23382 int res1 = 0 ;
23383 PyObject *swig_obj[1] ;
23384
23385 if (!args) SWIG_fail;
23386 swig_obj[0] = args;
23387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23388 if (!SWIG_IsOK(res1)) {
23389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
23390 }
23391 arg1 = reinterpret_cast< wxDC * >(argp1);
23392 {
23393 PyThreadState* __tstate = wxPyBeginAllowThreads();
23394 result = (int)((wxDC const *)arg1)->MaxY();
23395 wxPyEndAllowThreads(__tstate);
23396 if (PyErr_Occurred()) SWIG_fail;
23397 }
23398 resultobj = SWIG_From_int(static_cast< int >(result));
23399 return resultobj;
23400 fail:
23401 return NULL;
23402 }
23403
23404
23405 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23406 PyObject *resultobj = 0;
23407 wxDC *arg1 = (wxDC *) 0 ;
23408 int *arg2 = (int *) 0 ;
23409 int *arg3 = (int *) 0 ;
23410 int *arg4 = (int *) 0 ;
23411 int *arg5 = (int *) 0 ;
23412 void *argp1 = 0 ;
23413 int res1 = 0 ;
23414 int temp2 ;
23415 int res2 = SWIG_TMPOBJ ;
23416 int temp3 ;
23417 int res3 = SWIG_TMPOBJ ;
23418 int temp4 ;
23419 int res4 = SWIG_TMPOBJ ;
23420 int temp5 ;
23421 int res5 = SWIG_TMPOBJ ;
23422 PyObject *swig_obj[1] ;
23423
23424 arg2 = &temp2;
23425 arg3 = &temp3;
23426 arg4 = &temp4;
23427 arg5 = &temp5;
23428 if (!args) SWIG_fail;
23429 swig_obj[0] = args;
23430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23431 if (!SWIG_IsOK(res1)) {
23432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
23433 }
23434 arg1 = reinterpret_cast< wxDC * >(argp1);
23435 {
23436 PyThreadState* __tstate = wxPyBeginAllowThreads();
23437 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
23438 wxPyEndAllowThreads(__tstate);
23439 if (PyErr_Occurred()) SWIG_fail;
23440 }
23441 resultobj = SWIG_Py_Void();
23442 if (SWIG_IsTmpObj(res2)) {
23443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
23444 } else {
23445 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
23447 }
23448 if (SWIG_IsTmpObj(res3)) {
23449 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
23450 } else {
23451 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23452 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
23453 }
23454 if (SWIG_IsTmpObj(res4)) {
23455 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
23456 } else {
23457 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23458 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
23459 }
23460 if (SWIG_IsTmpObj(res5)) {
23461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
23462 } else {
23463 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
23464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
23465 }
23466 return resultobj;
23467 fail:
23468 return NULL;
23469 }
23470
23471
23472 SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23473 PyObject *resultobj = 0;
23474 wxDC *arg1 = (wxDC *) 0 ;
23475 wxLayoutDirection result;
23476 void *argp1 = 0 ;
23477 int res1 = 0 ;
23478 PyObject *swig_obj[1] ;
23479
23480 if (!args) SWIG_fail;
23481 swig_obj[0] = args;
23482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23483 if (!SWIG_IsOK(res1)) {
23484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'");
23485 }
23486 arg1 = reinterpret_cast< wxDC * >(argp1);
23487 {
23488 PyThreadState* __tstate = wxPyBeginAllowThreads();
23489 result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection();
23490 wxPyEndAllowThreads(__tstate);
23491 if (PyErr_Occurred()) SWIG_fail;
23492 }
23493 resultobj = SWIG_From_int(static_cast< int >(result));
23494 return resultobj;
23495 fail:
23496 return NULL;
23497 }
23498
23499
23500 SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23501 PyObject *resultobj = 0;
23502 wxDC *arg1 = (wxDC *) 0 ;
23503 wxLayoutDirection arg2 ;
23504 void *argp1 = 0 ;
23505 int res1 = 0 ;
23506 int val2 ;
23507 int ecode2 = 0 ;
23508 PyObject * obj0 = 0 ;
23509 PyObject * obj1 = 0 ;
23510 char * kwnames[] = {
23511 (char *) "self",(char *) "dir", NULL
23512 };
23513
23514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail;
23515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23516 if (!SWIG_IsOK(res1)) {
23517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'");
23518 }
23519 arg1 = reinterpret_cast< wxDC * >(argp1);
23520 ecode2 = SWIG_AsVal_int(obj1, &val2);
23521 if (!SWIG_IsOK(ecode2)) {
23522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'");
23523 }
23524 arg2 = static_cast< wxLayoutDirection >(val2);
23525 {
23526 PyThreadState* __tstate = wxPyBeginAllowThreads();
23527 (arg1)->SetLayoutDirection(arg2);
23528 wxPyEndAllowThreads(__tstate);
23529 if (PyErr_Occurred()) SWIG_fail;
23530 }
23531 resultobj = SWIG_Py_Void();
23532 return resultobj;
23533 fail:
23534 return NULL;
23535 }
23536
23537
23538 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23539 PyObject *resultobj = 0;
23540 wxDC *arg1 = (wxDC *) 0 ;
23541 long result;
23542 void *argp1 = 0 ;
23543 int res1 = 0 ;
23544 PyObject *swig_obj[1] ;
23545
23546 if (!args) SWIG_fail;
23547 swig_obj[0] = args;
23548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23549 if (!SWIG_IsOK(res1)) {
23550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
23551 }
23552 arg1 = reinterpret_cast< wxDC * >(argp1);
23553 {
23554 PyThreadState* __tstate = wxPyBeginAllowThreads();
23555 result = (long)(arg1)->GetHDC();
23556 wxPyEndAllowThreads(__tstate);
23557 if (PyErr_Occurred()) SWIG_fail;
23558 }
23559 resultobj = SWIG_From_long(static_cast< long >(result));
23560 return resultobj;
23561 fail:
23562 return NULL;
23563 }
23564
23565
23566 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23567 PyObject *resultobj = 0;
23568 wxDC *arg1 = (wxDC *) 0 ;
23569 PyObject *arg2 = (PyObject *) 0 ;
23570 PyObject *arg3 = (PyObject *) 0 ;
23571 PyObject *arg4 = (PyObject *) 0 ;
23572 PyObject *result = 0 ;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 PyObject * obj0 = 0 ;
23576 PyObject * obj1 = 0 ;
23577 PyObject * obj2 = 0 ;
23578 PyObject * obj3 = 0 ;
23579 char * kwnames[] = {
23580 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23581 };
23582
23583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23585 if (!SWIG_IsOK(res1)) {
23586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
23587 }
23588 arg1 = reinterpret_cast< wxDC * >(argp1);
23589 arg2 = obj1;
23590 arg3 = obj2;
23591 arg4 = obj3;
23592 {
23593 PyThreadState* __tstate = wxPyBeginAllowThreads();
23594 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
23595 wxPyEndAllowThreads(__tstate);
23596 if (PyErr_Occurred()) SWIG_fail;
23597 }
23598 resultobj = result;
23599 return resultobj;
23600 fail:
23601 return NULL;
23602 }
23603
23604
23605 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23606 PyObject *resultobj = 0;
23607 wxDC *arg1 = (wxDC *) 0 ;
23608 PyObject *arg2 = (PyObject *) 0 ;
23609 PyObject *arg3 = (PyObject *) 0 ;
23610 PyObject *arg4 = (PyObject *) 0 ;
23611 PyObject *result = 0 ;
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 PyObject * obj0 = 0 ;
23615 PyObject * obj1 = 0 ;
23616 PyObject * obj2 = 0 ;
23617 PyObject * obj3 = 0 ;
23618 char * kwnames[] = {
23619 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23620 };
23621
23622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23624 if (!SWIG_IsOK(res1)) {
23625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
23626 }
23627 arg1 = reinterpret_cast< wxDC * >(argp1);
23628 arg2 = obj1;
23629 arg3 = obj2;
23630 arg4 = obj3;
23631 {
23632 PyThreadState* __tstate = wxPyBeginAllowThreads();
23633 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
23634 wxPyEndAllowThreads(__tstate);
23635 if (PyErr_Occurred()) SWIG_fail;
23636 }
23637 resultobj = result;
23638 return resultobj;
23639 fail:
23640 return NULL;
23641 }
23642
23643
23644 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23645 PyObject *resultobj = 0;
23646 wxDC *arg1 = (wxDC *) 0 ;
23647 PyObject *arg2 = (PyObject *) 0 ;
23648 PyObject *arg3 = (PyObject *) 0 ;
23649 PyObject *arg4 = (PyObject *) 0 ;
23650 PyObject *result = 0 ;
23651 void *argp1 = 0 ;
23652 int res1 = 0 ;
23653 PyObject * obj0 = 0 ;
23654 PyObject * obj1 = 0 ;
23655 PyObject * obj2 = 0 ;
23656 PyObject * obj3 = 0 ;
23657 char * kwnames[] = {
23658 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23659 };
23660
23661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23662 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23663 if (!SWIG_IsOK(res1)) {
23664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
23665 }
23666 arg1 = reinterpret_cast< wxDC * >(argp1);
23667 arg2 = obj1;
23668 arg3 = obj2;
23669 arg4 = obj3;
23670 {
23671 PyThreadState* __tstate = wxPyBeginAllowThreads();
23672 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
23673 wxPyEndAllowThreads(__tstate);
23674 if (PyErr_Occurred()) SWIG_fail;
23675 }
23676 resultobj = result;
23677 return resultobj;
23678 fail:
23679 return NULL;
23680 }
23681
23682
23683 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23684 PyObject *resultobj = 0;
23685 wxDC *arg1 = (wxDC *) 0 ;
23686 PyObject *arg2 = (PyObject *) 0 ;
23687 PyObject *arg3 = (PyObject *) 0 ;
23688 PyObject *arg4 = (PyObject *) 0 ;
23689 PyObject *result = 0 ;
23690 void *argp1 = 0 ;
23691 int res1 = 0 ;
23692 PyObject * obj0 = 0 ;
23693 PyObject * obj1 = 0 ;
23694 PyObject * obj2 = 0 ;
23695 PyObject * obj3 = 0 ;
23696 char * kwnames[] = {
23697 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23698 };
23699
23700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23702 if (!SWIG_IsOK(res1)) {
23703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
23704 }
23705 arg1 = reinterpret_cast< wxDC * >(argp1);
23706 arg2 = obj1;
23707 arg3 = obj2;
23708 arg4 = obj3;
23709 {
23710 PyThreadState* __tstate = wxPyBeginAllowThreads();
23711 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
23712 wxPyEndAllowThreads(__tstate);
23713 if (PyErr_Occurred()) SWIG_fail;
23714 }
23715 resultobj = result;
23716 return resultobj;
23717 fail:
23718 return NULL;
23719 }
23720
23721
23722 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23723 PyObject *resultobj = 0;
23724 wxDC *arg1 = (wxDC *) 0 ;
23725 PyObject *arg2 = (PyObject *) 0 ;
23726 PyObject *arg3 = (PyObject *) 0 ;
23727 PyObject *arg4 = (PyObject *) 0 ;
23728 PyObject *result = 0 ;
23729 void *argp1 = 0 ;
23730 int res1 = 0 ;
23731 PyObject * obj0 = 0 ;
23732 PyObject * obj1 = 0 ;
23733 PyObject * obj2 = 0 ;
23734 PyObject * obj3 = 0 ;
23735 char * kwnames[] = {
23736 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
23737 };
23738
23739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23741 if (!SWIG_IsOK(res1)) {
23742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
23743 }
23744 arg1 = reinterpret_cast< wxDC * >(argp1);
23745 arg2 = obj1;
23746 arg3 = obj2;
23747 arg4 = obj3;
23748 {
23749 PyThreadState* __tstate = wxPyBeginAllowThreads();
23750 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
23751 wxPyEndAllowThreads(__tstate);
23752 if (PyErr_Occurred()) SWIG_fail;
23753 }
23754 resultobj = result;
23755 return resultobj;
23756 fail:
23757 return NULL;
23758 }
23759
23760
23761 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23762 PyObject *resultobj = 0;
23763 wxDC *arg1 = (wxDC *) 0 ;
23764 PyObject *arg2 = (PyObject *) 0 ;
23765 PyObject *arg3 = (PyObject *) 0 ;
23766 PyObject *arg4 = (PyObject *) 0 ;
23767 PyObject *arg5 = (PyObject *) 0 ;
23768 PyObject *result = 0 ;
23769 void *argp1 = 0 ;
23770 int res1 = 0 ;
23771 PyObject * obj0 = 0 ;
23772 PyObject * obj1 = 0 ;
23773 PyObject * obj2 = 0 ;
23774 PyObject * obj3 = 0 ;
23775 PyObject * obj4 = 0 ;
23776 char * kwnames[] = {
23777 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
23778 };
23779
23780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
23781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23782 if (!SWIG_IsOK(res1)) {
23783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
23784 }
23785 arg1 = reinterpret_cast< wxDC * >(argp1);
23786 arg2 = obj1;
23787 arg3 = obj2;
23788 arg4 = obj3;
23789 arg5 = obj4;
23790 {
23791 PyThreadState* __tstate = wxPyBeginAllowThreads();
23792 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
23793 wxPyEndAllowThreads(__tstate);
23794 if (PyErr_Occurred()) SWIG_fail;
23795 }
23796 resultobj = result;
23797 return resultobj;
23798 fail:
23799 return NULL;
23800 }
23801
23802
23803 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23804 PyObject *obj;
23805 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23806 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
23807 return SWIG_Py_Void();
23808 }
23809
23810 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23811 PyObject *resultobj = 0;
23812 wxBitmap const &arg1_defvalue = wxNullBitmap ;
23813 wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ;
23814 wxMemoryDC *result = 0 ;
23815 void *argp1 = 0 ;
23816 int res1 = 0 ;
23817 PyObject * obj0 = 0 ;
23818 char * kwnames[] = {
23819 (char *) "bitmap", NULL
23820 };
23821
23822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail;
23823 if (obj0) {
23824 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
23825 if (!SWIG_IsOK(res1)) {
23826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23827 }
23828 if (!argp1) {
23829 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'");
23830 }
23831 arg1 = reinterpret_cast< wxBitmap * >(argp1);
23832 }
23833 {
23834 if (!wxPyCheckForApp()) SWIG_fail;
23835 PyThreadState* __tstate = wxPyBeginAllowThreads();
23836 result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1);
23837 wxPyEndAllowThreads(__tstate);
23838 if (PyErr_Occurred()) SWIG_fail;
23839 }
23840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
23841 return resultobj;
23842 fail:
23843 return NULL;
23844 }
23845
23846
23847 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23848 PyObject *resultobj = 0;
23849 wxDC *arg1 = (wxDC *) 0 ;
23850 wxMemoryDC *result = 0 ;
23851 void *argp1 = 0 ;
23852 int res1 = 0 ;
23853 PyObject * obj0 = 0 ;
23854 char * kwnames[] = {
23855 (char *) "oldDC", NULL
23856 };
23857
23858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
23859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
23860 if (!SWIG_IsOK(res1)) {
23861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
23862 }
23863 arg1 = reinterpret_cast< wxDC * >(argp1);
23864 {
23865 if (!wxPyCheckForApp()) SWIG_fail;
23866 PyThreadState* __tstate = wxPyBeginAllowThreads();
23867 result = (wxMemoryDC *)new wxMemoryDC(arg1);
23868 wxPyEndAllowThreads(__tstate);
23869 if (PyErr_Occurred()) SWIG_fail;
23870 }
23871 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
23872 return resultobj;
23873 fail:
23874 return NULL;
23875 }
23876
23877
23878 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23879 PyObject *resultobj = 0;
23880 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
23881 wxBitmap *arg2 = 0 ;
23882 void *argp1 = 0 ;
23883 int res1 = 0 ;
23884 void *argp2 = 0 ;
23885 int res2 = 0 ;
23886 PyObject * obj0 = 0 ;
23887 PyObject * obj1 = 0 ;
23888 char * kwnames[] = {
23889 (char *) "self",(char *) "bitmap", NULL
23890 };
23891
23892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
23893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
23894 if (!SWIG_IsOK(res1)) {
23895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
23896 }
23897 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
23898 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
23899 if (!SWIG_IsOK(res2)) {
23900 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23901 }
23902 if (!argp2) {
23903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
23904 }
23905 arg2 = reinterpret_cast< wxBitmap * >(argp2);
23906 {
23907 PyThreadState* __tstate = wxPyBeginAllowThreads();
23908 (arg1)->SelectObject((wxBitmap const &)*arg2);
23909 wxPyEndAllowThreads(__tstate);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 }
23912 resultobj = SWIG_Py_Void();
23913 return resultobj;
23914 fail:
23915 return NULL;
23916 }
23917
23918
23919 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23920 PyObject *obj;
23921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23922 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
23923 return SWIG_Py_Void();
23924 }
23925
23926 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23927 return SWIG_Python_InitShadowInstance(args);
23928 }
23929
23930 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23931 PyObject *resultobj = 0;
23932 wxScreenDC *result = 0 ;
23933
23934 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
23935 {
23936 if (!wxPyCheckForApp()) SWIG_fail;
23937 PyThreadState* __tstate = wxPyBeginAllowThreads();
23938 result = (wxScreenDC *)new wxScreenDC();
23939 wxPyEndAllowThreads(__tstate);
23940 if (PyErr_Occurred()) SWIG_fail;
23941 }
23942 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
23943 return resultobj;
23944 fail:
23945 return NULL;
23946 }
23947
23948
23949 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23950 PyObject *resultobj = 0;
23951 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23952 wxWindow *arg2 = (wxWindow *) 0 ;
23953 bool result;
23954 void *argp1 = 0 ;
23955 int res1 = 0 ;
23956 void *argp2 = 0 ;
23957 int res2 = 0 ;
23958 PyObject * obj0 = 0 ;
23959 PyObject * obj1 = 0 ;
23960 char * kwnames[] = {
23961 (char *) "self",(char *) "window", NULL
23962 };
23963
23964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
23965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
23966 if (!SWIG_IsOK(res1)) {
23967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
23968 }
23969 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
23970 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
23971 if (!SWIG_IsOK(res2)) {
23972 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
23973 }
23974 arg2 = reinterpret_cast< wxWindow * >(argp2);
23975 {
23976 PyThreadState* __tstate = wxPyBeginAllowThreads();
23977 result = (bool)(arg1)->StartDrawingOnTop(arg2);
23978 wxPyEndAllowThreads(__tstate);
23979 if (PyErr_Occurred()) SWIG_fail;
23980 }
23981 {
23982 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23983 }
23984 return resultobj;
23985 fail:
23986 return NULL;
23987 }
23988
23989
23990 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23991 PyObject *resultobj = 0;
23992 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
23993 wxRect *arg2 = (wxRect *) NULL ;
23994 bool result;
23995 void *argp1 = 0 ;
23996 int res1 = 0 ;
23997 void *argp2 = 0 ;
23998 int res2 = 0 ;
23999 PyObject * obj0 = 0 ;
24000 PyObject * obj1 = 0 ;
24001 char * kwnames[] = {
24002 (char *) "self",(char *) "rect", NULL
24003 };
24004
24005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
24006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24007 if (!SWIG_IsOK(res1)) {
24008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24009 }
24010 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24011 if (obj1) {
24012 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
24013 if (!SWIG_IsOK(res2)) {
24014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
24015 }
24016 arg2 = reinterpret_cast< wxRect * >(argp2);
24017 }
24018 {
24019 PyThreadState* __tstate = wxPyBeginAllowThreads();
24020 result = (bool)(arg1)->StartDrawingOnTop(arg2);
24021 wxPyEndAllowThreads(__tstate);
24022 if (PyErr_Occurred()) SWIG_fail;
24023 }
24024 {
24025 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24026 }
24027 return resultobj;
24028 fail:
24029 return NULL;
24030 }
24031
24032
24033 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24034 PyObject *resultobj = 0;
24035 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
24036 bool result;
24037 void *argp1 = 0 ;
24038 int res1 = 0 ;
24039 PyObject *swig_obj[1] ;
24040
24041 if (!args) SWIG_fail;
24042 swig_obj[0] = args;
24043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
24044 if (!SWIG_IsOK(res1)) {
24045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
24046 }
24047 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
24048 {
24049 PyThreadState* __tstate = wxPyBeginAllowThreads();
24050 result = (bool)(arg1)->EndDrawingOnTop();
24051 wxPyEndAllowThreads(__tstate);
24052 if (PyErr_Occurred()) SWIG_fail;
24053 }
24054 {
24055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24056 }
24057 return resultobj;
24058 fail:
24059 return NULL;
24060 }
24061
24062
24063 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24064 PyObject *obj;
24065 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24066 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
24067 return SWIG_Py_Void();
24068 }
24069
24070 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24071 return SWIG_Python_InitShadowInstance(args);
24072 }
24073
24074 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24075 PyObject *resultobj = 0;
24076 wxWindow *arg1 = (wxWindow *) 0 ;
24077 wxWindowDC *result = 0 ;
24078 void *argp1 = 0 ;
24079 int res1 = 0 ;
24080 PyObject * obj0 = 0 ;
24081 char * kwnames[] = {
24082 (char *) "win", NULL
24083 };
24084
24085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
24086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24087 if (!SWIG_IsOK(res1)) {
24088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24089 }
24090 arg1 = reinterpret_cast< wxWindow * >(argp1);
24091 {
24092 if (!wxPyCheckForApp()) SWIG_fail;
24093 PyThreadState* __tstate = wxPyBeginAllowThreads();
24094 result = (wxWindowDC *)new wxWindowDC(arg1);
24095 wxPyEndAllowThreads(__tstate);
24096 if (PyErr_Occurred()) SWIG_fail;
24097 }
24098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
24099 return resultobj;
24100 fail:
24101 return NULL;
24102 }
24103
24104
24105 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24106 PyObject *obj;
24107 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24108 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
24109 return SWIG_Py_Void();
24110 }
24111
24112 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24113 return SWIG_Python_InitShadowInstance(args);
24114 }
24115
24116 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24117 PyObject *resultobj = 0;
24118 wxWindow *arg1 = (wxWindow *) 0 ;
24119 wxClientDC *result = 0 ;
24120 void *argp1 = 0 ;
24121 int res1 = 0 ;
24122 PyObject * obj0 = 0 ;
24123 char * kwnames[] = {
24124 (char *) "win", NULL
24125 };
24126
24127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
24128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24129 if (!SWIG_IsOK(res1)) {
24130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24131 }
24132 arg1 = reinterpret_cast< wxWindow * >(argp1);
24133 {
24134 if (!wxPyCheckForApp()) SWIG_fail;
24135 PyThreadState* __tstate = wxPyBeginAllowThreads();
24136 result = (wxClientDC *)new wxClientDC(arg1);
24137 wxPyEndAllowThreads(__tstate);
24138 if (PyErr_Occurred()) SWIG_fail;
24139 }
24140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
24141 return resultobj;
24142 fail:
24143 return NULL;
24144 }
24145
24146
24147 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24148 PyObject *obj;
24149 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24150 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
24151 return SWIG_Py_Void();
24152 }
24153
24154 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24155 return SWIG_Python_InitShadowInstance(args);
24156 }
24157
24158 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24159 PyObject *resultobj = 0;
24160 wxWindow *arg1 = (wxWindow *) 0 ;
24161 wxPaintDC *result = 0 ;
24162 void *argp1 = 0 ;
24163 int res1 = 0 ;
24164 PyObject * obj0 = 0 ;
24165 char * kwnames[] = {
24166 (char *) "win", NULL
24167 };
24168
24169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
24170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24171 if (!SWIG_IsOK(res1)) {
24172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24173 }
24174 arg1 = reinterpret_cast< wxWindow * >(argp1);
24175 {
24176 if (!wxPyCheckForApp()) SWIG_fail;
24177 PyThreadState* __tstate = wxPyBeginAllowThreads();
24178 result = (wxPaintDC *)new wxPaintDC(arg1);
24179 wxPyEndAllowThreads(__tstate);
24180 if (PyErr_Occurred()) SWIG_fail;
24181 }
24182 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
24183 return resultobj;
24184 fail:
24185 return NULL;
24186 }
24187
24188
24189 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24190 PyObject *obj;
24191 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24192 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
24193 return SWIG_Py_Void();
24194 }
24195
24196 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24197 return SWIG_Python_InitShadowInstance(args);
24198 }
24199
24200 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24201 PyObject *resultobj = 0;
24202 wxDC *arg1 = (wxDC *) 0 ;
24203 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24204 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24205 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24206 wxBufferedDC *result = 0 ;
24207 void *argp1 = 0 ;
24208 int res1 = 0 ;
24209 void *argp2 = 0 ;
24210 int res2 = 0 ;
24211 int val3 ;
24212 int ecode3 = 0 ;
24213
24214 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
24215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24216 if (!SWIG_IsOK(res1)) {
24217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24218 }
24219 arg1 = reinterpret_cast< wxDC * >(argp1);
24220 if (swig_obj[1]) {
24221 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24222 if (!SWIG_IsOK(res2)) {
24223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24224 }
24225 if (!argp2) {
24226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24227 }
24228 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24229 }
24230 if (swig_obj[2]) {
24231 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24232 if (!SWIG_IsOK(ecode3)) {
24233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24234 }
24235 arg3 = static_cast< int >(val3);
24236 }
24237 {
24238 if (!wxPyCheckForApp()) SWIG_fail;
24239 PyThreadState* __tstate = wxPyBeginAllowThreads();
24240 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
24241 wxPyEndAllowThreads(__tstate);
24242 if (PyErr_Occurred()) SWIG_fail;
24243 }
24244 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24245 return resultobj;
24246 fail:
24247 return NULL;
24248 }
24249
24250
24251 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
24252 PyObject *resultobj = 0;
24253 wxDC *arg1 = (wxDC *) 0 ;
24254 wxSize *arg2 = 0 ;
24255 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24256 wxBufferedDC *result = 0 ;
24257 void *argp1 = 0 ;
24258 int res1 = 0 ;
24259 wxSize temp2 ;
24260 int val3 ;
24261 int ecode3 = 0 ;
24262
24263 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
24264 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
24265 if (!SWIG_IsOK(res1)) {
24266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
24267 }
24268 arg1 = reinterpret_cast< wxDC * >(argp1);
24269 {
24270 arg2 = &temp2;
24271 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
24272 }
24273 if (swig_obj[2]) {
24274 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
24275 if (!SWIG_IsOK(ecode3)) {
24276 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
24277 }
24278 arg3 = static_cast< int >(val3);
24279 }
24280 {
24281 if (!wxPyCheckForApp()) SWIG_fail;
24282 PyThreadState* __tstate = wxPyBeginAllowThreads();
24283 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
24284 wxPyEndAllowThreads(__tstate);
24285 if (PyErr_Occurred()) SWIG_fail;
24286 }
24287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
24288 return resultobj;
24289 fail:
24290 return NULL;
24291 }
24292
24293
24294 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
24295 int argc;
24296 PyObject *argv[4];
24297
24298 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
24299 --argc;
24300 if ((argc >= 1) && (argc <= 3)) {
24301 int _v = 0;
24302 if (argc > 1) {
24303 {
24304 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
24305 _v = SWIG_CheckState(res);
24306 }
24307 if (!_v) goto check_1;
24308 }
24309 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
24310 }
24311 check_1:
24312
24313 if ((argc >= 2) && (argc <= 3)) {
24314 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
24315 }
24316
24317 fail:
24318 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
24319 return NULL;
24320 }
24321
24322
24323 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24324 PyObject *resultobj = 0;
24325 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24326 void *argp1 = 0 ;
24327 int res1 = 0 ;
24328 PyObject *swig_obj[1] ;
24329
24330 if (!args) SWIG_fail;
24331 swig_obj[0] = args;
24332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
24333 if (!SWIG_IsOK(res1)) {
24334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24335 }
24336 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24337 {
24338 PyThreadState* __tstate = wxPyBeginAllowThreads();
24339 delete arg1;
24340
24341 wxPyEndAllowThreads(__tstate);
24342 if (PyErr_Occurred()) SWIG_fail;
24343 }
24344 resultobj = SWIG_Py_Void();
24345 return resultobj;
24346 fail:
24347 return NULL;
24348 }
24349
24350
24351 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24352 PyObject *resultobj = 0;
24353 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
24354 void *argp1 = 0 ;
24355 int res1 = 0 ;
24356 PyObject *swig_obj[1] ;
24357
24358 if (!args) SWIG_fail;
24359 swig_obj[0] = args;
24360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
24361 if (!SWIG_IsOK(res1)) {
24362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
24363 }
24364 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
24365 {
24366 PyThreadState* __tstate = wxPyBeginAllowThreads();
24367 (arg1)->UnMask();
24368 wxPyEndAllowThreads(__tstate);
24369 if (PyErr_Occurred()) SWIG_fail;
24370 }
24371 resultobj = SWIG_Py_Void();
24372 return resultobj;
24373 fail:
24374 return NULL;
24375 }
24376
24377
24378 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24379 PyObject *obj;
24380 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24381 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
24382 return SWIG_Py_Void();
24383 }
24384
24385 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24386 return SWIG_Python_InitShadowInstance(args);
24387 }
24388
24389 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24390 PyObject *resultobj = 0;
24391 wxWindow *arg1 = (wxWindow *) 0 ;
24392 wxBitmap const &arg2_defvalue = wxNullBitmap ;
24393 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
24394 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
24395 wxBufferedPaintDC *result = 0 ;
24396 void *argp1 = 0 ;
24397 int res1 = 0 ;
24398 void *argp2 = 0 ;
24399 int res2 = 0 ;
24400 int val3 ;
24401 int ecode3 = 0 ;
24402 PyObject * obj0 = 0 ;
24403 PyObject * obj1 = 0 ;
24404 PyObject * obj2 = 0 ;
24405 char * kwnames[] = {
24406 (char *) "window",(char *) "buffer",(char *) "style", NULL
24407 };
24408
24409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24411 if (!SWIG_IsOK(res1)) {
24412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24413 }
24414 arg1 = reinterpret_cast< wxWindow * >(argp1);
24415 if (obj1) {
24416 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
24417 if (!SWIG_IsOK(res2)) {
24418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24419 }
24420 if (!argp2) {
24421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
24422 }
24423 arg2 = reinterpret_cast< wxBitmap * >(argp2);
24424 }
24425 if (obj2) {
24426 ecode3 = SWIG_AsVal_int(obj2, &val3);
24427 if (!SWIG_IsOK(ecode3)) {
24428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
24429 }
24430 arg3 = static_cast< int >(val3);
24431 }
24432 {
24433 if (!wxPyCheckForApp()) SWIG_fail;
24434 PyThreadState* __tstate = wxPyBeginAllowThreads();
24435 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
24436 wxPyEndAllowThreads(__tstate);
24437 if (PyErr_Occurred()) SWIG_fail;
24438 }
24439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24440 return resultobj;
24441 fail:
24442 return NULL;
24443 }
24444
24445
24446 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24447 PyObject *obj;
24448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24449 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
24450 return SWIG_Py_Void();
24451 }
24452
24453 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24454 return SWIG_Python_InitShadowInstance(args);
24455 }
24456
24457 SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24458 PyObject *resultobj = 0;
24459 wxWindow *arg1 = (wxWindow *) 0 ;
24460 wxAutoBufferedPaintDC *result = 0 ;
24461 void *argp1 = 0 ;
24462 int res1 = 0 ;
24463 PyObject * obj0 = 0 ;
24464 char * kwnames[] = {
24465 (char *) "win", NULL
24466 };
24467
24468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail;
24469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24470 if (!SWIG_IsOK(res1)) {
24471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
24472 }
24473 arg1 = reinterpret_cast< wxWindow * >(argp1);
24474 {
24475 PyThreadState* __tstate = wxPyBeginAllowThreads();
24476 result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1);
24477 wxPyEndAllowThreads(__tstate);
24478 if (PyErr_Occurred()) SWIG_fail;
24479 }
24480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 );
24481 return resultobj;
24482 fail:
24483 return NULL;
24484 }
24485
24486
24487 SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24488 PyObject *obj;
24489 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24490 SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj));
24491 return SWIG_Py_Void();
24492 }
24493
24494 SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24495 return SWIG_Python_InitShadowInstance(args);
24496 }
24497
24498 SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24499 PyObject *resultobj = 0;
24500 wxWindow *arg1 = (wxWindow *) 0 ;
24501 wxDC *result = 0 ;
24502 void *argp1 = 0 ;
24503 int res1 = 0 ;
24504 PyObject * obj0 = 0 ;
24505 char * kwnames[] = {
24506 (char *) "window", NULL
24507 };
24508
24509 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail;
24510 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
24511 if (!SWIG_IsOK(res1)) {
24512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'");
24513 }
24514 arg1 = reinterpret_cast< wxWindow * >(argp1);
24515 {
24516 PyThreadState* __tstate = wxPyBeginAllowThreads();
24517 result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1);
24518 wxPyEndAllowThreads(__tstate);
24519 if (PyErr_Occurred()) SWIG_fail;
24520 }
24521 {
24522 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN);
24523 }
24524 return resultobj;
24525 fail:
24526 return NULL;
24527 }
24528
24529
24530 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24531 PyObject *resultobj = 0;
24532 wxDC *arg1 = 0 ;
24533 bool arg2 ;
24534 wxMirrorDC *result = 0 ;
24535 void *argp1 = 0 ;
24536 int res1 = 0 ;
24537 bool val2 ;
24538 int ecode2 = 0 ;
24539 PyObject * obj0 = 0 ;
24540 PyObject * obj1 = 0 ;
24541 char * kwnames[] = {
24542 (char *) "dc",(char *) "mirror", NULL
24543 };
24544
24545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
24546 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
24547 if (!SWIG_IsOK(res1)) {
24548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24549 }
24550 if (!argp1) {
24551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
24552 }
24553 arg1 = reinterpret_cast< wxDC * >(argp1);
24554 ecode2 = SWIG_AsVal_bool(obj1, &val2);
24555 if (!SWIG_IsOK(ecode2)) {
24556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
24557 }
24558 arg2 = static_cast< bool >(val2);
24559 {
24560 if (!wxPyCheckForApp()) SWIG_fail;
24561 PyThreadState* __tstate = wxPyBeginAllowThreads();
24562 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
24563 wxPyEndAllowThreads(__tstate);
24564 if (PyErr_Occurred()) SWIG_fail;
24565 }
24566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
24567 return resultobj;
24568 fail:
24569 return NULL;
24570 }
24571
24572
24573 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24574 PyObject *obj;
24575 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24576 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
24577 return SWIG_Py_Void();
24578 }
24579
24580 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24581 return SWIG_Python_InitShadowInstance(args);
24582 }
24583
24584 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24585 PyObject *resultobj = 0;
24586 wxPrintData *arg1 = 0 ;
24587 wxPostScriptDC *result = 0 ;
24588 void *argp1 = 0 ;
24589 int res1 = 0 ;
24590 PyObject * obj0 = 0 ;
24591 char * kwnames[] = {
24592 (char *) "printData", NULL
24593 };
24594
24595 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
24596 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
24597 if (!SWIG_IsOK(res1)) {
24598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24599 }
24600 if (!argp1) {
24601 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
24602 }
24603 arg1 = reinterpret_cast< wxPrintData * >(argp1);
24604 {
24605 if (!wxPyCheckForApp()) SWIG_fail;
24606 PyThreadState* __tstate = wxPyBeginAllowThreads();
24607 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
24608 wxPyEndAllowThreads(__tstate);
24609 if (PyErr_Occurred()) SWIG_fail;
24610 }
24611 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
24612 return resultobj;
24613 fail:
24614 return NULL;
24615 }
24616
24617
24618 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24619 PyObject *resultobj = 0;
24620 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24621 wxPrintData *result = 0 ;
24622 void *argp1 = 0 ;
24623 int res1 = 0 ;
24624 PyObject *swig_obj[1] ;
24625
24626 if (!args) SWIG_fail;
24627 swig_obj[0] = args;
24628 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24629 if (!SWIG_IsOK(res1)) {
24630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24631 }
24632 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24633 {
24634 PyThreadState* __tstate = wxPyBeginAllowThreads();
24635 {
24636 wxPrintData &_result_ref = (arg1)->GetPrintData();
24637 result = (wxPrintData *) &_result_ref;
24638 }
24639 wxPyEndAllowThreads(__tstate);
24640 if (PyErr_Occurred()) SWIG_fail;
24641 }
24642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
24643 return resultobj;
24644 fail:
24645 return NULL;
24646 }
24647
24648
24649 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24650 PyObject *resultobj = 0;
24651 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
24652 wxPrintData *arg2 = 0 ;
24653 void *argp1 = 0 ;
24654 int res1 = 0 ;
24655 void *argp2 = 0 ;
24656 int res2 = 0 ;
24657 PyObject * obj0 = 0 ;
24658 PyObject * obj1 = 0 ;
24659 char * kwnames[] = {
24660 (char *) "self",(char *) "data", NULL
24661 };
24662
24663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
24664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
24665 if (!SWIG_IsOK(res1)) {
24666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
24667 }
24668 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
24669 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
24670 if (!SWIG_IsOK(res2)) {
24671 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24672 }
24673 if (!argp2) {
24674 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
24675 }
24676 arg2 = reinterpret_cast< wxPrintData * >(argp2);
24677 {
24678 PyThreadState* __tstate = wxPyBeginAllowThreads();
24679 (arg1)->SetPrintData((wxPrintData const &)*arg2);
24680 wxPyEndAllowThreads(__tstate);
24681 if (PyErr_Occurred()) SWIG_fail;
24682 }
24683 resultobj = SWIG_Py_Void();
24684 return resultobj;
24685 fail:
24686 return NULL;
24687 }
24688
24689
24690 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24691 PyObject *resultobj = 0;
24692 int arg1 ;
24693 int val1 ;
24694 int ecode1 = 0 ;
24695 PyObject * obj0 = 0 ;
24696 char * kwnames[] = {
24697 (char *) "ppi", NULL
24698 };
24699
24700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
24701 ecode1 = SWIG_AsVal_int(obj0, &val1);
24702 if (!SWIG_IsOK(ecode1)) {
24703 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
24704 }
24705 arg1 = static_cast< int >(val1);
24706 {
24707 PyThreadState* __tstate = wxPyBeginAllowThreads();
24708 wxPostScriptDC::SetResolution(arg1);
24709 wxPyEndAllowThreads(__tstate);
24710 if (PyErr_Occurred()) SWIG_fail;
24711 }
24712 resultobj = SWIG_Py_Void();
24713 return resultobj;
24714 fail:
24715 return NULL;
24716 }
24717
24718
24719 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24720 PyObject *resultobj = 0;
24721 int result;
24722
24723 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
24724 {
24725 PyThreadState* __tstate = wxPyBeginAllowThreads();
24726 result = (int)wxPostScriptDC::GetResolution();
24727 wxPyEndAllowThreads(__tstate);
24728 if (PyErr_Occurred()) SWIG_fail;
24729 }
24730 resultobj = SWIG_From_int(static_cast< int >(result));
24731 return resultobj;
24732 fail:
24733 return NULL;
24734 }
24735
24736
24737 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24738 PyObject *obj;
24739 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24740 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
24741 return SWIG_Py_Void();
24742 }
24743
24744 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24745 return SWIG_Python_InitShadowInstance(args);
24746 }
24747
24748 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24749 PyObject *resultobj = 0;
24750 wxString const &arg1_defvalue = wxPyEmptyString ;
24751 wxString *arg1 = (wxString *) &arg1_defvalue ;
24752 wxMetaFile *result = 0 ;
24753 bool temp1 = false ;
24754 PyObject * obj0 = 0 ;
24755 char * kwnames[] = {
24756 (char *) "filename", NULL
24757 };
24758
24759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
24760 if (obj0) {
24761 {
24762 arg1 = wxString_in_helper(obj0);
24763 if (arg1 == NULL) SWIG_fail;
24764 temp1 = true;
24765 }
24766 }
24767 {
24768 if (!wxPyCheckForApp()) SWIG_fail;
24769 PyThreadState* __tstate = wxPyBeginAllowThreads();
24770 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
24771 wxPyEndAllowThreads(__tstate);
24772 if (PyErr_Occurred()) SWIG_fail;
24773 }
24774 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
24775 {
24776 if (temp1)
24777 delete arg1;
24778 }
24779 return resultobj;
24780 fail:
24781 {
24782 if (temp1)
24783 delete arg1;
24784 }
24785 return NULL;
24786 }
24787
24788
24789 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24790 PyObject *resultobj = 0;
24791 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 PyObject *swig_obj[1] ;
24795
24796 if (!args) SWIG_fail;
24797 swig_obj[0] = args;
24798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24801 }
24802 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24803 {
24804 PyThreadState* __tstate = wxPyBeginAllowThreads();
24805 delete arg1;
24806
24807 wxPyEndAllowThreads(__tstate);
24808 if (PyErr_Occurred()) SWIG_fail;
24809 }
24810 resultobj = SWIG_Py_Void();
24811 return resultobj;
24812 fail:
24813 return NULL;
24814 }
24815
24816
24817 SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24818 PyObject *resultobj = 0;
24819 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24820 bool result;
24821 void *argp1 = 0 ;
24822 int res1 = 0 ;
24823 PyObject *swig_obj[1] ;
24824
24825 if (!args) SWIG_fail;
24826 swig_obj[0] = args;
24827 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24828 if (!SWIG_IsOK(res1)) {
24829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24830 }
24831 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24832 {
24833 PyThreadState* __tstate = wxPyBeginAllowThreads();
24834 result = (bool)(arg1)->IsOk();
24835 wxPyEndAllowThreads(__tstate);
24836 if (PyErr_Occurred()) SWIG_fail;
24837 }
24838 {
24839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24840 }
24841 return resultobj;
24842 fail:
24843 return NULL;
24844 }
24845
24846
24847 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24848 PyObject *resultobj = 0;
24849 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24850 int arg2 = (int) 0 ;
24851 int arg3 = (int) 0 ;
24852 bool result;
24853 void *argp1 = 0 ;
24854 int res1 = 0 ;
24855 int val2 ;
24856 int ecode2 = 0 ;
24857 int val3 ;
24858 int ecode3 = 0 ;
24859 PyObject * obj0 = 0 ;
24860 PyObject * obj1 = 0 ;
24861 PyObject * obj2 = 0 ;
24862 char * kwnames[] = {
24863 (char *) "self",(char *) "width",(char *) "height", NULL
24864 };
24865
24866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24868 if (!SWIG_IsOK(res1)) {
24869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24870 }
24871 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24872 if (obj1) {
24873 ecode2 = SWIG_AsVal_int(obj1, &val2);
24874 if (!SWIG_IsOK(ecode2)) {
24875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
24876 }
24877 arg2 = static_cast< int >(val2);
24878 }
24879 if (obj2) {
24880 ecode3 = SWIG_AsVal_int(obj2, &val3);
24881 if (!SWIG_IsOK(ecode3)) {
24882 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
24883 }
24884 arg3 = static_cast< int >(val3);
24885 }
24886 {
24887 PyThreadState* __tstate = wxPyBeginAllowThreads();
24888 result = (bool)(arg1)->SetClipboard(arg2,arg3);
24889 wxPyEndAllowThreads(__tstate);
24890 if (PyErr_Occurred()) SWIG_fail;
24891 }
24892 {
24893 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24894 }
24895 return resultobj;
24896 fail:
24897 return NULL;
24898 }
24899
24900
24901 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24902 PyObject *resultobj = 0;
24903 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24904 wxSize result;
24905 void *argp1 = 0 ;
24906 int res1 = 0 ;
24907 PyObject *swig_obj[1] ;
24908
24909 if (!args) SWIG_fail;
24910 swig_obj[0] = args;
24911 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24912 if (!SWIG_IsOK(res1)) {
24913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24914 }
24915 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24916 {
24917 PyThreadState* __tstate = wxPyBeginAllowThreads();
24918 result = (arg1)->GetSize();
24919 wxPyEndAllowThreads(__tstate);
24920 if (PyErr_Occurred()) SWIG_fail;
24921 }
24922 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
24923 return resultobj;
24924 fail:
24925 return NULL;
24926 }
24927
24928
24929 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24930 PyObject *resultobj = 0;
24931 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24932 int result;
24933 void *argp1 = 0 ;
24934 int res1 = 0 ;
24935 PyObject *swig_obj[1] ;
24936
24937 if (!args) SWIG_fail;
24938 swig_obj[0] = args;
24939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24940 if (!SWIG_IsOK(res1)) {
24941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24942 }
24943 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24944 {
24945 PyThreadState* __tstate = wxPyBeginAllowThreads();
24946 result = (int)(arg1)->GetWidth();
24947 wxPyEndAllowThreads(__tstate);
24948 if (PyErr_Occurred()) SWIG_fail;
24949 }
24950 resultobj = SWIG_From_int(static_cast< int >(result));
24951 return resultobj;
24952 fail:
24953 return NULL;
24954 }
24955
24956
24957 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24958 PyObject *resultobj = 0;
24959 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24960 int result;
24961 void *argp1 = 0 ;
24962 int res1 = 0 ;
24963 PyObject *swig_obj[1] ;
24964
24965 if (!args) SWIG_fail;
24966 swig_obj[0] = args;
24967 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24968 if (!SWIG_IsOK(res1)) {
24969 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
24970 }
24971 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
24972 {
24973 PyThreadState* __tstate = wxPyBeginAllowThreads();
24974 result = (int)(arg1)->GetHeight();
24975 wxPyEndAllowThreads(__tstate);
24976 if (PyErr_Occurred()) SWIG_fail;
24977 }
24978 resultobj = SWIG_From_int(static_cast< int >(result));
24979 return resultobj;
24980 fail:
24981 return NULL;
24982 }
24983
24984
24985 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24986 PyObject *resultobj = 0;
24987 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
24988 wxString *result = 0 ;
24989 void *argp1 = 0 ;
24990 int res1 = 0 ;
24991 PyObject *swig_obj[1] ;
24992
24993 if (!args) SWIG_fail;
24994 swig_obj[0] = args;
24995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
24996 if (!SWIG_IsOK(res1)) {
24997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
24998 }
24999 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
25000 {
25001 PyThreadState* __tstate = wxPyBeginAllowThreads();
25002 {
25003 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
25004 result = (wxString *) &_result_ref;
25005 }
25006 wxPyEndAllowThreads(__tstate);
25007 if (PyErr_Occurred()) SWIG_fail;
25008 }
25009 {
25010 #if wxUSE_UNICODE
25011 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
25012 #else
25013 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
25014 #endif
25015 }
25016 return resultobj;
25017 fail:
25018 return NULL;
25019 }
25020
25021
25022 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25023 PyObject *obj;
25024 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25025 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
25026 return SWIG_Py_Void();
25027 }
25028
25029 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25030 return SWIG_Python_InitShadowInstance(args);
25031 }
25032
25033 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25034 PyObject *resultobj = 0;
25035 wxString const &arg1_defvalue = wxPyEmptyString ;
25036 wxString *arg1 = (wxString *) &arg1_defvalue ;
25037 int arg2 = (int) 0 ;
25038 int arg3 = (int) 0 ;
25039 wxString const &arg4_defvalue = wxPyEmptyString ;
25040 wxString *arg4 = (wxString *) &arg4_defvalue ;
25041 wxMetaFileDC *result = 0 ;
25042 bool temp1 = false ;
25043 int val2 ;
25044 int ecode2 = 0 ;
25045 int val3 ;
25046 int ecode3 = 0 ;
25047 bool temp4 = false ;
25048 PyObject * obj0 = 0 ;
25049 PyObject * obj1 = 0 ;
25050 PyObject * obj2 = 0 ;
25051 PyObject * obj3 = 0 ;
25052 char * kwnames[] = {
25053 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
25054 };
25055
25056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25057 if (obj0) {
25058 {
25059 arg1 = wxString_in_helper(obj0);
25060 if (arg1 == NULL) SWIG_fail;
25061 temp1 = true;
25062 }
25063 }
25064 if (obj1) {
25065 ecode2 = SWIG_AsVal_int(obj1, &val2);
25066 if (!SWIG_IsOK(ecode2)) {
25067 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
25068 }
25069 arg2 = static_cast< int >(val2);
25070 }
25071 if (obj2) {
25072 ecode3 = SWIG_AsVal_int(obj2, &val3);
25073 if (!SWIG_IsOK(ecode3)) {
25074 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
25075 }
25076 arg3 = static_cast< int >(val3);
25077 }
25078 if (obj3) {
25079 {
25080 arg4 = wxString_in_helper(obj3);
25081 if (arg4 == NULL) SWIG_fail;
25082 temp4 = true;
25083 }
25084 }
25085 {
25086 if (!wxPyCheckForApp()) SWIG_fail;
25087 PyThreadState* __tstate = wxPyBeginAllowThreads();
25088 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
25089 wxPyEndAllowThreads(__tstate);
25090 if (PyErr_Occurred()) SWIG_fail;
25091 }
25092 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
25093 {
25094 if (temp1)
25095 delete arg1;
25096 }
25097 {
25098 if (temp4)
25099 delete arg4;
25100 }
25101 return resultobj;
25102 fail:
25103 {
25104 if (temp1)
25105 delete arg1;
25106 }
25107 {
25108 if (temp4)
25109 delete arg4;
25110 }
25111 return NULL;
25112 }
25113
25114
25115 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25116 PyObject *resultobj = 0;
25117 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
25118 wxMetaFile *result = 0 ;
25119 void *argp1 = 0 ;
25120 int res1 = 0 ;
25121 PyObject *swig_obj[1] ;
25122
25123 if (!args) SWIG_fail;
25124 swig_obj[0] = args;
25125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
25126 if (!SWIG_IsOK(res1)) {
25127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
25128 }
25129 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
25130 {
25131 PyThreadState* __tstate = wxPyBeginAllowThreads();
25132 result = (wxMetaFile *)(arg1)->Close();
25133 wxPyEndAllowThreads(__tstate);
25134 if (PyErr_Occurred()) SWIG_fail;
25135 }
25136 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
25137 return resultobj;
25138 fail:
25139 return NULL;
25140 }
25141
25142
25143 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25144 PyObject *obj;
25145 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25146 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
25147 return SWIG_Py_Void();
25148 }
25149
25150 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25151 return SWIG_Python_InitShadowInstance(args);
25152 }
25153
25154 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25155 PyObject *resultobj = 0;
25156 wxPrintData *arg1 = 0 ;
25157 wxPrinterDC *result = 0 ;
25158 void *argp1 = 0 ;
25159 int res1 = 0 ;
25160 PyObject * obj0 = 0 ;
25161 char * kwnames[] = {
25162 (char *) "printData", NULL
25163 };
25164
25165 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
25166 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
25167 if (!SWIG_IsOK(res1)) {
25168 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25169 }
25170 if (!argp1) {
25171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
25172 }
25173 arg1 = reinterpret_cast< wxPrintData * >(argp1);
25174 {
25175 if (!wxPyCheckForApp()) SWIG_fail;
25176 PyThreadState* __tstate = wxPyBeginAllowThreads();
25177 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
25178 wxPyEndAllowThreads(__tstate);
25179 if (PyErr_Occurred()) SWIG_fail;
25180 }
25181 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
25182 return resultobj;
25183 fail:
25184 return NULL;
25185 }
25186
25187
25188 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25189 PyObject *obj;
25190 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25191 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
25192 return SWIG_Py_Void();
25193 }
25194
25195 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25196 return SWIG_Python_InitShadowInstance(args);
25197 }
25198
25199 SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25200 PyObject *resultobj = 0;
25201 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25202 void *argp1 = 0 ;
25203 int res1 = 0 ;
25204 PyObject *swig_obj[1] ;
25205
25206 if (!args) SWIG_fail;
25207 swig_obj[0] = args;
25208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 );
25209 if (!SWIG_IsOK(res1)) {
25210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25211 }
25212 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25213 {
25214 delete arg1;
25215
25216 if (PyErr_Occurred()) SWIG_fail;
25217 }
25218 resultobj = SWIG_Py_Void();
25219 return resultobj;
25220 fail:
25221 return NULL;
25222 }
25223
25224
25225 SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25226 PyObject *resultobj = 0;
25227 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25228 wxDouble arg2 ;
25229 wxDouble arg3 ;
25230 void *argp1 = 0 ;
25231 int res1 = 0 ;
25232 double val2 ;
25233 int ecode2 = 0 ;
25234 double val3 ;
25235 int ecode3 = 0 ;
25236 PyObject * obj0 = 0 ;
25237 PyObject * obj1 = 0 ;
25238 PyObject * obj2 = 0 ;
25239 char * kwnames[] = {
25240 (char *) "self",(char *) "x",(char *) "y", NULL
25241 };
25242
25243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25245 if (!SWIG_IsOK(res1)) {
25246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25247 }
25248 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25249 ecode2 = SWIG_AsVal_double(obj1, &val2);
25250 if (!SWIG_IsOK(ecode2)) {
25251 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25252 }
25253 arg2 = static_cast< wxDouble >(val2);
25254 ecode3 = SWIG_AsVal_double(obj2, &val3);
25255 if (!SWIG_IsOK(ecode3)) {
25256 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25257 }
25258 arg3 = static_cast< wxDouble >(val3);
25259 {
25260 (arg1)->MoveToPoint(arg2,arg3);
25261 if (PyErr_Occurred()) SWIG_fail;
25262 }
25263 resultobj = SWIG_Py_Void();
25264 return resultobj;
25265 fail:
25266 return NULL;
25267 }
25268
25269
25270 SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25271 PyObject *resultobj = 0;
25272 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25273 wxDouble arg2 ;
25274 wxDouble arg3 ;
25275 void *argp1 = 0 ;
25276 int res1 = 0 ;
25277 double val2 ;
25278 int ecode2 = 0 ;
25279 double val3 ;
25280 int ecode3 = 0 ;
25281 PyObject * obj0 = 0 ;
25282 PyObject * obj1 = 0 ;
25283 PyObject * obj2 = 0 ;
25284 char * kwnames[] = {
25285 (char *) "self",(char *) "x",(char *) "y", NULL
25286 };
25287
25288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
25289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25290 if (!SWIG_IsOK(res1)) {
25291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25292 }
25293 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25294 ecode2 = SWIG_AsVal_double(obj1, &val2);
25295 if (!SWIG_IsOK(ecode2)) {
25296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25297 }
25298 arg2 = static_cast< wxDouble >(val2);
25299 ecode3 = SWIG_AsVal_double(obj2, &val3);
25300 if (!SWIG_IsOK(ecode3)) {
25301 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25302 }
25303 arg3 = static_cast< wxDouble >(val3);
25304 {
25305 (arg1)->AddLineToPoint(arg2,arg3);
25306 if (PyErr_Occurred()) SWIG_fail;
25307 }
25308 resultobj = SWIG_Py_Void();
25309 return resultobj;
25310 fail:
25311 return NULL;
25312 }
25313
25314
25315 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25316 PyObject *resultobj = 0;
25317 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25318 wxDouble arg2 ;
25319 wxDouble arg3 ;
25320 wxDouble arg4 ;
25321 wxDouble arg5 ;
25322 wxDouble arg6 ;
25323 wxDouble arg7 ;
25324 void *argp1 = 0 ;
25325 int res1 = 0 ;
25326 double val2 ;
25327 int ecode2 = 0 ;
25328 double val3 ;
25329 int ecode3 = 0 ;
25330 double val4 ;
25331 int ecode4 = 0 ;
25332 double val5 ;
25333 int ecode5 = 0 ;
25334 double val6 ;
25335 int ecode6 = 0 ;
25336 double val7 ;
25337 int ecode7 = 0 ;
25338 PyObject * obj0 = 0 ;
25339 PyObject * obj1 = 0 ;
25340 PyObject * obj2 = 0 ;
25341 PyObject * obj3 = 0 ;
25342 PyObject * obj4 = 0 ;
25343 PyObject * obj5 = 0 ;
25344 PyObject * obj6 = 0 ;
25345 char * kwnames[] = {
25346 (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL
25347 };
25348
25349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25351 if (!SWIG_IsOK(res1)) {
25352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25353 }
25354 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25355 ecode2 = SWIG_AsVal_double(obj1, &val2);
25356 if (!SWIG_IsOK(ecode2)) {
25357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25358 }
25359 arg2 = static_cast< wxDouble >(val2);
25360 ecode3 = SWIG_AsVal_double(obj2, &val3);
25361 if (!SWIG_IsOK(ecode3)) {
25362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25363 }
25364 arg3 = static_cast< wxDouble >(val3);
25365 ecode4 = SWIG_AsVal_double(obj3, &val4);
25366 if (!SWIG_IsOK(ecode4)) {
25367 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25368 }
25369 arg4 = static_cast< wxDouble >(val4);
25370 ecode5 = SWIG_AsVal_double(obj4, &val5);
25371 if (!SWIG_IsOK(ecode5)) {
25372 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25373 }
25374 arg5 = static_cast< wxDouble >(val5);
25375 ecode6 = SWIG_AsVal_double(obj5, &val6);
25376 if (!SWIG_IsOK(ecode6)) {
25377 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25378 }
25379 arg6 = static_cast< wxDouble >(val6);
25380 ecode7 = SWIG_AsVal_double(obj6, &val7);
25381 if (!SWIG_IsOK(ecode7)) {
25382 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'");
25383 }
25384 arg7 = static_cast< wxDouble >(val7);
25385 {
25386 (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7);
25387 if (PyErr_Occurred()) SWIG_fail;
25388 }
25389 resultobj = SWIG_Py_Void();
25390 return resultobj;
25391 fail:
25392 return NULL;
25393 }
25394
25395
25396 SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25397 PyObject *resultobj = 0;
25398 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25399 void *argp1 = 0 ;
25400 int res1 = 0 ;
25401 PyObject *swig_obj[1] ;
25402
25403 if (!args) SWIG_fail;
25404 swig_obj[0] = args;
25405 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25406 if (!SWIG_IsOK(res1)) {
25407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25408 }
25409 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25410 {
25411 (arg1)->CloseSubpath();
25412 if (PyErr_Occurred()) SWIG_fail;
25413 }
25414 resultobj = SWIG_Py_Void();
25415 return resultobj;
25416 fail:
25417 return NULL;
25418 }
25419
25420
25421 SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25422 PyObject *resultobj = 0;
25423 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25424 wxPoint2D result;
25425 void *argp1 = 0 ;
25426 int res1 = 0 ;
25427 PyObject *swig_obj[1] ;
25428
25429 if (!args) SWIG_fail;
25430 swig_obj[0] = args;
25431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25432 if (!SWIG_IsOK(res1)) {
25433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25434 }
25435 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25436 {
25437 result = (arg1)->GetCurrentPoint();
25438 if (PyErr_Occurred()) SWIG_fail;
25439 }
25440 resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 );
25441 return resultobj;
25442 fail:
25443 return NULL;
25444 }
25445
25446
25447 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25448 PyObject *resultobj = 0;
25449 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25450 wxDouble arg2 ;
25451 wxDouble arg3 ;
25452 wxDouble arg4 ;
25453 wxDouble arg5 ;
25454 wxDouble arg6 ;
25455 bool arg7 ;
25456 void *argp1 = 0 ;
25457 int res1 = 0 ;
25458 double val2 ;
25459 int ecode2 = 0 ;
25460 double val3 ;
25461 int ecode3 = 0 ;
25462 double val4 ;
25463 int ecode4 = 0 ;
25464 double val5 ;
25465 int ecode5 = 0 ;
25466 double val6 ;
25467 int ecode6 = 0 ;
25468 bool val7 ;
25469 int ecode7 = 0 ;
25470 PyObject * obj0 = 0 ;
25471 PyObject * obj1 = 0 ;
25472 PyObject * obj2 = 0 ;
25473 PyObject * obj3 = 0 ;
25474 PyObject * obj4 = 0 ;
25475 PyObject * obj5 = 0 ;
25476 PyObject * obj6 = 0 ;
25477 char * kwnames[] = {
25478 (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL
25479 };
25480
25481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25483 if (!SWIG_IsOK(res1)) {
25484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25485 }
25486 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25487 ecode2 = SWIG_AsVal_double(obj1, &val2);
25488 if (!SWIG_IsOK(ecode2)) {
25489 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'");
25490 }
25491 arg2 = static_cast< wxDouble >(val2);
25492 ecode3 = SWIG_AsVal_double(obj2, &val3);
25493 if (!SWIG_IsOK(ecode3)) {
25494 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'");
25495 }
25496 arg3 = static_cast< wxDouble >(val3);
25497 ecode4 = SWIG_AsVal_double(obj3, &val4);
25498 if (!SWIG_IsOK(ecode4)) {
25499 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'");
25500 }
25501 arg4 = static_cast< wxDouble >(val4);
25502 ecode5 = SWIG_AsVal_double(obj4, &val5);
25503 if (!SWIG_IsOK(ecode5)) {
25504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'");
25505 }
25506 arg5 = static_cast< wxDouble >(val5);
25507 ecode6 = SWIG_AsVal_double(obj5, &val6);
25508 if (!SWIG_IsOK(ecode6)) {
25509 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'");
25510 }
25511 arg6 = static_cast< wxDouble >(val6);
25512 ecode7 = SWIG_AsVal_bool(obj6, &val7);
25513 if (!SWIG_IsOK(ecode7)) {
25514 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'");
25515 }
25516 arg7 = static_cast< bool >(val7);
25517 {
25518 (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7);
25519 if (PyErr_Occurred()) SWIG_fail;
25520 }
25521 resultobj = SWIG_Py_Void();
25522 return resultobj;
25523 fail:
25524 return NULL;
25525 }
25526
25527
25528 SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25529 PyObject *resultobj = 0;
25530 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25531 wxDouble arg2 ;
25532 wxDouble arg3 ;
25533 wxDouble arg4 ;
25534 wxDouble arg5 ;
25535 void *argp1 = 0 ;
25536 int res1 = 0 ;
25537 double val2 ;
25538 int ecode2 = 0 ;
25539 double val3 ;
25540 int ecode3 = 0 ;
25541 double val4 ;
25542 int ecode4 = 0 ;
25543 double val5 ;
25544 int ecode5 = 0 ;
25545 PyObject * obj0 = 0 ;
25546 PyObject * obj1 = 0 ;
25547 PyObject * obj2 = 0 ;
25548 PyObject * obj3 = 0 ;
25549 PyObject * obj4 = 0 ;
25550 char * kwnames[] = {
25551 (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL
25552 };
25553
25554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25556 if (!SWIG_IsOK(res1)) {
25557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25558 }
25559 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25560 ecode2 = SWIG_AsVal_double(obj1, &val2);
25561 if (!SWIG_IsOK(ecode2)) {
25562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25563 }
25564 arg2 = static_cast< wxDouble >(val2);
25565 ecode3 = SWIG_AsVal_double(obj2, &val3);
25566 if (!SWIG_IsOK(ecode3)) {
25567 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25568 }
25569 arg3 = static_cast< wxDouble >(val3);
25570 ecode4 = SWIG_AsVal_double(obj3, &val4);
25571 if (!SWIG_IsOK(ecode4)) {
25572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25573 }
25574 arg4 = static_cast< wxDouble >(val4);
25575 ecode5 = SWIG_AsVal_double(obj4, &val5);
25576 if (!SWIG_IsOK(ecode5)) {
25577 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25578 }
25579 arg5 = static_cast< wxDouble >(val5);
25580 {
25581 (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5);
25582 if (PyErr_Occurred()) SWIG_fail;
25583 }
25584 resultobj = SWIG_Py_Void();
25585 return resultobj;
25586 fail:
25587 return NULL;
25588 }
25589
25590
25591 SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25592 PyObject *resultobj = 0;
25593 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25594 wxDouble arg2 ;
25595 wxDouble arg3 ;
25596 wxDouble arg4 ;
25597 wxDouble arg5 ;
25598 void *argp1 = 0 ;
25599 int res1 = 0 ;
25600 double val2 ;
25601 int ecode2 = 0 ;
25602 double val3 ;
25603 int ecode3 = 0 ;
25604 double val4 ;
25605 int ecode4 = 0 ;
25606 double val5 ;
25607 int ecode5 = 0 ;
25608 PyObject * obj0 = 0 ;
25609 PyObject * obj1 = 0 ;
25610 PyObject * obj2 = 0 ;
25611 PyObject * obj3 = 0 ;
25612 PyObject * obj4 = 0 ;
25613 char * kwnames[] = {
25614 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
25615 };
25616
25617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25619 if (!SWIG_IsOK(res1)) {
25620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25621 }
25622 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25623 ecode2 = SWIG_AsVal_double(obj1, &val2);
25624 if (!SWIG_IsOK(ecode2)) {
25625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
25626 }
25627 arg2 = static_cast< wxDouble >(val2);
25628 ecode3 = SWIG_AsVal_double(obj2, &val3);
25629 if (!SWIG_IsOK(ecode3)) {
25630 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
25631 }
25632 arg3 = static_cast< wxDouble >(val3);
25633 ecode4 = SWIG_AsVal_double(obj3, &val4);
25634 if (!SWIG_IsOK(ecode4)) {
25635 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
25636 }
25637 arg4 = static_cast< wxDouble >(val4);
25638 ecode5 = SWIG_AsVal_double(obj4, &val5);
25639 if (!SWIG_IsOK(ecode5)) {
25640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
25641 }
25642 arg5 = static_cast< wxDouble >(val5);
25643 {
25644 (arg1)->AddRectangle(arg2,arg3,arg4,arg5);
25645 if (PyErr_Occurred()) SWIG_fail;
25646 }
25647 resultobj = SWIG_Py_Void();
25648 return resultobj;
25649 fail:
25650 return NULL;
25651 }
25652
25653
25654 SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25655 PyObject *resultobj = 0;
25656 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25657 wxDouble arg2 ;
25658 wxDouble arg3 ;
25659 wxDouble arg4 ;
25660 void *argp1 = 0 ;
25661 int res1 = 0 ;
25662 double val2 ;
25663 int ecode2 = 0 ;
25664 double val3 ;
25665 int ecode3 = 0 ;
25666 double val4 ;
25667 int ecode4 = 0 ;
25668 PyObject * obj0 = 0 ;
25669 PyObject * obj1 = 0 ;
25670 PyObject * obj2 = 0 ;
25671 PyObject * obj3 = 0 ;
25672 char * kwnames[] = {
25673 (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL
25674 };
25675
25676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
25677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25678 if (!SWIG_IsOK(res1)) {
25679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25680 }
25681 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25682 ecode2 = SWIG_AsVal_double(obj1, &val2);
25683 if (!SWIG_IsOK(ecode2)) {
25684 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'");
25685 }
25686 arg2 = static_cast< wxDouble >(val2);
25687 ecode3 = SWIG_AsVal_double(obj2, &val3);
25688 if (!SWIG_IsOK(ecode3)) {
25689 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'");
25690 }
25691 arg3 = static_cast< wxDouble >(val3);
25692 ecode4 = SWIG_AsVal_double(obj3, &val4);
25693 if (!SWIG_IsOK(ecode4)) {
25694 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'");
25695 }
25696 arg4 = static_cast< wxDouble >(val4);
25697 {
25698 (arg1)->AddCircle(arg2,arg3,arg4);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_Py_Void();
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25709 PyObject *resultobj = 0;
25710 wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ;
25711 wxDouble arg2 ;
25712 wxDouble arg3 ;
25713 wxDouble arg4 ;
25714 wxDouble arg5 ;
25715 wxDouble arg6 ;
25716 void *argp1 = 0 ;
25717 int res1 = 0 ;
25718 double val2 ;
25719 int ecode2 = 0 ;
25720 double val3 ;
25721 int ecode3 = 0 ;
25722 double val4 ;
25723 int ecode4 = 0 ;
25724 double val5 ;
25725 int ecode5 = 0 ;
25726 double val6 ;
25727 int ecode6 = 0 ;
25728 PyObject * obj0 = 0 ;
25729 PyObject * obj1 = 0 ;
25730 PyObject * obj2 = 0 ;
25731 PyObject * obj3 = 0 ;
25732 PyObject * obj4 = 0 ;
25733 PyObject * obj5 = 0 ;
25734 char * kwnames[] = {
25735 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL
25736 };
25737
25738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
25739 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25740 if (!SWIG_IsOK(res1)) {
25741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'");
25742 }
25743 arg1 = reinterpret_cast< wxGraphicsPath * >(argp1);
25744 ecode2 = SWIG_AsVal_double(obj1, &val2);
25745 if (!SWIG_IsOK(ecode2)) {
25746 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'");
25747 }
25748 arg2 = static_cast< wxDouble >(val2);
25749 ecode3 = SWIG_AsVal_double(obj2, &val3);
25750 if (!SWIG_IsOK(ecode3)) {
25751 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'");
25752 }
25753 arg3 = static_cast< wxDouble >(val3);
25754 ecode4 = SWIG_AsVal_double(obj3, &val4);
25755 if (!SWIG_IsOK(ecode4)) {
25756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'");
25757 }
25758 arg4 = static_cast< wxDouble >(val4);
25759 ecode5 = SWIG_AsVal_double(obj4, &val5);
25760 if (!SWIG_IsOK(ecode5)) {
25761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'");
25762 }
25763 arg5 = static_cast< wxDouble >(val5);
25764 ecode6 = SWIG_AsVal_double(obj5, &val6);
25765 if (!SWIG_IsOK(ecode6)) {
25766 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'");
25767 }
25768 arg6 = static_cast< wxDouble >(val6);
25769 {
25770 (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6);
25771 if (PyErr_Occurred()) SWIG_fail;
25772 }
25773 resultobj = SWIG_Py_Void();
25774 return resultobj;
25775 fail:
25776 return NULL;
25777 }
25778
25779
25780 SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25781 PyObject *obj;
25782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25783 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj));
25784 return SWIG_Py_Void();
25785 }
25786
25787 SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25788 PyObject *resultobj = 0;
25789 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25790 void *argp1 = 0 ;
25791 int res1 = 0 ;
25792 PyObject *swig_obj[1] ;
25793
25794 if (!args) SWIG_fail;
25795 swig_obj[0] = args;
25796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 );
25797 if (!SWIG_IsOK(res1)) {
25798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25799 }
25800 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25801 {
25802 delete arg1;
25803
25804 if (PyErr_Occurred()) SWIG_fail;
25805 }
25806 resultobj = SWIG_Py_Void();
25807 return resultobj;
25808 fail:
25809 return NULL;
25810 }
25811
25812
25813 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25814 PyObject *resultobj = 0;
25815 wxWindowDC *arg1 = 0 ;
25816 wxGraphicsContext *result = 0 ;
25817 void *argp1 = 0 ;
25818 int res1 = 0 ;
25819
25820 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
25822 if (!SWIG_IsOK(res1)) {
25823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25824 }
25825 if (!argp1) {
25826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
25827 }
25828 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
25829 {
25830 result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1);
25831 if (PyErr_Occurred()) SWIG_fail;
25832 }
25833 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25834 return resultobj;
25835 fail:
25836 return NULL;
25837 }
25838
25839
25840 SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
25841 PyObject *resultobj = 0;
25842 wxWindow *arg1 = (wxWindow *) 0 ;
25843 wxGraphicsContext *result = 0 ;
25844 void *argp1 = 0 ;
25845 int res1 = 0 ;
25846
25847 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
25848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
25849 if (!SWIG_IsOK(res1)) {
25850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'");
25851 }
25852 arg1 = reinterpret_cast< wxWindow * >(argp1);
25853 {
25854 result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1);
25855 if (PyErr_Occurred()) SWIG_fail;
25856 }
25857 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25858 return resultobj;
25859 fail:
25860 return NULL;
25861 }
25862
25863
25864 SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) {
25865 int argc;
25866 PyObject *argv[2];
25867
25868 if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail;
25869 --argc;
25870 if (argc == 1) {
25871 int _v = 0;
25872 {
25873 int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0);
25874 _v = SWIG_CheckState(res);
25875 }
25876 if (!_v) goto check_1;
25877 return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv);
25878 }
25879 check_1:
25880
25881 if (argc == 1) {
25882 return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv);
25883 }
25884
25885 fail:
25886 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'");
25887 return NULL;
25888 }
25889
25890
25891 SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25892 PyObject *resultobj = 0;
25893 void *arg1 = (void *) 0 ;
25894 wxGraphicsContext *result = 0 ;
25895 int res1 ;
25896 PyObject * obj0 = 0 ;
25897 char * kwnames[] = {
25898 (char *) "context", NULL
25899 };
25900
25901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail;
25902 res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0);
25903 if (!SWIG_IsOK(res1)) {
25904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'");
25905 }
25906 {
25907 result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1);
25908 if (PyErr_Occurred()) SWIG_fail;
25909 }
25910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25911 return resultobj;
25912 fail:
25913 return NULL;
25914 }
25915
25916
25917 SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25918 PyObject *resultobj = 0;
25919 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25920 wxGraphicsPath *result = 0 ;
25921 void *argp1 = 0 ;
25922 int res1 = 0 ;
25923 PyObject *swig_obj[1] ;
25924
25925 if (!args) SWIG_fail;
25926 swig_obj[0] = args;
25927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25928 if (!SWIG_IsOK(res1)) {
25929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25930 }
25931 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25932 {
25933 result = (wxGraphicsPath *)(arg1)->CreatePath();
25934 if (PyErr_Occurred()) SWIG_fail;
25935 }
25936 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
25937 return resultobj;
25938 fail:
25939 return NULL;
25940 }
25941
25942
25943 SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25944 PyObject *resultobj = 0;
25945 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25946 void *argp1 = 0 ;
25947 int res1 = 0 ;
25948 PyObject *swig_obj[1] ;
25949
25950 if (!args) SWIG_fail;
25951 swig_obj[0] = args;
25952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25953 if (!SWIG_IsOK(res1)) {
25954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25955 }
25956 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25957 {
25958 (arg1)->PushState();
25959 if (PyErr_Occurred()) SWIG_fail;
25960 }
25961 resultobj = SWIG_Py_Void();
25962 return resultobj;
25963 fail:
25964 return NULL;
25965 }
25966
25967
25968 SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25969 PyObject *resultobj = 0;
25970 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25971 void *argp1 = 0 ;
25972 int res1 = 0 ;
25973 PyObject *swig_obj[1] ;
25974
25975 if (!args) SWIG_fail;
25976 swig_obj[0] = args;
25977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
25978 if (!SWIG_IsOK(res1)) {
25979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
25980 }
25981 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
25982 {
25983 (arg1)->PopState();
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_Py_Void();
25987 return resultobj;
25988 fail:
25989 return NULL;
25990 }
25991
25992
25993 SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25994 PyObject *resultobj = 0;
25995 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
25996 wxRegion *arg2 = 0 ;
25997 void *argp1 = 0 ;
25998 int res1 = 0 ;
25999 void *argp2 = 0 ;
26000 int res2 = 0 ;
26001 PyObject * obj0 = 0 ;
26002 PyObject * obj1 = 0 ;
26003 char * kwnames[] = {
26004 (char *) "self",(char *) "region", NULL
26005 };
26006
26007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail;
26008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26009 if (!SWIG_IsOK(res1)) {
26010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26011 }
26012 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26013 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
26014 if (!SWIG_IsOK(res2)) {
26015 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
26016 }
26017 if (!argp2) {
26018 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
26019 }
26020 arg2 = reinterpret_cast< wxRegion * >(argp2);
26021 {
26022 (arg1)->Clip((wxRegion const &)*arg2);
26023 if (PyErr_Occurred()) SWIG_fail;
26024 }
26025 resultobj = SWIG_Py_Void();
26026 return resultobj;
26027 fail:
26028 return NULL;
26029 }
26030
26031
26032 SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26033 PyObject *resultobj = 0;
26034 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26035 wxDouble arg2 ;
26036 wxDouble arg3 ;
26037 wxDouble arg4 ;
26038 wxDouble arg5 ;
26039 void *argp1 = 0 ;
26040 int res1 = 0 ;
26041 double val2 ;
26042 int ecode2 = 0 ;
26043 double val3 ;
26044 int ecode3 = 0 ;
26045 double val4 ;
26046 int ecode4 = 0 ;
26047 double val5 ;
26048 int ecode5 = 0 ;
26049 PyObject * obj0 = 0 ;
26050 PyObject * obj1 = 0 ;
26051 PyObject * obj2 = 0 ;
26052 PyObject * obj3 = 0 ;
26053 PyObject * obj4 = 0 ;
26054 char * kwnames[] = {
26055 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
26056 };
26057
26058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26059 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26060 if (!SWIG_IsOK(res1)) {
26061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26062 }
26063 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26064 ecode2 = SWIG_AsVal_double(obj1, &val2);
26065 if (!SWIG_IsOK(ecode2)) {
26066 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'");
26067 }
26068 arg2 = static_cast< wxDouble >(val2);
26069 ecode3 = SWIG_AsVal_double(obj2, &val3);
26070 if (!SWIG_IsOK(ecode3)) {
26071 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'");
26072 }
26073 arg3 = static_cast< wxDouble >(val3);
26074 ecode4 = SWIG_AsVal_double(obj3, &val4);
26075 if (!SWIG_IsOK(ecode4)) {
26076 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'");
26077 }
26078 arg4 = static_cast< wxDouble >(val4);
26079 ecode5 = SWIG_AsVal_double(obj4, &val5);
26080 if (!SWIG_IsOK(ecode5)) {
26081 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'");
26082 }
26083 arg5 = static_cast< wxDouble >(val5);
26084 {
26085 (arg1)->Clip(arg2,arg3,arg4,arg5);
26086 if (PyErr_Occurred()) SWIG_fail;
26087 }
26088 resultobj = SWIG_Py_Void();
26089 return resultobj;
26090 fail:
26091 return NULL;
26092 }
26093
26094
26095 SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26096 PyObject *resultobj = 0;
26097 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26098 void *argp1 = 0 ;
26099 int res1 = 0 ;
26100 PyObject *swig_obj[1] ;
26101
26102 if (!args) SWIG_fail;
26103 swig_obj[0] = args;
26104 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26105 if (!SWIG_IsOK(res1)) {
26106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26107 }
26108 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26109 {
26110 (arg1)->ResetClip();
26111 if (PyErr_Occurred()) SWIG_fail;
26112 }
26113 resultobj = SWIG_Py_Void();
26114 return resultobj;
26115 fail:
26116 return NULL;
26117 }
26118
26119
26120 SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
26121 PyObject *resultobj = 0;
26122 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26123 void *result = 0 ;
26124 void *argp1 = 0 ;
26125 int res1 = 0 ;
26126 PyObject *swig_obj[1] ;
26127
26128 if (!args) SWIG_fail;
26129 swig_obj[0] = args;
26130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26131 if (!SWIG_IsOK(res1)) {
26132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26133 }
26134 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26135 {
26136 result = (void *)(arg1)->GetNativeContext();
26137 if (PyErr_Occurred()) SWIG_fail;
26138 }
26139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 );
26140 return resultobj;
26141 fail:
26142 return NULL;
26143 }
26144
26145
26146 SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26147 PyObject *resultobj = 0;
26148 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26149 wxDouble arg2 ;
26150 wxDouble arg3 ;
26151 void *argp1 = 0 ;
26152 int res1 = 0 ;
26153 double val2 ;
26154 int ecode2 = 0 ;
26155 double val3 ;
26156 int ecode3 = 0 ;
26157 PyObject * obj0 = 0 ;
26158 PyObject * obj1 = 0 ;
26159 PyObject * obj2 = 0 ;
26160 char * kwnames[] = {
26161 (char *) "self",(char *) "dx",(char *) "dy", NULL
26162 };
26163
26164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26166 if (!SWIG_IsOK(res1)) {
26167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26168 }
26169 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26170 ecode2 = SWIG_AsVal_double(obj1, &val2);
26171 if (!SWIG_IsOK(ecode2)) {
26172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'");
26173 }
26174 arg2 = static_cast< wxDouble >(val2);
26175 ecode3 = SWIG_AsVal_double(obj2, &val3);
26176 if (!SWIG_IsOK(ecode3)) {
26177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'");
26178 }
26179 arg3 = static_cast< wxDouble >(val3);
26180 {
26181 (arg1)->Translate(arg2,arg3);
26182 if (PyErr_Occurred()) SWIG_fail;
26183 }
26184 resultobj = SWIG_Py_Void();
26185 return resultobj;
26186 fail:
26187 return NULL;
26188 }
26189
26190
26191 SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26192 PyObject *resultobj = 0;
26193 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26194 wxDouble arg2 ;
26195 wxDouble arg3 ;
26196 void *argp1 = 0 ;
26197 int res1 = 0 ;
26198 double val2 ;
26199 int ecode2 = 0 ;
26200 double val3 ;
26201 int ecode3 = 0 ;
26202 PyObject * obj0 = 0 ;
26203 PyObject * obj1 = 0 ;
26204 PyObject * obj2 = 0 ;
26205 char * kwnames[] = {
26206 (char *) "self",(char *) "xScale",(char *) "yScale", NULL
26207 };
26208
26209 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26210 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26211 if (!SWIG_IsOK(res1)) {
26212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26213 }
26214 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26215 ecode2 = SWIG_AsVal_double(obj1, &val2);
26216 if (!SWIG_IsOK(ecode2)) {
26217 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'");
26218 }
26219 arg2 = static_cast< wxDouble >(val2);
26220 ecode3 = SWIG_AsVal_double(obj2, &val3);
26221 if (!SWIG_IsOK(ecode3)) {
26222 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'");
26223 }
26224 arg3 = static_cast< wxDouble >(val3);
26225 {
26226 (arg1)->Scale(arg2,arg3);
26227 if (PyErr_Occurred()) SWIG_fail;
26228 }
26229 resultobj = SWIG_Py_Void();
26230 return resultobj;
26231 fail:
26232 return NULL;
26233 }
26234
26235
26236 SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26237 PyObject *resultobj = 0;
26238 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26239 wxDouble arg2 ;
26240 void *argp1 = 0 ;
26241 int res1 = 0 ;
26242 double val2 ;
26243 int ecode2 = 0 ;
26244 PyObject * obj0 = 0 ;
26245 PyObject * obj1 = 0 ;
26246 char * kwnames[] = {
26247 (char *) "self",(char *) "angle", NULL
26248 };
26249
26250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail;
26251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26252 if (!SWIG_IsOK(res1)) {
26253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26254 }
26255 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26256 ecode2 = SWIG_AsVal_double(obj1, &val2);
26257 if (!SWIG_IsOK(ecode2)) {
26258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'");
26259 }
26260 arg2 = static_cast< wxDouble >(val2);
26261 {
26262 (arg1)->Rotate(arg2);
26263 if (PyErr_Occurred()) SWIG_fail;
26264 }
26265 resultobj = SWIG_Py_Void();
26266 return resultobj;
26267 fail:
26268 return NULL;
26269 }
26270
26271
26272 SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26273 PyObject *resultobj = 0;
26274 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26275 wxPen *arg2 = 0 ;
26276 void *argp1 = 0 ;
26277 int res1 = 0 ;
26278 void *argp2 = 0 ;
26279 int res2 = 0 ;
26280 PyObject * obj0 = 0 ;
26281 PyObject * obj1 = 0 ;
26282 char * kwnames[] = {
26283 (char *) "self",(char *) "pen", NULL
26284 };
26285
26286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
26287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26288 if (!SWIG_IsOK(res1)) {
26289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26290 }
26291 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26292 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
26293 if (!SWIG_IsOK(res2)) {
26294 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26295 }
26296 if (!argp2) {
26297 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
26298 }
26299 arg2 = reinterpret_cast< wxPen * >(argp2);
26300 {
26301 (arg1)->SetPen((wxPen const &)*arg2);
26302 if (PyErr_Occurred()) SWIG_fail;
26303 }
26304 resultobj = SWIG_Py_Void();
26305 return resultobj;
26306 fail:
26307 return NULL;
26308 }
26309
26310
26311 SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26312 PyObject *resultobj = 0;
26313 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26314 wxBrush *arg2 = 0 ;
26315 void *argp1 = 0 ;
26316 int res1 = 0 ;
26317 void *argp2 = 0 ;
26318 int res2 = 0 ;
26319 PyObject * obj0 = 0 ;
26320 PyObject * obj1 = 0 ;
26321 char * kwnames[] = {
26322 (char *) "self",(char *) "brush", NULL
26323 };
26324
26325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
26326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26327 if (!SWIG_IsOK(res1)) {
26328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26329 }
26330 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26331 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
26332 if (!SWIG_IsOK(res2)) {
26333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26334 }
26335 if (!argp2) {
26336 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
26337 }
26338 arg2 = reinterpret_cast< wxBrush * >(argp2);
26339 {
26340 (arg1)->SetBrush((wxBrush const &)*arg2);
26341 if (PyErr_Occurred()) SWIG_fail;
26342 }
26343 resultobj = SWIG_Py_Void();
26344 return resultobj;
26345 fail:
26346 return NULL;
26347 }
26348
26349
26350 SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26351 PyObject *resultobj = 0;
26352 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26353 wxDouble arg2 ;
26354 wxDouble arg3 ;
26355 wxDouble arg4 ;
26356 wxDouble arg5 ;
26357 wxColour *arg6 = 0 ;
26358 wxColour *arg7 = 0 ;
26359 void *argp1 = 0 ;
26360 int res1 = 0 ;
26361 double val2 ;
26362 int ecode2 = 0 ;
26363 double val3 ;
26364 int ecode3 = 0 ;
26365 double val4 ;
26366 int ecode4 = 0 ;
26367 double val5 ;
26368 int ecode5 = 0 ;
26369 wxColour temp6 ;
26370 wxColour temp7 ;
26371 PyObject * obj0 = 0 ;
26372 PyObject * obj1 = 0 ;
26373 PyObject * obj2 = 0 ;
26374 PyObject * obj3 = 0 ;
26375 PyObject * obj4 = 0 ;
26376 PyObject * obj5 = 0 ;
26377 PyObject * obj6 = 0 ;
26378 char * kwnames[] = {
26379 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL
26380 };
26381
26382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26384 if (!SWIG_IsOK(res1)) {
26385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26386 }
26387 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26388 ecode2 = SWIG_AsVal_double(obj1, &val2);
26389 if (!SWIG_IsOK(ecode2)) {
26390 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26391 }
26392 arg2 = static_cast< wxDouble >(val2);
26393 ecode3 = SWIG_AsVal_double(obj2, &val3);
26394 if (!SWIG_IsOK(ecode3)) {
26395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26396 }
26397 arg3 = static_cast< wxDouble >(val3);
26398 ecode4 = SWIG_AsVal_double(obj3, &val4);
26399 if (!SWIG_IsOK(ecode4)) {
26400 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26401 }
26402 arg4 = static_cast< wxDouble >(val4);
26403 ecode5 = SWIG_AsVal_double(obj4, &val5);
26404 if (!SWIG_IsOK(ecode5)) {
26405 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26406 }
26407 arg5 = static_cast< wxDouble >(val5);
26408 {
26409 arg6 = &temp6;
26410 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
26411 }
26412 {
26413 arg7 = &temp7;
26414 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26415 }
26416 {
26417 (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7);
26418 if (PyErr_Occurred()) SWIG_fail;
26419 }
26420 resultobj = SWIG_Py_Void();
26421 return resultobj;
26422 fail:
26423 return NULL;
26424 }
26425
26426
26427 SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26428 PyObject *resultobj = 0;
26429 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26430 wxDouble arg2 ;
26431 wxDouble arg3 ;
26432 wxDouble arg4 ;
26433 wxDouble arg5 ;
26434 wxDouble arg6 ;
26435 wxColour *arg7 = 0 ;
26436 wxColour *arg8 = 0 ;
26437 void *argp1 = 0 ;
26438 int res1 = 0 ;
26439 double val2 ;
26440 int ecode2 = 0 ;
26441 double val3 ;
26442 int ecode3 = 0 ;
26443 double val4 ;
26444 int ecode4 = 0 ;
26445 double val5 ;
26446 int ecode5 = 0 ;
26447 double val6 ;
26448 int ecode6 = 0 ;
26449 wxColour temp7 ;
26450 wxColour temp8 ;
26451 PyObject * obj0 = 0 ;
26452 PyObject * obj1 = 0 ;
26453 PyObject * obj2 = 0 ;
26454 PyObject * obj3 = 0 ;
26455 PyObject * obj4 = 0 ;
26456 PyObject * obj5 = 0 ;
26457 PyObject * obj6 = 0 ;
26458 PyObject * obj7 = 0 ;
26459 char * kwnames[] = {
26460 (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL
26461 };
26462
26463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
26464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26465 if (!SWIG_IsOK(res1)) {
26466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26467 }
26468 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26469 ecode2 = SWIG_AsVal_double(obj1, &val2);
26470 if (!SWIG_IsOK(ecode2)) {
26471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'");
26472 }
26473 arg2 = static_cast< wxDouble >(val2);
26474 ecode3 = SWIG_AsVal_double(obj2, &val3);
26475 if (!SWIG_IsOK(ecode3)) {
26476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'");
26477 }
26478 arg3 = static_cast< wxDouble >(val3);
26479 ecode4 = SWIG_AsVal_double(obj3, &val4);
26480 if (!SWIG_IsOK(ecode4)) {
26481 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'");
26482 }
26483 arg4 = static_cast< wxDouble >(val4);
26484 ecode5 = SWIG_AsVal_double(obj4, &val5);
26485 if (!SWIG_IsOK(ecode5)) {
26486 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'");
26487 }
26488 arg5 = static_cast< wxDouble >(val5);
26489 ecode6 = SWIG_AsVal_double(obj5, &val6);
26490 if (!SWIG_IsOK(ecode6)) {
26491 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'");
26492 }
26493 arg6 = static_cast< wxDouble >(val6);
26494 {
26495 arg7 = &temp7;
26496 if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail;
26497 }
26498 {
26499 arg8 = &temp8;
26500 if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail;
26501 }
26502 {
26503 (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8);
26504 if (PyErr_Occurred()) SWIG_fail;
26505 }
26506 resultobj = SWIG_Py_Void();
26507 return resultobj;
26508 fail:
26509 return NULL;
26510 }
26511
26512
26513 SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26514 PyObject *resultobj = 0;
26515 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26516 wxFont *arg2 = 0 ;
26517 void *argp1 = 0 ;
26518 int res1 = 0 ;
26519 void *argp2 = 0 ;
26520 int res2 = 0 ;
26521 PyObject * obj0 = 0 ;
26522 PyObject * obj1 = 0 ;
26523 char * kwnames[] = {
26524 (char *) "self",(char *) "font", NULL
26525 };
26526
26527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
26528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26529 if (!SWIG_IsOK(res1)) {
26530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26531 }
26532 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
26534 if (!SWIG_IsOK(res2)) {
26535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26536 }
26537 if (!argp2) {
26538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
26539 }
26540 arg2 = reinterpret_cast< wxFont * >(argp2);
26541 {
26542 (arg1)->SetFont((wxFont const &)*arg2);
26543 if (PyErr_Occurred()) SWIG_fail;
26544 }
26545 resultobj = SWIG_Py_Void();
26546 return resultobj;
26547 fail:
26548 return NULL;
26549 }
26550
26551
26552 SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26553 PyObject *resultobj = 0;
26554 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26555 wxColour *arg2 = 0 ;
26556 void *argp1 = 0 ;
26557 int res1 = 0 ;
26558 wxColour temp2 ;
26559 PyObject * obj0 = 0 ;
26560 PyObject * obj1 = 0 ;
26561 char * kwnames[] = {
26562 (char *) "self",(char *) "col", NULL
26563 };
26564
26565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColor",kwnames,&obj0,&obj1)) SWIG_fail;
26566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26567 if (!SWIG_IsOK(res1)) {
26568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColor" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26569 }
26570 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26571 {
26572 arg2 = &temp2;
26573 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
26574 }
26575 {
26576 (arg1)->SetTextColor((wxColour const &)*arg2);
26577 if (PyErr_Occurred()) SWIG_fail;
26578 }
26579 resultobj = SWIG_Py_Void();
26580 return resultobj;
26581 fail:
26582 return NULL;
26583 }
26584
26585
26586 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26587 PyObject *resultobj = 0;
26588 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26589 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26590 void *argp1 = 0 ;
26591 int res1 = 0 ;
26592 void *argp2 = 0 ;
26593 int res2 = 0 ;
26594 PyObject * obj0 = 0 ;
26595 PyObject * obj1 = 0 ;
26596 char * kwnames[] = {
26597 (char *) "self",(char *) "path", NULL
26598 };
26599
26600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail;
26601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26602 if (!SWIG_IsOK(res1)) {
26603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26604 }
26605 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26606 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26607 if (!SWIG_IsOK(res2)) {
26608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26609 }
26610 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26611 {
26612 (arg1)->StrokePath((wxGraphicsPath const *)arg2);
26613 if (PyErr_Occurred()) SWIG_fail;
26614 }
26615 resultobj = SWIG_Py_Void();
26616 return resultobj;
26617 fail:
26618 return NULL;
26619 }
26620
26621
26622 SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26623 PyObject *resultobj = 0;
26624 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26625 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26626 int arg3 = (int) wxWINDING_RULE ;
26627 void *argp1 = 0 ;
26628 int res1 = 0 ;
26629 void *argp2 = 0 ;
26630 int res2 = 0 ;
26631 int val3 ;
26632 int ecode3 = 0 ;
26633 PyObject * obj0 = 0 ;
26634 PyObject * obj1 = 0 ;
26635 PyObject * obj2 = 0 ;
26636 char * kwnames[] = {
26637 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26638 };
26639
26640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26642 if (!SWIG_IsOK(res1)) {
26643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26644 }
26645 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26646 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26647 if (!SWIG_IsOK(res2)) {
26648 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26649 }
26650 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26651 if (obj2) {
26652 ecode3 = SWIG_AsVal_int(obj2, &val3);
26653 if (!SWIG_IsOK(ecode3)) {
26654 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'");
26655 }
26656 arg3 = static_cast< int >(val3);
26657 }
26658 {
26659 (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3);
26660 if (PyErr_Occurred()) SWIG_fail;
26661 }
26662 resultobj = SWIG_Py_Void();
26663 return resultobj;
26664 fail:
26665 return NULL;
26666 }
26667
26668
26669 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26670 PyObject *resultobj = 0;
26671 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26672 wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ;
26673 int arg3 = (int) wxWINDING_RULE ;
26674 void *argp1 = 0 ;
26675 int res1 = 0 ;
26676 void *argp2 = 0 ;
26677 int res2 = 0 ;
26678 int val3 ;
26679 int ecode3 = 0 ;
26680 PyObject * obj0 = 0 ;
26681 PyObject * obj1 = 0 ;
26682 PyObject * obj2 = 0 ;
26683 char * kwnames[] = {
26684 (char *) "self",(char *) "path",(char *) "fillStyle", NULL
26685 };
26686
26687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26689 if (!SWIG_IsOK(res1)) {
26690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26691 }
26692 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26693 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 );
26694 if (!SWIG_IsOK(res2)) {
26695 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'");
26696 }
26697 arg2 = reinterpret_cast< wxGraphicsPath * >(argp2);
26698 if (obj2) {
26699 ecode3 = SWIG_AsVal_int(obj2, &val3);
26700 if (!SWIG_IsOK(ecode3)) {
26701 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'");
26702 }
26703 arg3 = static_cast< int >(val3);
26704 }
26705 {
26706 (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3);
26707 if (PyErr_Occurred()) SWIG_fail;
26708 }
26709 resultobj = SWIG_Py_Void();
26710 return resultobj;
26711 fail:
26712 return NULL;
26713 }
26714
26715
26716 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26717 PyObject *resultobj = 0;
26718 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26719 wxString *arg2 = 0 ;
26720 wxDouble arg3 ;
26721 wxDouble arg4 ;
26722 void *argp1 = 0 ;
26723 int res1 = 0 ;
26724 bool temp2 = false ;
26725 double val3 ;
26726 int ecode3 = 0 ;
26727 double val4 ;
26728 int ecode4 = 0 ;
26729 PyObject * obj0 = 0 ;
26730 PyObject * obj1 = 0 ;
26731 PyObject * obj2 = 0 ;
26732 PyObject * obj3 = 0 ;
26733 char * kwnames[] = {
26734 (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL
26735 };
26736
26737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26738 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26739 if (!SWIG_IsOK(res1)) {
26740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26741 }
26742 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26743 {
26744 arg2 = wxString_in_helper(obj1);
26745 if (arg2 == NULL) SWIG_fail;
26746 temp2 = true;
26747 }
26748 ecode3 = SWIG_AsVal_double(obj2, &val3);
26749 if (!SWIG_IsOK(ecode3)) {
26750 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'");
26751 }
26752 arg3 = static_cast< wxDouble >(val3);
26753 ecode4 = SWIG_AsVal_double(obj3, &val4);
26754 if (!SWIG_IsOK(ecode4)) {
26755 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'");
26756 }
26757 arg4 = static_cast< wxDouble >(val4);
26758 {
26759 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
26760 if (PyErr_Occurred()) SWIG_fail;
26761 }
26762 resultobj = SWIG_Py_Void();
26763 {
26764 if (temp2)
26765 delete arg2;
26766 }
26767 return resultobj;
26768 fail:
26769 {
26770 if (temp2)
26771 delete arg2;
26772 }
26773 return NULL;
26774 }
26775
26776
26777 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26778 PyObject *resultobj = 0;
26779 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26780 wxString *arg2 = 0 ;
26781 wxDouble arg3 ;
26782 wxDouble arg4 ;
26783 wxDouble arg5 ;
26784 void *argp1 = 0 ;
26785 int res1 = 0 ;
26786 bool temp2 = false ;
26787 double val3 ;
26788 int ecode3 = 0 ;
26789 double val4 ;
26790 int ecode4 = 0 ;
26791 double val5 ;
26792 int ecode5 = 0 ;
26793 PyObject * obj0 = 0 ;
26794 PyObject * obj1 = 0 ;
26795 PyObject * obj2 = 0 ;
26796 PyObject * obj3 = 0 ;
26797 PyObject * obj4 = 0 ;
26798 char * kwnames[] = {
26799 (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL
26800 };
26801
26802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26804 if (!SWIG_IsOK(res1)) {
26805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26806 }
26807 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26808 {
26809 arg2 = wxString_in_helper(obj1);
26810 if (arg2 == NULL) SWIG_fail;
26811 temp2 = true;
26812 }
26813 ecode3 = SWIG_AsVal_double(obj2, &val3);
26814 if (!SWIG_IsOK(ecode3)) {
26815 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'");
26816 }
26817 arg3 = static_cast< wxDouble >(val3);
26818 ecode4 = SWIG_AsVal_double(obj3, &val4);
26819 if (!SWIG_IsOK(ecode4)) {
26820 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'");
26821 }
26822 arg4 = static_cast< wxDouble >(val4);
26823 ecode5 = SWIG_AsVal_double(obj4, &val5);
26824 if (!SWIG_IsOK(ecode5)) {
26825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'");
26826 }
26827 arg5 = static_cast< wxDouble >(val5);
26828 {
26829 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5);
26830 if (PyErr_Occurred()) SWIG_fail;
26831 }
26832 resultobj = SWIG_Py_Void();
26833 {
26834 if (temp2)
26835 delete arg2;
26836 }
26837 return resultobj;
26838 fail:
26839 {
26840 if (temp2)
26841 delete arg2;
26842 }
26843 return NULL;
26844 }
26845
26846
26847 SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26848 PyObject *resultobj = 0;
26849 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26850 wxString *arg2 = 0 ;
26851 wxDouble *arg3 = (wxDouble *) 0 ;
26852 wxDouble *arg4 = (wxDouble *) 0 ;
26853 wxDouble *arg5 = (wxDouble *) 0 ;
26854 wxDouble *arg6 = (wxDouble *) 0 ;
26855 void *argp1 = 0 ;
26856 int res1 = 0 ;
26857 bool temp2 = false ;
26858 wxDouble temp3 ;
26859 int res3 = SWIG_TMPOBJ ;
26860 wxDouble temp4 ;
26861 int res4 = SWIG_TMPOBJ ;
26862 wxDouble temp5 ;
26863 int res5 = SWIG_TMPOBJ ;
26864 wxDouble temp6 ;
26865 int res6 = SWIG_TMPOBJ ;
26866 PyObject * obj0 = 0 ;
26867 PyObject * obj1 = 0 ;
26868 char * kwnames[] = {
26869 (char *) "self",(char *) "text", NULL
26870 };
26871
26872 arg3 = &temp3;
26873 arg4 = &temp4;
26874 arg5 = &temp5;
26875 arg6 = &temp6;
26876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
26877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26878 if (!SWIG_IsOK(res1)) {
26879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'");
26880 }
26881 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26882 {
26883 arg2 = wxString_in_helper(obj1);
26884 if (arg2 == NULL) SWIG_fail;
26885 temp2 = true;
26886 }
26887 {
26888 ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
26889 if (PyErr_Occurred()) SWIG_fail;
26890 }
26891 resultobj = SWIG_Py_Void();
26892 if (SWIG_IsTmpObj(res3)) {
26893 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
26894 } else {
26895 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
26897 }
26898 if (SWIG_IsTmpObj(res4)) {
26899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4)));
26900 } else {
26901 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags));
26903 }
26904 if (SWIG_IsTmpObj(res5)) {
26905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5)));
26906 } else {
26907 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags));
26909 }
26910 if (SWIG_IsTmpObj(res6)) {
26911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6)));
26912 } else {
26913 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
26914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags));
26915 }
26916 {
26917 if (temp2)
26918 delete arg2;
26919 }
26920 return resultobj;
26921 fail:
26922 {
26923 if (temp2)
26924 delete arg2;
26925 }
26926 return NULL;
26927 }
26928
26929
26930 SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26931 PyObject *resultobj = 0;
26932 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26933 wxString *arg2 = 0 ;
26934 wxArrayDouble result;
26935 void *argp1 = 0 ;
26936 int res1 = 0 ;
26937 bool temp2 = false ;
26938 PyObject * obj0 = 0 ;
26939 PyObject * obj1 = 0 ;
26940 char * kwnames[] = {
26941 (char *) "self",(char *) "text", NULL
26942 };
26943
26944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
26945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
26946 if (!SWIG_IsOK(res1)) {
26947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
26948 }
26949 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
26950 {
26951 arg2 = wxString_in_helper(obj1);
26952 if (arg2 == NULL) SWIG_fail;
26953 temp2 = true;
26954 }
26955 {
26956 result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2);
26957 if (PyErr_Occurred()) SWIG_fail;
26958 }
26959 {
26960 resultobj = wxArrayDouble2PyList_helper(result);
26961 }
26962 {
26963 if (temp2)
26964 delete arg2;
26965 }
26966 return resultobj;
26967 fail:
26968 {
26969 if (temp2)
26970 delete arg2;
26971 }
26972 return NULL;
26973 }
26974
26975
26976 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26977 PyObject *resultobj = 0;
26978 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
26979 wxBitmap *arg2 = 0 ;
26980 wxDouble arg3 ;
26981 wxDouble arg4 ;
26982 wxDouble arg5 ;
26983 wxDouble arg6 ;
26984 void *argp1 = 0 ;
26985 int res1 = 0 ;
26986 void *argp2 = 0 ;
26987 int res2 = 0 ;
26988 double val3 ;
26989 int ecode3 = 0 ;
26990 double val4 ;
26991 int ecode4 = 0 ;
26992 double val5 ;
26993 int ecode5 = 0 ;
26994 double val6 ;
26995 int ecode6 = 0 ;
26996 PyObject * obj0 = 0 ;
26997 PyObject * obj1 = 0 ;
26998 PyObject * obj2 = 0 ;
26999 PyObject * obj3 = 0 ;
27000 PyObject * obj4 = 0 ;
27001 PyObject * obj5 = 0 ;
27002 char * kwnames[] = {
27003 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27004 };
27005
27006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27008 if (!SWIG_IsOK(res1)) {
27009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27010 }
27011 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27012 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27013 if (!SWIG_IsOK(res2)) {
27014 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27015 }
27016 if (!argp2) {
27017 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27018 }
27019 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27020 ecode3 = SWIG_AsVal_double(obj2, &val3);
27021 if (!SWIG_IsOK(ecode3)) {
27022 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'");
27023 }
27024 arg3 = static_cast< wxDouble >(val3);
27025 ecode4 = SWIG_AsVal_double(obj3, &val4);
27026 if (!SWIG_IsOK(ecode4)) {
27027 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'");
27028 }
27029 arg4 = static_cast< wxDouble >(val4);
27030 ecode5 = SWIG_AsVal_double(obj4, &val5);
27031 if (!SWIG_IsOK(ecode5)) {
27032 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'");
27033 }
27034 arg5 = static_cast< wxDouble >(val5);
27035 ecode6 = SWIG_AsVal_double(obj5, &val6);
27036 if (!SWIG_IsOK(ecode6)) {
27037 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'");
27038 }
27039 arg6 = static_cast< wxDouble >(val6);
27040 {
27041 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6);
27042 if (PyErr_Occurred()) SWIG_fail;
27043 }
27044 resultobj = SWIG_Py_Void();
27045 return resultobj;
27046 fail:
27047 return NULL;
27048 }
27049
27050
27051 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27052 PyObject *resultobj = 0;
27053 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27054 wxIcon *arg2 = 0 ;
27055 wxDouble arg3 ;
27056 wxDouble arg4 ;
27057 wxDouble arg5 ;
27058 wxDouble arg6 ;
27059 void *argp1 = 0 ;
27060 int res1 = 0 ;
27061 void *argp2 = 0 ;
27062 int res2 = 0 ;
27063 double val3 ;
27064 int ecode3 = 0 ;
27065 double val4 ;
27066 int ecode4 = 0 ;
27067 double val5 ;
27068 int ecode5 = 0 ;
27069 double val6 ;
27070 int ecode6 = 0 ;
27071 PyObject * obj0 = 0 ;
27072 PyObject * obj1 = 0 ;
27073 PyObject * obj2 = 0 ;
27074 PyObject * obj3 = 0 ;
27075 PyObject * obj4 = 0 ;
27076 PyObject * obj5 = 0 ;
27077 char * kwnames[] = {
27078 (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27079 };
27080
27081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27083 if (!SWIG_IsOK(res1)) {
27084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27085 }
27086 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27088 if (!SWIG_IsOK(res2)) {
27089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27090 }
27091 if (!argp2) {
27092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27093 }
27094 arg2 = reinterpret_cast< wxIcon * >(argp2);
27095 ecode3 = SWIG_AsVal_double(obj2, &val3);
27096 if (!SWIG_IsOK(ecode3)) {
27097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'");
27098 }
27099 arg3 = static_cast< wxDouble >(val3);
27100 ecode4 = SWIG_AsVal_double(obj3, &val4);
27101 if (!SWIG_IsOK(ecode4)) {
27102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'");
27103 }
27104 arg4 = static_cast< wxDouble >(val4);
27105 ecode5 = SWIG_AsVal_double(obj4, &val5);
27106 if (!SWIG_IsOK(ecode5)) {
27107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'");
27108 }
27109 arg5 = static_cast< wxDouble >(val5);
27110 ecode6 = SWIG_AsVal_double(obj5, &val6);
27111 if (!SWIG_IsOK(ecode6)) {
27112 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'");
27113 }
27114 arg6 = static_cast< wxDouble >(val6);
27115 {
27116 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6);
27117 if (PyErr_Occurred()) SWIG_fail;
27118 }
27119 resultobj = SWIG_Py_Void();
27120 return resultobj;
27121 fail:
27122 return NULL;
27123 }
27124
27125
27126 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27127 PyObject *resultobj = 0;
27128 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27129 wxDouble arg2 ;
27130 wxDouble arg3 ;
27131 wxDouble arg4 ;
27132 wxDouble arg5 ;
27133 void *argp1 = 0 ;
27134 int res1 = 0 ;
27135 double val2 ;
27136 int ecode2 = 0 ;
27137 double val3 ;
27138 int ecode3 = 0 ;
27139 double val4 ;
27140 int ecode4 = 0 ;
27141 double val5 ;
27142 int ecode5 = 0 ;
27143 PyObject * obj0 = 0 ;
27144 PyObject * obj1 = 0 ;
27145 PyObject * obj2 = 0 ;
27146 PyObject * obj3 = 0 ;
27147 PyObject * obj4 = 0 ;
27148 char * kwnames[] = {
27149 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
27150 };
27151
27152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27154 if (!SWIG_IsOK(res1)) {
27155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27156 }
27157 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27158 ecode2 = SWIG_AsVal_double(obj1, &val2);
27159 if (!SWIG_IsOK(ecode2)) {
27160 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'");
27161 }
27162 arg2 = static_cast< wxDouble >(val2);
27163 ecode3 = SWIG_AsVal_double(obj2, &val3);
27164 if (!SWIG_IsOK(ecode3)) {
27165 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'");
27166 }
27167 arg3 = static_cast< wxDouble >(val3);
27168 ecode4 = SWIG_AsVal_double(obj3, &val4);
27169 if (!SWIG_IsOK(ecode4)) {
27170 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'");
27171 }
27172 arg4 = static_cast< wxDouble >(val4);
27173 ecode5 = SWIG_AsVal_double(obj4, &val5);
27174 if (!SWIG_IsOK(ecode5)) {
27175 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'");
27176 }
27177 arg5 = static_cast< wxDouble >(val5);
27178 {
27179 (arg1)->StrokeLine(arg2,arg3,arg4,arg5);
27180 if (PyErr_Occurred()) SWIG_fail;
27181 }
27182 resultobj = SWIG_Py_Void();
27183 return resultobj;
27184 fail:
27185 return NULL;
27186 }
27187
27188
27189 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27190 PyObject *resultobj = 0;
27191 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27192 size_t arg2 ;
27193 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27194 void *argp1 = 0 ;
27195 int res1 = 0 ;
27196 PyObject * obj0 = 0 ;
27197 PyObject * obj1 = 0 ;
27198 char * kwnames[] = {
27199 (char *) "self",(char *) "points", NULL
27200 };
27201
27202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail;
27203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27204 if (!SWIG_IsOK(res1)) {
27205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27206 }
27207 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27208 {
27209 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27210 if (arg3 == NULL) SWIG_fail;
27211 }
27212 {
27213 (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3);
27214 if (PyErr_Occurred()) SWIG_fail;
27215 }
27216 resultobj = SWIG_Py_Void();
27217 {
27218 if (arg3) delete [] arg3;
27219 }
27220 return resultobj;
27221 fail:
27222 {
27223 if (arg3) delete [] arg3;
27224 }
27225 return NULL;
27226 }
27227
27228
27229 SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27230 PyObject *resultobj = 0;
27231 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27232 PyObject *arg2 = (PyObject *) 0 ;
27233 PyObject *arg3 = (PyObject *) 0 ;
27234 void *argp1 = 0 ;
27235 int res1 = 0 ;
27236 PyObject * obj0 = 0 ;
27237 PyObject * obj1 = 0 ;
27238 PyObject * obj2 = 0 ;
27239 char * kwnames[] = {
27240 (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL
27241 };
27242
27243 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27244 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27245 if (!SWIG_IsOK(res1)) {
27246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27247 }
27248 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27249 arg2 = obj1;
27250 arg3 = obj2;
27251 {
27252 wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3);
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_Py_Void();
27256 return resultobj;
27257 fail:
27258 return NULL;
27259 }
27260
27261
27262 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27263 PyObject *resultobj = 0;
27264 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27265 size_t arg2 ;
27266 wxPoint2D *arg3 = (wxPoint2D *) 0 ;
27267 int arg4 = (int) wxWINDING_RULE ;
27268 void *argp1 = 0 ;
27269 int res1 = 0 ;
27270 int val4 ;
27271 int ecode4 = 0 ;
27272 PyObject * obj0 = 0 ;
27273 PyObject * obj1 = 0 ;
27274 PyObject * obj2 = 0 ;
27275 char * kwnames[] = {
27276 (char *) "self",(char *) "points",(char *) "fillStyle", NULL
27277 };
27278
27279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27281 if (!SWIG_IsOK(res1)) {
27282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27283 }
27284 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27285 {
27286 arg3 = wxPoint2D_LIST_helper(obj1, &arg2);
27287 if (arg3 == NULL) SWIG_fail;
27288 }
27289 if (obj2) {
27290 ecode4 = SWIG_AsVal_int(obj2, &val4);
27291 if (!SWIG_IsOK(ecode4)) {
27292 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'");
27293 }
27294 arg4 = static_cast< int >(val4);
27295 }
27296 {
27297 (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4);
27298 if (PyErr_Occurred()) SWIG_fail;
27299 }
27300 resultobj = SWIG_Py_Void();
27301 {
27302 if (arg3) delete [] arg3;
27303 }
27304 return resultobj;
27305 fail:
27306 {
27307 if (arg3) delete [] arg3;
27308 }
27309 return NULL;
27310 }
27311
27312
27313 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27314 PyObject *resultobj = 0;
27315 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27316 wxDouble arg2 ;
27317 wxDouble arg3 ;
27318 wxDouble arg4 ;
27319 wxDouble arg5 ;
27320 void *argp1 = 0 ;
27321 int res1 = 0 ;
27322 double val2 ;
27323 int ecode2 = 0 ;
27324 double val3 ;
27325 int ecode3 = 0 ;
27326 double val4 ;
27327 int ecode4 = 0 ;
27328 double val5 ;
27329 int ecode5 = 0 ;
27330 PyObject * obj0 = 0 ;
27331 PyObject * obj1 = 0 ;
27332 PyObject * obj2 = 0 ;
27333 PyObject * obj3 = 0 ;
27334 PyObject * obj4 = 0 ;
27335 char * kwnames[] = {
27336 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27337 };
27338
27339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27341 if (!SWIG_IsOK(res1)) {
27342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27343 }
27344 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27345 ecode2 = SWIG_AsVal_double(obj1, &val2);
27346 if (!SWIG_IsOK(ecode2)) {
27347 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27348 }
27349 arg2 = static_cast< wxDouble >(val2);
27350 ecode3 = SWIG_AsVal_double(obj2, &val3);
27351 if (!SWIG_IsOK(ecode3)) {
27352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27353 }
27354 arg3 = static_cast< wxDouble >(val3);
27355 ecode4 = SWIG_AsVal_double(obj3, &val4);
27356 if (!SWIG_IsOK(ecode4)) {
27357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27358 }
27359 arg4 = static_cast< wxDouble >(val4);
27360 ecode5 = SWIG_AsVal_double(obj4, &val5);
27361 if (!SWIG_IsOK(ecode5)) {
27362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27363 }
27364 arg5 = static_cast< wxDouble >(val5);
27365 {
27366 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27367 if (PyErr_Occurred()) SWIG_fail;
27368 }
27369 resultobj = SWIG_Py_Void();
27370 return resultobj;
27371 fail:
27372 return NULL;
27373 }
27374
27375
27376 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27377 PyObject *resultobj = 0;
27378 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27379 wxDouble arg2 ;
27380 wxDouble arg3 ;
27381 wxDouble arg4 ;
27382 wxDouble arg5 ;
27383 void *argp1 = 0 ;
27384 int res1 = 0 ;
27385 double val2 ;
27386 int ecode2 = 0 ;
27387 double val3 ;
27388 int ecode3 = 0 ;
27389 double val4 ;
27390 int ecode4 = 0 ;
27391 double val5 ;
27392 int ecode5 = 0 ;
27393 PyObject * obj0 = 0 ;
27394 PyObject * obj1 = 0 ;
27395 PyObject * obj2 = 0 ;
27396 PyObject * obj3 = 0 ;
27397 PyObject * obj4 = 0 ;
27398 char * kwnames[] = {
27399 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
27400 };
27401
27402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27404 if (!SWIG_IsOK(res1)) {
27405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27406 }
27407 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27408 ecode2 = SWIG_AsVal_double(obj1, &val2);
27409 if (!SWIG_IsOK(ecode2)) {
27410 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'");
27411 }
27412 arg2 = static_cast< wxDouble >(val2);
27413 ecode3 = SWIG_AsVal_double(obj2, &val3);
27414 if (!SWIG_IsOK(ecode3)) {
27415 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'");
27416 }
27417 arg3 = static_cast< wxDouble >(val3);
27418 ecode4 = SWIG_AsVal_double(obj3, &val4);
27419 if (!SWIG_IsOK(ecode4)) {
27420 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'");
27421 }
27422 arg4 = static_cast< wxDouble >(val4);
27423 ecode5 = SWIG_AsVal_double(obj4, &val5);
27424 if (!SWIG_IsOK(ecode5)) {
27425 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'");
27426 }
27427 arg5 = static_cast< wxDouble >(val5);
27428 {
27429 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27430 if (PyErr_Occurred()) SWIG_fail;
27431 }
27432 resultobj = SWIG_Py_Void();
27433 return resultobj;
27434 fail:
27435 return NULL;
27436 }
27437
27438
27439 SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27440 PyObject *resultobj = 0;
27441 wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ;
27442 wxDouble arg2 ;
27443 wxDouble arg3 ;
27444 wxDouble arg4 ;
27445 wxDouble arg5 ;
27446 wxDouble arg6 ;
27447 void *argp1 = 0 ;
27448 int res1 = 0 ;
27449 double val2 ;
27450 int ecode2 = 0 ;
27451 double val3 ;
27452 int ecode3 = 0 ;
27453 double val4 ;
27454 int ecode4 = 0 ;
27455 double val5 ;
27456 int ecode5 = 0 ;
27457 double val6 ;
27458 int ecode6 = 0 ;
27459 PyObject * obj0 = 0 ;
27460 PyObject * obj1 = 0 ;
27461 PyObject * obj2 = 0 ;
27462 PyObject * obj3 = 0 ;
27463 PyObject * obj4 = 0 ;
27464 PyObject * obj5 = 0 ;
27465 char * kwnames[] = {
27466 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL
27467 };
27468
27469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27471 if (!SWIG_IsOK(res1)) {
27472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'");
27473 }
27474 arg1 = reinterpret_cast< wxGraphicsContext * >(argp1);
27475 ecode2 = SWIG_AsVal_double(obj1, &val2);
27476 if (!SWIG_IsOK(ecode2)) {
27477 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'");
27478 }
27479 arg2 = static_cast< wxDouble >(val2);
27480 ecode3 = SWIG_AsVal_double(obj2, &val3);
27481 if (!SWIG_IsOK(ecode3)) {
27482 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'");
27483 }
27484 arg3 = static_cast< wxDouble >(val3);
27485 ecode4 = SWIG_AsVal_double(obj3, &val4);
27486 if (!SWIG_IsOK(ecode4)) {
27487 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'");
27488 }
27489 arg4 = static_cast< wxDouble >(val4);
27490 ecode5 = SWIG_AsVal_double(obj4, &val5);
27491 if (!SWIG_IsOK(ecode5)) {
27492 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'");
27493 }
27494 arg5 = static_cast< wxDouble >(val5);
27495 ecode6 = SWIG_AsVal_double(obj5, &val6);
27496 if (!SWIG_IsOK(ecode6)) {
27497 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'");
27498 }
27499 arg6 = static_cast< wxDouble >(val6);
27500 {
27501 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27502 if (PyErr_Occurred()) SWIG_fail;
27503 }
27504 resultobj = SWIG_Py_Void();
27505 return resultobj;
27506 fail:
27507 return NULL;
27508 }
27509
27510
27511 SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27512 PyObject *obj;
27513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27514 SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj));
27515 return SWIG_Py_Void();
27516 }
27517
27518 SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27519 PyObject *resultobj = 0;
27520 wxWindowDC *arg1 = 0 ;
27521 wxGCDC *result = 0 ;
27522 void *argp1 = 0 ;
27523 int res1 = 0 ;
27524 PyObject * obj0 = 0 ;
27525 char * kwnames[] = {
27526 (char *) "dc", NULL
27527 };
27528
27529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail;
27530 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0);
27531 if (!SWIG_IsOK(res1)) {
27532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27533 }
27534 if (!argp1) {
27535 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'");
27536 }
27537 arg1 = reinterpret_cast< wxWindowDC * >(argp1);
27538 {
27539 if (!wxPyCheckForApp()) SWIG_fail;
27540 PyThreadState* __tstate = wxPyBeginAllowThreads();
27541 result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1);
27542 wxPyEndAllowThreads(__tstate);
27543 if (PyErr_Occurred()) SWIG_fail;
27544 }
27545 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 );
27546 return resultobj;
27547 fail:
27548 return NULL;
27549 }
27550
27551
27552 SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27553 PyObject *resultobj = 0;
27554 wxGCDC *arg1 = (wxGCDC *) 0 ;
27555 void *argp1 = 0 ;
27556 int res1 = 0 ;
27557 PyObject *swig_obj[1] ;
27558
27559 if (!args) SWIG_fail;
27560 swig_obj[0] = args;
27561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 );
27562 if (!SWIG_IsOK(res1)) {
27563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'");
27564 }
27565 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27566 {
27567 delete arg1;
27568
27569 if (PyErr_Occurred()) SWIG_fail;
27570 }
27571 resultobj = SWIG_Py_Void();
27572 return resultobj;
27573 fail:
27574 return NULL;
27575 }
27576
27577
27578 SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27579 PyObject *resultobj = 0;
27580 wxGCDC *arg1 = (wxGCDC *) 0 ;
27581 wxGraphicsContext *result = 0 ;
27582 void *argp1 = 0 ;
27583 int res1 = 0 ;
27584 PyObject *swig_obj[1] ;
27585
27586 if (!args) SWIG_fail;
27587 swig_obj[0] = args;
27588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27589 if (!SWIG_IsOK(res1)) {
27590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27591 }
27592 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27593 {
27594 result = (wxGraphicsContext *)(arg1)->GetGraphicsContext();
27595 if (PyErr_Occurred()) SWIG_fail;
27596 }
27597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27598 return resultobj;
27599 fail:
27600 return NULL;
27601 }
27602
27603
27604 SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27605 PyObject *resultobj = 0;
27606 wxGCDC *arg1 = (wxGCDC *) 0 ;
27607 wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ;
27608 void *argp1 = 0 ;
27609 int res1 = 0 ;
27610 void *argp2 = 0 ;
27611 int res2 = 0 ;
27612 PyObject * obj0 = 0 ;
27613 PyObject * obj1 = 0 ;
27614 char * kwnames[] = {
27615 (char *) "self",(char *) "ctx", NULL
27616 };
27617
27618 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail;
27619 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 );
27620 if (!SWIG_IsOK(res1)) {
27621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'");
27622 }
27623 arg1 = reinterpret_cast< wxGCDC * >(argp1);
27624 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 );
27625 if (!SWIG_IsOK(res2)) {
27626 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'");
27627 }
27628 arg2 = reinterpret_cast< wxGraphicsContext * >(argp2);
27629 {
27630 (arg1)->SetGraphicsContext(arg2);
27631 if (PyErr_Occurred()) SWIG_fail;
27632 }
27633 resultobj = SWIG_Py_Void();
27634 return resultobj;
27635 fail:
27636 return NULL;
27637 }
27638
27639
27640 SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27641 PyObject *obj;
27642 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27643 SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj));
27644 return SWIG_Py_Void();
27645 }
27646
27647 SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27648 return SWIG_Python_InitShadowInstance(args);
27649 }
27650
27651 SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27652 PyObject *resultobj = 0;
27653 wxOverlay *result = 0 ;
27654
27655 if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail;
27656 {
27657 PyThreadState* __tstate = wxPyBeginAllowThreads();
27658 result = (wxOverlay *)new wxOverlay();
27659 wxPyEndAllowThreads(__tstate);
27660 if (PyErr_Occurred()) SWIG_fail;
27661 }
27662 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 );
27663 return resultobj;
27664 fail:
27665 return NULL;
27666 }
27667
27668
27669 SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27670 PyObject *resultobj = 0;
27671 wxOverlay *arg1 = (wxOverlay *) 0 ;
27672 void *argp1 = 0 ;
27673 int res1 = 0 ;
27674 PyObject *swig_obj[1] ;
27675
27676 if (!args) SWIG_fail;
27677 swig_obj[0] = args;
27678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 );
27679 if (!SWIG_IsOK(res1)) {
27680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'");
27681 }
27682 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27683 {
27684 PyThreadState* __tstate = wxPyBeginAllowThreads();
27685 delete arg1;
27686
27687 wxPyEndAllowThreads(__tstate);
27688 if (PyErr_Occurred()) SWIG_fail;
27689 }
27690 resultobj = SWIG_Py_Void();
27691 return resultobj;
27692 fail:
27693 return NULL;
27694 }
27695
27696
27697 SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27698 PyObject *resultobj = 0;
27699 wxOverlay *arg1 = (wxOverlay *) 0 ;
27700 void *argp1 = 0 ;
27701 int res1 = 0 ;
27702 PyObject *swig_obj[1] ;
27703
27704 if (!args) SWIG_fail;
27705 swig_obj[0] = args;
27706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 );
27707 if (!SWIG_IsOK(res1)) {
27708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'");
27709 }
27710 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27711 {
27712 PyThreadState* __tstate = wxPyBeginAllowThreads();
27713 (arg1)->Reset();
27714 wxPyEndAllowThreads(__tstate);
27715 if (PyErr_Occurred()) SWIG_fail;
27716 }
27717 resultobj = SWIG_Py_Void();
27718 return resultobj;
27719 fail:
27720 return NULL;
27721 }
27722
27723
27724 SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27725 PyObject *obj;
27726 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27727 SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj));
27728 return SWIG_Py_Void();
27729 }
27730
27731 SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27732 return SWIG_Python_InitShadowInstance(args);
27733 }
27734
27735 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27736 PyObject *resultobj = 0;
27737 wxOverlay *arg1 = 0 ;
27738 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27739 int arg3 ;
27740 int arg4 ;
27741 int arg5 ;
27742 int arg6 ;
27743 wxDCOverlay *result = 0 ;
27744 void *argp1 = 0 ;
27745 int res1 = 0 ;
27746 void *argp2 = 0 ;
27747 int res2 = 0 ;
27748 int val3 ;
27749 int ecode3 = 0 ;
27750 int val4 ;
27751 int ecode4 = 0 ;
27752 int val5 ;
27753 int ecode5 = 0 ;
27754 int val6 ;
27755 int ecode6 = 0 ;
27756
27757 if ((nobjs < 6) || (nobjs > 6)) SWIG_fail;
27758 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27759 if (!SWIG_IsOK(res1)) {
27760 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27761 }
27762 if (!argp1) {
27763 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27764 }
27765 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27766 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27767 if (!SWIG_IsOK(res2)) {
27768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27769 }
27770 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27771 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
27772 if (!SWIG_IsOK(ecode3)) {
27773 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'");
27774 }
27775 arg3 = static_cast< int >(val3);
27776 ecode4 = SWIG_AsVal_int(swig_obj[3], &val4);
27777 if (!SWIG_IsOK(ecode4)) {
27778 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'");
27779 }
27780 arg4 = static_cast< int >(val4);
27781 ecode5 = SWIG_AsVal_int(swig_obj[4], &val5);
27782 if (!SWIG_IsOK(ecode5)) {
27783 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'");
27784 }
27785 arg5 = static_cast< int >(val5);
27786 ecode6 = SWIG_AsVal_int(swig_obj[5], &val6);
27787 if (!SWIG_IsOK(ecode6)) {
27788 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'");
27789 }
27790 arg6 = static_cast< int >(val6);
27791 {
27792 PyThreadState* __tstate = wxPyBeginAllowThreads();
27793 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6);
27794 wxPyEndAllowThreads(__tstate);
27795 if (PyErr_Occurred()) SWIG_fail;
27796 }
27797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27798 return resultobj;
27799 fail:
27800 return NULL;
27801 }
27802
27803
27804 SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
27805 PyObject *resultobj = 0;
27806 wxOverlay *arg1 = 0 ;
27807 wxWindowDC *arg2 = (wxWindowDC *) 0 ;
27808 wxDCOverlay *result = 0 ;
27809 void *argp1 = 0 ;
27810 int res1 = 0 ;
27811 void *argp2 = 0 ;
27812 int res2 = 0 ;
27813
27814 if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
27815 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 );
27816 if (!SWIG_IsOK(res1)) {
27817 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27818 }
27819 if (!argp1) {
27820 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'");
27821 }
27822 arg1 = reinterpret_cast< wxOverlay * >(argp1);
27823 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 );
27824 if (!SWIG_IsOK(res2)) {
27825 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'");
27826 }
27827 arg2 = reinterpret_cast< wxWindowDC * >(argp2);
27828 {
27829 PyThreadState* __tstate = wxPyBeginAllowThreads();
27830 result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2);
27831 wxPyEndAllowThreads(__tstate);
27832 if (PyErr_Occurred()) SWIG_fail;
27833 }
27834 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 );
27835 return resultobj;
27836 fail:
27837 return NULL;
27838 }
27839
27840
27841 SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) {
27842 int argc;
27843 PyObject *argv[7];
27844
27845 if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail;
27846 --argc;
27847 if (argc == 2) {
27848 return _wrap_new_DCOverlay__SWIG_1(self, argc, argv);
27849 }
27850 if (argc == 6) {
27851 return _wrap_new_DCOverlay__SWIG_0(self, argc, argv);
27852 }
27853
27854 fail:
27855 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'");
27856 return NULL;
27857 }
27858
27859
27860 SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27861 PyObject *resultobj = 0;
27862 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27863 void *argp1 = 0 ;
27864 int res1 = 0 ;
27865 PyObject *swig_obj[1] ;
27866
27867 if (!args) SWIG_fail;
27868 swig_obj[0] = args;
27869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 );
27870 if (!SWIG_IsOK(res1)) {
27871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27872 }
27873 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27874 {
27875 PyThreadState* __tstate = wxPyBeginAllowThreads();
27876 delete arg1;
27877
27878 wxPyEndAllowThreads(__tstate);
27879 if (PyErr_Occurred()) SWIG_fail;
27880 }
27881 resultobj = SWIG_Py_Void();
27882 return resultobj;
27883 fail:
27884 return NULL;
27885 }
27886
27887
27888 SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27889 PyObject *resultobj = 0;
27890 wxDCOverlay *arg1 = (wxDCOverlay *) 0 ;
27891 void *argp1 = 0 ;
27892 int res1 = 0 ;
27893 PyObject *swig_obj[1] ;
27894
27895 if (!args) SWIG_fail;
27896 swig_obj[0] = args;
27897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 );
27898 if (!SWIG_IsOK(res1)) {
27899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'");
27900 }
27901 arg1 = reinterpret_cast< wxDCOverlay * >(argp1);
27902 {
27903 PyThreadState* __tstate = wxPyBeginAllowThreads();
27904 (arg1)->Clear();
27905 wxPyEndAllowThreads(__tstate);
27906 if (PyErr_Occurred()) SWIG_fail;
27907 }
27908 resultobj = SWIG_Py_Void();
27909 return resultobj;
27910 fail:
27911 return NULL;
27912 }
27913
27914
27915 SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27916 PyObject *obj;
27917 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
27918 SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj));
27919 return SWIG_Py_Void();
27920 }
27921
27922 SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27923 return SWIG_Python_InitShadowInstance(args);
27924 }
27925
27926 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27927 PyObject *resultobj = 0;
27928 int arg1 ;
27929 int arg2 ;
27930 int arg3 = (int) true ;
27931 int arg4 = (int) 1 ;
27932 wxImageList *result = 0 ;
27933 int val1 ;
27934 int ecode1 = 0 ;
27935 int val2 ;
27936 int ecode2 = 0 ;
27937 int val3 ;
27938 int ecode3 = 0 ;
27939 int val4 ;
27940 int ecode4 = 0 ;
27941 PyObject * obj0 = 0 ;
27942 PyObject * obj1 = 0 ;
27943 PyObject * obj2 = 0 ;
27944 PyObject * obj3 = 0 ;
27945 char * kwnames[] = {
27946 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
27947 };
27948
27949 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27950 ecode1 = SWIG_AsVal_int(obj0, &val1);
27951 if (!SWIG_IsOK(ecode1)) {
27952 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
27953 }
27954 arg1 = static_cast< int >(val1);
27955 ecode2 = SWIG_AsVal_int(obj1, &val2);
27956 if (!SWIG_IsOK(ecode2)) {
27957 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
27958 }
27959 arg2 = static_cast< int >(val2);
27960 if (obj2) {
27961 ecode3 = SWIG_AsVal_int(obj2, &val3);
27962 if (!SWIG_IsOK(ecode3)) {
27963 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
27964 }
27965 arg3 = static_cast< int >(val3);
27966 }
27967 if (obj3) {
27968 ecode4 = SWIG_AsVal_int(obj3, &val4);
27969 if (!SWIG_IsOK(ecode4)) {
27970 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
27971 }
27972 arg4 = static_cast< int >(val4);
27973 }
27974 {
27975 if (!wxPyCheckForApp()) SWIG_fail;
27976 PyThreadState* __tstate = wxPyBeginAllowThreads();
27977 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
27978 wxPyEndAllowThreads(__tstate);
27979 if (PyErr_Occurred()) SWIG_fail;
27980 }
27981 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 );
27982 return resultobj;
27983 fail:
27984 return NULL;
27985 }
27986
27987
27988 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
27989 PyObject *resultobj = 0;
27990 wxImageList *arg1 = (wxImageList *) 0 ;
27991 void *argp1 = 0 ;
27992 int res1 = 0 ;
27993 PyObject *swig_obj[1] ;
27994
27995 if (!args) SWIG_fail;
27996 swig_obj[0] = args;
27997 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
27998 if (!SWIG_IsOK(res1)) {
27999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
28000 }
28001 arg1 = reinterpret_cast< wxImageList * >(argp1);
28002 {
28003 PyThreadState* __tstate = wxPyBeginAllowThreads();
28004 delete arg1;
28005
28006 wxPyEndAllowThreads(__tstate);
28007 if (PyErr_Occurred()) SWIG_fail;
28008 }
28009 resultobj = SWIG_Py_Void();
28010 return resultobj;
28011 fail:
28012 return NULL;
28013 }
28014
28015
28016 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28017 PyObject *resultobj = 0;
28018 wxImageList *arg1 = (wxImageList *) 0 ;
28019 wxBitmap *arg2 = 0 ;
28020 wxBitmap const &arg3_defvalue = wxNullBitmap ;
28021 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
28022 int result;
28023 void *argp1 = 0 ;
28024 int res1 = 0 ;
28025 void *argp2 = 0 ;
28026 int res2 = 0 ;
28027 void *argp3 = 0 ;
28028 int res3 = 0 ;
28029 PyObject * obj0 = 0 ;
28030 PyObject * obj1 = 0 ;
28031 PyObject * obj2 = 0 ;
28032 char * kwnames[] = {
28033 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
28034 };
28035
28036 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28037 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28038 if (!SWIG_IsOK(res1)) {
28039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
28040 }
28041 arg1 = reinterpret_cast< wxImageList * >(argp1);
28042 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28043 if (!SWIG_IsOK(res2)) {
28044 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28045 }
28046 if (!argp2) {
28047 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28048 }
28049 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28050 if (obj2) {
28051 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28052 if (!SWIG_IsOK(res3)) {
28053 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28054 }
28055 if (!argp3) {
28056 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28057 }
28058 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28059 }
28060 {
28061 PyThreadState* __tstate = wxPyBeginAllowThreads();
28062 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
28063 wxPyEndAllowThreads(__tstate);
28064 if (PyErr_Occurred()) SWIG_fail;
28065 }
28066 resultobj = SWIG_From_int(static_cast< int >(result));
28067 return resultobj;
28068 fail:
28069 return NULL;
28070 }
28071
28072
28073 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28074 PyObject *resultobj = 0;
28075 wxImageList *arg1 = (wxImageList *) 0 ;
28076 wxBitmap *arg2 = 0 ;
28077 wxColour *arg3 = 0 ;
28078 int result;
28079 void *argp1 = 0 ;
28080 int res1 = 0 ;
28081 void *argp2 = 0 ;
28082 int res2 = 0 ;
28083 wxColour temp3 ;
28084 PyObject * obj0 = 0 ;
28085 PyObject * obj1 = 0 ;
28086 PyObject * obj2 = 0 ;
28087 char * kwnames[] = {
28088 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
28089 };
28090
28091 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28092 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28093 if (!SWIG_IsOK(res1)) {
28094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
28095 }
28096 arg1 = reinterpret_cast< wxImageList * >(argp1);
28097 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
28098 if (!SWIG_IsOK(res2)) {
28099 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28100 }
28101 if (!argp2) {
28102 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
28103 }
28104 arg2 = reinterpret_cast< wxBitmap * >(argp2);
28105 {
28106 arg3 = &temp3;
28107 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
28108 }
28109 {
28110 PyThreadState* __tstate = wxPyBeginAllowThreads();
28111 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
28112 wxPyEndAllowThreads(__tstate);
28113 if (PyErr_Occurred()) SWIG_fail;
28114 }
28115 resultobj = SWIG_From_int(static_cast< int >(result));
28116 return resultobj;
28117 fail:
28118 return NULL;
28119 }
28120
28121
28122 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28123 PyObject *resultobj = 0;
28124 wxImageList *arg1 = (wxImageList *) 0 ;
28125 wxIcon *arg2 = 0 ;
28126 int result;
28127 void *argp1 = 0 ;
28128 int res1 = 0 ;
28129 void *argp2 = 0 ;
28130 int res2 = 0 ;
28131 PyObject * obj0 = 0 ;
28132 PyObject * obj1 = 0 ;
28133 char * kwnames[] = {
28134 (char *) "self",(char *) "icon", NULL
28135 };
28136
28137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28139 if (!SWIG_IsOK(res1)) {
28140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
28141 }
28142 arg1 = reinterpret_cast< wxImageList * >(argp1);
28143 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
28144 if (!SWIG_IsOK(res2)) {
28145 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28146 }
28147 if (!argp2) {
28148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
28149 }
28150 arg2 = reinterpret_cast< wxIcon * >(argp2);
28151 {
28152 PyThreadState* __tstate = wxPyBeginAllowThreads();
28153 result = (int)(arg1)->Add((wxIcon const &)*arg2);
28154 wxPyEndAllowThreads(__tstate);
28155 if (PyErr_Occurred()) SWIG_fail;
28156 }
28157 resultobj = SWIG_From_int(static_cast< int >(result));
28158 return resultobj;
28159 fail:
28160 return NULL;
28161 }
28162
28163
28164 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28165 PyObject *resultobj = 0;
28166 wxImageList *arg1 = (wxImageList *) 0 ;
28167 int arg2 ;
28168 SwigValueWrapper<wxBitmap > result;
28169 void *argp1 = 0 ;
28170 int res1 = 0 ;
28171 int val2 ;
28172 int ecode2 = 0 ;
28173 PyObject * obj0 = 0 ;
28174 PyObject * obj1 = 0 ;
28175 char * kwnames[] = {
28176 (char *) "self",(char *) "index", NULL
28177 };
28178
28179 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
28180 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28181 if (!SWIG_IsOK(res1)) {
28182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
28183 }
28184 arg1 = reinterpret_cast< wxImageList * >(argp1);
28185 ecode2 = SWIG_AsVal_int(obj1, &val2);
28186 if (!SWIG_IsOK(ecode2)) {
28187 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
28188 }
28189 arg2 = static_cast< int >(val2);
28190 {
28191 PyThreadState* __tstate = wxPyBeginAllowThreads();
28192 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
28193 wxPyEndAllowThreads(__tstate);
28194 if (PyErr_Occurred()) SWIG_fail;
28195 }
28196 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
28197 return resultobj;
28198 fail:
28199 return NULL;
28200 }
28201
28202
28203 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28204 PyObject *resultobj = 0;
28205 wxImageList *arg1 = (wxImageList *) 0 ;
28206 int arg2 ;
28207 wxIcon result;
28208 void *argp1 = 0 ;
28209 int res1 = 0 ;
28210 int val2 ;
28211 int ecode2 = 0 ;
28212 PyObject * obj0 = 0 ;
28213 PyObject * obj1 = 0 ;
28214 char * kwnames[] = {
28215 (char *) "self",(char *) "index", NULL
28216 };
28217
28218 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
28219 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28220 if (!SWIG_IsOK(res1)) {
28221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
28222 }
28223 arg1 = reinterpret_cast< wxImageList * >(argp1);
28224 ecode2 = SWIG_AsVal_int(obj1, &val2);
28225 if (!SWIG_IsOK(ecode2)) {
28226 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
28227 }
28228 arg2 = static_cast< int >(val2);
28229 {
28230 PyThreadState* __tstate = wxPyBeginAllowThreads();
28231 result = ((wxImageList const *)arg1)->GetIcon(arg2);
28232 wxPyEndAllowThreads(__tstate);
28233 if (PyErr_Occurred()) SWIG_fail;
28234 }
28235 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
28236 return resultobj;
28237 fail:
28238 return NULL;
28239 }
28240
28241
28242 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28243 PyObject *resultobj = 0;
28244 wxImageList *arg1 = (wxImageList *) 0 ;
28245 int arg2 ;
28246 wxBitmap *arg3 = 0 ;
28247 wxBitmap const &arg4_defvalue = wxNullBitmap ;
28248 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
28249 bool result;
28250 void *argp1 = 0 ;
28251 int res1 = 0 ;
28252 int val2 ;
28253 int ecode2 = 0 ;
28254 void *argp3 = 0 ;
28255 int res3 = 0 ;
28256 void *argp4 = 0 ;
28257 int res4 = 0 ;
28258 PyObject * obj0 = 0 ;
28259 PyObject * obj1 = 0 ;
28260 PyObject * obj2 = 0 ;
28261 PyObject * obj3 = 0 ;
28262 char * kwnames[] = {
28263 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
28264 };
28265
28266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28268 if (!SWIG_IsOK(res1)) {
28269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
28270 }
28271 arg1 = reinterpret_cast< wxImageList * >(argp1);
28272 ecode2 = SWIG_AsVal_int(obj1, &val2);
28273 if (!SWIG_IsOK(ecode2)) {
28274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
28275 }
28276 arg2 = static_cast< int >(val2);
28277 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28278 if (!SWIG_IsOK(res3)) {
28279 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28280 }
28281 if (!argp3) {
28282 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28283 }
28284 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28285 if (obj3) {
28286 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
28287 if (!SWIG_IsOK(res4)) {
28288 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28289 }
28290 if (!argp4) {
28291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
28292 }
28293 arg4 = reinterpret_cast< wxBitmap * >(argp4);
28294 }
28295 {
28296 PyThreadState* __tstate = wxPyBeginAllowThreads();
28297 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
28298 wxPyEndAllowThreads(__tstate);
28299 if (PyErr_Occurred()) SWIG_fail;
28300 }
28301 {
28302 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28303 }
28304 return resultobj;
28305 fail:
28306 return NULL;
28307 }
28308
28309
28310 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28311 PyObject *resultobj = 0;
28312 wxImageList *arg1 = (wxImageList *) 0 ;
28313 int arg2 ;
28314 wxDC *arg3 = 0 ;
28315 int arg4 ;
28316 int arg5 ;
28317 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
28318 bool arg7 = (bool) (bool)false ;
28319 bool result;
28320 void *argp1 = 0 ;
28321 int res1 = 0 ;
28322 int val2 ;
28323 int ecode2 = 0 ;
28324 void *argp3 = 0 ;
28325 int res3 = 0 ;
28326 int val4 ;
28327 int ecode4 = 0 ;
28328 int val5 ;
28329 int ecode5 = 0 ;
28330 int val6 ;
28331 int ecode6 = 0 ;
28332 bool val7 ;
28333 int ecode7 = 0 ;
28334 PyObject * obj0 = 0 ;
28335 PyObject * obj1 = 0 ;
28336 PyObject * obj2 = 0 ;
28337 PyObject * obj3 = 0 ;
28338 PyObject * obj4 = 0 ;
28339 PyObject * obj5 = 0 ;
28340 PyObject * obj6 = 0 ;
28341 char * kwnames[] = {
28342 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
28343 };
28344
28345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
28346 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28347 if (!SWIG_IsOK(res1)) {
28348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
28349 }
28350 arg1 = reinterpret_cast< wxImageList * >(argp1);
28351 ecode2 = SWIG_AsVal_int(obj1, &val2);
28352 if (!SWIG_IsOK(ecode2)) {
28353 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
28354 }
28355 arg2 = static_cast< int >(val2);
28356 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
28357 if (!SWIG_IsOK(res3)) {
28358 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28359 }
28360 if (!argp3) {
28361 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
28362 }
28363 arg3 = reinterpret_cast< wxDC * >(argp3);
28364 ecode4 = SWIG_AsVal_int(obj3, &val4);
28365 if (!SWIG_IsOK(ecode4)) {
28366 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
28367 }
28368 arg4 = static_cast< int >(val4);
28369 ecode5 = SWIG_AsVal_int(obj4, &val5);
28370 if (!SWIG_IsOK(ecode5)) {
28371 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
28372 }
28373 arg5 = static_cast< int >(val5);
28374 if (obj5) {
28375 ecode6 = SWIG_AsVal_int(obj5, &val6);
28376 if (!SWIG_IsOK(ecode6)) {
28377 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
28378 }
28379 arg6 = static_cast< int >(val6);
28380 }
28381 if (obj6) {
28382 ecode7 = SWIG_AsVal_bool(obj6, &val7);
28383 if (!SWIG_IsOK(ecode7)) {
28384 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
28385 }
28386 arg7 = static_cast< bool >(val7);
28387 }
28388 {
28389 PyThreadState* __tstate = wxPyBeginAllowThreads();
28390 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
28391 wxPyEndAllowThreads(__tstate);
28392 if (PyErr_Occurred()) SWIG_fail;
28393 }
28394 {
28395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28396 }
28397 return resultobj;
28398 fail:
28399 return NULL;
28400 }
28401
28402
28403 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28404 PyObject *resultobj = 0;
28405 wxImageList *arg1 = (wxImageList *) 0 ;
28406 int result;
28407 void *argp1 = 0 ;
28408 int res1 = 0 ;
28409 PyObject *swig_obj[1] ;
28410
28411 if (!args) SWIG_fail;
28412 swig_obj[0] = args;
28413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28414 if (!SWIG_IsOK(res1)) {
28415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
28416 }
28417 arg1 = reinterpret_cast< wxImageList * >(argp1);
28418 {
28419 PyThreadState* __tstate = wxPyBeginAllowThreads();
28420 result = (int)(arg1)->GetImageCount();
28421 wxPyEndAllowThreads(__tstate);
28422 if (PyErr_Occurred()) SWIG_fail;
28423 }
28424 resultobj = SWIG_From_int(static_cast< int >(result));
28425 return resultobj;
28426 fail:
28427 return NULL;
28428 }
28429
28430
28431 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28432 PyObject *resultobj = 0;
28433 wxImageList *arg1 = (wxImageList *) 0 ;
28434 int arg2 ;
28435 bool result;
28436 void *argp1 = 0 ;
28437 int res1 = 0 ;
28438 int val2 ;
28439 int ecode2 = 0 ;
28440 PyObject * obj0 = 0 ;
28441 PyObject * obj1 = 0 ;
28442 char * kwnames[] = {
28443 (char *) "self",(char *) "index", NULL
28444 };
28445
28446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
28447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28448 if (!SWIG_IsOK(res1)) {
28449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
28450 }
28451 arg1 = reinterpret_cast< wxImageList * >(argp1);
28452 ecode2 = SWIG_AsVal_int(obj1, &val2);
28453 if (!SWIG_IsOK(ecode2)) {
28454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
28455 }
28456 arg2 = static_cast< int >(val2);
28457 {
28458 PyThreadState* __tstate = wxPyBeginAllowThreads();
28459 result = (bool)(arg1)->Remove(arg2);
28460 wxPyEndAllowThreads(__tstate);
28461 if (PyErr_Occurred()) SWIG_fail;
28462 }
28463 {
28464 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28465 }
28466 return resultobj;
28467 fail:
28468 return NULL;
28469 }
28470
28471
28472 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28473 PyObject *resultobj = 0;
28474 wxImageList *arg1 = (wxImageList *) 0 ;
28475 bool result;
28476 void *argp1 = 0 ;
28477 int res1 = 0 ;
28478 PyObject *swig_obj[1] ;
28479
28480 if (!args) SWIG_fail;
28481 swig_obj[0] = args;
28482 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28483 if (!SWIG_IsOK(res1)) {
28484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
28485 }
28486 arg1 = reinterpret_cast< wxImageList * >(argp1);
28487 {
28488 PyThreadState* __tstate = wxPyBeginAllowThreads();
28489 result = (bool)(arg1)->RemoveAll();
28490 wxPyEndAllowThreads(__tstate);
28491 if (PyErr_Occurred()) SWIG_fail;
28492 }
28493 {
28494 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
28495 }
28496 return resultobj;
28497 fail:
28498 return NULL;
28499 }
28500
28501
28502 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28503 PyObject *resultobj = 0;
28504 wxImageList *arg1 = (wxImageList *) 0 ;
28505 int arg2 ;
28506 int *arg3 = 0 ;
28507 int *arg4 = 0 ;
28508 void *argp1 = 0 ;
28509 int res1 = 0 ;
28510 int val2 ;
28511 int ecode2 = 0 ;
28512 int temp3 ;
28513 int res3 = SWIG_TMPOBJ ;
28514 int temp4 ;
28515 int res4 = SWIG_TMPOBJ ;
28516 PyObject * obj0 = 0 ;
28517 PyObject * obj1 = 0 ;
28518 char * kwnames[] = {
28519 (char *) "self",(char *) "index", NULL
28520 };
28521
28522 arg3 = &temp3;
28523 arg4 = &temp4;
28524 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
28525 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
28526 if (!SWIG_IsOK(res1)) {
28527 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
28528 }
28529 arg1 = reinterpret_cast< wxImageList * >(argp1);
28530 ecode2 = SWIG_AsVal_int(obj1, &val2);
28531 if (!SWIG_IsOK(ecode2)) {
28532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
28533 }
28534 arg2 = static_cast< int >(val2);
28535 {
28536 PyThreadState* __tstate = wxPyBeginAllowThreads();
28537 (arg1)->GetSize(arg2,*arg3,*arg4);
28538 wxPyEndAllowThreads(__tstate);
28539 if (PyErr_Occurred()) SWIG_fail;
28540 }
28541 resultobj = SWIG_Py_Void();
28542 if (SWIG_IsTmpObj(res3)) {
28543 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
28544 } else {
28545 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28546 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
28547 }
28548 if (SWIG_IsTmpObj(res4)) {
28549 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
28550 } else {
28551 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
28552 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
28553 }
28554 return resultobj;
28555 fail:
28556 return NULL;
28557 }
28558
28559
28560 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28561 PyObject *obj;
28562 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28563 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
28564 return SWIG_Py_Void();
28565 }
28566
28567 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28568 return SWIG_Python_InitShadowInstance(args);
28569 }
28570
28571 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28572 PyObject *resultobj = 0;
28573 wxStockGDI *result = 0 ;
28574
28575 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
28576 {
28577 PyThreadState* __tstate = wxPyBeginAllowThreads();
28578 result = (wxStockGDI *)new wxStockGDI();
28579 wxPyEndAllowThreads(__tstate);
28580 if (PyErr_Occurred()) SWIG_fail;
28581 }
28582 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
28583 return resultobj;
28584 fail:
28585 return NULL;
28586 }
28587
28588
28589 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28590 PyObject *resultobj = 0;
28591 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28592 void *argp1 = 0 ;
28593 int res1 = 0 ;
28594 PyObject *swig_obj[1] ;
28595
28596 if (!args) SWIG_fail;
28597 swig_obj[0] = args;
28598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
28599 if (!SWIG_IsOK(res1)) {
28600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28601 }
28602 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28603 {
28604 PyThreadState* __tstate = wxPyBeginAllowThreads();
28605 delete arg1;
28606
28607 wxPyEndAllowThreads(__tstate);
28608 if (PyErr_Occurred()) SWIG_fail;
28609 }
28610 resultobj = SWIG_Py_Void();
28611 return resultobj;
28612 fail:
28613 return NULL;
28614 }
28615
28616
28617 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28618 PyObject *resultobj = 0;
28619
28620 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
28621 {
28622 PyThreadState* __tstate = wxPyBeginAllowThreads();
28623 wxStockGDI::DeleteAll();
28624 wxPyEndAllowThreads(__tstate);
28625 if (PyErr_Occurred()) SWIG_fail;
28626 }
28627 resultobj = SWIG_Py_Void();
28628 return resultobj;
28629 fail:
28630 return NULL;
28631 }
28632
28633
28634 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28635 PyObject *resultobj = 0;
28636 wxStockGDI *result = 0 ;
28637
28638 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
28639 {
28640 PyThreadState* __tstate = wxPyBeginAllowThreads();
28641 {
28642 wxStockGDI &_result_ref = wxStockGDI::instance();
28643 result = (wxStockGDI *) &_result_ref;
28644 }
28645 wxPyEndAllowThreads(__tstate);
28646 if (PyErr_Occurred()) SWIG_fail;
28647 }
28648 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
28649 return resultobj;
28650 fail:
28651 return NULL;
28652 }
28653
28654
28655 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28656 PyObject *resultobj = 0;
28657 wxStockGDI::Item arg1 ;
28658 wxBrush *result = 0 ;
28659 int val1 ;
28660 int ecode1 = 0 ;
28661 PyObject * obj0 = 0 ;
28662 char * kwnames[] = {
28663 (char *) "item", NULL
28664 };
28665
28666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
28667 ecode1 = SWIG_AsVal_int(obj0, &val1);
28668 if (!SWIG_IsOK(ecode1)) {
28669 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28670 }
28671 arg1 = static_cast< wxStockGDI::Item >(val1);
28672 {
28673 PyThreadState* __tstate = wxPyBeginAllowThreads();
28674 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
28675 wxPyEndAllowThreads(__tstate);
28676 if (PyErr_Occurred()) SWIG_fail;
28677 }
28678 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
28679 return resultobj;
28680 fail:
28681 return NULL;
28682 }
28683
28684
28685 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28686 PyObject *resultobj = 0;
28687 wxStockGDI::Item arg1 ;
28688 wxColour *result = 0 ;
28689 int val1 ;
28690 int ecode1 = 0 ;
28691 PyObject * obj0 = 0 ;
28692 char * kwnames[] = {
28693 (char *) "item", NULL
28694 };
28695
28696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
28697 ecode1 = SWIG_AsVal_int(obj0, &val1);
28698 if (!SWIG_IsOK(ecode1)) {
28699 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28700 }
28701 arg1 = static_cast< wxStockGDI::Item >(val1);
28702 {
28703 PyThreadState* __tstate = wxPyBeginAllowThreads();
28704 result = (wxColour *)wxStockGDI::GetColour(arg1);
28705 wxPyEndAllowThreads(__tstate);
28706 if (PyErr_Occurred()) SWIG_fail;
28707 }
28708 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
28709 return resultobj;
28710 fail:
28711 return NULL;
28712 }
28713
28714
28715 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28716 PyObject *resultobj = 0;
28717 wxStockGDI::Item arg1 ;
28718 wxCursor *result = 0 ;
28719 int val1 ;
28720 int ecode1 = 0 ;
28721 PyObject * obj0 = 0 ;
28722 char * kwnames[] = {
28723 (char *) "item", NULL
28724 };
28725
28726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
28727 ecode1 = SWIG_AsVal_int(obj0, &val1);
28728 if (!SWIG_IsOK(ecode1)) {
28729 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28730 }
28731 arg1 = static_cast< wxStockGDI::Item >(val1);
28732 {
28733 PyThreadState* __tstate = wxPyBeginAllowThreads();
28734 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
28735 wxPyEndAllowThreads(__tstate);
28736 if (PyErr_Occurred()) SWIG_fail;
28737 }
28738 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
28739 return resultobj;
28740 fail:
28741 return NULL;
28742 }
28743
28744
28745 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28746 PyObject *resultobj = 0;
28747 wxStockGDI::Item arg1 ;
28748 wxPen *result = 0 ;
28749 int val1 ;
28750 int ecode1 = 0 ;
28751 PyObject * obj0 = 0 ;
28752 char * kwnames[] = {
28753 (char *) "item", NULL
28754 };
28755
28756 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
28757 ecode1 = SWIG_AsVal_int(obj0, &val1);
28758 if (!SWIG_IsOK(ecode1)) {
28759 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
28760 }
28761 arg1 = static_cast< wxStockGDI::Item >(val1);
28762 {
28763 PyThreadState* __tstate = wxPyBeginAllowThreads();
28764 result = (wxPen *)wxStockGDI::GetPen(arg1);
28765 wxPyEndAllowThreads(__tstate);
28766 if (PyErr_Occurred()) SWIG_fail;
28767 }
28768 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
28769 return resultobj;
28770 fail:
28771 return NULL;
28772 }
28773
28774
28775 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28776 PyObject *resultobj = 0;
28777 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
28778 wxStockGDI::Item arg2 ;
28779 wxFont *result = 0 ;
28780 void *argp1 = 0 ;
28781 int res1 = 0 ;
28782 int val2 ;
28783 int ecode2 = 0 ;
28784 PyObject * obj0 = 0 ;
28785 PyObject * obj1 = 0 ;
28786 char * kwnames[] = {
28787 (char *) "self",(char *) "item", NULL
28788 };
28789
28790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
28792 if (!SWIG_IsOK(res1)) {
28793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
28794 }
28795 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
28796 ecode2 = SWIG_AsVal_int(obj1, &val2);
28797 if (!SWIG_IsOK(ecode2)) {
28798 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
28799 }
28800 arg2 = static_cast< wxStockGDI::Item >(val2);
28801 {
28802 PyThreadState* __tstate = wxPyBeginAllowThreads();
28803 result = (wxFont *)(arg1)->GetFont(arg2);
28804 wxPyEndAllowThreads(__tstate);
28805 if (PyErr_Occurred()) SWIG_fail;
28806 }
28807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
28808 return resultobj;
28809 fail:
28810 return NULL;
28811 }
28812
28813
28814 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28815 PyObject *obj;
28816 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28817 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
28818 return SWIG_Py_Void();
28819 }
28820
28821 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28822 return SWIG_Python_InitShadowInstance(args);
28823 }
28824
28825 SWIGINTERN int NullBitmap_set(PyObject *) {
28826 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
28827 return 1;
28828 }
28829
28830
28831 SWIGINTERN PyObject *NullBitmap_get(void) {
28832 PyObject *pyobj = 0;
28833
28834 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
28835 return pyobj;
28836 }
28837
28838
28839 SWIGINTERN int NullIcon_set(PyObject *) {
28840 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
28841 return 1;
28842 }
28843
28844
28845 SWIGINTERN PyObject *NullIcon_get(void) {
28846 PyObject *pyobj = 0;
28847
28848 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
28849 return pyobj;
28850 }
28851
28852
28853 SWIGINTERN int NullCursor_set(PyObject *) {
28854 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
28855 return 1;
28856 }
28857
28858
28859 SWIGINTERN PyObject *NullCursor_get(void) {
28860 PyObject *pyobj = 0;
28861
28862 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
28863 return pyobj;
28864 }
28865
28866
28867 SWIGINTERN int NullPen_set(PyObject *) {
28868 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
28869 return 1;
28870 }
28871
28872
28873 SWIGINTERN PyObject *NullPen_get(void) {
28874 PyObject *pyobj = 0;
28875
28876 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
28877 return pyobj;
28878 }
28879
28880
28881 SWIGINTERN int NullBrush_set(PyObject *) {
28882 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
28883 return 1;
28884 }
28885
28886
28887 SWIGINTERN PyObject *NullBrush_get(void) {
28888 PyObject *pyobj = 0;
28889
28890 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
28891 return pyobj;
28892 }
28893
28894
28895 SWIGINTERN int NullPalette_set(PyObject *) {
28896 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
28897 return 1;
28898 }
28899
28900
28901 SWIGINTERN PyObject *NullPalette_get(void) {
28902 PyObject *pyobj = 0;
28903
28904 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
28905 return pyobj;
28906 }
28907
28908
28909 SWIGINTERN int NullFont_set(PyObject *) {
28910 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
28911 return 1;
28912 }
28913
28914
28915 SWIGINTERN PyObject *NullFont_get(void) {
28916 PyObject *pyobj = 0;
28917
28918 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
28919 return pyobj;
28920 }
28921
28922
28923 SWIGINTERN int NullColour_set(PyObject *) {
28924 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
28925 return 1;
28926 }
28927
28928
28929 SWIGINTERN PyObject *NullColour_get(void) {
28930 PyObject *pyobj = 0;
28931
28932 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
28933 return pyobj;
28934 }
28935
28936
28937 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28938 PyObject *resultobj = 0;
28939 wxGDIObjListBase *result = 0 ;
28940
28941 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
28942 {
28943 PyThreadState* __tstate = wxPyBeginAllowThreads();
28944 result = (wxGDIObjListBase *)new wxGDIObjListBase();
28945 wxPyEndAllowThreads(__tstate);
28946 if (PyErr_Occurred()) SWIG_fail;
28947 }
28948 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
28949 return resultobj;
28950 fail:
28951 return NULL;
28952 }
28953
28954
28955 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28956 PyObject *resultobj = 0;
28957 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
28958 void *argp1 = 0 ;
28959 int res1 = 0 ;
28960 PyObject *swig_obj[1] ;
28961
28962 if (!args) SWIG_fail;
28963 swig_obj[0] = args;
28964 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
28965 if (!SWIG_IsOK(res1)) {
28966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
28967 }
28968 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
28969 {
28970 PyThreadState* __tstate = wxPyBeginAllowThreads();
28971 delete arg1;
28972
28973 wxPyEndAllowThreads(__tstate);
28974 if (PyErr_Occurred()) SWIG_fail;
28975 }
28976 resultobj = SWIG_Py_Void();
28977 return resultobj;
28978 fail:
28979 return NULL;
28980 }
28981
28982
28983 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28984 PyObject *obj;
28985 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28986 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
28987 return SWIG_Py_Void();
28988 }
28989
28990 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28991 return SWIG_Python_InitShadowInstance(args);
28992 }
28993
28994 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28995 PyObject *resultobj = 0;
28996 wxPenList *arg1 = (wxPenList *) 0 ;
28997 wxColour *arg2 = 0 ;
28998 int arg3 ;
28999 int arg4 ;
29000 wxPen *result = 0 ;
29001 void *argp1 = 0 ;
29002 int res1 = 0 ;
29003 wxColour temp2 ;
29004 int val3 ;
29005 int ecode3 = 0 ;
29006 int val4 ;
29007 int ecode4 = 0 ;
29008 PyObject * obj0 = 0 ;
29009 PyObject * obj1 = 0 ;
29010 PyObject * obj2 = 0 ;
29011 PyObject * obj3 = 0 ;
29012 char * kwnames[] = {
29013 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
29014 };
29015
29016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
29017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29018 if (!SWIG_IsOK(res1)) {
29019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29020 }
29021 arg1 = reinterpret_cast< wxPenList * >(argp1);
29022 {
29023 arg2 = &temp2;
29024 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29025 }
29026 ecode3 = SWIG_AsVal_int(obj2, &val3);
29027 if (!SWIG_IsOK(ecode3)) {
29028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
29029 }
29030 arg3 = static_cast< int >(val3);
29031 ecode4 = SWIG_AsVal_int(obj3, &val4);
29032 if (!SWIG_IsOK(ecode4)) {
29033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
29034 }
29035 arg4 = static_cast< int >(val4);
29036 {
29037 PyThreadState* __tstate = wxPyBeginAllowThreads();
29038 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
29039 wxPyEndAllowThreads(__tstate);
29040 if (PyErr_Occurred()) SWIG_fail;
29041 }
29042 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
29043 return resultobj;
29044 fail:
29045 return NULL;
29046 }
29047
29048
29049 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29050 PyObject *resultobj = 0;
29051 wxPenList *arg1 = (wxPenList *) 0 ;
29052 wxPen *arg2 = (wxPen *) 0 ;
29053 void *argp1 = 0 ;
29054 int res1 = 0 ;
29055 void *argp2 = 0 ;
29056 int res2 = 0 ;
29057 PyObject * obj0 = 0 ;
29058 PyObject * obj1 = 0 ;
29059 char * kwnames[] = {
29060 (char *) "self",(char *) "pen", NULL
29061 };
29062
29063 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
29064 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29065 if (!SWIG_IsOK(res1)) {
29066 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
29067 }
29068 arg1 = reinterpret_cast< wxPenList * >(argp1);
29069 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29070 if (!SWIG_IsOK(res2)) {
29071 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
29072 }
29073 arg2 = reinterpret_cast< wxPen * >(argp2);
29074 {
29075 PyThreadState* __tstate = wxPyBeginAllowThreads();
29076 (arg1)->AddPen(arg2);
29077 wxPyEndAllowThreads(__tstate);
29078 if (PyErr_Occurred()) SWIG_fail;
29079 }
29080 resultobj = SWIG_Py_Void();
29081 return resultobj;
29082 fail:
29083 return NULL;
29084 }
29085
29086
29087 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29088 PyObject *resultobj = 0;
29089 wxPenList *arg1 = (wxPenList *) 0 ;
29090 wxPen *arg2 = (wxPen *) 0 ;
29091 void *argp1 = 0 ;
29092 int res1 = 0 ;
29093 void *argp2 = 0 ;
29094 int res2 = 0 ;
29095 PyObject * obj0 = 0 ;
29096 PyObject * obj1 = 0 ;
29097 char * kwnames[] = {
29098 (char *) "self",(char *) "pen", NULL
29099 };
29100
29101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
29102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
29103 if (!SWIG_IsOK(res1)) {
29104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
29105 }
29106 arg1 = reinterpret_cast< wxPenList * >(argp1);
29107 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
29108 if (!SWIG_IsOK(res2)) {
29109 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
29110 }
29111 arg2 = reinterpret_cast< wxPen * >(argp2);
29112 {
29113 PyThreadState* __tstate = wxPyBeginAllowThreads();
29114 (arg1)->RemovePen(arg2);
29115 wxPyEndAllowThreads(__tstate);
29116 if (PyErr_Occurred()) SWIG_fail;
29117 }
29118 resultobj = SWIG_Py_Void();
29119 return resultobj;
29120 fail:
29121 return NULL;
29122 }
29123
29124
29125 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29126 PyObject *obj;
29127 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29128 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
29129 return SWIG_Py_Void();
29130 }
29131
29132 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29133 PyObject *resultobj = 0;
29134 wxBrushList *arg1 = (wxBrushList *) 0 ;
29135 wxColour *arg2 = 0 ;
29136 int arg3 = (int) wxSOLID ;
29137 wxBrush *result = 0 ;
29138 void *argp1 = 0 ;
29139 int res1 = 0 ;
29140 wxColour temp2 ;
29141 int val3 ;
29142 int ecode3 = 0 ;
29143 PyObject * obj0 = 0 ;
29144 PyObject * obj1 = 0 ;
29145 PyObject * obj2 = 0 ;
29146 char * kwnames[] = {
29147 (char *) "self",(char *) "colour",(char *) "style", NULL
29148 };
29149
29150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29152 if (!SWIG_IsOK(res1)) {
29153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29154 }
29155 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29156 {
29157 arg2 = &temp2;
29158 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29159 }
29160 if (obj2) {
29161 ecode3 = SWIG_AsVal_int(obj2, &val3);
29162 if (!SWIG_IsOK(ecode3)) {
29163 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
29164 }
29165 arg3 = static_cast< int >(val3);
29166 }
29167 {
29168 PyThreadState* __tstate = wxPyBeginAllowThreads();
29169 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
29170 wxPyEndAllowThreads(__tstate);
29171 if (PyErr_Occurred()) SWIG_fail;
29172 }
29173 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
29174 return resultobj;
29175 fail:
29176 return NULL;
29177 }
29178
29179
29180 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29181 PyObject *resultobj = 0;
29182 wxBrushList *arg1 = (wxBrushList *) 0 ;
29183 wxBrush *arg2 = (wxBrush *) 0 ;
29184 void *argp1 = 0 ;
29185 int res1 = 0 ;
29186 void *argp2 = 0 ;
29187 int res2 = 0 ;
29188 PyObject * obj0 = 0 ;
29189 PyObject * obj1 = 0 ;
29190 char * kwnames[] = {
29191 (char *) "self",(char *) "brush", NULL
29192 };
29193
29194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29196 if (!SWIG_IsOK(res1)) {
29197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29198 }
29199 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29200 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29201 if (!SWIG_IsOK(res2)) {
29202 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29203 }
29204 arg2 = reinterpret_cast< wxBrush * >(argp2);
29205 {
29206 PyThreadState* __tstate = wxPyBeginAllowThreads();
29207 (arg1)->AddBrush(arg2);
29208 wxPyEndAllowThreads(__tstate);
29209 if (PyErr_Occurred()) SWIG_fail;
29210 }
29211 resultobj = SWIG_Py_Void();
29212 return resultobj;
29213 fail:
29214 return NULL;
29215 }
29216
29217
29218 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29219 PyObject *resultobj = 0;
29220 wxBrushList *arg1 = (wxBrushList *) 0 ;
29221 wxBrush *arg2 = (wxBrush *) 0 ;
29222 void *argp1 = 0 ;
29223 int res1 = 0 ;
29224 void *argp2 = 0 ;
29225 int res2 = 0 ;
29226 PyObject * obj0 = 0 ;
29227 PyObject * obj1 = 0 ;
29228 char * kwnames[] = {
29229 (char *) "self",(char *) "brush", NULL
29230 };
29231
29232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
29233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
29234 if (!SWIG_IsOK(res1)) {
29235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
29236 }
29237 arg1 = reinterpret_cast< wxBrushList * >(argp1);
29238 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
29239 if (!SWIG_IsOK(res2)) {
29240 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
29241 }
29242 arg2 = reinterpret_cast< wxBrush * >(argp2);
29243 {
29244 PyThreadState* __tstate = wxPyBeginAllowThreads();
29245 (arg1)->RemoveBrush(arg2);
29246 wxPyEndAllowThreads(__tstate);
29247 if (PyErr_Occurred()) SWIG_fail;
29248 }
29249 resultobj = SWIG_Py_Void();
29250 return resultobj;
29251 fail:
29252 return NULL;
29253 }
29254
29255
29256 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29257 PyObject *obj;
29258 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29259 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
29260 return SWIG_Py_Void();
29261 }
29262
29263 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29264 PyObject *resultobj = 0;
29265 wxFontList *arg1 = (wxFontList *) 0 ;
29266 int arg2 ;
29267 int arg3 ;
29268 int arg4 ;
29269 int arg5 ;
29270 bool arg6 = (bool) false ;
29271 wxString const &arg7_defvalue = wxPyEmptyString ;
29272 wxString *arg7 = (wxString *) &arg7_defvalue ;
29273 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
29274 wxFont *result = 0 ;
29275 void *argp1 = 0 ;
29276 int res1 = 0 ;
29277 int val2 ;
29278 int ecode2 = 0 ;
29279 int val3 ;
29280 int ecode3 = 0 ;
29281 int val4 ;
29282 int ecode4 = 0 ;
29283 int val5 ;
29284 int ecode5 = 0 ;
29285 bool val6 ;
29286 int ecode6 = 0 ;
29287 bool temp7 = false ;
29288 int val8 ;
29289 int ecode8 = 0 ;
29290 PyObject * obj0 = 0 ;
29291 PyObject * obj1 = 0 ;
29292 PyObject * obj2 = 0 ;
29293 PyObject * obj3 = 0 ;
29294 PyObject * obj4 = 0 ;
29295 PyObject * obj5 = 0 ;
29296 PyObject * obj6 = 0 ;
29297 PyObject * obj7 = 0 ;
29298 char * kwnames[] = {
29299 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
29300 };
29301
29302 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
29303 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29304 if (!SWIG_IsOK(res1)) {
29305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29306 }
29307 arg1 = reinterpret_cast< wxFontList * >(argp1);
29308 ecode2 = SWIG_AsVal_int(obj1, &val2);
29309 if (!SWIG_IsOK(ecode2)) {
29310 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
29311 }
29312 arg2 = static_cast< int >(val2);
29313 ecode3 = SWIG_AsVal_int(obj2, &val3);
29314 if (!SWIG_IsOK(ecode3)) {
29315 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
29316 }
29317 arg3 = static_cast< int >(val3);
29318 ecode4 = SWIG_AsVal_int(obj3, &val4);
29319 if (!SWIG_IsOK(ecode4)) {
29320 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
29321 }
29322 arg4 = static_cast< int >(val4);
29323 ecode5 = SWIG_AsVal_int(obj4, &val5);
29324 if (!SWIG_IsOK(ecode5)) {
29325 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
29326 }
29327 arg5 = static_cast< int >(val5);
29328 if (obj5) {
29329 ecode6 = SWIG_AsVal_bool(obj5, &val6);
29330 if (!SWIG_IsOK(ecode6)) {
29331 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
29332 }
29333 arg6 = static_cast< bool >(val6);
29334 }
29335 if (obj6) {
29336 {
29337 arg7 = wxString_in_helper(obj6);
29338 if (arg7 == NULL) SWIG_fail;
29339 temp7 = true;
29340 }
29341 }
29342 if (obj7) {
29343 ecode8 = SWIG_AsVal_int(obj7, &val8);
29344 if (!SWIG_IsOK(ecode8)) {
29345 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
29346 }
29347 arg8 = static_cast< wxFontEncoding >(val8);
29348 }
29349 {
29350 PyThreadState* __tstate = wxPyBeginAllowThreads();
29351 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
29352 wxPyEndAllowThreads(__tstate);
29353 if (PyErr_Occurred()) SWIG_fail;
29354 }
29355 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
29356 {
29357 if (temp7)
29358 delete arg7;
29359 }
29360 return resultobj;
29361 fail:
29362 {
29363 if (temp7)
29364 delete arg7;
29365 }
29366 return NULL;
29367 }
29368
29369
29370 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29371 PyObject *resultobj = 0;
29372 wxFontList *arg1 = (wxFontList *) 0 ;
29373 wxFont *arg2 = (wxFont *) 0 ;
29374 void *argp1 = 0 ;
29375 int res1 = 0 ;
29376 void *argp2 = 0 ;
29377 int res2 = 0 ;
29378 PyObject * obj0 = 0 ;
29379 PyObject * obj1 = 0 ;
29380 char * kwnames[] = {
29381 (char *) "self",(char *) "font", NULL
29382 };
29383
29384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
29385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29386 if (!SWIG_IsOK(res1)) {
29387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29388 }
29389 arg1 = reinterpret_cast< wxFontList * >(argp1);
29390 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29391 if (!SWIG_IsOK(res2)) {
29392 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
29393 }
29394 arg2 = reinterpret_cast< wxFont * >(argp2);
29395 {
29396 PyThreadState* __tstate = wxPyBeginAllowThreads();
29397 (arg1)->AddFont(arg2);
29398 wxPyEndAllowThreads(__tstate);
29399 if (PyErr_Occurred()) SWIG_fail;
29400 }
29401 resultobj = SWIG_Py_Void();
29402 return resultobj;
29403 fail:
29404 return NULL;
29405 }
29406
29407
29408 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29409 PyObject *resultobj = 0;
29410 wxFontList *arg1 = (wxFontList *) 0 ;
29411 wxFont *arg2 = (wxFont *) 0 ;
29412 void *argp1 = 0 ;
29413 int res1 = 0 ;
29414 void *argp2 = 0 ;
29415 int res2 = 0 ;
29416 PyObject * obj0 = 0 ;
29417 PyObject * obj1 = 0 ;
29418 char * kwnames[] = {
29419 (char *) "self",(char *) "font", NULL
29420 };
29421
29422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
29423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
29424 if (!SWIG_IsOK(res1)) {
29425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
29426 }
29427 arg1 = reinterpret_cast< wxFontList * >(argp1);
29428 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
29429 if (!SWIG_IsOK(res2)) {
29430 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
29431 }
29432 arg2 = reinterpret_cast< wxFont * >(argp2);
29433 {
29434 PyThreadState* __tstate = wxPyBeginAllowThreads();
29435 (arg1)->RemoveFont(arg2);
29436 wxPyEndAllowThreads(__tstate);
29437 if (PyErr_Occurred()) SWIG_fail;
29438 }
29439 resultobj = SWIG_Py_Void();
29440 return resultobj;
29441 fail:
29442 return NULL;
29443 }
29444
29445
29446 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29447 PyObject *obj;
29448 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29449 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
29450 return SWIG_Py_Void();
29451 }
29452
29453 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29454 PyObject *resultobj = 0;
29455 wxColourDatabase *result = 0 ;
29456
29457 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
29458 {
29459 if (!wxPyCheckForApp()) SWIG_fail;
29460 PyThreadState* __tstate = wxPyBeginAllowThreads();
29461 result = (wxColourDatabase *)new wxColourDatabase();
29462 wxPyEndAllowThreads(__tstate);
29463 if (PyErr_Occurred()) SWIG_fail;
29464 }
29465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
29466 return resultobj;
29467 fail:
29468 return NULL;
29469 }
29470
29471
29472 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29473 PyObject *resultobj = 0;
29474 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29475 void *argp1 = 0 ;
29476 int res1 = 0 ;
29477 PyObject *swig_obj[1] ;
29478
29479 if (!args) SWIG_fail;
29480 swig_obj[0] = args;
29481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
29482 if (!SWIG_IsOK(res1)) {
29483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29484 }
29485 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29486 {
29487 PyThreadState* __tstate = wxPyBeginAllowThreads();
29488 delete arg1;
29489
29490 wxPyEndAllowThreads(__tstate);
29491 if (PyErr_Occurred()) SWIG_fail;
29492 }
29493 resultobj = SWIG_Py_Void();
29494 return resultobj;
29495 fail:
29496 return NULL;
29497 }
29498
29499
29500 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29501 PyObject *resultobj = 0;
29502 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29503 wxString *arg2 = 0 ;
29504 wxColour result;
29505 void *argp1 = 0 ;
29506 int res1 = 0 ;
29507 bool temp2 = false ;
29508 PyObject * obj0 = 0 ;
29509 PyObject * obj1 = 0 ;
29510 char * kwnames[] = {
29511 (char *) "self",(char *) "name", NULL
29512 };
29513
29514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
29515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29516 if (!SWIG_IsOK(res1)) {
29517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29518 }
29519 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29520 {
29521 arg2 = wxString_in_helper(obj1);
29522 if (arg2 == NULL) SWIG_fail;
29523 temp2 = true;
29524 }
29525 {
29526 PyThreadState* __tstate = wxPyBeginAllowThreads();
29527 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
29528 wxPyEndAllowThreads(__tstate);
29529 if (PyErr_Occurred()) SWIG_fail;
29530 }
29531 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29532 {
29533 if (temp2)
29534 delete arg2;
29535 }
29536 return resultobj;
29537 fail:
29538 {
29539 if (temp2)
29540 delete arg2;
29541 }
29542 return NULL;
29543 }
29544
29545
29546 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29547 PyObject *resultobj = 0;
29548 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29549 wxColour *arg2 = 0 ;
29550 wxString result;
29551 void *argp1 = 0 ;
29552 int res1 = 0 ;
29553 wxColour temp2 ;
29554 PyObject * obj0 = 0 ;
29555 PyObject * obj1 = 0 ;
29556 char * kwnames[] = {
29557 (char *) "self",(char *) "colour", NULL
29558 };
29559
29560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
29561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29562 if (!SWIG_IsOK(res1)) {
29563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
29564 }
29565 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29566 {
29567 arg2 = &temp2;
29568 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29569 }
29570 {
29571 PyThreadState* __tstate = wxPyBeginAllowThreads();
29572 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
29573 wxPyEndAllowThreads(__tstate);
29574 if (PyErr_Occurred()) SWIG_fail;
29575 }
29576 {
29577 #if wxUSE_UNICODE
29578 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
29579 #else
29580 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
29581 #endif
29582 }
29583 return resultobj;
29584 fail:
29585 return NULL;
29586 }
29587
29588
29589 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29590 PyObject *resultobj = 0;
29591 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29592 wxString *arg2 = 0 ;
29593 wxColour *arg3 = 0 ;
29594 void *argp1 = 0 ;
29595 int res1 = 0 ;
29596 bool temp2 = false ;
29597 wxColour temp3 ;
29598 PyObject * obj0 = 0 ;
29599 PyObject * obj1 = 0 ;
29600 PyObject * obj2 = 0 ;
29601 char * kwnames[] = {
29602 (char *) "self",(char *) "name",(char *) "colour", NULL
29603 };
29604
29605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
29606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29607 if (!SWIG_IsOK(res1)) {
29608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29609 }
29610 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29611 {
29612 arg2 = wxString_in_helper(obj1);
29613 if (arg2 == NULL) SWIG_fail;
29614 temp2 = true;
29615 }
29616 {
29617 arg3 = &temp3;
29618 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
29619 }
29620 {
29621 PyThreadState* __tstate = wxPyBeginAllowThreads();
29622 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
29623 wxPyEndAllowThreads(__tstate);
29624 if (PyErr_Occurred()) SWIG_fail;
29625 }
29626 resultobj = SWIG_Py_Void();
29627 {
29628 if (temp2)
29629 delete arg2;
29630 }
29631 return resultobj;
29632 fail:
29633 {
29634 if (temp2)
29635 delete arg2;
29636 }
29637 return NULL;
29638 }
29639
29640
29641 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29642 PyObject *resultobj = 0;
29643 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
29644 wxString *arg2 = 0 ;
29645 int arg3 ;
29646 int arg4 ;
29647 int arg5 ;
29648 void *argp1 = 0 ;
29649 int res1 = 0 ;
29650 bool temp2 = false ;
29651 int val3 ;
29652 int ecode3 = 0 ;
29653 int val4 ;
29654 int ecode4 = 0 ;
29655 int val5 ;
29656 int ecode5 = 0 ;
29657 PyObject * obj0 = 0 ;
29658 PyObject * obj1 = 0 ;
29659 PyObject * obj2 = 0 ;
29660 PyObject * obj3 = 0 ;
29661 PyObject * obj4 = 0 ;
29662 char * kwnames[] = {
29663 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
29664 };
29665
29666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
29667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29668 if (!SWIG_IsOK(res1)) {
29669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
29670 }
29671 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
29672 {
29673 arg2 = wxString_in_helper(obj1);
29674 if (arg2 == NULL) SWIG_fail;
29675 temp2 = true;
29676 }
29677 ecode3 = SWIG_AsVal_int(obj2, &val3);
29678 if (!SWIG_IsOK(ecode3)) {
29679 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
29680 }
29681 arg3 = static_cast< int >(val3);
29682 ecode4 = SWIG_AsVal_int(obj3, &val4);
29683 if (!SWIG_IsOK(ecode4)) {
29684 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
29685 }
29686 arg4 = static_cast< int >(val4);
29687 ecode5 = SWIG_AsVal_int(obj4, &val5);
29688 if (!SWIG_IsOK(ecode5)) {
29689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
29690 }
29691 arg5 = static_cast< int >(val5);
29692 {
29693 PyThreadState* __tstate = wxPyBeginAllowThreads();
29694 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
29695 wxPyEndAllowThreads(__tstate);
29696 if (PyErr_Occurred()) SWIG_fail;
29697 }
29698 resultobj = SWIG_Py_Void();
29699 {
29700 if (temp2)
29701 delete arg2;
29702 }
29703 return resultobj;
29704 fail:
29705 {
29706 if (temp2)
29707 delete arg2;
29708 }
29709 return NULL;
29710 }
29711
29712
29713 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29714 PyObject *obj;
29715 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
29716 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
29717 return SWIG_Py_Void();
29718 }
29719
29720 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29721 return SWIG_Python_InitShadowInstance(args);
29722 }
29723
29724 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29725 PyObject *resultobj = 0;
29726 wxFontList *result = 0 ;
29727
29728 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
29729 {
29730 PyThreadState* __tstate = wxPyBeginAllowThreads();
29731 result = (wxFontList *)_wxPyInitTheFontList();
29732 wxPyEndAllowThreads(__tstate);
29733 if (PyErr_Occurred()) SWIG_fail;
29734 }
29735 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
29736 return resultobj;
29737 fail:
29738 return NULL;
29739 }
29740
29741
29742 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29743 PyObject *resultobj = 0;
29744 wxPenList *result = 0 ;
29745
29746 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
29747 {
29748 PyThreadState* __tstate = wxPyBeginAllowThreads();
29749 result = (wxPenList *)_wxPyInitThePenList();
29750 wxPyEndAllowThreads(__tstate);
29751 if (PyErr_Occurred()) SWIG_fail;
29752 }
29753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
29754 return resultobj;
29755 fail:
29756 return NULL;
29757 }
29758
29759
29760 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29761 PyObject *resultobj = 0;
29762 wxBrushList *result = 0 ;
29763
29764 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
29765 {
29766 PyThreadState* __tstate = wxPyBeginAllowThreads();
29767 result = (wxBrushList *)_wxPyInitTheBrushList();
29768 wxPyEndAllowThreads(__tstate);
29769 if (PyErr_Occurred()) SWIG_fail;
29770 }
29771 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
29772 return resultobj;
29773 fail:
29774 return NULL;
29775 }
29776
29777
29778 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29779 PyObject *resultobj = 0;
29780 wxColourDatabase *result = 0 ;
29781
29782 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
29783 {
29784 PyThreadState* __tstate = wxPyBeginAllowThreads();
29785 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
29786 wxPyEndAllowThreads(__tstate);
29787 if (PyErr_Occurred()) SWIG_fail;
29788 }
29789 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
29790 return resultobj;
29791 fail:
29792 return NULL;
29793 }
29794
29795
29796 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29797 PyObject *resultobj = 0;
29798 wxEffects *result = 0 ;
29799
29800 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
29801 {
29802 PyThreadState* __tstate = wxPyBeginAllowThreads();
29803 result = (wxEffects *)new wxEffects();
29804 wxPyEndAllowThreads(__tstate);
29805 if (PyErr_Occurred()) SWIG_fail;
29806 }
29807 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
29808 return resultobj;
29809 fail:
29810 return NULL;
29811 }
29812
29813
29814 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29815 PyObject *resultobj = 0;
29816 wxEffects *arg1 = (wxEffects *) 0 ;
29817 wxColour result;
29818 void *argp1 = 0 ;
29819 int res1 = 0 ;
29820 PyObject *swig_obj[1] ;
29821
29822 if (!args) SWIG_fail;
29823 swig_obj[0] = args;
29824 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29825 if (!SWIG_IsOK(res1)) {
29826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29827 }
29828 arg1 = reinterpret_cast< wxEffects * >(argp1);
29829 {
29830 PyThreadState* __tstate = wxPyBeginAllowThreads();
29831 result = ((wxEffects const *)arg1)->GetHighlightColour();
29832 wxPyEndAllowThreads(__tstate);
29833 if (PyErr_Occurred()) SWIG_fail;
29834 }
29835 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29836 return resultobj;
29837 fail:
29838 return NULL;
29839 }
29840
29841
29842 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29843 PyObject *resultobj = 0;
29844 wxEffects *arg1 = (wxEffects *) 0 ;
29845 wxColour result;
29846 void *argp1 = 0 ;
29847 int res1 = 0 ;
29848 PyObject *swig_obj[1] ;
29849
29850 if (!args) SWIG_fail;
29851 swig_obj[0] = args;
29852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29853 if (!SWIG_IsOK(res1)) {
29854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29855 }
29856 arg1 = reinterpret_cast< wxEffects * >(argp1);
29857 {
29858 PyThreadState* __tstate = wxPyBeginAllowThreads();
29859 result = ((wxEffects const *)arg1)->GetLightShadow();
29860 wxPyEndAllowThreads(__tstate);
29861 if (PyErr_Occurred()) SWIG_fail;
29862 }
29863 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29864 return resultobj;
29865 fail:
29866 return NULL;
29867 }
29868
29869
29870 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29871 PyObject *resultobj = 0;
29872 wxEffects *arg1 = (wxEffects *) 0 ;
29873 wxColour result;
29874 void *argp1 = 0 ;
29875 int res1 = 0 ;
29876 PyObject *swig_obj[1] ;
29877
29878 if (!args) SWIG_fail;
29879 swig_obj[0] = args;
29880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29881 if (!SWIG_IsOK(res1)) {
29882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
29883 }
29884 arg1 = reinterpret_cast< wxEffects * >(argp1);
29885 {
29886 PyThreadState* __tstate = wxPyBeginAllowThreads();
29887 result = ((wxEffects const *)arg1)->GetFaceColour();
29888 wxPyEndAllowThreads(__tstate);
29889 if (PyErr_Occurred()) SWIG_fail;
29890 }
29891 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29892 return resultobj;
29893 fail:
29894 return NULL;
29895 }
29896
29897
29898 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29899 PyObject *resultobj = 0;
29900 wxEffects *arg1 = (wxEffects *) 0 ;
29901 wxColour result;
29902 void *argp1 = 0 ;
29903 int res1 = 0 ;
29904 PyObject *swig_obj[1] ;
29905
29906 if (!args) SWIG_fail;
29907 swig_obj[0] = args;
29908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29909 if (!SWIG_IsOK(res1)) {
29910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29911 }
29912 arg1 = reinterpret_cast< wxEffects * >(argp1);
29913 {
29914 PyThreadState* __tstate = wxPyBeginAllowThreads();
29915 result = ((wxEffects const *)arg1)->GetMediumShadow();
29916 wxPyEndAllowThreads(__tstate);
29917 if (PyErr_Occurred()) SWIG_fail;
29918 }
29919 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29920 return resultobj;
29921 fail:
29922 return NULL;
29923 }
29924
29925
29926 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
29927 PyObject *resultobj = 0;
29928 wxEffects *arg1 = (wxEffects *) 0 ;
29929 wxColour result;
29930 void *argp1 = 0 ;
29931 int res1 = 0 ;
29932 PyObject *swig_obj[1] ;
29933
29934 if (!args) SWIG_fail;
29935 swig_obj[0] = args;
29936 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29937 if (!SWIG_IsOK(res1)) {
29938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
29939 }
29940 arg1 = reinterpret_cast< wxEffects * >(argp1);
29941 {
29942 PyThreadState* __tstate = wxPyBeginAllowThreads();
29943 result = ((wxEffects const *)arg1)->GetDarkShadow();
29944 wxPyEndAllowThreads(__tstate);
29945 if (PyErr_Occurred()) SWIG_fail;
29946 }
29947 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
29948 return resultobj;
29949 fail:
29950 return NULL;
29951 }
29952
29953
29954 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29955 PyObject *resultobj = 0;
29956 wxEffects *arg1 = (wxEffects *) 0 ;
29957 wxColour *arg2 = 0 ;
29958 void *argp1 = 0 ;
29959 int res1 = 0 ;
29960 wxColour temp2 ;
29961 PyObject * obj0 = 0 ;
29962 PyObject * obj1 = 0 ;
29963 char * kwnames[] = {
29964 (char *) "self",(char *) "c", NULL
29965 };
29966
29967 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
29968 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
29969 if (!SWIG_IsOK(res1)) {
29970 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
29971 }
29972 arg1 = reinterpret_cast< wxEffects * >(argp1);
29973 {
29974 arg2 = &temp2;
29975 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
29976 }
29977 {
29978 PyThreadState* __tstate = wxPyBeginAllowThreads();
29979 (arg1)->SetHighlightColour((wxColour const &)*arg2);
29980 wxPyEndAllowThreads(__tstate);
29981 if (PyErr_Occurred()) SWIG_fail;
29982 }
29983 resultobj = SWIG_Py_Void();
29984 return resultobj;
29985 fail:
29986 return NULL;
29987 }
29988
29989
29990 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
29991 PyObject *resultobj = 0;
29992 wxEffects *arg1 = (wxEffects *) 0 ;
29993 wxColour *arg2 = 0 ;
29994 void *argp1 = 0 ;
29995 int res1 = 0 ;
29996 wxColour temp2 ;
29997 PyObject * obj0 = 0 ;
29998 PyObject * obj1 = 0 ;
29999 char * kwnames[] = {
30000 (char *) "self",(char *) "c", NULL
30001 };
30002
30003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30005 if (!SWIG_IsOK(res1)) {
30006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30007 }
30008 arg1 = reinterpret_cast< wxEffects * >(argp1);
30009 {
30010 arg2 = &temp2;
30011 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30012 }
30013 {
30014 PyThreadState* __tstate = wxPyBeginAllowThreads();
30015 (arg1)->SetLightShadow((wxColour const &)*arg2);
30016 wxPyEndAllowThreads(__tstate);
30017 if (PyErr_Occurred()) SWIG_fail;
30018 }
30019 resultobj = SWIG_Py_Void();
30020 return resultobj;
30021 fail:
30022 return NULL;
30023 }
30024
30025
30026 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30027 PyObject *resultobj = 0;
30028 wxEffects *arg1 = (wxEffects *) 0 ;
30029 wxColour *arg2 = 0 ;
30030 void *argp1 = 0 ;
30031 int res1 = 0 ;
30032 wxColour temp2 ;
30033 PyObject * obj0 = 0 ;
30034 PyObject * obj1 = 0 ;
30035 char * kwnames[] = {
30036 (char *) "self",(char *) "c", NULL
30037 };
30038
30039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
30040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30041 if (!SWIG_IsOK(res1)) {
30042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
30043 }
30044 arg1 = reinterpret_cast< wxEffects * >(argp1);
30045 {
30046 arg2 = &temp2;
30047 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30048 }
30049 {
30050 PyThreadState* __tstate = wxPyBeginAllowThreads();
30051 (arg1)->SetFaceColour((wxColour const &)*arg2);
30052 wxPyEndAllowThreads(__tstate);
30053 if (PyErr_Occurred()) SWIG_fail;
30054 }
30055 resultobj = SWIG_Py_Void();
30056 return resultobj;
30057 fail:
30058 return NULL;
30059 }
30060
30061
30062 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30063 PyObject *resultobj = 0;
30064 wxEffects *arg1 = (wxEffects *) 0 ;
30065 wxColour *arg2 = 0 ;
30066 void *argp1 = 0 ;
30067 int res1 = 0 ;
30068 wxColour temp2 ;
30069 PyObject * obj0 = 0 ;
30070 PyObject * obj1 = 0 ;
30071 char * kwnames[] = {
30072 (char *) "self",(char *) "c", NULL
30073 };
30074
30075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30077 if (!SWIG_IsOK(res1)) {
30078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30079 }
30080 arg1 = reinterpret_cast< wxEffects * >(argp1);
30081 {
30082 arg2 = &temp2;
30083 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30084 }
30085 {
30086 PyThreadState* __tstate = wxPyBeginAllowThreads();
30087 (arg1)->SetMediumShadow((wxColour const &)*arg2);
30088 wxPyEndAllowThreads(__tstate);
30089 if (PyErr_Occurred()) SWIG_fail;
30090 }
30091 resultobj = SWIG_Py_Void();
30092 return resultobj;
30093 fail:
30094 return NULL;
30095 }
30096
30097
30098 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30099 PyObject *resultobj = 0;
30100 wxEffects *arg1 = (wxEffects *) 0 ;
30101 wxColour *arg2 = 0 ;
30102 void *argp1 = 0 ;
30103 int res1 = 0 ;
30104 wxColour temp2 ;
30105 PyObject * obj0 = 0 ;
30106 PyObject * obj1 = 0 ;
30107 char * kwnames[] = {
30108 (char *) "self",(char *) "c", NULL
30109 };
30110
30111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
30112 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30113 if (!SWIG_IsOK(res1)) {
30114 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
30115 }
30116 arg1 = reinterpret_cast< wxEffects * >(argp1);
30117 {
30118 arg2 = &temp2;
30119 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30120 }
30121 {
30122 PyThreadState* __tstate = wxPyBeginAllowThreads();
30123 (arg1)->SetDarkShadow((wxColour const &)*arg2);
30124 wxPyEndAllowThreads(__tstate);
30125 if (PyErr_Occurred()) SWIG_fail;
30126 }
30127 resultobj = SWIG_Py_Void();
30128 return resultobj;
30129 fail:
30130 return NULL;
30131 }
30132
30133
30134 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30135 PyObject *resultobj = 0;
30136 wxEffects *arg1 = (wxEffects *) 0 ;
30137 wxColour *arg2 = 0 ;
30138 wxColour *arg3 = 0 ;
30139 wxColour *arg4 = 0 ;
30140 wxColour *arg5 = 0 ;
30141 wxColour *arg6 = 0 ;
30142 void *argp1 = 0 ;
30143 int res1 = 0 ;
30144 wxColour temp2 ;
30145 wxColour temp3 ;
30146 wxColour temp4 ;
30147 wxColour temp5 ;
30148 wxColour temp6 ;
30149 PyObject * obj0 = 0 ;
30150 PyObject * obj1 = 0 ;
30151 PyObject * obj2 = 0 ;
30152 PyObject * obj3 = 0 ;
30153 PyObject * obj4 = 0 ;
30154 PyObject * obj5 = 0 ;
30155 char * kwnames[] = {
30156 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
30157 };
30158
30159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
30160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30161 if (!SWIG_IsOK(res1)) {
30162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
30163 }
30164 arg1 = reinterpret_cast< wxEffects * >(argp1);
30165 {
30166 arg2 = &temp2;
30167 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
30168 }
30169 {
30170 arg3 = &temp3;
30171 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
30172 }
30173 {
30174 arg4 = &temp4;
30175 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
30176 }
30177 {
30178 arg5 = &temp5;
30179 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
30180 }
30181 {
30182 arg6 = &temp6;
30183 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
30184 }
30185 {
30186 PyThreadState* __tstate = wxPyBeginAllowThreads();
30187 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
30188 wxPyEndAllowThreads(__tstate);
30189 if (PyErr_Occurred()) SWIG_fail;
30190 }
30191 resultobj = SWIG_Py_Void();
30192 return resultobj;
30193 fail:
30194 return NULL;
30195 }
30196
30197
30198 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30199 PyObject *resultobj = 0;
30200 wxEffects *arg1 = (wxEffects *) 0 ;
30201 wxDC *arg2 = 0 ;
30202 wxRect *arg3 = 0 ;
30203 int arg4 = (int) 1 ;
30204 void *argp1 = 0 ;
30205 int res1 = 0 ;
30206 void *argp2 = 0 ;
30207 int res2 = 0 ;
30208 wxRect temp3 ;
30209 int val4 ;
30210 int ecode4 = 0 ;
30211 PyObject * obj0 = 0 ;
30212 PyObject * obj1 = 0 ;
30213 PyObject * obj2 = 0 ;
30214 PyObject * obj3 = 0 ;
30215 char * kwnames[] = {
30216 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
30217 };
30218
30219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30220 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30221 if (!SWIG_IsOK(res1)) {
30222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
30223 }
30224 arg1 = reinterpret_cast< wxEffects * >(argp1);
30225 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
30226 if (!SWIG_IsOK(res2)) {
30227 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30228 }
30229 if (!argp2) {
30230 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
30231 }
30232 arg2 = reinterpret_cast< wxDC * >(argp2);
30233 {
30234 arg3 = &temp3;
30235 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
30236 }
30237 if (obj3) {
30238 ecode4 = SWIG_AsVal_int(obj3, &val4);
30239 if (!SWIG_IsOK(ecode4)) {
30240 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
30241 }
30242 arg4 = static_cast< int >(val4);
30243 }
30244 {
30245 PyThreadState* __tstate = wxPyBeginAllowThreads();
30246 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
30247 wxPyEndAllowThreads(__tstate);
30248 if (PyErr_Occurred()) SWIG_fail;
30249 }
30250 resultobj = SWIG_Py_Void();
30251 return resultobj;
30252 fail:
30253 return NULL;
30254 }
30255
30256
30257 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30258 PyObject *resultobj = 0;
30259 wxEffects *arg1 = (wxEffects *) 0 ;
30260 wxRect *arg2 = 0 ;
30261 wxDC *arg3 = 0 ;
30262 wxBitmap *arg4 = 0 ;
30263 bool result;
30264 void *argp1 = 0 ;
30265 int res1 = 0 ;
30266 wxRect temp2 ;
30267 void *argp3 = 0 ;
30268 int res3 = 0 ;
30269 void *argp4 = 0 ;
30270 int res4 = 0 ;
30271 PyObject * obj0 = 0 ;
30272 PyObject * obj1 = 0 ;
30273 PyObject * obj2 = 0 ;
30274 PyObject * obj3 = 0 ;
30275 char * kwnames[] = {
30276 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
30277 };
30278
30279 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
30280 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
30281 if (!SWIG_IsOK(res1)) {
30282 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
30283 }
30284 arg1 = reinterpret_cast< wxEffects * >(argp1);
30285 {
30286 arg2 = &temp2;
30287 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
30288 }
30289 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
30290 if (!SWIG_IsOK(res3)) {
30291 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30292 }
30293 if (!argp3) {
30294 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
30295 }
30296 arg3 = reinterpret_cast< wxDC * >(argp3);
30297 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
30298 if (!SWIG_IsOK(res4)) {
30299 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30300 }
30301 if (!argp4) {
30302 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
30303 }
30304 arg4 = reinterpret_cast< wxBitmap * >(argp4);
30305 {
30306 PyThreadState* __tstate = wxPyBeginAllowThreads();
30307 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
30308 wxPyEndAllowThreads(__tstate);
30309 if (PyErr_Occurred()) SWIG_fail;
30310 }
30311 {
30312 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
30313 }
30314 return resultobj;
30315 fail:
30316 return NULL;
30317 }
30318
30319
30320 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30321 PyObject *obj;
30322 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30323 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
30324 return SWIG_Py_Void();
30325 }
30326
30327 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30328 return SWIG_Python_InitShadowInstance(args);
30329 }
30330
30331 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30332 PyObject *resultobj = 0;
30333 int arg1 ;
30334 int arg2 ;
30335 bool arg3 ;
30336 wxSplitterRenderParams *result = 0 ;
30337 int val1 ;
30338 int ecode1 = 0 ;
30339 int val2 ;
30340 int ecode2 = 0 ;
30341 bool val3 ;
30342 int ecode3 = 0 ;
30343 PyObject * obj0 = 0 ;
30344 PyObject * obj1 = 0 ;
30345 PyObject * obj2 = 0 ;
30346 char * kwnames[] = {
30347 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
30348 };
30349
30350 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
30351 ecode1 = SWIG_AsVal_int(obj0, &val1);
30352 if (!SWIG_IsOK(ecode1)) {
30353 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
30354 }
30355 arg1 = static_cast< int >(val1);
30356 ecode2 = SWIG_AsVal_int(obj1, &val2);
30357 if (!SWIG_IsOK(ecode2)) {
30358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
30359 }
30360 arg2 = static_cast< int >(val2);
30361 ecode3 = SWIG_AsVal_bool(obj2, &val3);
30362 if (!SWIG_IsOK(ecode3)) {
30363 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
30364 }
30365 arg3 = static_cast< bool >(val3);
30366 {
30367 PyThreadState* __tstate = wxPyBeginAllowThreads();
30368 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
30369 wxPyEndAllowThreads(__tstate);
30370 if (PyErr_Occurred()) SWIG_fail;
30371 }
30372 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
30373 return resultobj;
30374 fail:
30375 return NULL;
30376 }
30377
30378
30379 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30380 PyObject *resultobj = 0;
30381 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30382 void *argp1 = 0 ;
30383 int res1 = 0 ;
30384 PyObject *swig_obj[1] ;
30385
30386 if (!args) SWIG_fail;
30387 swig_obj[0] = args;
30388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
30389 if (!SWIG_IsOK(res1)) {
30390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30391 }
30392 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30393 {
30394 PyThreadState* __tstate = wxPyBeginAllowThreads();
30395 delete arg1;
30396
30397 wxPyEndAllowThreads(__tstate);
30398 if (PyErr_Occurred()) SWIG_fail;
30399 }
30400 resultobj = SWIG_Py_Void();
30401 return resultobj;
30402 fail:
30403 return NULL;
30404 }
30405
30406
30407 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30408 PyObject *resultobj = 0;
30409 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30410 int result;
30411 void *argp1 = 0 ;
30412 int res1 = 0 ;
30413 PyObject *swig_obj[1] ;
30414
30415 if (!args) SWIG_fail;
30416 swig_obj[0] = args;
30417 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30418 if (!SWIG_IsOK(res1)) {
30419 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30420 }
30421 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30422 result = (int)(int) ((arg1)->widthSash);
30423 resultobj = SWIG_From_int(static_cast< int >(result));
30424 return resultobj;
30425 fail:
30426 return NULL;
30427 }
30428
30429
30430 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30431 PyObject *resultobj = 0;
30432 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30433 int result;
30434 void *argp1 = 0 ;
30435 int res1 = 0 ;
30436 PyObject *swig_obj[1] ;
30437
30438 if (!args) SWIG_fail;
30439 swig_obj[0] = args;
30440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30441 if (!SWIG_IsOK(res1)) {
30442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30443 }
30444 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30445 result = (int)(int) ((arg1)->border);
30446 resultobj = SWIG_From_int(static_cast< int >(result));
30447 return resultobj;
30448 fail:
30449 return NULL;
30450 }
30451
30452
30453 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30454 PyObject *resultobj = 0;
30455 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
30456 bool result;
30457 void *argp1 = 0 ;
30458 int res1 = 0 ;
30459 PyObject *swig_obj[1] ;
30460
30461 if (!args) SWIG_fail;
30462 swig_obj[0] = args;
30463 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
30464 if (!SWIG_IsOK(res1)) {
30465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
30466 }
30467 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
30468 result = (bool)(bool) ((arg1)->isHotSensitive);
30469 resultobj = SWIG_From_bool(static_cast< bool >(result));
30470 return resultobj;
30471 fail:
30472 return NULL;
30473 }
30474
30475
30476 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30477 PyObject *obj;
30478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30479 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
30480 return SWIG_Py_Void();
30481 }
30482
30483 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30484 return SWIG_Python_InitShadowInstance(args);
30485 }
30486
30487 SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30488 PyObject *resultobj = 0;
30489 wxHeaderButtonParams *result = 0 ;
30490
30491 if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail;
30492 {
30493 PyThreadState* __tstate = wxPyBeginAllowThreads();
30494 result = (wxHeaderButtonParams *)new wxHeaderButtonParams();
30495 wxPyEndAllowThreads(__tstate);
30496 if (PyErr_Occurred()) SWIG_fail;
30497 }
30498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 );
30499 return resultobj;
30500 fail:
30501 return NULL;
30502 }
30503
30504
30505 SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30506 PyObject *resultobj = 0;
30507 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30508 void *argp1 = 0 ;
30509 int res1 = 0 ;
30510 PyObject *swig_obj[1] ;
30511
30512 if (!args) SWIG_fail;
30513 swig_obj[0] = args;
30514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 );
30515 if (!SWIG_IsOK(res1)) {
30516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30517 }
30518 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30519 {
30520 PyThreadState* __tstate = wxPyBeginAllowThreads();
30521 delete arg1;
30522
30523 wxPyEndAllowThreads(__tstate);
30524 if (PyErr_Occurred()) SWIG_fail;
30525 }
30526 resultobj = SWIG_Py_Void();
30527 return resultobj;
30528 fail:
30529 return NULL;
30530 }
30531
30532
30533 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30534 PyObject *resultobj = 0;
30535 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30536 wxColour *arg2 = (wxColour *) 0 ;
30537 void *argp1 = 0 ;
30538 int res1 = 0 ;
30539 wxColour temp2 ;
30540 PyObject *swig_obj[2] ;
30541
30542 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail;
30543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30544 if (!SWIG_IsOK(res1)) {
30545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30546 }
30547 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30548 {
30549 arg2 = &temp2;
30550 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30551 }
30552 if (arg1) (arg1)->m_arrowColour = *arg2;
30553
30554 resultobj = SWIG_Py_Void();
30555 return resultobj;
30556 fail:
30557 return NULL;
30558 }
30559
30560
30561 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30562 PyObject *resultobj = 0;
30563 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30564 wxColour *result = 0 ;
30565 void *argp1 = 0 ;
30566 int res1 = 0 ;
30567 PyObject *swig_obj[1] ;
30568
30569 if (!args) SWIG_fail;
30570 swig_obj[0] = args;
30571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30572 if (!SWIG_IsOK(res1)) {
30573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30574 }
30575 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30576 result = (wxColour *)& ((arg1)->m_arrowColour);
30577 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30578 return resultobj;
30579 fail:
30580 return NULL;
30581 }
30582
30583
30584 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30585 PyObject *resultobj = 0;
30586 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30587 wxColour *arg2 = (wxColour *) 0 ;
30588 void *argp1 = 0 ;
30589 int res1 = 0 ;
30590 wxColour temp2 ;
30591 PyObject *swig_obj[2] ;
30592
30593 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail;
30594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30595 if (!SWIG_IsOK(res1)) {
30596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30597 }
30598 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30599 {
30600 arg2 = &temp2;
30601 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30602 }
30603 if (arg1) (arg1)->m_selectionColour = *arg2;
30604
30605 resultobj = SWIG_Py_Void();
30606 return resultobj;
30607 fail:
30608 return NULL;
30609 }
30610
30611
30612 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30613 PyObject *resultobj = 0;
30614 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30615 wxColour *result = 0 ;
30616 void *argp1 = 0 ;
30617 int res1 = 0 ;
30618 PyObject *swig_obj[1] ;
30619
30620 if (!args) SWIG_fail;
30621 swig_obj[0] = args;
30622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30623 if (!SWIG_IsOK(res1)) {
30624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30625 }
30626 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30627 result = (wxColour *)& ((arg1)->m_selectionColour);
30628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30629 return resultobj;
30630 fail:
30631 return NULL;
30632 }
30633
30634
30635 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30636 PyObject *resultobj = 0;
30637 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30638 wxString *arg2 = (wxString *) 0 ;
30639 void *argp1 = 0 ;
30640 int res1 = 0 ;
30641 bool temp2 = false ;
30642 PyObject *swig_obj[2] ;
30643
30644 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail;
30645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30646 if (!SWIG_IsOK(res1)) {
30647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30648 }
30649 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30650 {
30651 arg2 = wxString_in_helper(swig_obj[1]);
30652 if (arg2 == NULL) SWIG_fail;
30653 temp2 = true;
30654 }
30655 if (arg1) (arg1)->m_labelText = *arg2;
30656
30657 resultobj = SWIG_Py_Void();
30658 {
30659 if (temp2)
30660 delete arg2;
30661 }
30662 return resultobj;
30663 fail:
30664 {
30665 if (temp2)
30666 delete arg2;
30667 }
30668 return NULL;
30669 }
30670
30671
30672 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30673 PyObject *resultobj = 0;
30674 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30675 wxString *result = 0 ;
30676 void *argp1 = 0 ;
30677 int res1 = 0 ;
30678 PyObject *swig_obj[1] ;
30679
30680 if (!args) SWIG_fail;
30681 swig_obj[0] = args;
30682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30683 if (!SWIG_IsOK(res1)) {
30684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30685 }
30686 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30687 result = (wxString *)& ((arg1)->m_labelText);
30688 {
30689 #if wxUSE_UNICODE
30690 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
30691 #else
30692 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
30693 #endif
30694 }
30695 return resultobj;
30696 fail:
30697 return NULL;
30698 }
30699
30700
30701 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30702 PyObject *resultobj = 0;
30703 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30704 wxFont *arg2 = (wxFont *) 0 ;
30705 void *argp1 = 0 ;
30706 int res1 = 0 ;
30707 void *argp2 = 0 ;
30708 int res2 = 0 ;
30709 PyObject *swig_obj[2] ;
30710
30711 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail;
30712 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30713 if (!SWIG_IsOK(res1)) {
30714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30715 }
30716 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30717 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
30718 if (!SWIG_IsOK(res2)) {
30719 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'");
30720 }
30721 arg2 = reinterpret_cast< wxFont * >(argp2);
30722 if (arg1) (arg1)->m_labelFont = *arg2;
30723
30724 resultobj = SWIG_Py_Void();
30725 return resultobj;
30726 fail:
30727 return NULL;
30728 }
30729
30730
30731 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30732 PyObject *resultobj = 0;
30733 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30734 wxFont *result = 0 ;
30735 void *argp1 = 0 ;
30736 int res1 = 0 ;
30737 PyObject *swig_obj[1] ;
30738
30739 if (!args) SWIG_fail;
30740 swig_obj[0] = args;
30741 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30742 if (!SWIG_IsOK(res1)) {
30743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30744 }
30745 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30746 result = (wxFont *)& ((arg1)->m_labelFont);
30747 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
30748 return resultobj;
30749 fail:
30750 return NULL;
30751 }
30752
30753
30754 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30755 PyObject *resultobj = 0;
30756 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30757 wxColour *arg2 = (wxColour *) 0 ;
30758 void *argp1 = 0 ;
30759 int res1 = 0 ;
30760 wxColour temp2 ;
30761 PyObject *swig_obj[2] ;
30762
30763 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail;
30764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30765 if (!SWIG_IsOK(res1)) {
30766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30767 }
30768 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30769 {
30770 arg2 = &temp2;
30771 if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail;
30772 }
30773 if (arg1) (arg1)->m_labelColour = *arg2;
30774
30775 resultobj = SWIG_Py_Void();
30776 return resultobj;
30777 fail:
30778 return NULL;
30779 }
30780
30781
30782 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30783 PyObject *resultobj = 0;
30784 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30785 wxColour *result = 0 ;
30786 void *argp1 = 0 ;
30787 int res1 = 0 ;
30788 PyObject *swig_obj[1] ;
30789
30790 if (!args) SWIG_fail;
30791 swig_obj[0] = args;
30792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30793 if (!SWIG_IsOK(res1)) {
30794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30795 }
30796 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30797 result = (wxColour *)& ((arg1)->m_labelColour);
30798 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
30799 return resultobj;
30800 fail:
30801 return NULL;
30802 }
30803
30804
30805 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30806 PyObject *resultobj = 0;
30807 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30808 wxBitmap *arg2 = (wxBitmap *) 0 ;
30809 void *argp1 = 0 ;
30810 int res1 = 0 ;
30811 void *argp2 = 0 ;
30812 int res2 = 0 ;
30813 PyObject *swig_obj[2] ;
30814
30815 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail;
30816 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30817 if (!SWIG_IsOK(res1)) {
30818 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30819 }
30820 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30821 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
30822 if (!SWIG_IsOK(res2)) {
30823 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'");
30824 }
30825 arg2 = reinterpret_cast< wxBitmap * >(argp2);
30826 if (arg1) (arg1)->m_labelBitmap = *arg2;
30827
30828 resultobj = SWIG_Py_Void();
30829 return resultobj;
30830 fail:
30831 return NULL;
30832 }
30833
30834
30835 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30836 PyObject *resultobj = 0;
30837 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30838 wxBitmap *result = 0 ;
30839 void *argp1 = 0 ;
30840 int res1 = 0 ;
30841 PyObject *swig_obj[1] ;
30842
30843 if (!args) SWIG_fail;
30844 swig_obj[0] = args;
30845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30846 if (!SWIG_IsOK(res1)) {
30847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30848 }
30849 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30850 result = (wxBitmap *)& ((arg1)->m_labelBitmap);
30851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
30852 return resultobj;
30853 fail:
30854 return NULL;
30855 }
30856
30857
30858 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30859 PyObject *resultobj = 0;
30860 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30861 int arg2 ;
30862 void *argp1 = 0 ;
30863 int res1 = 0 ;
30864 int val2 ;
30865 int ecode2 = 0 ;
30866 PyObject *swig_obj[2] ;
30867
30868 if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail;
30869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30870 if (!SWIG_IsOK(res1)) {
30871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30872 }
30873 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30874 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
30875 if (!SWIG_IsOK(ecode2)) {
30876 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'");
30877 }
30878 arg2 = static_cast< int >(val2);
30879 if (arg1) (arg1)->m_labelAlignment = arg2;
30880
30881 resultobj = SWIG_Py_Void();
30882 return resultobj;
30883 fail:
30884 return NULL;
30885 }
30886
30887
30888 SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30889 PyObject *resultobj = 0;
30890 wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ;
30891 int result;
30892 void *argp1 = 0 ;
30893 int res1 = 0 ;
30894 PyObject *swig_obj[1] ;
30895
30896 if (!args) SWIG_fail;
30897 swig_obj[0] = args;
30898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
30899 if (!SWIG_IsOK(res1)) {
30900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'");
30901 }
30902 arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1);
30903 result = (int) ((arg1)->m_labelAlignment);
30904 resultobj = SWIG_From_int(static_cast< int >(result));
30905 return resultobj;
30906 fail:
30907 return NULL;
30908 }
30909
30910
30911 SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30912 PyObject *obj;
30913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
30914 SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj));
30915 return SWIG_Py_Void();
30916 }
30917
30918 SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30919 return SWIG_Python_InitShadowInstance(args);
30920 }
30921
30922 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30923 PyObject *resultobj = 0;
30924 int arg1 ;
30925 int arg2 ;
30926 wxRendererVersion *result = 0 ;
30927 int val1 ;
30928 int ecode1 = 0 ;
30929 int val2 ;
30930 int ecode2 = 0 ;
30931 PyObject * obj0 = 0 ;
30932 PyObject * obj1 = 0 ;
30933 char * kwnames[] = {
30934 (char *) "version_",(char *) "age_", NULL
30935 };
30936
30937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
30938 ecode1 = SWIG_AsVal_int(obj0, &val1);
30939 if (!SWIG_IsOK(ecode1)) {
30940 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
30941 }
30942 arg1 = static_cast< int >(val1);
30943 ecode2 = SWIG_AsVal_int(obj1, &val2);
30944 if (!SWIG_IsOK(ecode2)) {
30945 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
30946 }
30947 arg2 = static_cast< int >(val2);
30948 {
30949 PyThreadState* __tstate = wxPyBeginAllowThreads();
30950 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
30951 wxPyEndAllowThreads(__tstate);
30952 if (PyErr_Occurred()) SWIG_fail;
30953 }
30954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
30955 return resultobj;
30956 fail:
30957 return NULL;
30958 }
30959
30960
30961 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
30962 PyObject *resultobj = 0;
30963 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
30964 void *argp1 = 0 ;
30965 int res1 = 0 ;
30966 PyObject *swig_obj[1] ;
30967
30968 if (!args) SWIG_fail;
30969 swig_obj[0] = args;
30970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
30971 if (!SWIG_IsOK(res1)) {
30972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
30973 }
30974 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
30975 {
30976 PyThreadState* __tstate = wxPyBeginAllowThreads();
30977 delete arg1;
30978
30979 wxPyEndAllowThreads(__tstate);
30980 if (PyErr_Occurred()) SWIG_fail;
30981 }
30982 resultobj = SWIG_Py_Void();
30983 return resultobj;
30984 fail:
30985 return NULL;
30986 }
30987
30988
30989 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
30990 PyObject *resultobj = 0;
30991 wxRendererVersion *arg1 = 0 ;
30992 bool result;
30993 void *argp1 = 0 ;
30994 int res1 = 0 ;
30995 PyObject * obj0 = 0 ;
30996 char * kwnames[] = {
30997 (char *) "ver", NULL
30998 };
30999
31000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
31001 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
31002 if (!SWIG_IsOK(res1)) {
31003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
31004 }
31005 if (!argp1) {
31006 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
31007 }
31008 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31009 {
31010 PyThreadState* __tstate = wxPyBeginAllowThreads();
31011 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
31012 wxPyEndAllowThreads(__tstate);
31013 if (PyErr_Occurred()) SWIG_fail;
31014 }
31015 {
31016 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
31017 }
31018 return resultobj;
31019 fail:
31020 return NULL;
31021 }
31022
31023
31024 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31025 PyObject *resultobj = 0;
31026 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31027 int result;
31028 void *argp1 = 0 ;
31029 int res1 = 0 ;
31030 PyObject *swig_obj[1] ;
31031
31032 if (!args) SWIG_fail;
31033 swig_obj[0] = args;
31034 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31035 if (!SWIG_IsOK(res1)) {
31036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31037 }
31038 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31039 result = (int)(int) ((arg1)->version);
31040 resultobj = SWIG_From_int(static_cast< int >(result));
31041 return resultobj;
31042 fail:
31043 return NULL;
31044 }
31045
31046
31047 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31048 PyObject *resultobj = 0;
31049 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
31050 int result;
31051 void *argp1 = 0 ;
31052 int res1 = 0 ;
31053 PyObject *swig_obj[1] ;
31054
31055 if (!args) SWIG_fail;
31056 swig_obj[0] = args;
31057 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
31058 if (!SWIG_IsOK(res1)) {
31059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
31060 }
31061 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
31062 result = (int)(int) ((arg1)->age);
31063 resultobj = SWIG_From_int(static_cast< int >(result));
31064 return resultobj;
31065 fail:
31066 return NULL;
31067 }
31068
31069
31070 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31071 PyObject *obj;
31072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
31073 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
31074 return SWIG_Py_Void();
31075 }
31076
31077 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31078 return SWIG_Python_InitShadowInstance(args);
31079 }
31080
31081 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31082 PyObject *resultobj = 0;
31083 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31084 wxWindow *arg2 = (wxWindow *) 0 ;
31085 wxDC *arg3 = 0 ;
31086 wxRect *arg4 = 0 ;
31087 int arg5 = (int) 0 ;
31088 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31089 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31090 void *argp1 = 0 ;
31091 int res1 = 0 ;
31092 void *argp2 = 0 ;
31093 int res2 = 0 ;
31094 void *argp3 = 0 ;
31095 int res3 = 0 ;
31096 wxRect temp4 ;
31097 int val5 ;
31098 int ecode5 = 0 ;
31099 int val6 ;
31100 int ecode6 = 0 ;
31101 void *argp7 = 0 ;
31102 int res7 = 0 ;
31103 PyObject * obj0 = 0 ;
31104 PyObject * obj1 = 0 ;
31105 PyObject * obj2 = 0 ;
31106 PyObject * obj3 = 0 ;
31107 PyObject * obj4 = 0 ;
31108 PyObject * obj5 = 0 ;
31109 PyObject * obj6 = 0 ;
31110 char * kwnames[] = {
31111 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31112 };
31113
31114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31116 if (!SWIG_IsOK(res1)) {
31117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31118 }
31119 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31120 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31121 if (!SWIG_IsOK(res2)) {
31122 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31123 }
31124 arg2 = reinterpret_cast< wxWindow * >(argp2);
31125 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31126 if (!SWIG_IsOK(res3)) {
31127 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31128 }
31129 if (!argp3) {
31130 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
31131 }
31132 arg3 = reinterpret_cast< wxDC * >(argp3);
31133 {
31134 arg4 = &temp4;
31135 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31136 }
31137 if (obj4) {
31138 ecode5 = SWIG_AsVal_int(obj4, &val5);
31139 if (!SWIG_IsOK(ecode5)) {
31140 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
31141 }
31142 arg5 = static_cast< int >(val5);
31143 }
31144 if (obj5) {
31145 ecode6 = SWIG_AsVal_int(obj5, &val6);
31146 if (!SWIG_IsOK(ecode6)) {
31147 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31148 }
31149 arg6 = static_cast< wxHeaderSortIconType >(val6);
31150 }
31151 if (obj6) {
31152 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31153 if (!SWIG_IsOK(res7)) {
31154 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31155 }
31156 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31157 }
31158 {
31159 PyThreadState* __tstate = wxPyBeginAllowThreads();
31160 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31161 wxPyEndAllowThreads(__tstate);
31162 if (PyErr_Occurred()) SWIG_fail;
31163 }
31164 resultobj = SWIG_Py_Void();
31165 return resultobj;
31166 fail:
31167 return NULL;
31168 }
31169
31170
31171 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31172 PyObject *resultobj = 0;
31173 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31174 wxWindow *arg2 = (wxWindow *) 0 ;
31175 wxDC *arg3 = 0 ;
31176 wxRect *arg4 = 0 ;
31177 int arg5 = (int) 0 ;
31178 wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ;
31179 wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ;
31180 void *argp1 = 0 ;
31181 int res1 = 0 ;
31182 void *argp2 = 0 ;
31183 int res2 = 0 ;
31184 void *argp3 = 0 ;
31185 int res3 = 0 ;
31186 wxRect temp4 ;
31187 int val5 ;
31188 int ecode5 = 0 ;
31189 int val6 ;
31190 int ecode6 = 0 ;
31191 void *argp7 = 0 ;
31192 int res7 = 0 ;
31193 PyObject * obj0 = 0 ;
31194 PyObject * obj1 = 0 ;
31195 PyObject * obj2 = 0 ;
31196 PyObject * obj3 = 0 ;
31197 PyObject * obj4 = 0 ;
31198 PyObject * obj5 = 0 ;
31199 PyObject * obj6 = 0 ;
31200 char * kwnames[] = {
31201 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL
31202 };
31203
31204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31206 if (!SWIG_IsOK(res1)) {
31207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31208 }
31209 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31210 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31211 if (!SWIG_IsOK(res2)) {
31212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'");
31213 }
31214 arg2 = reinterpret_cast< wxWindow * >(argp2);
31215 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31216 if (!SWIG_IsOK(res3)) {
31217 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31218 }
31219 if (!argp3) {
31220 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'");
31221 }
31222 arg3 = reinterpret_cast< wxDC * >(argp3);
31223 {
31224 arg4 = &temp4;
31225 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31226 }
31227 if (obj4) {
31228 ecode5 = SWIG_AsVal_int(obj4, &val5);
31229 if (!SWIG_IsOK(ecode5)) {
31230 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'");
31231 }
31232 arg5 = static_cast< int >(val5);
31233 }
31234 if (obj5) {
31235 ecode6 = SWIG_AsVal_int(obj5, &val6);
31236 if (!SWIG_IsOK(ecode6)) {
31237 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'");
31238 }
31239 arg6 = static_cast< wxHeaderSortIconType >(val6);
31240 }
31241 if (obj6) {
31242 res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 );
31243 if (!SWIG_IsOK(res7)) {
31244 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'");
31245 }
31246 arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7);
31247 }
31248 {
31249 PyThreadState* __tstate = wxPyBeginAllowThreads();
31250 (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7);
31251 wxPyEndAllowThreads(__tstate);
31252 if (PyErr_Occurred()) SWIG_fail;
31253 }
31254 resultobj = SWIG_Py_Void();
31255 return resultobj;
31256 fail:
31257 return NULL;
31258 }
31259
31260
31261 SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31262 PyObject *resultobj = 0;
31263 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31264 wxWindow *arg2 = (wxWindow *) 0 ;
31265 int result;
31266 void *argp1 = 0 ;
31267 int res1 = 0 ;
31268 void *argp2 = 0 ;
31269 int res2 = 0 ;
31270 PyObject * obj0 = 0 ;
31271 PyObject * obj1 = 0 ;
31272 char * kwnames[] = {
31273 (char *) "self",(char *) "win", NULL
31274 };
31275
31276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail;
31277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31278 if (!SWIG_IsOK(res1)) {
31279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31280 }
31281 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31282 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31283 if (!SWIG_IsOK(res2)) {
31284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'");
31285 }
31286 arg2 = reinterpret_cast< wxWindow * >(argp2);
31287 {
31288 PyThreadState* __tstate = wxPyBeginAllowThreads();
31289 result = (int)(arg1)->GetHeaderButtonHeight(arg2);
31290 wxPyEndAllowThreads(__tstate);
31291 if (PyErr_Occurred()) SWIG_fail;
31292 }
31293 resultobj = SWIG_From_int(static_cast< int >(result));
31294 return resultobj;
31295 fail:
31296 return NULL;
31297 }
31298
31299
31300 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31301 PyObject *resultobj = 0;
31302 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31303 wxWindow *arg2 = (wxWindow *) 0 ;
31304 wxDC *arg3 = 0 ;
31305 wxRect *arg4 = 0 ;
31306 int arg5 = (int) 0 ;
31307 void *argp1 = 0 ;
31308 int res1 = 0 ;
31309 void *argp2 = 0 ;
31310 int res2 = 0 ;
31311 void *argp3 = 0 ;
31312 int res3 = 0 ;
31313 wxRect temp4 ;
31314 int val5 ;
31315 int ecode5 = 0 ;
31316 PyObject * obj0 = 0 ;
31317 PyObject * obj1 = 0 ;
31318 PyObject * obj2 = 0 ;
31319 PyObject * obj3 = 0 ;
31320 PyObject * obj4 = 0 ;
31321 char * kwnames[] = {
31322 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31323 };
31324
31325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31327 if (!SWIG_IsOK(res1)) {
31328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31329 }
31330 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31331 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31332 if (!SWIG_IsOK(res2)) {
31333 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31334 }
31335 arg2 = reinterpret_cast< wxWindow * >(argp2);
31336 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31337 if (!SWIG_IsOK(res3)) {
31338 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31339 }
31340 if (!argp3) {
31341 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
31342 }
31343 arg3 = reinterpret_cast< wxDC * >(argp3);
31344 {
31345 arg4 = &temp4;
31346 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31347 }
31348 if (obj4) {
31349 ecode5 = SWIG_AsVal_int(obj4, &val5);
31350 if (!SWIG_IsOK(ecode5)) {
31351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
31352 }
31353 arg5 = static_cast< int >(val5);
31354 }
31355 {
31356 PyThreadState* __tstate = wxPyBeginAllowThreads();
31357 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31358 wxPyEndAllowThreads(__tstate);
31359 if (PyErr_Occurred()) SWIG_fail;
31360 }
31361 resultobj = SWIG_Py_Void();
31362 return resultobj;
31363 fail:
31364 return NULL;
31365 }
31366
31367
31368 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31369 PyObject *resultobj = 0;
31370 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31371 wxWindow *arg2 = (wxWindow *) 0 ;
31372 wxDC *arg3 = 0 ;
31373 wxRect *arg4 = 0 ;
31374 int arg5 = (int) 0 ;
31375 void *argp1 = 0 ;
31376 int res1 = 0 ;
31377 void *argp2 = 0 ;
31378 int res2 = 0 ;
31379 void *argp3 = 0 ;
31380 int res3 = 0 ;
31381 wxRect temp4 ;
31382 int val5 ;
31383 int ecode5 = 0 ;
31384 PyObject * obj0 = 0 ;
31385 PyObject * obj1 = 0 ;
31386 PyObject * obj2 = 0 ;
31387 PyObject * obj3 = 0 ;
31388 PyObject * obj4 = 0 ;
31389 char * kwnames[] = {
31390 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31391 };
31392
31393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31395 if (!SWIG_IsOK(res1)) {
31396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31397 }
31398 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31399 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31400 if (!SWIG_IsOK(res2)) {
31401 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
31402 }
31403 arg2 = reinterpret_cast< wxWindow * >(argp2);
31404 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31405 if (!SWIG_IsOK(res3)) {
31406 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31407 }
31408 if (!argp3) {
31409 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
31410 }
31411 arg3 = reinterpret_cast< wxDC * >(argp3);
31412 {
31413 arg4 = &temp4;
31414 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31415 }
31416 if (obj4) {
31417 ecode5 = SWIG_AsVal_int(obj4, &val5);
31418 if (!SWIG_IsOK(ecode5)) {
31419 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
31420 }
31421 arg5 = static_cast< int >(val5);
31422 }
31423 {
31424 PyThreadState* __tstate = wxPyBeginAllowThreads();
31425 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
31426 wxPyEndAllowThreads(__tstate);
31427 if (PyErr_Occurred()) SWIG_fail;
31428 }
31429 resultobj = SWIG_Py_Void();
31430 return resultobj;
31431 fail:
31432 return NULL;
31433 }
31434
31435
31436 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31437 PyObject *resultobj = 0;
31438 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31439 wxWindow *arg2 = (wxWindow *) 0 ;
31440 wxDC *arg3 = 0 ;
31441 wxSize *arg4 = 0 ;
31442 int arg5 ;
31443 wxOrientation arg6 ;
31444 int arg7 = (int) 0 ;
31445 void *argp1 = 0 ;
31446 int res1 = 0 ;
31447 void *argp2 = 0 ;
31448 int res2 = 0 ;
31449 void *argp3 = 0 ;
31450 int res3 = 0 ;
31451 wxSize temp4 ;
31452 int val5 ;
31453 int ecode5 = 0 ;
31454 int val6 ;
31455 int ecode6 = 0 ;
31456 int val7 ;
31457 int ecode7 = 0 ;
31458 PyObject * obj0 = 0 ;
31459 PyObject * obj1 = 0 ;
31460 PyObject * obj2 = 0 ;
31461 PyObject * obj3 = 0 ;
31462 PyObject * obj4 = 0 ;
31463 PyObject * obj5 = 0 ;
31464 PyObject * obj6 = 0 ;
31465 char * kwnames[] = {
31466 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
31467 };
31468
31469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
31470 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31471 if (!SWIG_IsOK(res1)) {
31472 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31473 }
31474 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31475 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31476 if (!SWIG_IsOK(res2)) {
31477 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
31478 }
31479 arg2 = reinterpret_cast< wxWindow * >(argp2);
31480 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31481 if (!SWIG_IsOK(res3)) {
31482 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31483 }
31484 if (!argp3) {
31485 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
31486 }
31487 arg3 = reinterpret_cast< wxDC * >(argp3);
31488 {
31489 arg4 = &temp4;
31490 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
31491 }
31492 ecode5 = SWIG_AsVal_int(obj4, &val5);
31493 if (!SWIG_IsOK(ecode5)) {
31494 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
31495 }
31496 arg5 = static_cast< int >(val5);
31497 ecode6 = SWIG_AsVal_int(obj5, &val6);
31498 if (!SWIG_IsOK(ecode6)) {
31499 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
31500 }
31501 arg6 = static_cast< wxOrientation >(val6);
31502 if (obj6) {
31503 ecode7 = SWIG_AsVal_int(obj6, &val7);
31504 if (!SWIG_IsOK(ecode7)) {
31505 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
31506 }
31507 arg7 = static_cast< int >(val7);
31508 }
31509 {
31510 PyThreadState* __tstate = wxPyBeginAllowThreads();
31511 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
31512 wxPyEndAllowThreads(__tstate);
31513 if (PyErr_Occurred()) SWIG_fail;
31514 }
31515 resultobj = SWIG_Py_Void();
31516 return resultobj;
31517 fail:
31518 return NULL;
31519 }
31520
31521
31522 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31523 PyObject *resultobj = 0;
31524 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31525 wxWindow *arg2 = (wxWindow *) 0 ;
31526 wxDC *arg3 = 0 ;
31527 wxRect *arg4 = 0 ;
31528 int arg5 = (int) 0 ;
31529 void *argp1 = 0 ;
31530 int res1 = 0 ;
31531 void *argp2 = 0 ;
31532 int res2 = 0 ;
31533 void *argp3 = 0 ;
31534 int res3 = 0 ;
31535 wxRect temp4 ;
31536 int val5 ;
31537 int ecode5 = 0 ;
31538 PyObject * obj0 = 0 ;
31539 PyObject * obj1 = 0 ;
31540 PyObject * obj2 = 0 ;
31541 PyObject * obj3 = 0 ;
31542 PyObject * obj4 = 0 ;
31543 char * kwnames[] = {
31544 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31545 };
31546
31547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31549 if (!SWIG_IsOK(res1)) {
31550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31551 }
31552 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31553 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31554 if (!SWIG_IsOK(res2)) {
31555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31556 }
31557 arg2 = reinterpret_cast< wxWindow * >(argp2);
31558 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31559 if (!SWIG_IsOK(res3)) {
31560 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31561 }
31562 if (!argp3) {
31563 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
31564 }
31565 arg3 = reinterpret_cast< wxDC * >(argp3);
31566 {
31567 arg4 = &temp4;
31568 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31569 }
31570 if (obj4) {
31571 ecode5 = SWIG_AsVal_int(obj4, &val5);
31572 if (!SWIG_IsOK(ecode5)) {
31573 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
31574 }
31575 arg5 = static_cast< int >(val5);
31576 }
31577 {
31578 PyThreadState* __tstate = wxPyBeginAllowThreads();
31579 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31580 wxPyEndAllowThreads(__tstate);
31581 if (PyErr_Occurred()) SWIG_fail;
31582 }
31583 resultobj = SWIG_Py_Void();
31584 return resultobj;
31585 fail:
31586 return NULL;
31587 }
31588
31589
31590 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31591 PyObject *resultobj = 0;
31592 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31593 wxWindow *arg2 = (wxWindow *) 0 ;
31594 wxDC *arg3 = 0 ;
31595 wxRect *arg4 = 0 ;
31596 int arg5 = (int) 0 ;
31597 void *argp1 = 0 ;
31598 int res1 = 0 ;
31599 void *argp2 = 0 ;
31600 int res2 = 0 ;
31601 void *argp3 = 0 ;
31602 int res3 = 0 ;
31603 wxRect temp4 ;
31604 int val5 ;
31605 int ecode5 = 0 ;
31606 PyObject * obj0 = 0 ;
31607 PyObject * obj1 = 0 ;
31608 PyObject * obj2 = 0 ;
31609 PyObject * obj3 = 0 ;
31610 PyObject * obj4 = 0 ;
31611 char * kwnames[] = {
31612 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31613 };
31614
31615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31617 if (!SWIG_IsOK(res1)) {
31618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31619 }
31620 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31621 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31622 if (!SWIG_IsOK(res2)) {
31623 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
31624 }
31625 arg2 = reinterpret_cast< wxWindow * >(argp2);
31626 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31627 if (!SWIG_IsOK(res3)) {
31628 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31629 }
31630 if (!argp3) {
31631 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
31632 }
31633 arg3 = reinterpret_cast< wxDC * >(argp3);
31634 {
31635 arg4 = &temp4;
31636 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31637 }
31638 if (obj4) {
31639 ecode5 = SWIG_AsVal_int(obj4, &val5);
31640 if (!SWIG_IsOK(ecode5)) {
31641 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
31642 }
31643 arg5 = static_cast< int >(val5);
31644 }
31645 {
31646 PyThreadState* __tstate = wxPyBeginAllowThreads();
31647 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
31648 wxPyEndAllowThreads(__tstate);
31649 if (PyErr_Occurred()) SWIG_fail;
31650 }
31651 resultobj = SWIG_Py_Void();
31652 return resultobj;
31653 fail:
31654 return NULL;
31655 }
31656
31657
31658 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31659 PyObject *resultobj = 0;
31660 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31661 wxWindow *arg2 = (wxWindow *) 0 ;
31662 wxDC *arg3 = 0 ;
31663 wxRect *arg4 = 0 ;
31664 int arg5 = (int) 0 ;
31665 void *argp1 = 0 ;
31666 int res1 = 0 ;
31667 void *argp2 = 0 ;
31668 int res2 = 0 ;
31669 void *argp3 = 0 ;
31670 int res3 = 0 ;
31671 wxRect temp4 ;
31672 int val5 ;
31673 int ecode5 = 0 ;
31674 PyObject * obj0 = 0 ;
31675 PyObject * obj1 = 0 ;
31676 PyObject * obj2 = 0 ;
31677 PyObject * obj3 = 0 ;
31678 PyObject * obj4 = 0 ;
31679 char * kwnames[] = {
31680 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31681 };
31682
31683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31685 if (!SWIG_IsOK(res1)) {
31686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31687 }
31688 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31689 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31690 if (!SWIG_IsOK(res2)) {
31691 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
31692 }
31693 arg2 = reinterpret_cast< wxWindow * >(argp2);
31694 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31695 if (!SWIG_IsOK(res3)) {
31696 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31697 }
31698 if (!argp3) {
31699 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
31700 }
31701 arg3 = reinterpret_cast< wxDC * >(argp3);
31702 {
31703 arg4 = &temp4;
31704 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31705 }
31706 if (obj4) {
31707 ecode5 = SWIG_AsVal_int(obj4, &val5);
31708 if (!SWIG_IsOK(ecode5)) {
31709 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
31710 }
31711 arg5 = static_cast< int >(val5);
31712 }
31713 {
31714 PyThreadState* __tstate = wxPyBeginAllowThreads();
31715 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
31716 wxPyEndAllowThreads(__tstate);
31717 if (PyErr_Occurred()) SWIG_fail;
31718 }
31719 resultobj = SWIG_Py_Void();
31720 return resultobj;
31721 fail:
31722 return NULL;
31723 }
31724
31725
31726 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31727 PyObject *resultobj = 0;
31728 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31729 wxWindow *arg2 = (wxWindow *) 0 ;
31730 wxDC *arg3 = 0 ;
31731 wxRect *arg4 = 0 ;
31732 int arg5 = (int) 0 ;
31733 void *argp1 = 0 ;
31734 int res1 = 0 ;
31735 void *argp2 = 0 ;
31736 int res2 = 0 ;
31737 void *argp3 = 0 ;
31738 int res3 = 0 ;
31739 wxRect temp4 ;
31740 int val5 ;
31741 int ecode5 = 0 ;
31742 PyObject * obj0 = 0 ;
31743 PyObject * obj1 = 0 ;
31744 PyObject * obj2 = 0 ;
31745 PyObject * obj3 = 0 ;
31746 PyObject * obj4 = 0 ;
31747 char * kwnames[] = {
31748 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31749 };
31750
31751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31753 if (!SWIG_IsOK(res1)) {
31754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31755 }
31756 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31757 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31758 if (!SWIG_IsOK(res2)) {
31759 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
31760 }
31761 arg2 = reinterpret_cast< wxWindow * >(argp2);
31762 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31763 if (!SWIG_IsOK(res3)) {
31764 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31765 }
31766 if (!argp3) {
31767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
31768 }
31769 arg3 = reinterpret_cast< wxDC * >(argp3);
31770 {
31771 arg4 = &temp4;
31772 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31773 }
31774 if (obj4) {
31775 ecode5 = SWIG_AsVal_int(obj4, &val5);
31776 if (!SWIG_IsOK(ecode5)) {
31777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
31778 }
31779 arg5 = static_cast< int >(val5);
31780 }
31781 {
31782 PyThreadState* __tstate = wxPyBeginAllowThreads();
31783 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
31784 wxPyEndAllowThreads(__tstate);
31785 if (PyErr_Occurred()) SWIG_fail;
31786 }
31787 resultobj = SWIG_Py_Void();
31788 return resultobj;
31789 fail:
31790 return NULL;
31791 }
31792
31793
31794 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31795 PyObject *resultobj = 0;
31796 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31797 wxWindow *arg2 = (wxWindow *) 0 ;
31798 wxDC *arg3 = 0 ;
31799 wxRect *arg4 = 0 ;
31800 int arg5 = (int) 0 ;
31801 void *argp1 = 0 ;
31802 int res1 = 0 ;
31803 void *argp2 = 0 ;
31804 int res2 = 0 ;
31805 void *argp3 = 0 ;
31806 int res3 = 0 ;
31807 wxRect temp4 ;
31808 int val5 ;
31809 int ecode5 = 0 ;
31810 PyObject * obj0 = 0 ;
31811 PyObject * obj1 = 0 ;
31812 PyObject * obj2 = 0 ;
31813 PyObject * obj3 = 0 ;
31814 PyObject * obj4 = 0 ;
31815 char * kwnames[] = {
31816 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
31817 };
31818
31819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
31820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31821 if (!SWIG_IsOK(res1)) {
31822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31823 }
31824 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31825 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31826 if (!SWIG_IsOK(res2)) {
31827 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
31828 }
31829 arg2 = reinterpret_cast< wxWindow * >(argp2);
31830 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
31831 if (!SWIG_IsOK(res3)) {
31832 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31833 }
31834 if (!argp3) {
31835 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
31836 }
31837 arg3 = reinterpret_cast< wxDC * >(argp3);
31838 {
31839 arg4 = &temp4;
31840 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
31841 }
31842 if (obj4) {
31843 ecode5 = SWIG_AsVal_int(obj4, &val5);
31844 if (!SWIG_IsOK(ecode5)) {
31845 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
31846 }
31847 arg5 = static_cast< int >(val5);
31848 }
31849 {
31850 PyThreadState* __tstate = wxPyBeginAllowThreads();
31851 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
31852 wxPyEndAllowThreads(__tstate);
31853 if (PyErr_Occurred()) SWIG_fail;
31854 }
31855 resultobj = SWIG_Py_Void();
31856 return resultobj;
31857 fail:
31858 return NULL;
31859 }
31860
31861
31862 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31863 PyObject *resultobj = 0;
31864 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31865 wxWindow *arg2 = (wxWindow *) 0 ;
31866 SwigValueWrapper<wxSplitterRenderParams > result;
31867 void *argp1 = 0 ;
31868 int res1 = 0 ;
31869 void *argp2 = 0 ;
31870 int res2 = 0 ;
31871 PyObject * obj0 = 0 ;
31872 PyObject * obj1 = 0 ;
31873 char * kwnames[] = {
31874 (char *) "self",(char *) "win", NULL
31875 };
31876
31877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
31878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31879 if (!SWIG_IsOK(res1)) {
31880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31881 }
31882 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31883 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
31884 if (!SWIG_IsOK(res2)) {
31885 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
31886 }
31887 arg2 = reinterpret_cast< wxWindow * >(argp2);
31888 {
31889 PyThreadState* __tstate = wxPyBeginAllowThreads();
31890 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
31891 wxPyEndAllowThreads(__tstate);
31892 if (PyErr_Occurred()) SWIG_fail;
31893 }
31894 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
31895 return resultobj;
31896 fail:
31897 return NULL;
31898 }
31899
31900
31901 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31902 PyObject *resultobj = 0;
31903 wxRendererNative *result = 0 ;
31904
31905 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
31906 {
31907 if (!wxPyCheckForApp()) SWIG_fail;
31908 PyThreadState* __tstate = wxPyBeginAllowThreads();
31909 {
31910 wxRendererNative &_result_ref = wxRendererNative::Get();
31911 result = (wxRendererNative *) &_result_ref;
31912 }
31913 wxPyEndAllowThreads(__tstate);
31914 if (PyErr_Occurred()) SWIG_fail;
31915 }
31916 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31917 return resultobj;
31918 fail:
31919 return NULL;
31920 }
31921
31922
31923 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31924 PyObject *resultobj = 0;
31925 wxRendererNative *result = 0 ;
31926
31927 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
31928 {
31929 if (!wxPyCheckForApp()) SWIG_fail;
31930 PyThreadState* __tstate = wxPyBeginAllowThreads();
31931 {
31932 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
31933 result = (wxRendererNative *) &_result_ref;
31934 }
31935 wxPyEndAllowThreads(__tstate);
31936 if (PyErr_Occurred()) SWIG_fail;
31937 }
31938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31939 return resultobj;
31940 fail:
31941 return NULL;
31942 }
31943
31944
31945 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31946 PyObject *resultobj = 0;
31947 wxRendererNative *result = 0 ;
31948
31949 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
31950 {
31951 if (!wxPyCheckForApp()) SWIG_fail;
31952 PyThreadState* __tstate = wxPyBeginAllowThreads();
31953 {
31954 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
31955 result = (wxRendererNative *) &_result_ref;
31956 }
31957 wxPyEndAllowThreads(__tstate);
31958 if (PyErr_Occurred()) SWIG_fail;
31959 }
31960 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31961 return resultobj;
31962 fail:
31963 return NULL;
31964 }
31965
31966
31967 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
31968 PyObject *resultobj = 0;
31969 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
31970 wxRendererNative *result = 0 ;
31971 void *argp1 = 0 ;
31972 int res1 = 0 ;
31973 PyObject * obj0 = 0 ;
31974 char * kwnames[] = {
31975 (char *) "renderer", NULL
31976 };
31977
31978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
31979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
31980 if (!SWIG_IsOK(res1)) {
31981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
31982 }
31983 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
31984 {
31985 if (!wxPyCheckForApp()) SWIG_fail;
31986 PyThreadState* __tstate = wxPyBeginAllowThreads();
31987 result = (wxRendererNative *)wxRendererNative::Set(arg1);
31988 wxPyEndAllowThreads(__tstate);
31989 if (PyErr_Occurred()) SWIG_fail;
31990 }
31991 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
31992 return resultobj;
31993 fail:
31994 return NULL;
31995 }
31996
31997
31998 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
31999 PyObject *resultobj = 0;
32000 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
32001 SwigValueWrapper<wxRendererVersion > result;
32002 void *argp1 = 0 ;
32003 int res1 = 0 ;
32004 PyObject *swig_obj[1] ;
32005
32006 if (!args) SWIG_fail;
32007 swig_obj[0] = args;
32008 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
32009 if (!SWIG_IsOK(res1)) {
32010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
32011 }
32012 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
32013 {
32014 PyThreadState* __tstate = wxPyBeginAllowThreads();
32015 result = ((wxRendererNative const *)arg1)->GetVersion();
32016 wxPyEndAllowThreads(__tstate);
32017 if (PyErr_Occurred()) SWIG_fail;
32018 }
32019 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
32020 return resultobj;
32021 fail:
32022 return NULL;
32023 }
32024
32025
32026 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32027 PyObject *obj;
32028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
32029 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
32030 return SWIG_Py_Void();
32031 }
32032
32033 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32034 PyObject *resultobj = 0;
32035 wxPseudoDC *result = 0 ;
32036
32037 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
32038 {
32039 PyThreadState* __tstate = wxPyBeginAllowThreads();
32040 result = (wxPseudoDC *)new wxPseudoDC();
32041 wxPyEndAllowThreads(__tstate);
32042 if (PyErr_Occurred()) SWIG_fail;
32043 }
32044 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
32045 return resultobj;
32046 fail:
32047 return NULL;
32048 }
32049
32050
32051 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32052 PyObject *resultobj = 0;
32053 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32054 void *argp1 = 0 ;
32055 int res1 = 0 ;
32056 PyObject *swig_obj[1] ;
32057
32058 if (!args) SWIG_fail;
32059 swig_obj[0] = args;
32060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32061 if (!SWIG_IsOK(res1)) {
32062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32063 }
32064 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32065 {
32066 PyThreadState* __tstate = wxPyBeginAllowThreads();
32067 (arg1)->BeginDrawing();
32068 wxPyEndAllowThreads(__tstate);
32069 if (PyErr_Occurred()) SWIG_fail;
32070 }
32071 resultobj = SWIG_Py_Void();
32072 return resultobj;
32073 fail:
32074 return NULL;
32075 }
32076
32077
32078 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32079 PyObject *resultobj = 0;
32080 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32081 void *argp1 = 0 ;
32082 int res1 = 0 ;
32083 PyObject *swig_obj[1] ;
32084
32085 if (!args) SWIG_fail;
32086 swig_obj[0] = args;
32087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32088 if (!SWIG_IsOK(res1)) {
32089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32090 }
32091 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32092 {
32093 PyThreadState* __tstate = wxPyBeginAllowThreads();
32094 (arg1)->EndDrawing();
32095 wxPyEndAllowThreads(__tstate);
32096 if (PyErr_Occurred()) SWIG_fail;
32097 }
32098 resultobj = SWIG_Py_Void();
32099 return resultobj;
32100 fail:
32101 return NULL;
32102 }
32103
32104
32105 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32106 PyObject *resultobj = 0;
32107 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32108 void *argp1 = 0 ;
32109 int res1 = 0 ;
32110 PyObject *swig_obj[1] ;
32111
32112 if (!args) SWIG_fail;
32113 swig_obj[0] = args;
32114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
32115 if (!SWIG_IsOK(res1)) {
32116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32117 }
32118 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32119 {
32120 PyThreadState* __tstate = wxPyBeginAllowThreads();
32121 delete arg1;
32122
32123 wxPyEndAllowThreads(__tstate);
32124 if (PyErr_Occurred()) SWIG_fail;
32125 }
32126 resultobj = SWIG_Py_Void();
32127 return resultobj;
32128 fail:
32129 return NULL;
32130 }
32131
32132
32133 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32134 PyObject *resultobj = 0;
32135 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32136 void *argp1 = 0 ;
32137 int res1 = 0 ;
32138 PyObject *swig_obj[1] ;
32139
32140 if (!args) SWIG_fail;
32141 swig_obj[0] = args;
32142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32143 if (!SWIG_IsOK(res1)) {
32144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32145 }
32146 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32147 {
32148 PyThreadState* __tstate = wxPyBeginAllowThreads();
32149 (arg1)->RemoveAll();
32150 wxPyEndAllowThreads(__tstate);
32151 if (PyErr_Occurred()) SWIG_fail;
32152 }
32153 resultobj = SWIG_Py_Void();
32154 return resultobj;
32155 fail:
32156 return NULL;
32157 }
32158
32159
32160 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
32161 PyObject *resultobj = 0;
32162 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32163 int result;
32164 void *argp1 = 0 ;
32165 int res1 = 0 ;
32166 PyObject *swig_obj[1] ;
32167
32168 if (!args) SWIG_fail;
32169 swig_obj[0] = args;
32170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32171 if (!SWIG_IsOK(res1)) {
32172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32173 }
32174 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32175 {
32176 PyThreadState* __tstate = wxPyBeginAllowThreads();
32177 result = (int)(arg1)->GetLen();
32178 wxPyEndAllowThreads(__tstate);
32179 if (PyErr_Occurred()) SWIG_fail;
32180 }
32181 resultobj = SWIG_From_int(static_cast< int >(result));
32182 return resultobj;
32183 fail:
32184 return NULL;
32185 }
32186
32187
32188 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32189 PyObject *resultobj = 0;
32190 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32191 int arg2 ;
32192 void *argp1 = 0 ;
32193 int res1 = 0 ;
32194 int val2 ;
32195 int ecode2 = 0 ;
32196 PyObject * obj0 = 0 ;
32197 PyObject * obj1 = 0 ;
32198 char * kwnames[] = {
32199 (char *) "self",(char *) "id", NULL
32200 };
32201
32202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
32203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32204 if (!SWIG_IsOK(res1)) {
32205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32206 }
32207 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32208 ecode2 = SWIG_AsVal_int(obj1, &val2);
32209 if (!SWIG_IsOK(ecode2)) {
32210 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
32211 }
32212 arg2 = static_cast< int >(val2);
32213 {
32214 PyThreadState* __tstate = wxPyBeginAllowThreads();
32215 (arg1)->SetId(arg2);
32216 wxPyEndAllowThreads(__tstate);
32217 if (PyErr_Occurred()) SWIG_fail;
32218 }
32219 resultobj = SWIG_Py_Void();
32220 return resultobj;
32221 fail:
32222 return NULL;
32223 }
32224
32225
32226 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32227 PyObject *resultobj = 0;
32228 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32229 int arg2 ;
32230 void *argp1 = 0 ;
32231 int res1 = 0 ;
32232 int val2 ;
32233 int ecode2 = 0 ;
32234 PyObject * obj0 = 0 ;
32235 PyObject * obj1 = 0 ;
32236 char * kwnames[] = {
32237 (char *) "self",(char *) "id", NULL
32238 };
32239
32240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
32241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32242 if (!SWIG_IsOK(res1)) {
32243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32244 }
32245 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32246 ecode2 = SWIG_AsVal_int(obj1, &val2);
32247 if (!SWIG_IsOK(ecode2)) {
32248 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
32249 }
32250 arg2 = static_cast< int >(val2);
32251 {
32252 PyThreadState* __tstate = wxPyBeginAllowThreads();
32253 (arg1)->ClearId(arg2);
32254 wxPyEndAllowThreads(__tstate);
32255 if (PyErr_Occurred()) SWIG_fail;
32256 }
32257 resultobj = SWIG_Py_Void();
32258 return resultobj;
32259 fail:
32260 return NULL;
32261 }
32262
32263
32264 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32265 PyObject *resultobj = 0;
32266 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32267 int arg2 ;
32268 void *argp1 = 0 ;
32269 int res1 = 0 ;
32270 int val2 ;
32271 int ecode2 = 0 ;
32272 PyObject * obj0 = 0 ;
32273 PyObject * obj1 = 0 ;
32274 char * kwnames[] = {
32275 (char *) "self",(char *) "id", NULL
32276 };
32277
32278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
32279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32280 if (!SWIG_IsOK(res1)) {
32281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32282 }
32283 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32284 ecode2 = SWIG_AsVal_int(obj1, &val2);
32285 if (!SWIG_IsOK(ecode2)) {
32286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
32287 }
32288 arg2 = static_cast< int >(val2);
32289 {
32290 PyThreadState* __tstate = wxPyBeginAllowThreads();
32291 (arg1)->RemoveId(arg2);
32292 wxPyEndAllowThreads(__tstate);
32293 if (PyErr_Occurred()) SWIG_fail;
32294 }
32295 resultobj = SWIG_Py_Void();
32296 return resultobj;
32297 fail:
32298 return NULL;
32299 }
32300
32301
32302 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32303 PyObject *resultobj = 0;
32304 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32305 int arg2 ;
32306 int arg3 ;
32307 int arg4 ;
32308 void *argp1 = 0 ;
32309 int res1 = 0 ;
32310 int val2 ;
32311 int ecode2 = 0 ;
32312 int val3 ;
32313 int ecode3 = 0 ;
32314 int val4 ;
32315 int ecode4 = 0 ;
32316 PyObject * obj0 = 0 ;
32317 PyObject * obj1 = 0 ;
32318 PyObject * obj2 = 0 ;
32319 PyObject * obj3 = 0 ;
32320 char * kwnames[] = {
32321 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
32322 };
32323
32324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32326 if (!SWIG_IsOK(res1)) {
32327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32328 }
32329 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32330 ecode2 = SWIG_AsVal_int(obj1, &val2);
32331 if (!SWIG_IsOK(ecode2)) {
32332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
32333 }
32334 arg2 = static_cast< int >(val2);
32335 ecode3 = SWIG_AsVal_int(obj2, &val3);
32336 if (!SWIG_IsOK(ecode3)) {
32337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
32338 }
32339 arg3 = static_cast< int >(val3);
32340 ecode4 = SWIG_AsVal_int(obj3, &val4);
32341 if (!SWIG_IsOK(ecode4)) {
32342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
32343 }
32344 arg4 = static_cast< int >(val4);
32345 {
32346 PyThreadState* __tstate = wxPyBeginAllowThreads();
32347 (arg1)->TranslateId(arg2,arg3,arg4);
32348 wxPyEndAllowThreads(__tstate);
32349 if (PyErr_Occurred()) SWIG_fail;
32350 }
32351 resultobj = SWIG_Py_Void();
32352 return resultobj;
32353 fail:
32354 return NULL;
32355 }
32356
32357
32358 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32359 PyObject *resultobj = 0;
32360 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32361 int arg2 ;
32362 bool arg3 = (bool) true ;
32363 void *argp1 = 0 ;
32364 int res1 = 0 ;
32365 int val2 ;
32366 int ecode2 = 0 ;
32367 bool val3 ;
32368 int ecode3 = 0 ;
32369 PyObject * obj0 = 0 ;
32370 PyObject * obj1 = 0 ;
32371 PyObject * obj2 = 0 ;
32372 char * kwnames[] = {
32373 (char *) "self",(char *) "id",(char *) "greyout", NULL
32374 };
32375
32376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32378 if (!SWIG_IsOK(res1)) {
32379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32380 }
32381 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32382 ecode2 = SWIG_AsVal_int(obj1, &val2);
32383 if (!SWIG_IsOK(ecode2)) {
32384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32385 }
32386 arg2 = static_cast< int >(val2);
32387 if (obj2) {
32388 ecode3 = SWIG_AsVal_bool(obj2, &val3);
32389 if (!SWIG_IsOK(ecode3)) {
32390 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'");
32391 }
32392 arg3 = static_cast< bool >(val3);
32393 }
32394 {
32395 PyThreadState* __tstate = wxPyBeginAllowThreads();
32396 (arg1)->SetIdGreyedOut(arg2,arg3);
32397 wxPyEndAllowThreads(__tstate);
32398 if (PyErr_Occurred()) SWIG_fail;
32399 }
32400 resultobj = SWIG_Py_Void();
32401 return resultobj;
32402 fail:
32403 return NULL;
32404 }
32405
32406
32407 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32408 PyObject *resultobj = 0;
32409 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32410 int arg2 ;
32411 bool result;
32412 void *argp1 = 0 ;
32413 int res1 = 0 ;
32414 int val2 ;
32415 int ecode2 = 0 ;
32416 PyObject * obj0 = 0 ;
32417 PyObject * obj1 = 0 ;
32418 char * kwnames[] = {
32419 (char *) "self",(char *) "id", NULL
32420 };
32421
32422 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail;
32423 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32424 if (!SWIG_IsOK(res1)) {
32425 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32426 }
32427 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32428 ecode2 = SWIG_AsVal_int(obj1, &val2);
32429 if (!SWIG_IsOK(ecode2)) {
32430 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'");
32431 }
32432 arg2 = static_cast< int >(val2);
32433 {
32434 PyThreadState* __tstate = wxPyBeginAllowThreads();
32435 result = (bool)(arg1)->GetIdGreyedOut(arg2);
32436 wxPyEndAllowThreads(__tstate);
32437 if (PyErr_Occurred()) SWIG_fail;
32438 }
32439 {
32440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
32441 }
32442 return resultobj;
32443 fail:
32444 return NULL;
32445 }
32446
32447
32448 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32449 PyObject *resultobj = 0;
32450 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32451 int arg2 ;
32452 int arg3 ;
32453 int arg4 = (int) 1 ;
32454 wxColor const &arg5_defvalue = *wxWHITE ;
32455 wxColor *arg5 = (wxColor *) &arg5_defvalue ;
32456 PyObject *result = 0 ;
32457 void *argp1 = 0 ;
32458 int res1 = 0 ;
32459 int val2 ;
32460 int ecode2 = 0 ;
32461 int val3 ;
32462 int ecode3 = 0 ;
32463 int val4 ;
32464 int ecode4 = 0 ;
32465 void *argp5 = 0 ;
32466 int res5 = 0 ;
32467 PyObject * obj0 = 0 ;
32468 PyObject * obj1 = 0 ;
32469 PyObject * obj2 = 0 ;
32470 PyObject * obj3 = 0 ;
32471 PyObject * obj4 = 0 ;
32472 char * kwnames[] = {
32473 (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL
32474 };
32475
32476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32478 if (!SWIG_IsOK(res1)) {
32479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32480 }
32481 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32482 ecode2 = SWIG_AsVal_int(obj1, &val2);
32483 if (!SWIG_IsOK(ecode2)) {
32484 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'");
32485 }
32486 arg2 = static_cast< int >(val2);
32487 ecode3 = SWIG_AsVal_int(obj2, &val3);
32488 if (!SWIG_IsOK(ecode3)) {
32489 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'");
32490 }
32491 arg3 = static_cast< int >(val3);
32492 if (obj3) {
32493 ecode4 = SWIG_AsVal_int(obj3, &val4);
32494 if (!SWIG_IsOK(ecode4)) {
32495 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'");
32496 }
32497 arg4 = static_cast< int >(val4);
32498 }
32499 if (obj4) {
32500 res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0);
32501 if (!SWIG_IsOK(res5)) {
32502 SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32503 }
32504 if (!argp5) {
32505 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'");
32506 }
32507 arg5 = reinterpret_cast< wxColor * >(argp5);
32508 }
32509 {
32510 result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5);
32511 if (PyErr_Occurred()) SWIG_fail;
32512 }
32513 resultobj = result;
32514 return resultobj;
32515 fail:
32516 return NULL;
32517 }
32518
32519
32520 SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32521 PyObject *resultobj = 0;
32522 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32523 int arg2 ;
32524 int arg3 ;
32525 PyObject *result = 0 ;
32526 void *argp1 = 0 ;
32527 int res1 = 0 ;
32528 int val2 ;
32529 int ecode2 = 0 ;
32530 int val3 ;
32531 int ecode3 = 0 ;
32532 PyObject * obj0 = 0 ;
32533 PyObject * obj1 = 0 ;
32534 PyObject * obj2 = 0 ;
32535 char * kwnames[] = {
32536 (char *) "self",(char *) "x",(char *) "y", NULL
32537 };
32538
32539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32541 if (!SWIG_IsOK(res1)) {
32542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32543 }
32544 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32545 ecode2 = SWIG_AsVal_int(obj1, &val2);
32546 if (!SWIG_IsOK(ecode2)) {
32547 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'");
32548 }
32549 arg2 = static_cast< int >(val2);
32550 ecode3 = SWIG_AsVal_int(obj2, &val3);
32551 if (!SWIG_IsOK(ecode3)) {
32552 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'");
32553 }
32554 arg3 = static_cast< int >(val3);
32555 {
32556 result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3);
32557 if (PyErr_Occurred()) SWIG_fail;
32558 }
32559 resultobj = result;
32560 return resultobj;
32561 fail:
32562 return NULL;
32563 }
32564
32565
32566 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32567 PyObject *resultobj = 0;
32568 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32569 int arg2 ;
32570 wxDC *arg3 = (wxDC *) 0 ;
32571 void *argp1 = 0 ;
32572 int res1 = 0 ;
32573 int val2 ;
32574 int ecode2 = 0 ;
32575 void *argp3 = 0 ;
32576 int res3 = 0 ;
32577 PyObject * obj0 = 0 ;
32578 PyObject * obj1 = 0 ;
32579 PyObject * obj2 = 0 ;
32580 char * kwnames[] = {
32581 (char *) "self",(char *) "id",(char *) "dc", NULL
32582 };
32583
32584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32586 if (!SWIG_IsOK(res1)) {
32587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32588 }
32589 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32590 ecode2 = SWIG_AsVal_int(obj1, &val2);
32591 if (!SWIG_IsOK(ecode2)) {
32592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
32593 }
32594 arg2 = static_cast< int >(val2);
32595 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
32596 if (!SWIG_IsOK(res3)) {
32597 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
32598 }
32599 arg3 = reinterpret_cast< wxDC * >(argp3);
32600 {
32601 PyThreadState* __tstate = wxPyBeginAllowThreads();
32602 (arg1)->DrawIdToDC(arg2,arg3);
32603 wxPyEndAllowThreads(__tstate);
32604 if (PyErr_Occurred()) SWIG_fail;
32605 }
32606 resultobj = SWIG_Py_Void();
32607 return resultobj;
32608 fail:
32609 return NULL;
32610 }
32611
32612
32613 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32614 PyObject *resultobj = 0;
32615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32616 int arg2 ;
32617 wxRect *arg3 = 0 ;
32618 void *argp1 = 0 ;
32619 int res1 = 0 ;
32620 int val2 ;
32621 int ecode2 = 0 ;
32622 wxRect temp3 ;
32623 PyObject * obj0 = 0 ;
32624 PyObject * obj1 = 0 ;
32625 PyObject * obj2 = 0 ;
32626 char * kwnames[] = {
32627 (char *) "self",(char *) "id",(char *) "rect", NULL
32628 };
32629
32630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32632 if (!SWIG_IsOK(res1)) {
32633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32634 }
32635 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32636 ecode2 = SWIG_AsVal_int(obj1, &val2);
32637 if (!SWIG_IsOK(ecode2)) {
32638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
32639 }
32640 arg2 = static_cast< int >(val2);
32641 {
32642 arg3 = &temp3;
32643 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32644 }
32645 {
32646 PyThreadState* __tstate = wxPyBeginAllowThreads();
32647 (arg1)->SetIdBounds(arg2,*arg3);
32648 wxPyEndAllowThreads(__tstate);
32649 if (PyErr_Occurred()) SWIG_fail;
32650 }
32651 resultobj = SWIG_Py_Void();
32652 return resultobj;
32653 fail:
32654 return NULL;
32655 }
32656
32657
32658 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32659 PyObject *resultobj = 0;
32660 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32661 int arg2 ;
32662 wxRect result;
32663 void *argp1 = 0 ;
32664 int res1 = 0 ;
32665 int val2 ;
32666 int ecode2 = 0 ;
32667 PyObject * obj0 = 0 ;
32668 PyObject * obj1 = 0 ;
32669 char * kwnames[] = {
32670 (char *) "self",(char *) "id", NULL
32671 };
32672
32673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
32674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32675 if (!SWIG_IsOK(res1)) {
32676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32677 }
32678 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32679 ecode2 = SWIG_AsVal_int(obj1, &val2);
32680 if (!SWIG_IsOK(ecode2)) {
32681 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
32682 }
32683 arg2 = static_cast< int >(val2);
32684 {
32685 PyThreadState* __tstate = wxPyBeginAllowThreads();
32686 result = wxPseudoDC_GetIdBounds(arg1,arg2);
32687 wxPyEndAllowThreads(__tstate);
32688 if (PyErr_Occurred()) SWIG_fail;
32689 }
32690 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
32691 return resultobj;
32692 fail:
32693 return NULL;
32694 }
32695
32696
32697 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32698 PyObject *resultobj = 0;
32699 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32700 wxDC *arg2 = (wxDC *) 0 ;
32701 wxRect *arg3 = 0 ;
32702 void *argp1 = 0 ;
32703 int res1 = 0 ;
32704 void *argp2 = 0 ;
32705 int res2 = 0 ;
32706 wxRect temp3 ;
32707 PyObject * obj0 = 0 ;
32708 PyObject * obj1 = 0 ;
32709 PyObject * obj2 = 0 ;
32710 char * kwnames[] = {
32711 (char *) "self",(char *) "dc",(char *) "rect", NULL
32712 };
32713
32714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32716 if (!SWIG_IsOK(res1)) {
32717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32718 }
32719 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32720 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32721 if (!SWIG_IsOK(res2)) {
32722 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
32723 }
32724 arg2 = reinterpret_cast< wxDC * >(argp2);
32725 {
32726 arg3 = &temp3;
32727 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
32728 }
32729 {
32730 PyThreadState* __tstate = wxPyBeginAllowThreads();
32731 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
32732 wxPyEndAllowThreads(__tstate);
32733 if (PyErr_Occurred()) SWIG_fail;
32734 }
32735 resultobj = SWIG_Py_Void();
32736 return resultobj;
32737 fail:
32738 return NULL;
32739 }
32740
32741
32742 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32743 PyObject *resultobj = 0;
32744 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32745 wxDC *arg2 = (wxDC *) 0 ;
32746 wxRegion *arg3 = 0 ;
32747 void *argp1 = 0 ;
32748 int res1 = 0 ;
32749 void *argp2 = 0 ;
32750 int res2 = 0 ;
32751 void *argp3 = 0 ;
32752 int res3 = 0 ;
32753 PyObject * obj0 = 0 ;
32754 PyObject * obj1 = 0 ;
32755 PyObject * obj2 = 0 ;
32756 char * kwnames[] = {
32757 (char *) "self",(char *) "dc",(char *) "region", NULL
32758 };
32759
32760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
32761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32762 if (!SWIG_IsOK(res1)) {
32763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32764 }
32765 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32766 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32767 if (!SWIG_IsOK(res2)) {
32768 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
32769 }
32770 arg2 = reinterpret_cast< wxDC * >(argp2);
32771 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
32772 if (!SWIG_IsOK(res3)) {
32773 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32774 }
32775 if (!argp3) {
32776 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
32777 }
32778 arg3 = reinterpret_cast< wxRegion * >(argp3);
32779 {
32780 PyThreadState* __tstate = wxPyBeginAllowThreads();
32781 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
32782 wxPyEndAllowThreads(__tstate);
32783 if (PyErr_Occurred()) SWIG_fail;
32784 }
32785 resultobj = SWIG_Py_Void();
32786 return resultobj;
32787 fail:
32788 return NULL;
32789 }
32790
32791
32792 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32793 PyObject *resultobj = 0;
32794 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32795 wxDC *arg2 = (wxDC *) 0 ;
32796 void *argp1 = 0 ;
32797 int res1 = 0 ;
32798 void *argp2 = 0 ;
32799 int res2 = 0 ;
32800 PyObject * obj0 = 0 ;
32801 PyObject * obj1 = 0 ;
32802 char * kwnames[] = {
32803 (char *) "self",(char *) "dc", NULL
32804 };
32805
32806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
32807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32808 if (!SWIG_IsOK(res1)) {
32809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32810 }
32811 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32812 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
32813 if (!SWIG_IsOK(res2)) {
32814 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
32815 }
32816 arg2 = reinterpret_cast< wxDC * >(argp2);
32817 {
32818 PyThreadState* __tstate = wxPyBeginAllowThreads();
32819 (arg1)->DrawToDC(arg2);
32820 wxPyEndAllowThreads(__tstate);
32821 if (PyErr_Occurred()) SWIG_fail;
32822 }
32823 resultobj = SWIG_Py_Void();
32824 return resultobj;
32825 fail:
32826 return NULL;
32827 }
32828
32829
32830 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32831 PyObject *resultobj = 0;
32832 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32833 int arg2 ;
32834 int arg3 ;
32835 wxColour *arg4 = 0 ;
32836 int arg5 = (int) wxFLOOD_SURFACE ;
32837 void *argp1 = 0 ;
32838 int res1 = 0 ;
32839 int val2 ;
32840 int ecode2 = 0 ;
32841 int val3 ;
32842 int ecode3 = 0 ;
32843 wxColour temp4 ;
32844 int val5 ;
32845 int ecode5 = 0 ;
32846 PyObject * obj0 = 0 ;
32847 PyObject * obj1 = 0 ;
32848 PyObject * obj2 = 0 ;
32849 PyObject * obj3 = 0 ;
32850 PyObject * obj4 = 0 ;
32851 char * kwnames[] = {
32852 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
32853 };
32854
32855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32857 if (!SWIG_IsOK(res1)) {
32858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32859 }
32860 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32861 ecode2 = SWIG_AsVal_int(obj1, &val2);
32862 if (!SWIG_IsOK(ecode2)) {
32863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
32864 }
32865 arg2 = static_cast< int >(val2);
32866 ecode3 = SWIG_AsVal_int(obj2, &val3);
32867 if (!SWIG_IsOK(ecode3)) {
32868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
32869 }
32870 arg3 = static_cast< int >(val3);
32871 {
32872 arg4 = &temp4;
32873 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
32874 }
32875 if (obj4) {
32876 ecode5 = SWIG_AsVal_int(obj4, &val5);
32877 if (!SWIG_IsOK(ecode5)) {
32878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
32879 }
32880 arg5 = static_cast< int >(val5);
32881 }
32882 {
32883 PyThreadState* __tstate = wxPyBeginAllowThreads();
32884 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
32885 wxPyEndAllowThreads(__tstate);
32886 if (PyErr_Occurred()) SWIG_fail;
32887 }
32888 resultobj = SWIG_Py_Void();
32889 return resultobj;
32890 fail:
32891 return NULL;
32892 }
32893
32894
32895 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32896 PyObject *resultobj = 0;
32897 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32898 wxPoint *arg2 = 0 ;
32899 wxColour *arg3 = 0 ;
32900 int arg4 = (int) wxFLOOD_SURFACE ;
32901 void *argp1 = 0 ;
32902 int res1 = 0 ;
32903 wxPoint temp2 ;
32904 wxColour temp3 ;
32905 int val4 ;
32906 int ecode4 = 0 ;
32907 PyObject * obj0 = 0 ;
32908 PyObject * obj1 = 0 ;
32909 PyObject * obj2 = 0 ;
32910 PyObject * obj3 = 0 ;
32911 char * kwnames[] = {
32912 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
32913 };
32914
32915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
32916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32917 if (!SWIG_IsOK(res1)) {
32918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32919 }
32920 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32921 {
32922 arg2 = &temp2;
32923 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
32924 }
32925 {
32926 arg3 = &temp3;
32927 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
32928 }
32929 if (obj3) {
32930 ecode4 = SWIG_AsVal_int(obj3, &val4);
32931 if (!SWIG_IsOK(ecode4)) {
32932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
32933 }
32934 arg4 = static_cast< int >(val4);
32935 }
32936 {
32937 PyThreadState* __tstate = wxPyBeginAllowThreads();
32938 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
32939 wxPyEndAllowThreads(__tstate);
32940 if (PyErr_Occurred()) SWIG_fail;
32941 }
32942 resultobj = SWIG_Py_Void();
32943 return resultobj;
32944 fail:
32945 return NULL;
32946 }
32947
32948
32949 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
32950 PyObject *resultobj = 0;
32951 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
32952 int arg2 ;
32953 int arg3 ;
32954 int arg4 ;
32955 int arg5 ;
32956 void *argp1 = 0 ;
32957 int res1 = 0 ;
32958 int val2 ;
32959 int ecode2 = 0 ;
32960 int val3 ;
32961 int ecode3 = 0 ;
32962 int val4 ;
32963 int ecode4 = 0 ;
32964 int val5 ;
32965 int ecode5 = 0 ;
32966 PyObject * obj0 = 0 ;
32967 PyObject * obj1 = 0 ;
32968 PyObject * obj2 = 0 ;
32969 PyObject * obj3 = 0 ;
32970 PyObject * obj4 = 0 ;
32971 char * kwnames[] = {
32972 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
32973 };
32974
32975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
32976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
32977 if (!SWIG_IsOK(res1)) {
32978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
32979 }
32980 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
32981 ecode2 = SWIG_AsVal_int(obj1, &val2);
32982 if (!SWIG_IsOK(ecode2)) {
32983 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
32984 }
32985 arg2 = static_cast< int >(val2);
32986 ecode3 = SWIG_AsVal_int(obj2, &val3);
32987 if (!SWIG_IsOK(ecode3)) {
32988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
32989 }
32990 arg3 = static_cast< int >(val3);
32991 ecode4 = SWIG_AsVal_int(obj3, &val4);
32992 if (!SWIG_IsOK(ecode4)) {
32993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
32994 }
32995 arg4 = static_cast< int >(val4);
32996 ecode5 = SWIG_AsVal_int(obj4, &val5);
32997 if (!SWIG_IsOK(ecode5)) {
32998 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
32999 }
33000 arg5 = static_cast< int >(val5);
33001 {
33002 PyThreadState* __tstate = wxPyBeginAllowThreads();
33003 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
33004 wxPyEndAllowThreads(__tstate);
33005 if (PyErr_Occurred()) SWIG_fail;
33006 }
33007 resultobj = SWIG_Py_Void();
33008 return resultobj;
33009 fail:
33010 return NULL;
33011 }
33012
33013
33014 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33015 PyObject *resultobj = 0;
33016 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33017 wxPoint *arg2 = 0 ;
33018 wxPoint *arg3 = 0 ;
33019 void *argp1 = 0 ;
33020 int res1 = 0 ;
33021 wxPoint temp2 ;
33022 wxPoint temp3 ;
33023 PyObject * obj0 = 0 ;
33024 PyObject * obj1 = 0 ;
33025 PyObject * obj2 = 0 ;
33026 char * kwnames[] = {
33027 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
33028 };
33029
33030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33032 if (!SWIG_IsOK(res1)) {
33033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33034 }
33035 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33036 {
33037 arg2 = &temp2;
33038 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33039 }
33040 {
33041 arg3 = &temp3;
33042 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33043 }
33044 {
33045 PyThreadState* __tstate = wxPyBeginAllowThreads();
33046 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
33047 wxPyEndAllowThreads(__tstate);
33048 if (PyErr_Occurred()) SWIG_fail;
33049 }
33050 resultobj = SWIG_Py_Void();
33051 return resultobj;
33052 fail:
33053 return NULL;
33054 }
33055
33056
33057 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33058 PyObject *resultobj = 0;
33059 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33060 int arg2 ;
33061 int arg3 ;
33062 void *argp1 = 0 ;
33063 int res1 = 0 ;
33064 int val2 ;
33065 int ecode2 = 0 ;
33066 int val3 ;
33067 int ecode3 = 0 ;
33068 PyObject * obj0 = 0 ;
33069 PyObject * obj1 = 0 ;
33070 PyObject * obj2 = 0 ;
33071 char * kwnames[] = {
33072 (char *) "self",(char *) "x",(char *) "y", NULL
33073 };
33074
33075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33077 if (!SWIG_IsOK(res1)) {
33078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33079 }
33080 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33081 ecode2 = SWIG_AsVal_int(obj1, &val2);
33082 if (!SWIG_IsOK(ecode2)) {
33083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
33084 }
33085 arg2 = static_cast< int >(val2);
33086 ecode3 = SWIG_AsVal_int(obj2, &val3);
33087 if (!SWIG_IsOK(ecode3)) {
33088 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
33089 }
33090 arg3 = static_cast< int >(val3);
33091 {
33092 PyThreadState* __tstate = wxPyBeginAllowThreads();
33093 (arg1)->CrossHair(arg2,arg3);
33094 wxPyEndAllowThreads(__tstate);
33095 if (PyErr_Occurred()) SWIG_fail;
33096 }
33097 resultobj = SWIG_Py_Void();
33098 return resultobj;
33099 fail:
33100 return NULL;
33101 }
33102
33103
33104 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33105 PyObject *resultobj = 0;
33106 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33107 wxPoint *arg2 = 0 ;
33108 void *argp1 = 0 ;
33109 int res1 = 0 ;
33110 wxPoint temp2 ;
33111 PyObject * obj0 = 0 ;
33112 PyObject * obj1 = 0 ;
33113 char * kwnames[] = {
33114 (char *) "self",(char *) "pt", NULL
33115 };
33116
33117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33119 if (!SWIG_IsOK(res1)) {
33120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33121 }
33122 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33123 {
33124 arg2 = &temp2;
33125 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33126 }
33127 {
33128 PyThreadState* __tstate = wxPyBeginAllowThreads();
33129 (arg1)->CrossHair((wxPoint const &)*arg2);
33130 wxPyEndAllowThreads(__tstate);
33131 if (PyErr_Occurred()) SWIG_fail;
33132 }
33133 resultobj = SWIG_Py_Void();
33134 return resultobj;
33135 fail:
33136 return NULL;
33137 }
33138
33139
33140 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33141 PyObject *resultobj = 0;
33142 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33143 int arg2 ;
33144 int arg3 ;
33145 int arg4 ;
33146 int arg5 ;
33147 int arg6 ;
33148 int arg7 ;
33149 void *argp1 = 0 ;
33150 int res1 = 0 ;
33151 int val2 ;
33152 int ecode2 = 0 ;
33153 int val3 ;
33154 int ecode3 = 0 ;
33155 int val4 ;
33156 int ecode4 = 0 ;
33157 int val5 ;
33158 int ecode5 = 0 ;
33159 int val6 ;
33160 int ecode6 = 0 ;
33161 int val7 ;
33162 int ecode7 = 0 ;
33163 PyObject * obj0 = 0 ;
33164 PyObject * obj1 = 0 ;
33165 PyObject * obj2 = 0 ;
33166 PyObject * obj3 = 0 ;
33167 PyObject * obj4 = 0 ;
33168 PyObject * obj5 = 0 ;
33169 PyObject * obj6 = 0 ;
33170 char * kwnames[] = {
33171 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
33172 };
33173
33174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33176 if (!SWIG_IsOK(res1)) {
33177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33178 }
33179 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33180 ecode2 = SWIG_AsVal_int(obj1, &val2);
33181 if (!SWIG_IsOK(ecode2)) {
33182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
33183 }
33184 arg2 = static_cast< int >(val2);
33185 ecode3 = SWIG_AsVal_int(obj2, &val3);
33186 if (!SWIG_IsOK(ecode3)) {
33187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
33188 }
33189 arg3 = static_cast< int >(val3);
33190 ecode4 = SWIG_AsVal_int(obj3, &val4);
33191 if (!SWIG_IsOK(ecode4)) {
33192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
33193 }
33194 arg4 = static_cast< int >(val4);
33195 ecode5 = SWIG_AsVal_int(obj4, &val5);
33196 if (!SWIG_IsOK(ecode5)) {
33197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
33198 }
33199 arg5 = static_cast< int >(val5);
33200 ecode6 = SWIG_AsVal_int(obj5, &val6);
33201 if (!SWIG_IsOK(ecode6)) {
33202 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
33203 }
33204 arg6 = static_cast< int >(val6);
33205 ecode7 = SWIG_AsVal_int(obj6, &val7);
33206 if (!SWIG_IsOK(ecode7)) {
33207 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
33208 }
33209 arg7 = static_cast< int >(val7);
33210 {
33211 PyThreadState* __tstate = wxPyBeginAllowThreads();
33212 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
33213 wxPyEndAllowThreads(__tstate);
33214 if (PyErr_Occurred()) SWIG_fail;
33215 }
33216 resultobj = SWIG_Py_Void();
33217 return resultobj;
33218 fail:
33219 return NULL;
33220 }
33221
33222
33223 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33224 PyObject *resultobj = 0;
33225 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33226 wxPoint *arg2 = 0 ;
33227 wxPoint *arg3 = 0 ;
33228 wxPoint *arg4 = 0 ;
33229 void *argp1 = 0 ;
33230 int res1 = 0 ;
33231 wxPoint temp2 ;
33232 wxPoint temp3 ;
33233 wxPoint temp4 ;
33234 PyObject * obj0 = 0 ;
33235 PyObject * obj1 = 0 ;
33236 PyObject * obj2 = 0 ;
33237 PyObject * obj3 = 0 ;
33238 char * kwnames[] = {
33239 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
33240 };
33241
33242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33244 if (!SWIG_IsOK(res1)) {
33245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33246 }
33247 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33248 {
33249 arg2 = &temp2;
33250 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33251 }
33252 {
33253 arg3 = &temp3;
33254 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
33255 }
33256 {
33257 arg4 = &temp4;
33258 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
33259 }
33260 {
33261 PyThreadState* __tstate = wxPyBeginAllowThreads();
33262 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
33263 wxPyEndAllowThreads(__tstate);
33264 if (PyErr_Occurred()) SWIG_fail;
33265 }
33266 resultobj = SWIG_Py_Void();
33267 return resultobj;
33268 fail:
33269 return NULL;
33270 }
33271
33272
33273 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33274 PyObject *resultobj = 0;
33275 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33276 int arg2 ;
33277 int arg3 ;
33278 int arg4 ;
33279 int arg5 ;
33280 void *argp1 = 0 ;
33281 int res1 = 0 ;
33282 int val2 ;
33283 int ecode2 = 0 ;
33284 int val3 ;
33285 int ecode3 = 0 ;
33286 int val4 ;
33287 int ecode4 = 0 ;
33288 int val5 ;
33289 int ecode5 = 0 ;
33290 PyObject * obj0 = 0 ;
33291 PyObject * obj1 = 0 ;
33292 PyObject * obj2 = 0 ;
33293 PyObject * obj3 = 0 ;
33294 PyObject * obj4 = 0 ;
33295 char * kwnames[] = {
33296 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33297 };
33298
33299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33301 if (!SWIG_IsOK(res1)) {
33302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33303 }
33304 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33305 ecode2 = SWIG_AsVal_int(obj1, &val2);
33306 if (!SWIG_IsOK(ecode2)) {
33307 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
33308 }
33309 arg2 = static_cast< int >(val2);
33310 ecode3 = SWIG_AsVal_int(obj2, &val3);
33311 if (!SWIG_IsOK(ecode3)) {
33312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
33313 }
33314 arg3 = static_cast< int >(val3);
33315 ecode4 = SWIG_AsVal_int(obj3, &val4);
33316 if (!SWIG_IsOK(ecode4)) {
33317 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
33318 }
33319 arg4 = static_cast< int >(val4);
33320 ecode5 = SWIG_AsVal_int(obj4, &val5);
33321 if (!SWIG_IsOK(ecode5)) {
33322 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
33323 }
33324 arg5 = static_cast< int >(val5);
33325 {
33326 PyThreadState* __tstate = wxPyBeginAllowThreads();
33327 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
33328 wxPyEndAllowThreads(__tstate);
33329 if (PyErr_Occurred()) SWIG_fail;
33330 }
33331 resultobj = SWIG_Py_Void();
33332 return resultobj;
33333 fail:
33334 return NULL;
33335 }
33336
33337
33338 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33339 PyObject *resultobj = 0;
33340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33341 wxRect *arg2 = 0 ;
33342 void *argp1 = 0 ;
33343 int res1 = 0 ;
33344 wxRect temp2 ;
33345 PyObject * obj0 = 0 ;
33346 PyObject * obj1 = 0 ;
33347 char * kwnames[] = {
33348 (char *) "self",(char *) "rect", NULL
33349 };
33350
33351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
33352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33353 if (!SWIG_IsOK(res1)) {
33354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33355 }
33356 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33357 {
33358 arg2 = &temp2;
33359 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33360 }
33361 {
33362 PyThreadState* __tstate = wxPyBeginAllowThreads();
33363 (arg1)->DrawCheckMark((wxRect const &)*arg2);
33364 wxPyEndAllowThreads(__tstate);
33365 if (PyErr_Occurred()) SWIG_fail;
33366 }
33367 resultobj = SWIG_Py_Void();
33368 return resultobj;
33369 fail:
33370 return NULL;
33371 }
33372
33373
33374 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33375 PyObject *resultobj = 0;
33376 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33377 int arg2 ;
33378 int arg3 ;
33379 int arg4 ;
33380 int arg5 ;
33381 double arg6 ;
33382 double arg7 ;
33383 void *argp1 = 0 ;
33384 int res1 = 0 ;
33385 int val2 ;
33386 int ecode2 = 0 ;
33387 int val3 ;
33388 int ecode3 = 0 ;
33389 int val4 ;
33390 int ecode4 = 0 ;
33391 int val5 ;
33392 int ecode5 = 0 ;
33393 double val6 ;
33394 int ecode6 = 0 ;
33395 double val7 ;
33396 int ecode7 = 0 ;
33397 PyObject * obj0 = 0 ;
33398 PyObject * obj1 = 0 ;
33399 PyObject * obj2 = 0 ;
33400 PyObject * obj3 = 0 ;
33401 PyObject * obj4 = 0 ;
33402 PyObject * obj5 = 0 ;
33403 PyObject * obj6 = 0 ;
33404 char * kwnames[] = {
33405 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
33406 };
33407
33408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
33409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33410 if (!SWIG_IsOK(res1)) {
33411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33412 }
33413 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33414 ecode2 = SWIG_AsVal_int(obj1, &val2);
33415 if (!SWIG_IsOK(ecode2)) {
33416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
33417 }
33418 arg2 = static_cast< int >(val2);
33419 ecode3 = SWIG_AsVal_int(obj2, &val3);
33420 if (!SWIG_IsOK(ecode3)) {
33421 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
33422 }
33423 arg3 = static_cast< int >(val3);
33424 ecode4 = SWIG_AsVal_int(obj3, &val4);
33425 if (!SWIG_IsOK(ecode4)) {
33426 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
33427 }
33428 arg4 = static_cast< int >(val4);
33429 ecode5 = SWIG_AsVal_int(obj4, &val5);
33430 if (!SWIG_IsOK(ecode5)) {
33431 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
33432 }
33433 arg5 = static_cast< int >(val5);
33434 ecode6 = SWIG_AsVal_double(obj5, &val6);
33435 if (!SWIG_IsOK(ecode6)) {
33436 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
33437 }
33438 arg6 = static_cast< double >(val6);
33439 ecode7 = SWIG_AsVal_double(obj6, &val7);
33440 if (!SWIG_IsOK(ecode7)) {
33441 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
33442 }
33443 arg7 = static_cast< double >(val7);
33444 {
33445 PyThreadState* __tstate = wxPyBeginAllowThreads();
33446 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
33447 wxPyEndAllowThreads(__tstate);
33448 if (PyErr_Occurred()) SWIG_fail;
33449 }
33450 resultobj = SWIG_Py_Void();
33451 return resultobj;
33452 fail:
33453 return NULL;
33454 }
33455
33456
33457 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33458 PyObject *resultobj = 0;
33459 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33460 wxPoint *arg2 = 0 ;
33461 wxSize *arg3 = 0 ;
33462 double arg4 ;
33463 double arg5 ;
33464 void *argp1 = 0 ;
33465 int res1 = 0 ;
33466 wxPoint temp2 ;
33467 wxSize temp3 ;
33468 double val4 ;
33469 int ecode4 = 0 ;
33470 double val5 ;
33471 int ecode5 = 0 ;
33472 PyObject * obj0 = 0 ;
33473 PyObject * obj1 = 0 ;
33474 PyObject * obj2 = 0 ;
33475 PyObject * obj3 = 0 ;
33476 PyObject * obj4 = 0 ;
33477 char * kwnames[] = {
33478 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
33479 };
33480
33481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33483 if (!SWIG_IsOK(res1)) {
33484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33485 }
33486 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33487 {
33488 arg2 = &temp2;
33489 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33490 }
33491 {
33492 arg3 = &temp3;
33493 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33494 }
33495 ecode4 = SWIG_AsVal_double(obj3, &val4);
33496 if (!SWIG_IsOK(ecode4)) {
33497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
33498 }
33499 arg4 = static_cast< double >(val4);
33500 ecode5 = SWIG_AsVal_double(obj4, &val5);
33501 if (!SWIG_IsOK(ecode5)) {
33502 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
33503 }
33504 arg5 = static_cast< double >(val5);
33505 {
33506 PyThreadState* __tstate = wxPyBeginAllowThreads();
33507 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
33508 wxPyEndAllowThreads(__tstate);
33509 if (PyErr_Occurred()) SWIG_fail;
33510 }
33511 resultobj = SWIG_Py_Void();
33512 return resultobj;
33513 fail:
33514 return NULL;
33515 }
33516
33517
33518 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33519 PyObject *resultobj = 0;
33520 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33521 int arg2 ;
33522 int arg3 ;
33523 void *argp1 = 0 ;
33524 int res1 = 0 ;
33525 int val2 ;
33526 int ecode2 = 0 ;
33527 int val3 ;
33528 int ecode3 = 0 ;
33529 PyObject * obj0 = 0 ;
33530 PyObject * obj1 = 0 ;
33531 PyObject * obj2 = 0 ;
33532 char * kwnames[] = {
33533 (char *) "self",(char *) "x",(char *) "y", NULL
33534 };
33535
33536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33538 if (!SWIG_IsOK(res1)) {
33539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33540 }
33541 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33542 ecode2 = SWIG_AsVal_int(obj1, &val2);
33543 if (!SWIG_IsOK(ecode2)) {
33544 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
33545 }
33546 arg2 = static_cast< int >(val2);
33547 ecode3 = SWIG_AsVal_int(obj2, &val3);
33548 if (!SWIG_IsOK(ecode3)) {
33549 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
33550 }
33551 arg3 = static_cast< int >(val3);
33552 {
33553 PyThreadState* __tstate = wxPyBeginAllowThreads();
33554 (arg1)->DrawPoint(arg2,arg3);
33555 wxPyEndAllowThreads(__tstate);
33556 if (PyErr_Occurred()) SWIG_fail;
33557 }
33558 resultobj = SWIG_Py_Void();
33559 return resultobj;
33560 fail:
33561 return NULL;
33562 }
33563
33564
33565 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33566 PyObject *resultobj = 0;
33567 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33568 wxPoint *arg2 = 0 ;
33569 void *argp1 = 0 ;
33570 int res1 = 0 ;
33571 wxPoint temp2 ;
33572 PyObject * obj0 = 0 ;
33573 PyObject * obj1 = 0 ;
33574 char * kwnames[] = {
33575 (char *) "self",(char *) "pt", NULL
33576 };
33577
33578 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
33579 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33580 if (!SWIG_IsOK(res1)) {
33581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33582 }
33583 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33584 {
33585 arg2 = &temp2;
33586 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33587 }
33588 {
33589 PyThreadState* __tstate = wxPyBeginAllowThreads();
33590 (arg1)->DrawPoint((wxPoint const &)*arg2);
33591 wxPyEndAllowThreads(__tstate);
33592 if (PyErr_Occurred()) SWIG_fail;
33593 }
33594 resultobj = SWIG_Py_Void();
33595 return resultobj;
33596 fail:
33597 return NULL;
33598 }
33599
33600
33601 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33602 PyObject *resultobj = 0;
33603 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33604 int arg2 ;
33605 int arg3 ;
33606 int arg4 ;
33607 int arg5 ;
33608 void *argp1 = 0 ;
33609 int res1 = 0 ;
33610 int val2 ;
33611 int ecode2 = 0 ;
33612 int val3 ;
33613 int ecode3 = 0 ;
33614 int val4 ;
33615 int ecode4 = 0 ;
33616 int val5 ;
33617 int ecode5 = 0 ;
33618 PyObject * obj0 = 0 ;
33619 PyObject * obj1 = 0 ;
33620 PyObject * obj2 = 0 ;
33621 PyObject * obj3 = 0 ;
33622 PyObject * obj4 = 0 ;
33623 char * kwnames[] = {
33624 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
33625 };
33626
33627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
33628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33629 if (!SWIG_IsOK(res1)) {
33630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33631 }
33632 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33633 ecode2 = SWIG_AsVal_int(obj1, &val2);
33634 if (!SWIG_IsOK(ecode2)) {
33635 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
33636 }
33637 arg2 = static_cast< int >(val2);
33638 ecode3 = SWIG_AsVal_int(obj2, &val3);
33639 if (!SWIG_IsOK(ecode3)) {
33640 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
33641 }
33642 arg3 = static_cast< int >(val3);
33643 ecode4 = SWIG_AsVal_int(obj3, &val4);
33644 if (!SWIG_IsOK(ecode4)) {
33645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
33646 }
33647 arg4 = static_cast< int >(val4);
33648 ecode5 = SWIG_AsVal_int(obj4, &val5);
33649 if (!SWIG_IsOK(ecode5)) {
33650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
33651 }
33652 arg5 = static_cast< int >(val5);
33653 {
33654 PyThreadState* __tstate = wxPyBeginAllowThreads();
33655 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
33656 wxPyEndAllowThreads(__tstate);
33657 if (PyErr_Occurred()) SWIG_fail;
33658 }
33659 resultobj = SWIG_Py_Void();
33660 return resultobj;
33661 fail:
33662 return NULL;
33663 }
33664
33665
33666 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33667 PyObject *resultobj = 0;
33668 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33669 wxRect *arg2 = 0 ;
33670 void *argp1 = 0 ;
33671 int res1 = 0 ;
33672 wxRect temp2 ;
33673 PyObject * obj0 = 0 ;
33674 PyObject * obj1 = 0 ;
33675 char * kwnames[] = {
33676 (char *) "self",(char *) "rect", NULL
33677 };
33678
33679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
33680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33681 if (!SWIG_IsOK(res1)) {
33682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33683 }
33684 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33685 {
33686 arg2 = &temp2;
33687 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33688 }
33689 {
33690 PyThreadState* __tstate = wxPyBeginAllowThreads();
33691 (arg1)->DrawRectangle((wxRect const &)*arg2);
33692 wxPyEndAllowThreads(__tstate);
33693 if (PyErr_Occurred()) SWIG_fail;
33694 }
33695 resultobj = SWIG_Py_Void();
33696 return resultobj;
33697 fail:
33698 return NULL;
33699 }
33700
33701
33702 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33703 PyObject *resultobj = 0;
33704 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33705 wxPoint *arg2 = 0 ;
33706 wxSize *arg3 = 0 ;
33707 void *argp1 = 0 ;
33708 int res1 = 0 ;
33709 wxPoint temp2 ;
33710 wxSize temp3 ;
33711 PyObject * obj0 = 0 ;
33712 PyObject * obj1 = 0 ;
33713 PyObject * obj2 = 0 ;
33714 char * kwnames[] = {
33715 (char *) "self",(char *) "pt",(char *) "sz", NULL
33716 };
33717
33718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33719 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33720 if (!SWIG_IsOK(res1)) {
33721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33722 }
33723 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33724 {
33725 arg2 = &temp2;
33726 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33727 }
33728 {
33729 arg3 = &temp3;
33730 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33731 }
33732 {
33733 PyThreadState* __tstate = wxPyBeginAllowThreads();
33734 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
33735 wxPyEndAllowThreads(__tstate);
33736 if (PyErr_Occurred()) SWIG_fail;
33737 }
33738 resultobj = SWIG_Py_Void();
33739 return resultobj;
33740 fail:
33741 return NULL;
33742 }
33743
33744
33745 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33746 PyObject *resultobj = 0;
33747 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33748 int arg2 ;
33749 int arg3 ;
33750 int arg4 ;
33751 int arg5 ;
33752 double arg6 ;
33753 void *argp1 = 0 ;
33754 int res1 = 0 ;
33755 int val2 ;
33756 int ecode2 = 0 ;
33757 int val3 ;
33758 int ecode3 = 0 ;
33759 int val4 ;
33760 int ecode4 = 0 ;
33761 int val5 ;
33762 int ecode5 = 0 ;
33763 double val6 ;
33764 int ecode6 = 0 ;
33765 PyObject * obj0 = 0 ;
33766 PyObject * obj1 = 0 ;
33767 PyObject * obj2 = 0 ;
33768 PyObject * obj3 = 0 ;
33769 PyObject * obj4 = 0 ;
33770 PyObject * obj5 = 0 ;
33771 char * kwnames[] = {
33772 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
33773 };
33774
33775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
33776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33777 if (!SWIG_IsOK(res1)) {
33778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33779 }
33780 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33781 ecode2 = SWIG_AsVal_int(obj1, &val2);
33782 if (!SWIG_IsOK(ecode2)) {
33783 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
33784 }
33785 arg2 = static_cast< int >(val2);
33786 ecode3 = SWIG_AsVal_int(obj2, &val3);
33787 if (!SWIG_IsOK(ecode3)) {
33788 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
33789 }
33790 arg3 = static_cast< int >(val3);
33791 ecode4 = SWIG_AsVal_int(obj3, &val4);
33792 if (!SWIG_IsOK(ecode4)) {
33793 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
33794 }
33795 arg4 = static_cast< int >(val4);
33796 ecode5 = SWIG_AsVal_int(obj4, &val5);
33797 if (!SWIG_IsOK(ecode5)) {
33798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
33799 }
33800 arg5 = static_cast< int >(val5);
33801 ecode6 = SWIG_AsVal_double(obj5, &val6);
33802 if (!SWIG_IsOK(ecode6)) {
33803 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
33804 }
33805 arg6 = static_cast< double >(val6);
33806 {
33807 PyThreadState* __tstate = wxPyBeginAllowThreads();
33808 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
33809 wxPyEndAllowThreads(__tstate);
33810 if (PyErr_Occurred()) SWIG_fail;
33811 }
33812 resultobj = SWIG_Py_Void();
33813 return resultobj;
33814 fail:
33815 return NULL;
33816 }
33817
33818
33819 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33820 PyObject *resultobj = 0;
33821 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33822 wxRect *arg2 = 0 ;
33823 double arg3 ;
33824 void *argp1 = 0 ;
33825 int res1 = 0 ;
33826 wxRect temp2 ;
33827 double val3 ;
33828 int ecode3 = 0 ;
33829 PyObject * obj0 = 0 ;
33830 PyObject * obj1 = 0 ;
33831 PyObject * obj2 = 0 ;
33832 char * kwnames[] = {
33833 (char *) "self",(char *) "r",(char *) "radius", NULL
33834 };
33835
33836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33838 if (!SWIG_IsOK(res1)) {
33839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33840 }
33841 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33842 {
33843 arg2 = &temp2;
33844 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
33845 }
33846 ecode3 = SWIG_AsVal_double(obj2, &val3);
33847 if (!SWIG_IsOK(ecode3)) {
33848 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
33849 }
33850 arg3 = static_cast< double >(val3);
33851 {
33852 PyThreadState* __tstate = wxPyBeginAllowThreads();
33853 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
33854 wxPyEndAllowThreads(__tstate);
33855 if (PyErr_Occurred()) SWIG_fail;
33856 }
33857 resultobj = SWIG_Py_Void();
33858 return resultobj;
33859 fail:
33860 return NULL;
33861 }
33862
33863
33864 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33865 PyObject *resultobj = 0;
33866 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33867 wxPoint *arg2 = 0 ;
33868 wxSize *arg3 = 0 ;
33869 double arg4 ;
33870 void *argp1 = 0 ;
33871 int res1 = 0 ;
33872 wxPoint temp2 ;
33873 wxSize temp3 ;
33874 double val4 ;
33875 int ecode4 = 0 ;
33876 PyObject * obj0 = 0 ;
33877 PyObject * obj1 = 0 ;
33878 PyObject * obj2 = 0 ;
33879 PyObject * obj3 = 0 ;
33880 char * kwnames[] = {
33881 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
33882 };
33883
33884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33886 if (!SWIG_IsOK(res1)) {
33887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33888 }
33889 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33890 {
33891 arg2 = &temp2;
33892 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33893 }
33894 {
33895 arg3 = &temp3;
33896 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
33897 }
33898 ecode4 = SWIG_AsVal_double(obj3, &val4);
33899 if (!SWIG_IsOK(ecode4)) {
33900 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
33901 }
33902 arg4 = static_cast< double >(val4);
33903 {
33904 PyThreadState* __tstate = wxPyBeginAllowThreads();
33905 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
33906 wxPyEndAllowThreads(__tstate);
33907 if (PyErr_Occurred()) SWIG_fail;
33908 }
33909 resultobj = SWIG_Py_Void();
33910 return resultobj;
33911 fail:
33912 return NULL;
33913 }
33914
33915
33916 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33917 PyObject *resultobj = 0;
33918 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33919 int arg2 ;
33920 int arg3 ;
33921 int arg4 ;
33922 void *argp1 = 0 ;
33923 int res1 = 0 ;
33924 int val2 ;
33925 int ecode2 = 0 ;
33926 int val3 ;
33927 int ecode3 = 0 ;
33928 int val4 ;
33929 int ecode4 = 0 ;
33930 PyObject * obj0 = 0 ;
33931 PyObject * obj1 = 0 ;
33932 PyObject * obj2 = 0 ;
33933 PyObject * obj3 = 0 ;
33934 char * kwnames[] = {
33935 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
33936 };
33937
33938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
33939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33940 if (!SWIG_IsOK(res1)) {
33941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33942 }
33943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33944 ecode2 = SWIG_AsVal_int(obj1, &val2);
33945 if (!SWIG_IsOK(ecode2)) {
33946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
33947 }
33948 arg2 = static_cast< int >(val2);
33949 ecode3 = SWIG_AsVal_int(obj2, &val3);
33950 if (!SWIG_IsOK(ecode3)) {
33951 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
33952 }
33953 arg3 = static_cast< int >(val3);
33954 ecode4 = SWIG_AsVal_int(obj3, &val4);
33955 if (!SWIG_IsOK(ecode4)) {
33956 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
33957 }
33958 arg4 = static_cast< int >(val4);
33959 {
33960 PyThreadState* __tstate = wxPyBeginAllowThreads();
33961 (arg1)->DrawCircle(arg2,arg3,arg4);
33962 wxPyEndAllowThreads(__tstate);
33963 if (PyErr_Occurred()) SWIG_fail;
33964 }
33965 resultobj = SWIG_Py_Void();
33966 return resultobj;
33967 fail:
33968 return NULL;
33969 }
33970
33971
33972 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
33973 PyObject *resultobj = 0;
33974 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
33975 wxPoint *arg2 = 0 ;
33976 int arg3 ;
33977 void *argp1 = 0 ;
33978 int res1 = 0 ;
33979 wxPoint temp2 ;
33980 int val3 ;
33981 int ecode3 = 0 ;
33982 PyObject * obj0 = 0 ;
33983 PyObject * obj1 = 0 ;
33984 PyObject * obj2 = 0 ;
33985 char * kwnames[] = {
33986 (char *) "self",(char *) "pt",(char *) "radius", NULL
33987 };
33988
33989 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
33990 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
33991 if (!SWIG_IsOK(res1)) {
33992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
33993 }
33994 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
33995 {
33996 arg2 = &temp2;
33997 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
33998 }
33999 ecode3 = SWIG_AsVal_int(obj2, &val3);
34000 if (!SWIG_IsOK(ecode3)) {
34001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
34002 }
34003 arg3 = static_cast< int >(val3);
34004 {
34005 PyThreadState* __tstate = wxPyBeginAllowThreads();
34006 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
34007 wxPyEndAllowThreads(__tstate);
34008 if (PyErr_Occurred()) SWIG_fail;
34009 }
34010 resultobj = SWIG_Py_Void();
34011 return resultobj;
34012 fail:
34013 return NULL;
34014 }
34015
34016
34017 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34018 PyObject *resultobj = 0;
34019 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34020 int arg2 ;
34021 int arg3 ;
34022 int arg4 ;
34023 int arg5 ;
34024 void *argp1 = 0 ;
34025 int res1 = 0 ;
34026 int val2 ;
34027 int ecode2 = 0 ;
34028 int val3 ;
34029 int ecode3 = 0 ;
34030 int val4 ;
34031 int ecode4 = 0 ;
34032 int val5 ;
34033 int ecode5 = 0 ;
34034 PyObject * obj0 = 0 ;
34035 PyObject * obj1 = 0 ;
34036 PyObject * obj2 = 0 ;
34037 PyObject * obj3 = 0 ;
34038 PyObject * obj4 = 0 ;
34039 char * kwnames[] = {
34040 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
34041 };
34042
34043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34045 if (!SWIG_IsOK(res1)) {
34046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34047 }
34048 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34049 ecode2 = SWIG_AsVal_int(obj1, &val2);
34050 if (!SWIG_IsOK(ecode2)) {
34051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
34052 }
34053 arg2 = static_cast< int >(val2);
34054 ecode3 = SWIG_AsVal_int(obj2, &val3);
34055 if (!SWIG_IsOK(ecode3)) {
34056 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
34057 }
34058 arg3 = static_cast< int >(val3);
34059 ecode4 = SWIG_AsVal_int(obj3, &val4);
34060 if (!SWIG_IsOK(ecode4)) {
34061 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
34062 }
34063 arg4 = static_cast< int >(val4);
34064 ecode5 = SWIG_AsVal_int(obj4, &val5);
34065 if (!SWIG_IsOK(ecode5)) {
34066 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
34067 }
34068 arg5 = static_cast< int >(val5);
34069 {
34070 PyThreadState* __tstate = wxPyBeginAllowThreads();
34071 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
34072 wxPyEndAllowThreads(__tstate);
34073 if (PyErr_Occurred()) SWIG_fail;
34074 }
34075 resultobj = SWIG_Py_Void();
34076 return resultobj;
34077 fail:
34078 return NULL;
34079 }
34080
34081
34082 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34083 PyObject *resultobj = 0;
34084 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34085 wxRect *arg2 = 0 ;
34086 void *argp1 = 0 ;
34087 int res1 = 0 ;
34088 wxRect temp2 ;
34089 PyObject * obj0 = 0 ;
34090 PyObject * obj1 = 0 ;
34091 char * kwnames[] = {
34092 (char *) "self",(char *) "rect", NULL
34093 };
34094
34095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
34096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34097 if (!SWIG_IsOK(res1)) {
34098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34099 }
34100 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34101 {
34102 arg2 = &temp2;
34103 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
34104 }
34105 {
34106 PyThreadState* __tstate = wxPyBeginAllowThreads();
34107 (arg1)->DrawEllipse((wxRect const &)*arg2);
34108 wxPyEndAllowThreads(__tstate);
34109 if (PyErr_Occurred()) SWIG_fail;
34110 }
34111 resultobj = SWIG_Py_Void();
34112 return resultobj;
34113 fail:
34114 return NULL;
34115 }
34116
34117
34118 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34119 PyObject *resultobj = 0;
34120 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34121 wxPoint *arg2 = 0 ;
34122 wxSize *arg3 = 0 ;
34123 void *argp1 = 0 ;
34124 int res1 = 0 ;
34125 wxPoint temp2 ;
34126 wxSize temp3 ;
34127 PyObject * obj0 = 0 ;
34128 PyObject * obj1 = 0 ;
34129 PyObject * obj2 = 0 ;
34130 char * kwnames[] = {
34131 (char *) "self",(char *) "pt",(char *) "sz", NULL
34132 };
34133
34134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34136 if (!SWIG_IsOK(res1)) {
34137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34138 }
34139 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34140 {
34141 arg2 = &temp2;
34142 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
34143 }
34144 {
34145 arg3 = &temp3;
34146 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
34147 }
34148 {
34149 PyThreadState* __tstate = wxPyBeginAllowThreads();
34150 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
34151 wxPyEndAllowThreads(__tstate);
34152 if (PyErr_Occurred()) SWIG_fail;
34153 }
34154 resultobj = SWIG_Py_Void();
34155 return resultobj;
34156 fail:
34157 return NULL;
34158 }
34159
34160
34161 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34162 PyObject *resultobj = 0;
34163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34164 wxIcon *arg2 = 0 ;
34165 int arg3 ;
34166 int arg4 ;
34167 void *argp1 = 0 ;
34168 int res1 = 0 ;
34169 void *argp2 = 0 ;
34170 int res2 = 0 ;
34171 int val3 ;
34172 int ecode3 = 0 ;
34173 int val4 ;
34174 int ecode4 = 0 ;
34175 PyObject * obj0 = 0 ;
34176 PyObject * obj1 = 0 ;
34177 PyObject * obj2 = 0 ;
34178 PyObject * obj3 = 0 ;
34179 char * kwnames[] = {
34180 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
34181 };
34182
34183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34185 if (!SWIG_IsOK(res1)) {
34186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34187 }
34188 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34189 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34190 if (!SWIG_IsOK(res2)) {
34191 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34192 }
34193 if (!argp2) {
34194 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
34195 }
34196 arg2 = reinterpret_cast< wxIcon * >(argp2);
34197 ecode3 = SWIG_AsVal_int(obj2, &val3);
34198 if (!SWIG_IsOK(ecode3)) {
34199 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
34200 }
34201 arg3 = static_cast< int >(val3);
34202 ecode4 = SWIG_AsVal_int(obj3, &val4);
34203 if (!SWIG_IsOK(ecode4)) {
34204 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
34205 }
34206 arg4 = static_cast< int >(val4);
34207 {
34208 PyThreadState* __tstate = wxPyBeginAllowThreads();
34209 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
34210 wxPyEndAllowThreads(__tstate);
34211 if (PyErr_Occurred()) SWIG_fail;
34212 }
34213 resultobj = SWIG_Py_Void();
34214 return resultobj;
34215 fail:
34216 return NULL;
34217 }
34218
34219
34220 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34221 PyObject *resultobj = 0;
34222 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34223 wxIcon *arg2 = 0 ;
34224 wxPoint *arg3 = 0 ;
34225 void *argp1 = 0 ;
34226 int res1 = 0 ;
34227 void *argp2 = 0 ;
34228 int res2 = 0 ;
34229 wxPoint temp3 ;
34230 PyObject * obj0 = 0 ;
34231 PyObject * obj1 = 0 ;
34232 PyObject * obj2 = 0 ;
34233 char * kwnames[] = {
34234 (char *) "self",(char *) "icon",(char *) "pt", NULL
34235 };
34236
34237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34238 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34239 if (!SWIG_IsOK(res1)) {
34240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34241 }
34242 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34243 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
34244 if (!SWIG_IsOK(res2)) {
34245 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34246 }
34247 if (!argp2) {
34248 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
34249 }
34250 arg2 = reinterpret_cast< wxIcon * >(argp2);
34251 {
34252 arg3 = &temp3;
34253 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34254 }
34255 {
34256 PyThreadState* __tstate = wxPyBeginAllowThreads();
34257 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
34258 wxPyEndAllowThreads(__tstate);
34259 if (PyErr_Occurred()) SWIG_fail;
34260 }
34261 resultobj = SWIG_Py_Void();
34262 return resultobj;
34263 fail:
34264 return NULL;
34265 }
34266
34267
34268 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34269 PyObject *resultobj = 0;
34270 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34271 wxBitmap *arg2 = 0 ;
34272 int arg3 ;
34273 int arg4 ;
34274 bool arg5 = (bool) false ;
34275 void *argp1 = 0 ;
34276 int res1 = 0 ;
34277 void *argp2 = 0 ;
34278 int res2 = 0 ;
34279 int val3 ;
34280 int ecode3 = 0 ;
34281 int val4 ;
34282 int ecode4 = 0 ;
34283 bool val5 ;
34284 int ecode5 = 0 ;
34285 PyObject * obj0 = 0 ;
34286 PyObject * obj1 = 0 ;
34287 PyObject * obj2 = 0 ;
34288 PyObject * obj3 = 0 ;
34289 PyObject * obj4 = 0 ;
34290 char * kwnames[] = {
34291 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
34292 };
34293
34294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34296 if (!SWIG_IsOK(res1)) {
34297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34298 }
34299 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34301 if (!SWIG_IsOK(res2)) {
34302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34303 }
34304 if (!argp2) {
34305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34306 }
34307 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34308 ecode3 = SWIG_AsVal_int(obj2, &val3);
34309 if (!SWIG_IsOK(ecode3)) {
34310 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
34311 }
34312 arg3 = static_cast< int >(val3);
34313 ecode4 = SWIG_AsVal_int(obj3, &val4);
34314 if (!SWIG_IsOK(ecode4)) {
34315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
34316 }
34317 arg4 = static_cast< int >(val4);
34318 if (obj4) {
34319 ecode5 = SWIG_AsVal_bool(obj4, &val5);
34320 if (!SWIG_IsOK(ecode5)) {
34321 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
34322 }
34323 arg5 = static_cast< bool >(val5);
34324 }
34325 {
34326 PyThreadState* __tstate = wxPyBeginAllowThreads();
34327 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
34328 wxPyEndAllowThreads(__tstate);
34329 if (PyErr_Occurred()) SWIG_fail;
34330 }
34331 resultobj = SWIG_Py_Void();
34332 return resultobj;
34333 fail:
34334 return NULL;
34335 }
34336
34337
34338 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34339 PyObject *resultobj = 0;
34340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34341 wxBitmap *arg2 = 0 ;
34342 wxPoint *arg3 = 0 ;
34343 bool arg4 = (bool) false ;
34344 void *argp1 = 0 ;
34345 int res1 = 0 ;
34346 void *argp2 = 0 ;
34347 int res2 = 0 ;
34348 wxPoint temp3 ;
34349 bool val4 ;
34350 int ecode4 = 0 ;
34351 PyObject * obj0 = 0 ;
34352 PyObject * obj1 = 0 ;
34353 PyObject * obj2 = 0 ;
34354 PyObject * obj3 = 0 ;
34355 char * kwnames[] = {
34356 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
34357 };
34358
34359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34361 if (!SWIG_IsOK(res1)) {
34362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34363 }
34364 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34365 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
34366 if (!SWIG_IsOK(res2)) {
34367 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34368 }
34369 if (!argp2) {
34370 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
34371 }
34372 arg2 = reinterpret_cast< wxBitmap * >(argp2);
34373 {
34374 arg3 = &temp3;
34375 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34376 }
34377 if (obj3) {
34378 ecode4 = SWIG_AsVal_bool(obj3, &val4);
34379 if (!SWIG_IsOK(ecode4)) {
34380 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
34381 }
34382 arg4 = static_cast< bool >(val4);
34383 }
34384 {
34385 PyThreadState* __tstate = wxPyBeginAllowThreads();
34386 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
34387 wxPyEndAllowThreads(__tstate);
34388 if (PyErr_Occurred()) SWIG_fail;
34389 }
34390 resultobj = SWIG_Py_Void();
34391 return resultobj;
34392 fail:
34393 return NULL;
34394 }
34395
34396
34397 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34398 PyObject *resultobj = 0;
34399 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34400 wxString *arg2 = 0 ;
34401 int arg3 ;
34402 int arg4 ;
34403 void *argp1 = 0 ;
34404 int res1 = 0 ;
34405 bool temp2 = false ;
34406 int val3 ;
34407 int ecode3 = 0 ;
34408 int val4 ;
34409 int ecode4 = 0 ;
34410 PyObject * obj0 = 0 ;
34411 PyObject * obj1 = 0 ;
34412 PyObject * obj2 = 0 ;
34413 PyObject * obj3 = 0 ;
34414 char * kwnames[] = {
34415 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
34416 };
34417
34418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34420 if (!SWIG_IsOK(res1)) {
34421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34422 }
34423 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34424 {
34425 arg2 = wxString_in_helper(obj1);
34426 if (arg2 == NULL) SWIG_fail;
34427 temp2 = true;
34428 }
34429 ecode3 = SWIG_AsVal_int(obj2, &val3);
34430 if (!SWIG_IsOK(ecode3)) {
34431 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
34432 }
34433 arg3 = static_cast< int >(val3);
34434 ecode4 = SWIG_AsVal_int(obj3, &val4);
34435 if (!SWIG_IsOK(ecode4)) {
34436 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
34437 }
34438 arg4 = static_cast< int >(val4);
34439 {
34440 PyThreadState* __tstate = wxPyBeginAllowThreads();
34441 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
34442 wxPyEndAllowThreads(__tstate);
34443 if (PyErr_Occurred()) SWIG_fail;
34444 }
34445 resultobj = SWIG_Py_Void();
34446 {
34447 if (temp2)
34448 delete arg2;
34449 }
34450 return resultobj;
34451 fail:
34452 {
34453 if (temp2)
34454 delete arg2;
34455 }
34456 return NULL;
34457 }
34458
34459
34460 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34461 PyObject *resultobj = 0;
34462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34463 wxString *arg2 = 0 ;
34464 wxPoint *arg3 = 0 ;
34465 void *argp1 = 0 ;
34466 int res1 = 0 ;
34467 bool temp2 = false ;
34468 wxPoint temp3 ;
34469 PyObject * obj0 = 0 ;
34470 PyObject * obj1 = 0 ;
34471 PyObject * obj2 = 0 ;
34472 char * kwnames[] = {
34473 (char *) "self",(char *) "text",(char *) "pt", NULL
34474 };
34475
34476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
34477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34478 if (!SWIG_IsOK(res1)) {
34479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34480 }
34481 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34482 {
34483 arg2 = wxString_in_helper(obj1);
34484 if (arg2 == NULL) SWIG_fail;
34485 temp2 = true;
34486 }
34487 {
34488 arg3 = &temp3;
34489 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34490 }
34491 {
34492 PyThreadState* __tstate = wxPyBeginAllowThreads();
34493 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
34494 wxPyEndAllowThreads(__tstate);
34495 if (PyErr_Occurred()) SWIG_fail;
34496 }
34497 resultobj = SWIG_Py_Void();
34498 {
34499 if (temp2)
34500 delete arg2;
34501 }
34502 return resultobj;
34503 fail:
34504 {
34505 if (temp2)
34506 delete arg2;
34507 }
34508 return NULL;
34509 }
34510
34511
34512 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34513 PyObject *resultobj = 0;
34514 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34515 wxString *arg2 = 0 ;
34516 int arg3 ;
34517 int arg4 ;
34518 double arg5 ;
34519 void *argp1 = 0 ;
34520 int res1 = 0 ;
34521 bool temp2 = false ;
34522 int val3 ;
34523 int ecode3 = 0 ;
34524 int val4 ;
34525 int ecode4 = 0 ;
34526 double val5 ;
34527 int ecode5 = 0 ;
34528 PyObject * obj0 = 0 ;
34529 PyObject * obj1 = 0 ;
34530 PyObject * obj2 = 0 ;
34531 PyObject * obj3 = 0 ;
34532 PyObject * obj4 = 0 ;
34533 char * kwnames[] = {
34534 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
34535 };
34536
34537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34538 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34539 if (!SWIG_IsOK(res1)) {
34540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34541 }
34542 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34543 {
34544 arg2 = wxString_in_helper(obj1);
34545 if (arg2 == NULL) SWIG_fail;
34546 temp2 = true;
34547 }
34548 ecode3 = SWIG_AsVal_int(obj2, &val3);
34549 if (!SWIG_IsOK(ecode3)) {
34550 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
34551 }
34552 arg3 = static_cast< int >(val3);
34553 ecode4 = SWIG_AsVal_int(obj3, &val4);
34554 if (!SWIG_IsOK(ecode4)) {
34555 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
34556 }
34557 arg4 = static_cast< int >(val4);
34558 ecode5 = SWIG_AsVal_double(obj4, &val5);
34559 if (!SWIG_IsOK(ecode5)) {
34560 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
34561 }
34562 arg5 = static_cast< double >(val5);
34563 {
34564 PyThreadState* __tstate = wxPyBeginAllowThreads();
34565 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
34566 wxPyEndAllowThreads(__tstate);
34567 if (PyErr_Occurred()) SWIG_fail;
34568 }
34569 resultobj = SWIG_Py_Void();
34570 {
34571 if (temp2)
34572 delete arg2;
34573 }
34574 return resultobj;
34575 fail:
34576 {
34577 if (temp2)
34578 delete arg2;
34579 }
34580 return NULL;
34581 }
34582
34583
34584 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34585 PyObject *resultobj = 0;
34586 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34587 wxString *arg2 = 0 ;
34588 wxPoint *arg3 = 0 ;
34589 double arg4 ;
34590 void *argp1 = 0 ;
34591 int res1 = 0 ;
34592 bool temp2 = false ;
34593 wxPoint temp3 ;
34594 double val4 ;
34595 int ecode4 = 0 ;
34596 PyObject * obj0 = 0 ;
34597 PyObject * obj1 = 0 ;
34598 PyObject * obj2 = 0 ;
34599 PyObject * obj3 = 0 ;
34600 char * kwnames[] = {
34601 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
34602 };
34603
34604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34606 if (!SWIG_IsOK(res1)) {
34607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34608 }
34609 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34610 {
34611 arg2 = wxString_in_helper(obj1);
34612 if (arg2 == NULL) SWIG_fail;
34613 temp2 = true;
34614 }
34615 {
34616 arg3 = &temp3;
34617 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
34618 }
34619 ecode4 = SWIG_AsVal_double(obj3, &val4);
34620 if (!SWIG_IsOK(ecode4)) {
34621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
34622 }
34623 arg4 = static_cast< double >(val4);
34624 {
34625 PyThreadState* __tstate = wxPyBeginAllowThreads();
34626 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
34627 wxPyEndAllowThreads(__tstate);
34628 if (PyErr_Occurred()) SWIG_fail;
34629 }
34630 resultobj = SWIG_Py_Void();
34631 {
34632 if (temp2)
34633 delete arg2;
34634 }
34635 return resultobj;
34636 fail:
34637 {
34638 if (temp2)
34639 delete arg2;
34640 }
34641 return NULL;
34642 }
34643
34644
34645 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34646 PyObject *resultobj = 0;
34647 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34648 int arg2 ;
34649 wxPoint *arg3 = (wxPoint *) 0 ;
34650 int arg4 = (int) 0 ;
34651 int arg5 = (int) 0 ;
34652 void *argp1 = 0 ;
34653 int res1 = 0 ;
34654 int val4 ;
34655 int ecode4 = 0 ;
34656 int val5 ;
34657 int ecode5 = 0 ;
34658 PyObject * obj0 = 0 ;
34659 PyObject * obj1 = 0 ;
34660 PyObject * obj2 = 0 ;
34661 PyObject * obj3 = 0 ;
34662 char * kwnames[] = {
34663 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
34664 };
34665
34666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
34667 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34668 if (!SWIG_IsOK(res1)) {
34669 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34670 }
34671 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34672 {
34673 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34674 if (arg3 == NULL) SWIG_fail;
34675 }
34676 if (obj2) {
34677 ecode4 = SWIG_AsVal_int(obj2, &val4);
34678 if (!SWIG_IsOK(ecode4)) {
34679 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
34680 }
34681 arg4 = static_cast< int >(val4);
34682 }
34683 if (obj3) {
34684 ecode5 = SWIG_AsVal_int(obj3, &val5);
34685 if (!SWIG_IsOK(ecode5)) {
34686 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
34687 }
34688 arg5 = static_cast< int >(val5);
34689 }
34690 {
34691 PyThreadState* __tstate = wxPyBeginAllowThreads();
34692 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
34693 wxPyEndAllowThreads(__tstate);
34694 if (PyErr_Occurred()) SWIG_fail;
34695 }
34696 resultobj = SWIG_Py_Void();
34697 {
34698 if (arg3) delete [] arg3;
34699 }
34700 return resultobj;
34701 fail:
34702 {
34703 if (arg3) delete [] arg3;
34704 }
34705 return NULL;
34706 }
34707
34708
34709 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34710 PyObject *resultobj = 0;
34711 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34712 int arg2 ;
34713 wxPoint *arg3 = (wxPoint *) 0 ;
34714 int arg4 = (int) 0 ;
34715 int arg5 = (int) 0 ;
34716 int arg6 = (int) wxODDEVEN_RULE ;
34717 void *argp1 = 0 ;
34718 int res1 = 0 ;
34719 int val4 ;
34720 int ecode4 = 0 ;
34721 int val5 ;
34722 int ecode5 = 0 ;
34723 int val6 ;
34724 int ecode6 = 0 ;
34725 PyObject * obj0 = 0 ;
34726 PyObject * obj1 = 0 ;
34727 PyObject * obj2 = 0 ;
34728 PyObject * obj3 = 0 ;
34729 PyObject * obj4 = 0 ;
34730 char * kwnames[] = {
34731 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
34732 };
34733
34734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34736 if (!SWIG_IsOK(res1)) {
34737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34738 }
34739 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34740 {
34741 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34742 if (arg3 == NULL) SWIG_fail;
34743 }
34744 if (obj2) {
34745 ecode4 = SWIG_AsVal_int(obj2, &val4);
34746 if (!SWIG_IsOK(ecode4)) {
34747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
34748 }
34749 arg4 = static_cast< int >(val4);
34750 }
34751 if (obj3) {
34752 ecode5 = SWIG_AsVal_int(obj3, &val5);
34753 if (!SWIG_IsOK(ecode5)) {
34754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
34755 }
34756 arg5 = static_cast< int >(val5);
34757 }
34758 if (obj4) {
34759 ecode6 = SWIG_AsVal_int(obj4, &val6);
34760 if (!SWIG_IsOK(ecode6)) {
34761 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
34762 }
34763 arg6 = static_cast< int >(val6);
34764 }
34765 {
34766 PyThreadState* __tstate = wxPyBeginAllowThreads();
34767 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
34768 wxPyEndAllowThreads(__tstate);
34769 if (PyErr_Occurred()) SWIG_fail;
34770 }
34771 resultobj = SWIG_Py_Void();
34772 {
34773 if (arg3) delete [] arg3;
34774 }
34775 return resultobj;
34776 fail:
34777 {
34778 if (arg3) delete [] arg3;
34779 }
34780 return NULL;
34781 }
34782
34783
34784 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34785 PyObject *resultobj = 0;
34786 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34787 wxString *arg2 = 0 ;
34788 wxRect *arg3 = 0 ;
34789 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34790 int arg5 = (int) -1 ;
34791 void *argp1 = 0 ;
34792 int res1 = 0 ;
34793 bool temp2 = false ;
34794 wxRect temp3 ;
34795 int val4 ;
34796 int ecode4 = 0 ;
34797 int val5 ;
34798 int ecode5 = 0 ;
34799 PyObject * obj0 = 0 ;
34800 PyObject * obj1 = 0 ;
34801 PyObject * obj2 = 0 ;
34802 PyObject * obj3 = 0 ;
34803 PyObject * obj4 = 0 ;
34804 char * kwnames[] = {
34805 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34806 };
34807
34808 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
34809 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34810 if (!SWIG_IsOK(res1)) {
34811 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34812 }
34813 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34814 {
34815 arg2 = wxString_in_helper(obj1);
34816 if (arg2 == NULL) SWIG_fail;
34817 temp2 = true;
34818 }
34819 {
34820 arg3 = &temp3;
34821 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
34822 }
34823 if (obj3) {
34824 ecode4 = SWIG_AsVal_int(obj3, &val4);
34825 if (!SWIG_IsOK(ecode4)) {
34826 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
34827 }
34828 arg4 = static_cast< int >(val4);
34829 }
34830 if (obj4) {
34831 ecode5 = SWIG_AsVal_int(obj4, &val5);
34832 if (!SWIG_IsOK(ecode5)) {
34833 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
34834 }
34835 arg5 = static_cast< int >(val5);
34836 }
34837 {
34838 PyThreadState* __tstate = wxPyBeginAllowThreads();
34839 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
34840 wxPyEndAllowThreads(__tstate);
34841 if (PyErr_Occurred()) SWIG_fail;
34842 }
34843 resultobj = SWIG_Py_Void();
34844 {
34845 if (temp2)
34846 delete arg2;
34847 }
34848 return resultobj;
34849 fail:
34850 {
34851 if (temp2)
34852 delete arg2;
34853 }
34854 return NULL;
34855 }
34856
34857
34858 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34859 PyObject *resultobj = 0;
34860 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34861 wxString *arg2 = 0 ;
34862 wxBitmap *arg3 = 0 ;
34863 wxRect *arg4 = 0 ;
34864 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
34865 int arg6 = (int) -1 ;
34866 void *argp1 = 0 ;
34867 int res1 = 0 ;
34868 bool temp2 = false ;
34869 void *argp3 = 0 ;
34870 int res3 = 0 ;
34871 wxRect temp4 ;
34872 int val5 ;
34873 int ecode5 = 0 ;
34874 int val6 ;
34875 int ecode6 = 0 ;
34876 PyObject * obj0 = 0 ;
34877 PyObject * obj1 = 0 ;
34878 PyObject * obj2 = 0 ;
34879 PyObject * obj3 = 0 ;
34880 PyObject * obj4 = 0 ;
34881 PyObject * obj5 = 0 ;
34882 char * kwnames[] = {
34883 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
34884 };
34885
34886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
34887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34888 if (!SWIG_IsOK(res1)) {
34889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34890 }
34891 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34892 {
34893 arg2 = wxString_in_helper(obj1);
34894 if (arg2 == NULL) SWIG_fail;
34895 temp2 = true;
34896 }
34897 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
34898 if (!SWIG_IsOK(res3)) {
34899 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34900 }
34901 if (!argp3) {
34902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
34903 }
34904 arg3 = reinterpret_cast< wxBitmap * >(argp3);
34905 {
34906 arg4 = &temp4;
34907 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
34908 }
34909 if (obj4) {
34910 ecode5 = SWIG_AsVal_int(obj4, &val5);
34911 if (!SWIG_IsOK(ecode5)) {
34912 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
34913 }
34914 arg5 = static_cast< int >(val5);
34915 }
34916 if (obj5) {
34917 ecode6 = SWIG_AsVal_int(obj5, &val6);
34918 if (!SWIG_IsOK(ecode6)) {
34919 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
34920 }
34921 arg6 = static_cast< int >(val6);
34922 }
34923 {
34924 PyThreadState* __tstate = wxPyBeginAllowThreads();
34925 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
34926 wxPyEndAllowThreads(__tstate);
34927 if (PyErr_Occurred()) SWIG_fail;
34928 }
34929 resultobj = SWIG_Py_Void();
34930 {
34931 if (temp2)
34932 delete arg2;
34933 }
34934 return resultobj;
34935 fail:
34936 {
34937 if (temp2)
34938 delete arg2;
34939 }
34940 return NULL;
34941 }
34942
34943
34944 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
34945 PyObject *resultobj = 0;
34946 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34947 int arg2 ;
34948 wxPoint *arg3 = (wxPoint *) 0 ;
34949 void *argp1 = 0 ;
34950 int res1 = 0 ;
34951 PyObject * obj0 = 0 ;
34952 PyObject * obj1 = 0 ;
34953 char * kwnames[] = {
34954 (char *) "self",(char *) "points", NULL
34955 };
34956
34957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
34958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34959 if (!SWIG_IsOK(res1)) {
34960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34961 }
34962 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
34963 {
34964 arg3 = wxPoint_LIST_helper(obj1, &arg2);
34965 if (arg3 == NULL) SWIG_fail;
34966 }
34967 {
34968 PyThreadState* __tstate = wxPyBeginAllowThreads();
34969 (arg1)->DrawSpline(arg2,arg3);
34970 wxPyEndAllowThreads(__tstate);
34971 if (PyErr_Occurred()) SWIG_fail;
34972 }
34973 resultobj = SWIG_Py_Void();
34974 {
34975 if (arg3) delete [] arg3;
34976 }
34977 return resultobj;
34978 fail:
34979 {
34980 if (arg3) delete [] arg3;
34981 }
34982 return NULL;
34983 }
34984
34985
34986 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
34987 PyObject *resultobj = 0;
34988 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
34989 void *argp1 = 0 ;
34990 int res1 = 0 ;
34991 PyObject *swig_obj[1] ;
34992
34993 if (!args) SWIG_fail;
34994 swig_obj[0] = args;
34995 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
34996 if (!SWIG_IsOK(res1)) {
34997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
34998 }
34999 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35000 {
35001 PyThreadState* __tstate = wxPyBeginAllowThreads();
35002 (arg1)->Clear();
35003 wxPyEndAllowThreads(__tstate);
35004 if (PyErr_Occurred()) SWIG_fail;
35005 }
35006 resultobj = SWIG_Py_Void();
35007 return resultobj;
35008 fail:
35009 return NULL;
35010 }
35011
35012
35013 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35014 PyObject *resultobj = 0;
35015 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35016 wxFont *arg2 = 0 ;
35017 void *argp1 = 0 ;
35018 int res1 = 0 ;
35019 void *argp2 = 0 ;
35020 int res2 = 0 ;
35021 PyObject * obj0 = 0 ;
35022 PyObject * obj1 = 0 ;
35023 char * kwnames[] = {
35024 (char *) "self",(char *) "font", NULL
35025 };
35026
35027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
35028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35029 if (!SWIG_IsOK(res1)) {
35030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35031 }
35032 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35033 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
35034 if (!SWIG_IsOK(res2)) {
35035 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35036 }
35037 if (!argp2) {
35038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
35039 }
35040 arg2 = reinterpret_cast< wxFont * >(argp2);
35041 {
35042 PyThreadState* __tstate = wxPyBeginAllowThreads();
35043 (arg1)->SetFont((wxFont const &)*arg2);
35044 wxPyEndAllowThreads(__tstate);
35045 if (PyErr_Occurred()) SWIG_fail;
35046 }
35047 resultobj = SWIG_Py_Void();
35048 return resultobj;
35049 fail:
35050 return NULL;
35051 }
35052
35053
35054 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35055 PyObject *resultobj = 0;
35056 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35057 wxPen *arg2 = 0 ;
35058 void *argp1 = 0 ;
35059 int res1 = 0 ;
35060 void *argp2 = 0 ;
35061 int res2 = 0 ;
35062 PyObject * obj0 = 0 ;
35063 PyObject * obj1 = 0 ;
35064 char * kwnames[] = {
35065 (char *) "self",(char *) "pen", NULL
35066 };
35067
35068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
35069 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35070 if (!SWIG_IsOK(res1)) {
35071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35072 }
35073 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35074 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
35075 if (!SWIG_IsOK(res2)) {
35076 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35077 }
35078 if (!argp2) {
35079 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
35080 }
35081 arg2 = reinterpret_cast< wxPen * >(argp2);
35082 {
35083 PyThreadState* __tstate = wxPyBeginAllowThreads();
35084 (arg1)->SetPen((wxPen const &)*arg2);
35085 wxPyEndAllowThreads(__tstate);
35086 if (PyErr_Occurred()) SWIG_fail;
35087 }
35088 resultobj = SWIG_Py_Void();
35089 return resultobj;
35090 fail:
35091 return NULL;
35092 }
35093
35094
35095 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35096 PyObject *resultobj = 0;
35097 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35098 wxBrush *arg2 = 0 ;
35099 void *argp1 = 0 ;
35100 int res1 = 0 ;
35101 void *argp2 = 0 ;
35102 int res2 = 0 ;
35103 PyObject * obj0 = 0 ;
35104 PyObject * obj1 = 0 ;
35105 char * kwnames[] = {
35106 (char *) "self",(char *) "brush", NULL
35107 };
35108
35109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
35110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35111 if (!SWIG_IsOK(res1)) {
35112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35113 }
35114 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35115 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35116 if (!SWIG_IsOK(res2)) {
35117 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35118 }
35119 if (!argp2) {
35120 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
35121 }
35122 arg2 = reinterpret_cast< wxBrush * >(argp2);
35123 {
35124 PyThreadState* __tstate = wxPyBeginAllowThreads();
35125 (arg1)->SetBrush((wxBrush const &)*arg2);
35126 wxPyEndAllowThreads(__tstate);
35127 if (PyErr_Occurred()) SWIG_fail;
35128 }
35129 resultobj = SWIG_Py_Void();
35130 return resultobj;
35131 fail:
35132 return NULL;
35133 }
35134
35135
35136 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35137 PyObject *resultobj = 0;
35138 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35139 wxBrush *arg2 = 0 ;
35140 void *argp1 = 0 ;
35141 int res1 = 0 ;
35142 void *argp2 = 0 ;
35143 int res2 = 0 ;
35144 PyObject * obj0 = 0 ;
35145 PyObject * obj1 = 0 ;
35146 char * kwnames[] = {
35147 (char *) "self",(char *) "brush", NULL
35148 };
35149
35150 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35151 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35152 if (!SWIG_IsOK(res1)) {
35153 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35154 }
35155 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35156 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
35157 if (!SWIG_IsOK(res2)) {
35158 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35159 }
35160 if (!argp2) {
35161 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
35162 }
35163 arg2 = reinterpret_cast< wxBrush * >(argp2);
35164 {
35165 PyThreadState* __tstate = wxPyBeginAllowThreads();
35166 (arg1)->SetBackground((wxBrush const &)*arg2);
35167 wxPyEndAllowThreads(__tstate);
35168 if (PyErr_Occurred()) SWIG_fail;
35169 }
35170 resultobj = SWIG_Py_Void();
35171 return resultobj;
35172 fail:
35173 return NULL;
35174 }
35175
35176
35177 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35178 PyObject *resultobj = 0;
35179 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35180 int arg2 ;
35181 void *argp1 = 0 ;
35182 int res1 = 0 ;
35183 int val2 ;
35184 int ecode2 = 0 ;
35185 PyObject * obj0 = 0 ;
35186 PyObject * obj1 = 0 ;
35187 char * kwnames[] = {
35188 (char *) "self",(char *) "mode", NULL
35189 };
35190
35191 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
35192 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35193 if (!SWIG_IsOK(res1)) {
35194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35195 }
35196 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35197 ecode2 = SWIG_AsVal_int(obj1, &val2);
35198 if (!SWIG_IsOK(ecode2)) {
35199 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
35200 }
35201 arg2 = static_cast< int >(val2);
35202 {
35203 PyThreadState* __tstate = wxPyBeginAllowThreads();
35204 (arg1)->SetBackgroundMode(arg2);
35205 wxPyEndAllowThreads(__tstate);
35206 if (PyErr_Occurred()) SWIG_fail;
35207 }
35208 resultobj = SWIG_Py_Void();
35209 return resultobj;
35210 fail:
35211 return NULL;
35212 }
35213
35214
35215 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35216 PyObject *resultobj = 0;
35217 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35218 wxPalette *arg2 = 0 ;
35219 void *argp1 = 0 ;
35220 int res1 = 0 ;
35221 void *argp2 = 0 ;
35222 int res2 = 0 ;
35223 PyObject * obj0 = 0 ;
35224 PyObject * obj1 = 0 ;
35225 char * kwnames[] = {
35226 (char *) "self",(char *) "palette", NULL
35227 };
35228
35229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
35230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35231 if (!SWIG_IsOK(res1)) {
35232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35233 }
35234 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35235 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
35236 if (!SWIG_IsOK(res2)) {
35237 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35238 }
35239 if (!argp2) {
35240 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
35241 }
35242 arg2 = reinterpret_cast< wxPalette * >(argp2);
35243 {
35244 PyThreadState* __tstate = wxPyBeginAllowThreads();
35245 (arg1)->SetPalette((wxPalette const &)*arg2);
35246 wxPyEndAllowThreads(__tstate);
35247 if (PyErr_Occurred()) SWIG_fail;
35248 }
35249 resultobj = SWIG_Py_Void();
35250 return resultobj;
35251 fail:
35252 return NULL;
35253 }
35254
35255
35256 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35257 PyObject *resultobj = 0;
35258 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35259 wxColour *arg2 = 0 ;
35260 void *argp1 = 0 ;
35261 int res1 = 0 ;
35262 wxColour temp2 ;
35263 PyObject * obj0 = 0 ;
35264 PyObject * obj1 = 0 ;
35265 char * kwnames[] = {
35266 (char *) "self",(char *) "colour", NULL
35267 };
35268
35269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
35270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35271 if (!SWIG_IsOK(res1)) {
35272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35273 }
35274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35275 {
35276 arg2 = &temp2;
35277 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35278 }
35279 {
35280 PyThreadState* __tstate = wxPyBeginAllowThreads();
35281 (arg1)->SetTextForeground((wxColour const &)*arg2);
35282 wxPyEndAllowThreads(__tstate);
35283 if (PyErr_Occurred()) SWIG_fail;
35284 }
35285 resultobj = SWIG_Py_Void();
35286 return resultobj;
35287 fail:
35288 return NULL;
35289 }
35290
35291
35292 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35293 PyObject *resultobj = 0;
35294 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35295 wxColour *arg2 = 0 ;
35296 void *argp1 = 0 ;
35297 int res1 = 0 ;
35298 wxColour temp2 ;
35299 PyObject * obj0 = 0 ;
35300 PyObject * obj1 = 0 ;
35301 char * kwnames[] = {
35302 (char *) "self",(char *) "colour", NULL
35303 };
35304
35305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
35306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35307 if (!SWIG_IsOK(res1)) {
35308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35309 }
35310 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35311 {
35312 arg2 = &temp2;
35313 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
35314 }
35315 {
35316 PyThreadState* __tstate = wxPyBeginAllowThreads();
35317 (arg1)->SetTextBackground((wxColour const &)*arg2);
35318 wxPyEndAllowThreads(__tstate);
35319 if (PyErr_Occurred()) SWIG_fail;
35320 }
35321 resultobj = SWIG_Py_Void();
35322 return resultobj;
35323 fail:
35324 return NULL;
35325 }
35326
35327
35328 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
35329 PyObject *resultobj = 0;
35330 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
35331 int arg2 ;
35332 void *argp1 = 0 ;
35333 int res1 = 0 ;
35334 int val2 ;
35335 int ecode2 = 0 ;
35336 PyObject * obj0 = 0 ;
35337 PyObject * obj1 = 0 ;
35338 char * kwnames[] = {
35339 (char *) "self",(char *) "function", NULL
35340 };
35341
35342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
35343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
35344 if (!SWIG_IsOK(res1)) {
35345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
35346 }
35347 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
35348 ecode2 = SWIG_AsVal_int(obj1, &val2);
35349 if (!SWIG_IsOK(ecode2)) {
35350 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
35351 }
35352 arg2 = static_cast< int >(val2);
35353 {
35354 PyThreadState* __tstate = wxPyBeginAllowThreads();
35355 (arg1)->SetLogicalFunction(arg2);
35356 wxPyEndAllowThreads(__tstate);
35357 if (PyErr_Occurred()) SWIG_fail;
35358 }
35359 resultobj = SWIG_Py_Void();
35360 return resultobj;
35361 fail:
35362 return NULL;
35363 }
35364
35365
35366 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35367 PyObject *obj;
35368 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
35369 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
35370 return SWIG_Py_Void();
35371 }
35372
35373 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
35374 return SWIG_Python_InitShadowInstance(args);
35375 }
35376
35377 static PyMethodDef SwigMethods[] = {
35378 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
35379 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
35380 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
35381 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
35382 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
35383 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
35384 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
35385 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35386 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
35387 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
35388 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
35389 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
35390 { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL},
35391 { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL},
35392 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35393 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35394 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35395 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
35396 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
35397 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35398 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35399 { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL},
35400 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
35401 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
35402 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
35403 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
35404 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
35405 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35406 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
35407 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
35408 { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL},
35409 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
35410 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
35411 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
35412 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
35413 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
35414 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
35415 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
35416 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
35417 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
35418 { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL},
35419 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
35420 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35421 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
35422 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35423 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35424 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35425 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
35426 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
35427 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
35428 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
35429 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35430 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35431 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35432 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
35433 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
35434 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
35435 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35436 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
35437 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
35438 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35439 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
35440 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
35441 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
35442 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
35443 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
35444 { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL},
35445 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
35446 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
35447 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35448 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
35449 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35450 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35451 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35452 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35453 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
35454 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
35455 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35456 { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL},
35457 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
35458 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
35459 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
35460 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
35461 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
35462 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
35463 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
35464 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
35465 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35466 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
35467 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35468 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
35469 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35470 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35471 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35472 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35473 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35474 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35475 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35476 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35477 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35478 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
35479 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
35480 { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL},
35481 { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL},
35482 { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL},
35483 { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL},
35484 { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL},
35485 { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL},
35486 { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL},
35487 { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL},
35488 { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL},
35489 { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL},
35490 { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL},
35491 { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL},
35492 { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL},
35493 { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL},
35494 { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL},
35495 { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL},
35496 { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL},
35497 { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL},
35498 { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35499 { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL},
35500 { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL},
35501 { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35502 { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35503 { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35504 { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35505 { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35506 { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL},
35507 { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL},
35508 { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL},
35509 { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL},
35510 { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL},
35511 { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL},
35512 { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL},
35513 { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL},
35514 { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL},
35515 { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL},
35516 { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL},
35517 { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL},
35518 { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL},
35519 { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL},
35520 { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL},
35521 { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35522 { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL},
35523 { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL},
35524 { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL},
35525 { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35526 { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL},
35527 { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL},
35528 { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL},
35529 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
35530 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
35531 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
35532 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
35533 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
35534 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
35535 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
35536 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35537 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35538 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
35539 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
35540 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
35541 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35542 { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL},
35543 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
35544 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
35545 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
35546 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35547 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35548 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35549 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35550 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35551 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
35552 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
35553 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
35554 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
35555 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
35556 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
35557 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
35558 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
35559 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
35560 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
35561 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
35562 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
35563 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35564 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35565 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
35566 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35567 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
35568 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35569 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
35570 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
35571 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
35572 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
35573 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
35574 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
35575 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
35576 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
35577 { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL},
35578 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
35579 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
35580 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
35581 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
35582 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
35583 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
35584 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
35585 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
35586 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
35587 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
35588 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35589 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35590 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
35591 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
35592 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
35593 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
35594 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
35595 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35596 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
35597 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
35598 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
35599 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
35600 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
35601 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35602 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
35603 { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL},
35604 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
35605 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
35606 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35607 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
35608 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
35609 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35610 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
35611 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
35612 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35613 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
35614 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35615 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
35616 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
35617 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
35618 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
35619 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
35620 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
35621 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
35622 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
35623 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
35624 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
35625 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
35626 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
35627 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
35628 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
35629 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
35630 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
35631 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
35632 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
35633 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
35634 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
35635 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
35636 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
35637 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
35638 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
35639 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
35640 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
35641 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
35642 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
35643 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
35644 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
35645 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35646 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35647 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35648 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35649 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35650 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35651 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35652 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35653 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35654 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
35655 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
35656 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
35657 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
35658 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
35659 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
35660 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
35661 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
35662 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
35663 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
35664 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
35665 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
35666 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
35667 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
35668 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
35669 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
35670 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35671 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35672 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
35673 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
35674 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
35675 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
35676 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35677 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
35678 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35679 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
35680 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
35681 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
35682 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
35683 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
35684 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35685 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35686 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
35687 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
35688 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
35689 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
35690 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
35691 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
35692 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35693 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
35694 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
35695 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35696 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35697 { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL},
35698 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
35699 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
35700 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
35701 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
35702 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
35703 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
35704 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
35705 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
35706 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
35707 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
35708 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
35709 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
35710 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
35711 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
35712 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
35713 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35714 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
35715 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
35716 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
35717 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
35718 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
35719 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
35720 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35721 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35722 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
35723 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
35724 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
35725 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
35726 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
35727 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
35728 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
35729 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
35730 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
35731 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
35732 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
35733 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
35734 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
35735 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35736 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
35737 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
35738 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
35739 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
35740 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
35741 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
35742 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
35743 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
35744 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
35745 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
35746 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
35747 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
35748 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
35749 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
35750 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
35751 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
35752 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
35753 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
35754 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
35755 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
35756 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
35757 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
35758 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
35759 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
35760 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
35761 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
35762 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
35763 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
35764 { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
35765 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
35766 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35767 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
35768 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35769 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
35770 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
35771 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
35772 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
35773 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
35774 { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL},
35775 { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL},
35776 { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
35777 { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL},
35778 { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL},
35779 { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL},
35780 { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL},
35781 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
35782 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
35783 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
35784 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
35785 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
35786 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
35787 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35788 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
35789 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
35790 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
35791 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
35792 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
35793 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
35794 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35795 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
35796 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
35797 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
35798 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35799 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
35800 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35801 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
35802 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35803 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
35804 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35805 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
35806 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
35807 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
35808 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35809 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35810 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35811 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35812 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35813 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35814 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35815 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
35816 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35817 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35818 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
35819 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
35820 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
35821 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35822 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
35823 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35824 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
35825 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35826 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
35827 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35828 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
35829 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35830 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
35831 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35832 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35833 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
35834 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
35835 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
35836 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
35837 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
35838 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35839 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
35840 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
35841 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
35842 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
35843 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
35844 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
35845 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
35846 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
35847 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
35848 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
35849 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35850 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
35851 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
35852 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
35853 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
35854 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
35855 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
35856 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
35857 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35858 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35859 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
35860 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
35861 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
35862 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
35863 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
35864 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
35865 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
35866 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
35867 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35868 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35869 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
35870 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
35871 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
35872 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
35873 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
35874 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
35875 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
35876 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
35877 { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL},
35878 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
35879 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
35880 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
35881 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
35882 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
35883 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
35884 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
35885 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
35886 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
35887 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
35888 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
35889 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
35890 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
35891 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
35892 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
35893 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
35894 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
35895 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35896 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35897 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
35898 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
35899 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
35900 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35901 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
35902 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
35903 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
35904 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
35905 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
35906 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35907 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
35908 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
35909 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
35910 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
35911 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
35912 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
35913 { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL},
35914 { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL},
35915 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
35916 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
35917 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
35918 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
35919 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
35920 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
35921 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
35922 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
35923 { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL},
35924 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
35925 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
35926 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
35927 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
35928 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
35929 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
35930 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
35931 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
35932 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
35933 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
35934 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
35935 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
35936 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
35937 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
35938 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
35939 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
35940 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35941 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
35942 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
35943 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
35944 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
35945 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
35946 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
35947 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
35948 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35949 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
35950 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
35951 { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
35952 { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL},
35953 { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL},
35954 { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL},
35955 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
35956 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
35957 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
35958 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
35959 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
35960 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
35961 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
35962 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
35963 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
35964 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
35965 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
35966 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
35967 { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL},
35968 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
35969 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
35970 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
35971 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
35972 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
35973 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
35974 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
35975 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
35976 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
35977 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
35978 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
35979 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
35980 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
35981 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
35982 { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL},
35983 { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35984 { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35985 { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35986 { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL},
35987 { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL},
35988 { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL},
35989 { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35990 { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
35991 { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL},
35992 { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL},
35993 { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL},
35994 { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL},
35995 { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL},
35996 { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL},
35997 { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL},
35998 { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL},
35999 { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL},
36000 { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL},
36001 { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL},
36002 { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL},
36003 { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL},
36004 { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL},
36005 { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL},
36006 { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL},
36007 { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36008 { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36009 { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36010 { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36011 { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36012 { (char *)"GraphicsContext_SetTextColor", (PyCFunction) _wrap_GraphicsContext_SetTextColor, METH_VARARGS | METH_KEYWORDS, NULL},
36013 { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL},
36014 { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL},
36015 { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL},
36016 { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36017 { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36018 { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
36019 { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
36020 { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36021 { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36022 { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL},
36023 { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL},
36024 { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL},
36025 { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36026 { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36027 { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36028 { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36029 { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL},
36030 { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL},
36031 { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL},
36032 { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL},
36033 { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL},
36034 { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL},
36035 { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL},
36036 { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL},
36037 { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL},
36038 { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL},
36039 { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL},
36040 { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL},
36041 { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL},
36042 { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL},
36043 { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL},
36044 { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL},
36045 { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL},
36046 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
36047 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
36048 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
36049 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
36050 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36051 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36052 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36053 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
36054 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
36055 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
36056 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
36057 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
36058 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
36059 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
36060 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
36061 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
36062 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
36063 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
36064 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
36065 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36066 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
36067 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
36068 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36069 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36070 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
36071 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
36072 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
36073 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
36074 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
36075 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
36076 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
36077 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
36078 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
36079 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
36080 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36081 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36082 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36083 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
36084 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
36085 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
36086 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
36087 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
36088 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
36089 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
36090 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
36091 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
36092 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
36093 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
36094 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
36095 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
36096 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
36097 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
36098 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
36099 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
36100 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
36101 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
36102 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
36103 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
36104 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
36105 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
36106 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
36107 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36108 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
36109 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36110 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
36111 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36112 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
36113 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36114 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
36115 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
36116 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
36117 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
36118 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
36119 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
36120 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
36121 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
36122 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
36123 { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL},
36124 { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL},
36125 { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL},
36126 { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL},
36127 { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL},
36128 { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL},
36129 { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL},
36130 { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL},
36131 { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL},
36132 { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL},
36133 { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL},
36134 { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL},
36135 { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL},
36136 { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL},
36137 { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL},
36138 { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL},
36139 { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL},
36140 { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL},
36141 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
36142 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
36143 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
36144 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
36145 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
36146 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
36147 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
36148 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
36149 { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL},
36150 { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL},
36151 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
36152 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
36153 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
36154 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
36155 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
36156 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
36157 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
36158 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
36159 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
36160 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
36161 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
36162 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
36163 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
36164 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
36165 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
36166 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
36167 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
36168 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
36169 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
36170 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
36171 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
36172 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
36173 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
36174 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
36175 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
36176 { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36177 { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL},
36178 { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL},
36179 { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL},
36180 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36181 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36182 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
36183 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
36184 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
36185 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
36186 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
36187 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36188 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
36189 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36190 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
36191 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36192 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
36193 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36194 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
36195 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
36196 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
36197 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36198 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36199 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36200 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36201 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36202 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36203 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
36204 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
36205 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36206 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
36207 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
36208 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
36209 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
36210 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
36211 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
36212 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36213 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
36214 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36215 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
36216 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36217 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
36218 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
36219 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
36220 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
36221 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36222 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
36223 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
36224 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
36225 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
36226 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
36227 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
36228 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36229 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
36230 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
36231 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
36232 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
36233 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
36234 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
36235 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
36236 { NULL, NULL, 0, NULL }
36237 };
36238
36239
36240 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
36241
36242 static void *_p_wxPaintDCTo_p_wxClientDC(void *x) {
36243 return (void *)((wxClientDC *) ((wxPaintDC *) x));
36244 }
36245 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
36246 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
36247 }
36248 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
36249 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
36250 }
36251 static void *_p_wxClientDCTo_p_wxWindowDC(void *x) {
36252 return (void *)((wxWindowDC *) ((wxClientDC *) x));
36253 }
36254 static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) {
36255 return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x));
36256 }
36257 static void *_p_wxPyLocaleTo_p_wxLocale(void *x) {
36258 return (void *)((wxLocale *) ((wxPyLocale *) x));
36259 }
36260 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
36261 return (void *)((wxGDIObject *) ((wxIcon *) x));
36262 }
36263 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
36264 return (void *)((wxGDIObject *) ((wxPalette *) x));
36265 }
36266 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
36267 return (void *)((wxGDIObject *) ((wxPen *) x));
36268 }
36269 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
36270 return (void *)((wxGDIObject *) ((wxFont *) x));
36271 }
36272 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
36273 return (void *)((wxGDIObject *) ((wxCursor *) x));
36274 }
36275 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
36276 return (void *)((wxGDIObject *) ((wxBitmap *) x));
36277 }
36278 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
36279 return (void *)((wxGDIObject *) ((wxRegion *) x));
36280 }
36281 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
36282 return (void *)((wxGDIObject *) ((wxBrush *) x));
36283 }
36284 static void *_p_wxGCDCTo_p_wxDC(void *x) {
36285 return (void *)((wxDC *) ((wxGCDC *) x));
36286 }
36287 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
36288 return (void *)((wxDC *) ((wxScreenDC *) x));
36289 }
36290 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
36291 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
36292 }
36293 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
36294 return (void *)((wxDC *) ((wxMirrorDC *) x));
36295 }
36296 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
36297 return (void *)((wxDC *) ((wxMemoryDC *) x));
36298 }
36299 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
36300 return (void *)((wxDC *) ((wxWindowDC *) x));
36301 }
36302 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
36303 return (void *)((wxDC *) ((wxMetaFileDC *) x));
36304 }
36305 static void *_p_wxClientDCTo_p_wxDC(void *x) {
36306 return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x));
36307 }
36308 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
36309 return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36310 }
36311 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
36312 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36313 }
36314 static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) {
36315 return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x));
36316 }
36317 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
36318 return (void *)((wxDC *) ((wxPostScriptDC *) x));
36319 }
36320 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
36321 return (void *)((wxDC *) ((wxPrinterDC *) x));
36322 }
36323 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
36324 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
36325 }
36326 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
36327 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
36328 }
36329 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
36330 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
36331 }
36332 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
36333 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
36334 }
36335 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
36336 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
36337 }
36338 static void *_p_wxPenTo_p_wxObject(void *x) {
36339 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
36340 }
36341 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
36342 return (void *)((wxObject *) ((wxRegionIterator *) x));
36343 }
36344 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
36345 return (void *)((wxObject *) ((wxSizerItem *) x));
36346 }
36347 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
36348 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
36349 }
36350 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
36351 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
36352 }
36353 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
36354 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
36355 }
36356 static void *_p_wxIconTo_p_wxObject(void *x) {
36357 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
36358 }
36359 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
36360 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
36361 }
36362 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
36363 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
36364 }
36365 static void *_p_wxSizerTo_p_wxObject(void *x) {
36366 return (void *)((wxObject *) ((wxSizer *) x));
36367 }
36368 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
36369 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
36370 }
36371 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
36372 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
36373 }
36374 static void *_p_wxEventTo_p_wxObject(void *x) {
36375 return (void *)((wxObject *) ((wxEvent *) x));
36376 }
36377 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
36378 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
36379 }
36380 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
36381 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
36382 }
36383 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
36384 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
36385 }
36386 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
36387 return (void *)((wxObject *) ((wxPseudoDC *) x));
36388 }
36389 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
36390 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
36391 }
36392 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
36393 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
36394 }
36395 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
36396 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
36397 }
36398 static void *_p_wxDCTo_p_wxObject(void *x) {
36399 return (void *)((wxObject *) ((wxDC *) x));
36400 }
36401 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
36402 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
36403 }
36404 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
36405 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
36406 }
36407 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
36408 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
36409 }
36410 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
36411 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
36412 }
36413 static void *_p_wxControlTo_p_wxObject(void *x) {
36414 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
36415 }
36416 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
36417 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
36418 }
36419 static void *_p_wxClientDCTo_p_wxObject(void *x) {
36420 return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x));
36421 }
36422 static void *_p_wxFSFileTo_p_wxObject(void *x) {
36423 return (void *)((wxObject *) ((wxFSFile *) x));
36424 }
36425 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
36426 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
36427 }
36428 static void *_p_wxRegionTo_p_wxObject(void *x) {
36429 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
36430 }
36431 static void *_p_wxPySizerTo_p_wxObject(void *x) {
36432 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
36433 }
36434 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
36435 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
36436 }
36437 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
36438 return (void *)((wxObject *) ((wxGDIObject *) x));
36439 }
36440 static void *_p_wxEffectsTo_p_wxObject(void *x) {
36441 return (void *)((wxObject *) ((wxEffects *) x));
36442 }
36443 static void *_p_wxPyEventTo_p_wxObject(void *x) {
36444 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
36445 }
36446 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
36447 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
36448 }
36449 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
36450 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
36451 }
36452 static void *_p_wxShowEventTo_p_wxObject(void *x) {
36453 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
36454 }
36455 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
36456 return (void *)((wxObject *) ((wxMenuItem *) x));
36457 }
36458 static void *_p_wxDateEventTo_p_wxObject(void *x) {
36459 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
36460 }
36461 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
36462 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
36463 }
36464 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
36465 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
36466 }
36467 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
36468 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
36469 }
36470 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
36471 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
36472 }
36473 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
36474 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
36475 }
36476 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
36477 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
36478 }
36479 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
36480 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
36481 }
36482 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
36483 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
36484 }
36485 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
36486 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
36487 }
36488 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
36489 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
36490 }
36491 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
36492 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
36493 }
36494 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
36495 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
36496 }
36497 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
36498 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
36499 }
36500 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
36501 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
36502 }
36503 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
36504 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
36505 }
36506 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
36507 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
36508 }
36509 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
36510 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
36511 }
36512 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
36513 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
36514 }
36515 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
36516 return (void *)((wxObject *) ((wxImageHandler *) x));
36517 }
36518 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
36519 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
36520 }
36521 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
36522 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
36523 }
36524 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
36525 return (void *)((wxObject *) ((wxEvtHandler *) x));
36526 }
36527 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
36528 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
36529 }
36530 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
36531 return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x));
36532 }
36533 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
36534 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
36535 }
36536 static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) {
36537 return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x));
36538 }
36539 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
36540 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
36541 }
36542 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
36543 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
36544 }
36545 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
36546 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
36547 }
36548 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
36549 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
36550 }
36551 static void *_p_wxImageTo_p_wxObject(void *x) {
36552 return (void *)((wxObject *) ((wxImage *) x));
36553 }
36554 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
36555 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
36556 }
36557 static void *_p_wxPaletteTo_p_wxObject(void *x) {
36558 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
36559 }
36560 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
36561 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
36562 }
36563 static void *_p_wxImageListTo_p_wxObject(void *x) {
36564 return (void *)((wxObject *) ((wxImageList *) x));
36565 }
36566 static void *_p_wxGCDCTo_p_wxObject(void *x) {
36567 return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x));
36568 }
36569 static void *_p_wxCursorTo_p_wxObject(void *x) {
36570 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
36571 }
36572 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
36573 return (void *)((wxObject *) ((wxEncodingConverter *) x));
36574 }
36575 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
36576 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
36577 }
36578 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
36579 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
36580 }
36581 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
36582 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
36583 }
36584 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
36585 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
36586 }
36587 static void *_p_wxWindowTo_p_wxObject(void *x) {
36588 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
36589 }
36590 static void *_p_wxMenuTo_p_wxObject(void *x) {
36591 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
36592 }
36593 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
36594 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
36595 }
36596 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
36597 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
36598 }
36599 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
36600 return (void *)((wxObject *) ((wxFileSystem *) x));
36601 }
36602 static void *_p_wxBitmapTo_p_wxObject(void *x) {
36603 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
36604 }
36605 static void *_p_wxMaskTo_p_wxObject(void *x) {
36606 return (void *)((wxObject *) ((wxMask *) x));
36607 }
36608 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
36609 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
36610 }
36611 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
36612 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
36613 }
36614 static void *_p_wxPyAppTo_p_wxObject(void *x) {
36615 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
36616 }
36617 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
36618 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
36619 }
36620 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
36621 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
36622 }
36623 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
36624 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
36625 }
36626 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
36627 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
36628 }
36629 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
36630 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
36631 }
36632 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
36633 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
36634 }
36635 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
36636 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
36637 }
36638 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
36639 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
36640 }
36641 static void *_p_wxFontTo_p_wxObject(void *x) {
36642 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
36643 }
36644 static void *_p_wxBrushTo_p_wxObject(void *x) {
36645 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
36646 }
36647 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
36648 return (void *)((wxObject *) ((wxMetaFile *) x));
36649 }
36650 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
36651 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
36652 }
36653 static void *_p_wxColourTo_p_wxObject(void *x) {
36654 return (void *)((wxObject *) ((wxColour *) x));
36655 }
36656 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
36657 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
36658 }
36659 static void *_p_wxValidatorTo_p_wxObject(void *x) {
36660 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
36661 }
36662 static void *_p_wxControlTo_p_wxWindow(void *x) {
36663 return (void *)((wxWindow *) ((wxControl *) x));
36664 }
36665 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
36666 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
36667 }
36668 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
36669 return (void *)((wxWindow *) ((wxMenuBar *) x));
36670 }
36671 static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) {
36672 return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x));
36673 }
36674 static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) {
36675 return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x));
36676 }
36677 static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0};
36678 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
36679 static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0};
36680 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};
36681 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
36682 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
36683 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
36684 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
36685 static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};
36686 static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0};
36687 static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0};
36688 static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0};
36689 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
36690 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
36691 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
36692 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
36693 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
36694 static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0};
36695 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
36696 static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0};
36697 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
36698 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
36699 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
36700 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
36701 static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0};
36702 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
36703 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
36704 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
36705 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
36706 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
36707 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
36708 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
36709 static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0};
36710 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
36711 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
36712 static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0};
36713 static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0};
36714 static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0};
36715 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
36716 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
36717 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
36718 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
36719 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
36720 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
36721 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
36722 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
36723 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
36724 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
36725 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
36726 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
36727 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
36728 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
36729 static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0};
36730 static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0};
36731 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
36732 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
36733 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
36734 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
36735 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
36736 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
36737 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
36738 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
36739 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
36740 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
36741 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
36742 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
36743 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
36744 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
36745 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
36746 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
36747 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
36748 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
36749 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
36750 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
36751 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
36752 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
36753 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
36754 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
36755 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
36756 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
36757 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
36758 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
36759 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
36760 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
36761 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
36762 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
36763 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
36764 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
36765 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
36766 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
36767 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
36768 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
36769 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
36770 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
36771 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
36772 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
36773 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
36774 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
36775 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
36776 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
36777 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
36778 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
36779 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
36780 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
36781 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
36782 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
36783 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
36784 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
36785 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
36786 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
36787 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
36788 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
36789 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
36790 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
36791 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
36792 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
36793 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
36794 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
36795 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
36796 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
36797 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
36798 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
36799 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
36800 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
36801 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
36802 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
36803 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
36804 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
36805 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
36806 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
36807 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
36808 static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0};
36809 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
36810 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
36811 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
36812 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
36813 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
36814 static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0};
36815 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
36816 static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0};
36817 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
36818 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
36819 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
36820 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
36821 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
36822 static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0};
36823 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
36824 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
36825 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
36826 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
36827 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
36828 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
36829 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
36830 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
36831 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
36832 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
36833 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
36834 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
36835
36836 static swig_type_info *swig_type_initial[] = {
36837 &_swigt__p_buffer,
36838 &_swigt__p_char,
36839 &_swigt__p_double,
36840 &_swigt__p_form_ops_t,
36841 &_swigt__p_int,
36842 &_swigt__p_unsigned_char,
36843 &_swigt__p_unsigned_int,
36844 &_swigt__p_unsigned_long,
36845 &_swigt__p_void,
36846 &_swigt__p_wxANIHandler,
36847 &_swigt__p_wxAcceleratorTable,
36848 &_swigt__p_wxActivateEvent,
36849 &_swigt__p_wxAlphaPixelData,
36850 &_swigt__p_wxAlphaPixelData_Accessor,
36851 &_swigt__p_wxAutoBufferedPaintDC,
36852 &_swigt__p_wxBMPHandler,
36853 &_swigt__p_wxBitmap,
36854 &_swigt__p_wxBoxSizer,
36855 &_swigt__p_wxBrush,
36856 &_swigt__p_wxBrushList,
36857 &_swigt__p_wxBufferedDC,
36858 &_swigt__p_wxBufferedPaintDC,
36859 &_swigt__p_wxCURHandler,
36860 &_swigt__p_wxChar,
36861 &_swigt__p_wxChildFocusEvent,
36862 &_swigt__p_wxClientDC,
36863 &_swigt__p_wxClipboardTextEvent,
36864 &_swigt__p_wxCloseEvent,
36865 &_swigt__p_wxColor,
36866 &_swigt__p_wxColour,
36867 &_swigt__p_wxColourDatabase,
36868 &_swigt__p_wxCommandEvent,
36869 &_swigt__p_wxContextMenuEvent,
36870 &_swigt__p_wxControl,
36871 &_swigt__p_wxControlWithItems,
36872 &_swigt__p_wxCursor,
36873 &_swigt__p_wxDC,
36874 &_swigt__p_wxDCOverlay,
36875 &_swigt__p_wxDash,
36876 &_swigt__p_wxDateEvent,
36877 &_swigt__p_wxDisplayChangedEvent,
36878 &_swigt__p_wxDropFilesEvent,
36879 &_swigt__p_wxDuplexMode,
36880 &_swigt__p_wxEffects,
36881 &_swigt__p_wxEncodingConverter,
36882 &_swigt__p_wxEraseEvent,
36883 &_swigt__p_wxEvent,
36884 &_swigt__p_wxEvtHandler,
36885 &_swigt__p_wxFSFile,
36886 &_swigt__p_wxFileSystem,
36887 &_swigt__p_wxFlexGridSizer,
36888 &_swigt__p_wxFocusEvent,
36889 &_swigt__p_wxFont,
36890 &_swigt__p_wxFontList,
36891 &_swigt__p_wxFontMapper,
36892 &_swigt__p_wxGBSizerItem,
36893 &_swigt__p_wxGCDC,
36894 &_swigt__p_wxGDIObjListBase,
36895 &_swigt__p_wxGDIObject,
36896 &_swigt__p_wxGIFHandler,
36897 &_swigt__p_wxGraphicsContext,
36898 &_swigt__p_wxGraphicsPath,
36899 &_swigt__p_wxGridBagSizer,
36900 &_swigt__p_wxGridSizer,
36901 &_swigt__p_wxHeaderButtonParams,
36902 &_swigt__p_wxICOHandler,
36903 &_swigt__p_wxIcon,
36904 &_swigt__p_wxIconBundle,
36905 &_swigt__p_wxIconLocation,
36906 &_swigt__p_wxIconizeEvent,
36907 &_swigt__p_wxIdleEvent,
36908 &_swigt__p_wxImage,
36909 &_swigt__p_wxImageHandler,
36910 &_swigt__p_wxImageList,
36911 &_swigt__p_wxIndividualLayoutConstraint,
36912 &_swigt__p_wxInitDialogEvent,
36913 &_swigt__p_wxJPEGHandler,
36914 &_swigt__p_wxKeyEvent,
36915 &_swigt__p_wxLanguageInfo,
36916 &_swigt__p_wxLayoutConstraints,
36917 &_swigt__p_wxLocale,
36918 &_swigt__p_wxMask,
36919 &_swigt__p_wxMaximizeEvent,
36920 &_swigt__p_wxMemoryDC,
36921 &_swigt__p_wxMenu,
36922 &_swigt__p_wxMenuBar,
36923 &_swigt__p_wxMenuEvent,
36924 &_swigt__p_wxMenuItem,
36925 &_swigt__p_wxMetaFile,
36926 &_swigt__p_wxMetaFileDC,
36927 &_swigt__p_wxMirrorDC,
36928 &_swigt__p_wxMouseCaptureChangedEvent,
36929 &_swigt__p_wxMouseCaptureLostEvent,
36930 &_swigt__p_wxMouseEvent,
36931 &_swigt__p_wxMoveEvent,
36932 &_swigt__p_wxNativeEncodingInfo,
36933 &_swigt__p_wxNativeFontInfo,
36934 &_swigt__p_wxNativePixelData,
36935 &_swigt__p_wxNativePixelData_Accessor,
36936 &_swigt__p_wxNavigationKeyEvent,
36937 &_swigt__p_wxNcPaintEvent,
36938 &_swigt__p_wxNotifyEvent,
36939 &_swigt__p_wxObject,
36940 &_swigt__p_wxOverlay,
36941 &_swigt__p_wxPCXHandler,
36942 &_swigt__p_wxPNGHandler,
36943 &_swigt__p_wxPNMHandler,
36944 &_swigt__p_wxPaintDC,
36945 &_swigt__p_wxPaintEvent,
36946 &_swigt__p_wxPalette,
36947 &_swigt__p_wxPaletteChangedEvent,
36948 &_swigt__p_wxPaperSize,
36949 &_swigt__p_wxPen,
36950 &_swigt__p_wxPenList,
36951 &_swigt__p_wxPixelDataBase,
36952 &_swigt__p_wxPoint,
36953 &_swigt__p_wxPoint2D,
36954 &_swigt__p_wxPostScriptDC,
36955 &_swigt__p_wxPrintData,
36956 &_swigt__p_wxPrinterDC,
36957 &_swigt__p_wxPseudoDC,
36958 &_swigt__p_wxPyApp,
36959 &_swigt__p_wxPyCommandEvent,
36960 &_swigt__p_wxPyEvent,
36961 &_swigt__p_wxPyFontEnumerator,
36962 &_swigt__p_wxPyImageHandler,
36963 &_swigt__p_wxPyLocale,
36964 &_swigt__p_wxPySizer,
36965 &_swigt__p_wxPyValidator,
36966 &_swigt__p_wxQueryNewPaletteEvent,
36967 &_swigt__p_wxRect,
36968 &_swigt__p_wxRegion,
36969 &_swigt__p_wxRegionIterator,
36970 &_swigt__p_wxRendererNative,
36971 &_swigt__p_wxRendererVersion,
36972 &_swigt__p_wxScreenDC,
36973 &_swigt__p_wxScrollEvent,
36974 &_swigt__p_wxScrollWinEvent,
36975 &_swigt__p_wxSetCursorEvent,
36976 &_swigt__p_wxShowEvent,
36977 &_swigt__p_wxSize,
36978 &_swigt__p_wxSizeEvent,
36979 &_swigt__p_wxSizer,
36980 &_swigt__p_wxSizerItem,
36981 &_swigt__p_wxSplitterRenderParams,
36982 &_swigt__p_wxStaticBoxSizer,
36983 &_swigt__p_wxStdDialogButtonSizer,
36984 &_swigt__p_wxStockGDI,
36985 &_swigt__p_wxString,
36986 &_swigt__p_wxSysColourChangedEvent,
36987 &_swigt__p_wxTIFFHandler,
36988 &_swigt__p_wxUpdateUIEvent,
36989 &_swigt__p_wxValidator,
36990 &_swigt__p_wxWindow,
36991 &_swigt__p_wxWindowCreateEvent,
36992 &_swigt__p_wxWindowDC,
36993 &_swigt__p_wxWindowDestroyEvent,
36994 &_swigt__p_wxXPMHandler,
36995 };
36996
36997 static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}};
36998 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
36999 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
37000 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
37001 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
37002 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
37003 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
37004 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
37005 static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};
37006 static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}};
37007 static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
37008 static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37009 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
37010 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
37011 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
37012 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}};
37013 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37014 static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}};
37015 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}};
37016 static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}};
37017 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
37018 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
37019 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
37020 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}};
37021 static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}};
37022 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
37023 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
37024 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
37025 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
37026 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
37027 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
37028 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
37029 static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}};
37030 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}};
37031 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}};
37032 static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}};
37033 static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}};
37034 static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}};
37035 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
37036 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
37037 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
37038 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
37039 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
37040 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
37041 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}};
37042 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
37043 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}};
37044 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
37045 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
37046 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
37047 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
37048 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
37049 static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}};
37050 static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}};
37051 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
37052 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
37053 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
37054 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
37055 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
37056 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37057 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
37058 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
37059 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
37060 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
37061 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
37062 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
37063 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37064 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
37065 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
37066 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
37067 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37068 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
37069 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37070 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37071 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37072 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
37073 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
37074 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
37075 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
37076 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
37077 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
37078 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
37079 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
37080 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
37081 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
37082 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
37083 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
37084 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
37085 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37086 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37087 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
37088 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
37089 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
37090 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
37091 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
37092 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37093 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
37094 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
37095 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
37096 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
37097 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
37098 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
37099 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
37100 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
37101 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
37102 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
37103 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
37104 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
37105 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
37106 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
37107 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
37108 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
37109 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37110 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
37111 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
37112 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
37113 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37114 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
37115 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
37116 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
37117 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
37118 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
37119 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37120 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
37121 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
37122 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37123 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
37124 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
37125 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
37126 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
37127 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}};
37128 static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}};
37129 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
37130 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
37131 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
37132 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
37133 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
37134 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}};
37135 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
37136 static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}};
37137 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
37138 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
37139 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
37140 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
37141 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
37142 static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}};
37143 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
37144 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
37145 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
37146 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
37147 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
37148 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
37149 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
37150 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
37151 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
37152 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
37153 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}};
37154 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}};
37155
37156 static swig_cast_info *swig_cast_initial[] = {
37157 _swigc__p_buffer,
37158 _swigc__p_char,
37159 _swigc__p_double,
37160 _swigc__p_form_ops_t,
37161 _swigc__p_int,
37162 _swigc__p_unsigned_char,
37163 _swigc__p_unsigned_int,
37164 _swigc__p_unsigned_long,
37165 _swigc__p_void,
37166 _swigc__p_wxANIHandler,
37167 _swigc__p_wxAcceleratorTable,
37168 _swigc__p_wxActivateEvent,
37169 _swigc__p_wxAlphaPixelData,
37170 _swigc__p_wxAlphaPixelData_Accessor,
37171 _swigc__p_wxAutoBufferedPaintDC,
37172 _swigc__p_wxBMPHandler,
37173 _swigc__p_wxBitmap,
37174 _swigc__p_wxBoxSizer,
37175 _swigc__p_wxBrush,
37176 _swigc__p_wxBrushList,
37177 _swigc__p_wxBufferedDC,
37178 _swigc__p_wxBufferedPaintDC,
37179 _swigc__p_wxCURHandler,
37180 _swigc__p_wxChar,
37181 _swigc__p_wxChildFocusEvent,
37182 _swigc__p_wxClientDC,
37183 _swigc__p_wxClipboardTextEvent,
37184 _swigc__p_wxCloseEvent,
37185 _swigc__p_wxColor,
37186 _swigc__p_wxColour,
37187 _swigc__p_wxColourDatabase,
37188 _swigc__p_wxCommandEvent,
37189 _swigc__p_wxContextMenuEvent,
37190 _swigc__p_wxControl,
37191 _swigc__p_wxControlWithItems,
37192 _swigc__p_wxCursor,
37193 _swigc__p_wxDC,
37194 _swigc__p_wxDCOverlay,
37195 _swigc__p_wxDash,
37196 _swigc__p_wxDateEvent,
37197 _swigc__p_wxDisplayChangedEvent,
37198 _swigc__p_wxDropFilesEvent,
37199 _swigc__p_wxDuplexMode,
37200 _swigc__p_wxEffects,
37201 _swigc__p_wxEncodingConverter,
37202 _swigc__p_wxEraseEvent,
37203 _swigc__p_wxEvent,
37204 _swigc__p_wxEvtHandler,
37205 _swigc__p_wxFSFile,
37206 _swigc__p_wxFileSystem,
37207 _swigc__p_wxFlexGridSizer,
37208 _swigc__p_wxFocusEvent,
37209 _swigc__p_wxFont,
37210 _swigc__p_wxFontList,
37211 _swigc__p_wxFontMapper,
37212 _swigc__p_wxGBSizerItem,
37213 _swigc__p_wxGCDC,
37214 _swigc__p_wxGDIObjListBase,
37215 _swigc__p_wxGDIObject,
37216 _swigc__p_wxGIFHandler,
37217 _swigc__p_wxGraphicsContext,
37218 _swigc__p_wxGraphicsPath,
37219 _swigc__p_wxGridBagSizer,
37220 _swigc__p_wxGridSizer,
37221 _swigc__p_wxHeaderButtonParams,
37222 _swigc__p_wxICOHandler,
37223 _swigc__p_wxIcon,
37224 _swigc__p_wxIconBundle,
37225 _swigc__p_wxIconLocation,
37226 _swigc__p_wxIconizeEvent,
37227 _swigc__p_wxIdleEvent,
37228 _swigc__p_wxImage,
37229 _swigc__p_wxImageHandler,
37230 _swigc__p_wxImageList,
37231 _swigc__p_wxIndividualLayoutConstraint,
37232 _swigc__p_wxInitDialogEvent,
37233 _swigc__p_wxJPEGHandler,
37234 _swigc__p_wxKeyEvent,
37235 _swigc__p_wxLanguageInfo,
37236 _swigc__p_wxLayoutConstraints,
37237 _swigc__p_wxLocale,
37238 _swigc__p_wxMask,
37239 _swigc__p_wxMaximizeEvent,
37240 _swigc__p_wxMemoryDC,
37241 _swigc__p_wxMenu,
37242 _swigc__p_wxMenuBar,
37243 _swigc__p_wxMenuEvent,
37244 _swigc__p_wxMenuItem,
37245 _swigc__p_wxMetaFile,
37246 _swigc__p_wxMetaFileDC,
37247 _swigc__p_wxMirrorDC,
37248 _swigc__p_wxMouseCaptureChangedEvent,
37249 _swigc__p_wxMouseCaptureLostEvent,
37250 _swigc__p_wxMouseEvent,
37251 _swigc__p_wxMoveEvent,
37252 _swigc__p_wxNativeEncodingInfo,
37253 _swigc__p_wxNativeFontInfo,
37254 _swigc__p_wxNativePixelData,
37255 _swigc__p_wxNativePixelData_Accessor,
37256 _swigc__p_wxNavigationKeyEvent,
37257 _swigc__p_wxNcPaintEvent,
37258 _swigc__p_wxNotifyEvent,
37259 _swigc__p_wxObject,
37260 _swigc__p_wxOverlay,
37261 _swigc__p_wxPCXHandler,
37262 _swigc__p_wxPNGHandler,
37263 _swigc__p_wxPNMHandler,
37264 _swigc__p_wxPaintDC,
37265 _swigc__p_wxPaintEvent,
37266 _swigc__p_wxPalette,
37267 _swigc__p_wxPaletteChangedEvent,
37268 _swigc__p_wxPaperSize,
37269 _swigc__p_wxPen,
37270 _swigc__p_wxPenList,
37271 _swigc__p_wxPixelDataBase,
37272 _swigc__p_wxPoint,
37273 _swigc__p_wxPoint2D,
37274 _swigc__p_wxPostScriptDC,
37275 _swigc__p_wxPrintData,
37276 _swigc__p_wxPrinterDC,
37277 _swigc__p_wxPseudoDC,
37278 _swigc__p_wxPyApp,
37279 _swigc__p_wxPyCommandEvent,
37280 _swigc__p_wxPyEvent,
37281 _swigc__p_wxPyFontEnumerator,
37282 _swigc__p_wxPyImageHandler,
37283 _swigc__p_wxPyLocale,
37284 _swigc__p_wxPySizer,
37285 _swigc__p_wxPyValidator,
37286 _swigc__p_wxQueryNewPaletteEvent,
37287 _swigc__p_wxRect,
37288 _swigc__p_wxRegion,
37289 _swigc__p_wxRegionIterator,
37290 _swigc__p_wxRendererNative,
37291 _swigc__p_wxRendererVersion,
37292 _swigc__p_wxScreenDC,
37293 _swigc__p_wxScrollEvent,
37294 _swigc__p_wxScrollWinEvent,
37295 _swigc__p_wxSetCursorEvent,
37296 _swigc__p_wxShowEvent,
37297 _swigc__p_wxSize,
37298 _swigc__p_wxSizeEvent,
37299 _swigc__p_wxSizer,
37300 _swigc__p_wxSizerItem,
37301 _swigc__p_wxSplitterRenderParams,
37302 _swigc__p_wxStaticBoxSizer,
37303 _swigc__p_wxStdDialogButtonSizer,
37304 _swigc__p_wxStockGDI,
37305 _swigc__p_wxString,
37306 _swigc__p_wxSysColourChangedEvent,
37307 _swigc__p_wxTIFFHandler,
37308 _swigc__p_wxUpdateUIEvent,
37309 _swigc__p_wxValidator,
37310 _swigc__p_wxWindow,
37311 _swigc__p_wxWindowCreateEvent,
37312 _swigc__p_wxWindowDC,
37313 _swigc__p_wxWindowDestroyEvent,
37314 _swigc__p_wxXPMHandler,
37315 };
37316
37317
37318 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
37319
37320 static swig_const_info swig_const_table[] = {
37321 {0, 0, 0, 0.0, 0, 0}};
37322
37323 #ifdef __cplusplus
37324 }
37325 #endif
37326 /* -----------------------------------------------------------------------------
37327 * Type initialization:
37328 * This problem is tough by the requirement that no dynamic
37329 * memory is used. Also, since swig_type_info structures store pointers to
37330 * swig_cast_info structures and swig_cast_info structures store pointers back
37331 * to swig_type_info structures, we need some lookup code at initialization.
37332 * The idea is that swig generates all the structures that are needed.
37333 * The runtime then collects these partially filled structures.
37334 * The SWIG_InitializeModule function takes these initial arrays out of
37335 * swig_module, and does all the lookup, filling in the swig_module.types
37336 * array with the correct data and linking the correct swig_cast_info
37337 * structures together.
37338 *
37339 * The generated swig_type_info structures are assigned staticly to an initial
37340 * array. We just loop though that array, and handle each type individually.
37341 * First we lookup if this type has been already loaded, and if so, use the
37342 * loaded structure instead of the generated one. Then we have to fill in the
37343 * cast linked list. The cast data is initially stored in something like a
37344 * two-dimensional array. Each row corresponds to a type (there are the same
37345 * number of rows as there are in the swig_type_initial array). Each entry in
37346 * a column is one of the swig_cast_info structures for that type.
37347 * The cast_initial array is actually an array of arrays, because each row has
37348 * a variable number of columns. So to actually build the cast linked list,
37349 * we find the array of casts associated with the type, and loop through it
37350 * adding the casts to the list. The one last trick we need to do is making
37351 * sure the type pointer in the swig_cast_info struct is correct.
37352 *
37353 * First off, we lookup the cast->type name to see if it is already loaded.
37354 * There are three cases to handle:
37355 * 1) If the cast->type has already been loaded AND the type we are adding
37356 * casting info to has not been loaded (it is in this module), THEN we
37357 * replace the cast->type pointer with the type pointer that has already
37358 * been loaded.
37359 * 2) If BOTH types (the one we are adding casting info to, and the
37360 * cast->type) are loaded, THEN the cast info has already been loaded by
37361 * the previous module so we just ignore it.
37362 * 3) Finally, if cast->type has not already been loaded, then we add that
37363 * swig_cast_info to the linked list (because the cast->type) pointer will
37364 * be correct.
37365 * ----------------------------------------------------------------------------- */
37366
37367 #ifdef __cplusplus
37368 extern "C" {
37369 #if 0
37370 } /* c-mode */
37371 #endif
37372 #endif
37373
37374 #if 0
37375 #define SWIGRUNTIME_DEBUG
37376 #endif
37377
37378 SWIGRUNTIME void
37379 SWIG_InitializeModule(void *clientdata) {
37380 size_t i;
37381 swig_module_info *module_head;
37382 static int init_run = 0;
37383
37384 clientdata = clientdata;
37385
37386 if (init_run) return;
37387 init_run = 1;
37388
37389 /* Initialize the swig_module */
37390 swig_module.type_initial = swig_type_initial;
37391 swig_module.cast_initial = swig_cast_initial;
37392
37393 /* Try and load any already created modules */
37394 module_head = SWIG_GetModule(clientdata);
37395 if (module_head) {
37396 swig_module.next = module_head->next;
37397 module_head->next = &swig_module;
37398 } else {
37399 /* This is the first module loaded */
37400 swig_module.next = &swig_module;
37401 SWIG_SetModule(clientdata, &swig_module);
37402 }
37403
37404 /* Now work on filling in swig_module.types */
37405 #ifdef SWIGRUNTIME_DEBUG
37406 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
37407 #endif
37408 for (i = 0; i < swig_module.size; ++i) {
37409 swig_type_info *type = 0;
37410 swig_type_info *ret;
37411 swig_cast_info *cast;
37412
37413 #ifdef SWIGRUNTIME_DEBUG
37414 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37415 #endif
37416
37417 /* if there is another module already loaded */
37418 if (swig_module.next != &swig_module) {
37419 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
37420 }
37421 if (type) {
37422 /* Overwrite clientdata field */
37423 #ifdef SWIGRUNTIME_DEBUG
37424 printf("SWIG_InitializeModule: found type %s\n", type->name);
37425 #endif
37426 if (swig_module.type_initial[i]->clientdata) {
37427 type->clientdata = swig_module.type_initial[i]->clientdata;
37428 #ifdef SWIGRUNTIME_DEBUG
37429 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
37430 #endif
37431 }
37432 } else {
37433 type = swig_module.type_initial[i];
37434 }
37435
37436 /* Insert casting types */
37437 cast = swig_module.cast_initial[i];
37438 while (cast->type) {
37439 /* Don't need to add information already in the list */
37440 ret = 0;
37441 #ifdef SWIGRUNTIME_DEBUG
37442 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
37443 #endif
37444 if (swig_module.next != &swig_module) {
37445 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
37446 #ifdef SWIGRUNTIME_DEBUG
37447 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
37448 #endif
37449 }
37450 if (ret) {
37451 if (type == swig_module.type_initial[i]) {
37452 #ifdef SWIGRUNTIME_DEBUG
37453 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
37454 #endif
37455 cast->type = ret;
37456 ret = 0;
37457 } else {
37458 /* Check for casting already in the list */
37459 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
37460 #ifdef SWIGRUNTIME_DEBUG
37461 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
37462 #endif
37463 if (!ocast) ret = 0;
37464 }
37465 }
37466
37467 if (!ret) {
37468 #ifdef SWIGRUNTIME_DEBUG
37469 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
37470 #endif
37471 if (type->cast) {
37472 type->cast->prev = cast;
37473 cast->next = type->cast;
37474 }
37475 type->cast = cast;
37476 }
37477 cast++;
37478 }
37479 /* Set entry in modules->types array equal to the type */
37480 swig_module.types[i] = type;
37481 }
37482 swig_module.types[i] = 0;
37483
37484 #ifdef SWIGRUNTIME_DEBUG
37485 printf("**** SWIG_InitializeModule: Cast List ******\n");
37486 for (i = 0; i < swig_module.size; ++i) {
37487 int j = 0;
37488 swig_cast_info *cast = swig_module.cast_initial[i];
37489 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
37490 while (cast->type) {
37491 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
37492 cast++;
37493 ++j;
37494 }
37495 printf("---- Total casts: %d\n",j);
37496 }
37497 printf("**** SWIG_InitializeModule: Cast List ******\n");
37498 #endif
37499 }
37500
37501 /* This function will propagate the clientdata field of type to
37502 * any new swig_type_info structures that have been added into the list
37503 * of equivalent types. It is like calling
37504 * SWIG_TypeClientData(type, clientdata) a second time.
37505 */
37506 SWIGRUNTIME void
37507 SWIG_PropagateClientData(void) {
37508 size_t i;
37509 swig_cast_info *equiv;
37510 static int init_run = 0;
37511
37512 if (init_run) return;
37513 init_run = 1;
37514
37515 for (i = 0; i < swig_module.size; i++) {
37516 if (swig_module.types[i]->clientdata) {
37517 equiv = swig_module.types[i]->cast;
37518 while (equiv) {
37519 if (!equiv->converter) {
37520 if (equiv->type && !equiv->type->clientdata)
37521 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
37522 }
37523 equiv = equiv->next;
37524 }
37525 }
37526 }
37527 }
37528
37529 #ifdef __cplusplus
37530 #if 0
37531 {
37532 /* c-mode */
37533 #endif
37534 }
37535 #endif
37536
37537
37538
37539 #ifdef __cplusplus
37540 extern "C" {
37541 #endif
37542
37543 /* Python-specific SWIG API */
37544 #define SWIG_newvarlink() SWIG_Python_newvarlink()
37545 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
37546 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
37547
37548 /* -----------------------------------------------------------------------------
37549 * global variable support code.
37550 * ----------------------------------------------------------------------------- */
37551
37552 typedef struct swig_globalvar {
37553 char *name; /* Name of global variable */
37554 PyObject *(*get_attr)(void); /* Return the current value */
37555 int (*set_attr)(PyObject *); /* Set the value */
37556 struct swig_globalvar *next;
37557 } swig_globalvar;
37558
37559 typedef struct swig_varlinkobject {
37560 PyObject_HEAD
37561 swig_globalvar *vars;
37562 } swig_varlinkobject;
37563
37564 SWIGINTERN PyObject *
37565 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
37566 return PyString_FromString("<Swig global variables>");
37567 }
37568
37569 SWIGINTERN PyObject *
37570 swig_varlink_str(swig_varlinkobject *v) {
37571 PyObject *str = PyString_FromString("(");
37572 swig_globalvar *var;
37573 for (var = v->vars; var; var=var->next) {
37574 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
37575 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
37576 }
37577 PyString_ConcatAndDel(&str,PyString_FromString(")"));
37578 return str;
37579 }
37580
37581 SWIGINTERN int
37582 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
37583 PyObject *str = swig_varlink_str(v);
37584 fprintf(fp,"Swig global variables ");
37585 fprintf(fp,"%s\n", PyString_AsString(str));
37586 Py_DECREF(str);
37587 return 0;
37588 }
37589
37590 SWIGINTERN void
37591 swig_varlink_dealloc(swig_varlinkobject *v) {
37592 swig_globalvar *var = v->vars;
37593 while (var) {
37594 swig_globalvar *n = var->next;
37595 free(var->name);
37596 free(var);
37597 var = n;
37598 }
37599 }
37600
37601 SWIGINTERN PyObject *
37602 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
37603 PyObject *res = NULL;
37604 swig_globalvar *var = v->vars;
37605 while (var) {
37606 if (strcmp(var->name,n) == 0) {
37607 res = (*var->get_attr)();
37608 break;
37609 }
37610 var = var->next;
37611 }
37612 if (res == NULL && !PyErr_Occurred()) {
37613 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37614 }
37615 return res;
37616 }
37617
37618 SWIGINTERN int
37619 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
37620 int res = 1;
37621 swig_globalvar *var = v->vars;
37622 while (var) {
37623 if (strcmp(var->name,n) == 0) {
37624 res = (*var->set_attr)(p);
37625 break;
37626 }
37627 var = var->next;
37628 }
37629 if (res == 1 && !PyErr_Occurred()) {
37630 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
37631 }
37632 return res;
37633 }
37634
37635 SWIGINTERN PyTypeObject*
37636 swig_varlink_type(void) {
37637 static char varlink__doc__[] = "Swig var link object";
37638 static PyTypeObject varlink_type;
37639 static int type_init = 0;
37640 if (!type_init) {
37641 const PyTypeObject tmp
37642 = {
37643 PyObject_HEAD_INIT(NULL)
37644 0, /* Number of items in variable part (ob_size) */
37645 (char *)"swigvarlink", /* Type name (tp_name) */
37646 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
37647 0, /* Itemsize (tp_itemsize) */
37648 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
37649 (printfunc) swig_varlink_print, /* Print (tp_print) */
37650 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
37651 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
37652 0, /* tp_compare */
37653 (reprfunc) swig_varlink_repr, /* tp_repr */
37654 0, /* tp_as_number */
37655 0, /* tp_as_sequence */
37656 0, /* tp_as_mapping */
37657 0, /* tp_hash */
37658 0, /* tp_call */
37659 (reprfunc)swig_varlink_str, /* tp_str */
37660 0, /* tp_getattro */
37661 0, /* tp_setattro */
37662 0, /* tp_as_buffer */
37663 0, /* tp_flags */
37664 varlink__doc__, /* tp_doc */
37665 0, /* tp_traverse */
37666 0, /* tp_clear */
37667 0, /* tp_richcompare */
37668 0, /* tp_weaklistoffset */
37669 #if PY_VERSION_HEX >= 0x02020000
37670 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
37671 #endif
37672 #if PY_VERSION_HEX >= 0x02030000
37673 0, /* tp_del */
37674 #endif
37675 #ifdef COUNT_ALLOCS
37676 0,0,0,0 /* tp_alloc -> tp_next */
37677 #endif
37678 };
37679 varlink_type = tmp;
37680 varlink_type.ob_type = &PyType_Type;
37681 type_init = 1;
37682 }
37683 return &varlink_type;
37684 }
37685
37686 /* Create a variable linking object for use later */
37687 SWIGINTERN PyObject *
37688 SWIG_Python_newvarlink(void) {
37689 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
37690 if (result) {
37691 result->vars = 0;
37692 }
37693 return ((PyObject*) result);
37694 }
37695
37696 SWIGINTERN void
37697 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
37698 swig_varlinkobject *v = (swig_varlinkobject *) p;
37699 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
37700 if (gv) {
37701 size_t size = strlen(name)+1;
37702 gv->name = (char *)malloc(size);
37703 if (gv->name) {
37704 strncpy(gv->name,name,size);
37705 gv->get_attr = get_attr;
37706 gv->set_attr = set_attr;
37707 gv->next = v->vars;
37708 }
37709 }
37710 v->vars = gv;
37711 }
37712
37713 SWIGINTERN PyObject *
37714 SWIG_globals() {
37715 static PyObject *_SWIG_globals = 0;
37716 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
37717 return _SWIG_globals;
37718 }
37719
37720 /* -----------------------------------------------------------------------------
37721 * constants/methods manipulation
37722 * ----------------------------------------------------------------------------- */
37723
37724 /* Install Constants */
37725 SWIGINTERN void
37726 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
37727 PyObject *obj = 0;
37728 size_t i;
37729 for (i = 0; constants[i].type; ++i) {
37730 switch(constants[i].type) {
37731 case SWIG_PY_POINTER:
37732 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
37733 break;
37734 case SWIG_PY_BINARY:
37735 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
37736 break;
37737 default:
37738 obj = 0;
37739 break;
37740 }
37741 if (obj) {
37742 PyDict_SetItemString(d, constants[i].name, obj);
37743 Py_DECREF(obj);
37744 }
37745 }
37746 }
37747
37748 /* -----------------------------------------------------------------------------*/
37749 /* Fix SwigMethods to carry the callback ptrs when needed */
37750 /* -----------------------------------------------------------------------------*/
37751
37752 SWIGINTERN void
37753 SWIG_Python_FixMethods(PyMethodDef *methods,
37754 swig_const_info *const_table,
37755 swig_type_info **types,
37756 swig_type_info **types_initial) {
37757 size_t i;
37758 for (i = 0; methods[i].ml_name; ++i) {
37759 const char *c = methods[i].ml_doc;
37760 if (c && (c = strstr(c, "swig_ptr: "))) {
37761 int j;
37762 swig_const_info *ci = 0;
37763 const char *name = c + 10;
37764 for (j = 0; const_table[j].type; ++j) {
37765 if (strncmp(const_table[j].name, name,
37766 strlen(const_table[j].name)) == 0) {
37767 ci = &(const_table[j]);
37768 break;
37769 }
37770 }
37771 if (ci) {
37772 size_t shift = (ci->ptype) - types;
37773 swig_type_info *ty = types_initial[shift];
37774 size_t ldoc = (c - methods[i].ml_doc);
37775 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
37776 char *ndoc = (char*)malloc(ldoc + lptr + 10);
37777 if (ndoc) {
37778 char *buff = ndoc;
37779 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
37780 if (ptr) {
37781 strncpy(buff, methods[i].ml_doc, ldoc);
37782 buff += ldoc;
37783 strncpy(buff, "swig_ptr: ", 10);
37784 buff += 10;
37785 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
37786 methods[i].ml_doc = ndoc;
37787 }
37788 }
37789 }
37790 }
37791 }
37792 }
37793
37794 #ifdef __cplusplus
37795 }
37796 #endif
37797
37798 /* -----------------------------------------------------------------------------*
37799 * Partial Init method
37800 * -----------------------------------------------------------------------------*/
37801
37802 #ifdef __cplusplus
37803 extern "C"
37804 #endif
37805 SWIGEXPORT void SWIG_init(void) {
37806 PyObject *m, *d;
37807
37808 /* Fix SwigMethods to carry the callback ptrs when needed */
37809 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
37810
37811 m = Py_InitModule((char *) SWIG_name, SwigMethods);
37812 d = PyModule_GetDict(m);
37813
37814 SWIG_InitializeModule(0);
37815 SWIG_InstallConstants(d,swig_const_table);
37816
37817
37818 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
37819 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
37820 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
37821 SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT)));
37822 SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE)));
37823 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
37824 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
37825 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
37826 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
37827 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
37828 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
37829 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
37830 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
37831 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
37832 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
37833 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
37834 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
37835 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
37836 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
37837 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
37838 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
37839 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
37840 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
37841 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
37842 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
37843 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
37844 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
37845 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
37846 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
37847 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
37848 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
37849 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
37850 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
37851 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
37852 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
37853 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
37854 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
37855 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
37856 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
37857 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
37858 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
37859 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
37860 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
37861 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
37862 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
37863 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
37864 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
37865 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
37866 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
37867 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
37868 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
37869 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
37870 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
37871 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
37872 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
37873 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
37874 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
37875 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
37876 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
37877 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
37878 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
37879 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
37880 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
37881 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
37882 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
37883 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
37884 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
37885 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
37886 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
37887 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
37888 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
37889 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
37890 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
37891 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
37892 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
37893 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
37894 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
37895 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
37896 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
37897 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
37898 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
37899 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
37900 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
37901 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
37902 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
37903 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
37904 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
37905 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
37906 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
37907 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
37908 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
37909 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
37910 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
37911 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
37912 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
37913 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
37914 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
37915 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
37916 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
37917 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
37918 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
37919 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
37920 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
37921 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
37922 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
37923 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
37924 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
37925 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
37926 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
37927 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
37928 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
37929 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
37930 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
37931 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
37932 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
37933 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
37934 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
37935 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
37936 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
37937 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
37938 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
37939 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
37940 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
37941 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
37942 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
37943 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
37944 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
37945 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
37946 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
37947 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
37948 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
37949 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
37950
37951 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
37952
37953 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
37954 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
37955 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
37956 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
37957 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
37958 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
37959 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
37960 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
37961 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
37962 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
37963 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
37964 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
37965 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
37966 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
37967 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
37968 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
37969 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
37970 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
37971 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
37972 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
37973 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
37974 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
37975 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
37976 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
37977 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
37978 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
37979 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
37980 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
37981 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
37982 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
37983 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
37984 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
37985 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
37986 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
37987 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
37988 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
37989 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
37990 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
37991 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
37992 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
37993 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
37994 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
37995 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
37996 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
37997 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
37998 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
37999 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
38000 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
38001 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
38002 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
38003 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
38004 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
38005 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
38006 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
38007 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
38008 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
38009 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
38010 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
38011 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
38012 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
38013 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
38014 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
38015 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
38016 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
38017 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
38018 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
38019 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
38020 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
38021 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
38022 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
38023 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
38024 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
38025 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
38026 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
38027 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
38028 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
38029 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
38030 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
38031 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
38032 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
38033 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
38034 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
38035 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
38036 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
38037 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
38038 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
38039 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
38040 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
38041 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
38042 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
38043 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
38044 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
38045 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
38046 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
38047 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
38048 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
38049 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
38050 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
38051 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
38052 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
38053 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
38054 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
38055 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
38056 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
38057 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
38058 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
38059 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
38060 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
38061 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
38062 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
38063 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
38064 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
38065 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
38066 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
38067 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
38068 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
38069 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
38070 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
38071 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
38072 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
38073 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
38074 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
38075 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
38076 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
38077 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
38078 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
38079 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
38080 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
38081 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
38082 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
38083 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
38084 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
38085 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
38086 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
38087 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
38088 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
38089 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
38090 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
38091 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
38092 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
38093 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
38094 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
38095 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
38096 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
38097 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
38098 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
38099 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
38100 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
38101 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
38102 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
38103 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
38104 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
38105 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
38106 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
38107 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
38108 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
38109 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
38110 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
38111 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
38112 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
38113 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
38114 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
38115 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
38116 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
38117 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
38118 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
38119 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
38120 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
38121 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
38122 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
38123 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
38124 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
38125 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
38126 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
38127 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
38128 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
38129 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
38130 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
38131 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
38132 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
38133 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
38134 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
38135 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
38136 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
38137 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
38138 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
38139 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
38140 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
38141 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
38142 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
38143 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
38144 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
38145 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
38146 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
38147 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
38148 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
38149 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
38150 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
38151 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
38152 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
38153 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
38154 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
38155 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
38156 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
38157 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
38158 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
38159 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
38160 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
38161 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
38162 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
38163 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
38164 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
38165 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
38166 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
38167 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
38168 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
38169 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
38170 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
38171 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
38172 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
38173 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
38174 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
38175 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
38176 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
38177 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
38178 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
38179 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
38180 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
38181 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
38182 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
38183 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
38184 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
38185 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
38186 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
38187 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
38188 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
38189 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
38190 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
38191 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
38192 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
38193 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
38194 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
38195 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
38196 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
38197 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
38198 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
38199 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
38200 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
38201 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
38202 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
38203 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
38204 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
38205 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
38206 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
38207 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
38208 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
38209 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
38210 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
38211 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
38212 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
38213 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
38214 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
38215 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
38216 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
38217 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
38218 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
38219 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
38220 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
38221 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
38222 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
38223 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
38224 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
38225 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
38226 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
38227 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
38228 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
38229 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
38230 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
38231 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
38232 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
38233 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
38234 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
38235 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
38236 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
38237 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
38238 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
38239 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
38240 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
38241 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
38242 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
38243 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
38244 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
38245 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
38246 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
38247 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
38248 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
38249 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
38250 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
38251 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
38252 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
38253 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
38254 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
38255 SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL)));
38256 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
38257 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
38258 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
38259 SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP)));
38260 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
38261 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
38262 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
38263 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
38264 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
38265 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
38266 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
38267 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE)));
38268 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP)));
38269 SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN)));
38270 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
38271 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
38272
38273 // Work around a chicken/egg problem in drawlist.cpp
38274 wxPyDrawList_SetAPIPtr();
38275
38276 }
38277